Pierre Chatelier
ebb6915e58
Merge pull request #21645 from chacha21:applyColorMap_8UC1_optimized
...
Optimize cv::applyColorMap() for simple case
* Optimize cv::applyColorMap() for simple case
PR for 21640
For regular cv::Mat CV_8UC1 src, applying the colormap is simpler than calling the cv::LUT() mechanism.
* add support for src as CV_8UC3
src as CV_8UC3 is handled with a BGR2GRAY conversion, the same optimized code being used afterwards
* code style
rely on cv::Mat.ptr() to index data
* Move new implementation to ColorMap::operator()
Changes as suggested by reviewer
* style
improvements suggsted by reviewer
* typo
* tune parallel work
* better usage of parallel_for_
use nstripes parameter of parallel_for_
assume _lut is continuous to bring faster pixel indexing
optimize src/dst access by contiguous rows of pixels
do not locally copy the LUT any more, it is no more relevant with the new optimizations
3 years ago
Egor Smirnov
375fe81311
fix slice and expand
3 years ago
Tatsuro Shibamura
d354ad1c34
Merge pull request #21630 from shibayan:arm64-msvc-neon
...
* Added NEON support in builds for Windows on ARM
* Fixed `HAVE_CPU_NEON_SUPPORT` display broken during compiler test
* Fixed a build error prior to Visual Studio 2022
3 years ago
Vadim Levin
119d8b3aca
Merge pull request #21553 from VadimLevin:dev/vlevin/scope-for-classes-4x-port
...
4.x: submodule or a class scope for exported classes
* feature: submodule or a class scope for exported classes
All classes are registered in the scope that corresponds to C++
namespace or exported class.
Example:
`cv::ml::Boost` is exported as `cv.ml.Boost`
`cv::SimpleBlobDetector::Params` is exported as
`cv.SimpleBlobDetector.Params`
For backward compatibility all classes are registered in the global
module with their mangling name containing scope information.
Example:
`cv::ml::Boost` has `cv.ml_Boost` alias to `cv.ml.Boost` type
* refactor: remove redundant GAPI aliases
* fix: use explicit string literals in CVPY_TYPE macro
* fix: add handling for class aliases
3 years ago
Sergey Ivanov
8f1c502d2b
Merge pull request #21618 from sivanov-work:vpp_preproc_core
...
G-API: Add VPL/VPP preproc core module
* Add BaseMediAdapter for VPL
* Add PreprocSession & PreprocEngine interface part
* Implement preproc UT, Fix base path
* Add common PP interface, add common pp_params
* Rough decoupling VPL & Preproc
* Add syntax sugar for PP interface
* Integrate VPP preproc in GIEbackend
* Add PP bypass
* Add perf tests for PP
* Fix warning in vpl core UT
* Add inner preproc resolution Unit Test
* Remove VPP preproc description from single ROI sample
* Apply SetROIBlob for diferent Infer operations
* Eliminate extra branch-lines for cfg_param_parser & transcode_engine
* Fix UT warning &PreprocSession compile
* Fix compilation & warnings
* Reduce Session&Engine code amount
* Apply some comments
* Revert IE changes, rename preproc
* Fix for DX11 infer for OV: turn off texture array
* Remove dependency PP on IE
* Change fixture tests params
* Apply other comments & turn off ROI for GPU
* Fix compilation: remove forgotten INFER define
* Apply debt comments
* Fix PP UTs: add FrameInfo value comparator
* Fix style
* Remove standalone map for preproc frames storage
* Add other comments
3 years ago
Aleksei Trutnev
aa53541235
enable dynamic dispatching for merge4
3 years ago
Yuantao Feng
f77c3574af
Merge pull request #21607 from fengyuentau:fix_FaceDetectorYN_dynamic_shape
...
Use YuNet of fixed input shape to fix not-supported-dynamic-zero-shape for FaceDetectorYN
* use yunet with input of fixed shape
* update yunet used in face recognition regression
3 years ago
Zhuo Zhang
f5105bac65
remove const in seamless_cloding APIs for better semantics
3 years ago
KaurkerDevourer
9198e30688
Fix DpSeamFinder::hasOnlyOneNeighbor
...
std::lower_bound is linear for set
https://en.cppreference.com/w/cpp/algorithm/lower_bound
3 years ago
Artem Saratovtsev
1890157faa
Merge pull request #21635 from DumDereDum:issue_21595_3.4
...
Issue 21595 fix 3.4 branch
* bug fix; add test
* rewrite tests avoiding vector in tests
3 years ago
Yuriy Chernyshov
0898f372b1
Аix -Winvalid-noreturn under clang-cl
3 years ago
Anna Khakimova
6b6d89b911
GAPI Fluid: Fix for 32bit build issue.
3 years ago
Anna Khakimova
3c814ebf87
GAPI Perf Tests:Workaround for the OpenCV's issue.
3 years ago
Sean McBride
5b23752205
Replaced incorrect double checked locking with a static
...
Thread Sanitizer identified an incorrect implementation of double checked locking.
Replaced it with a static, which therefore can only be created once.
3 years ago
Alexander Alekhin
2b7803dbac
imgcodecs: add runtime checks to validate input
...
backport of commit: f9b1dbe2ac
3 years ago
Alexander Alekhin
f9b1dbe2ac
imgcodecs: add runtime checks to validate input
3 years ago
Maksim Shabunin
a251474144
Update filters in ONNX tests
3 years ago
Alexander Alekhin
8d88bb06b2
core(vsx): update vec_absd() workaround condition
3 years ago
Maksim Shabunin
45cbf70265
Update filters in ONNX tests
3 years ago
Yusuke Kameda
33f219dfe6
Incorrect kernel matrix size when Scharr
...
Incorrect Mat size ksize==-1
3 years ago
Suleyman TURKMEN
44db2eea70
update HOGDescriptor documentation
3 years ago
Pavel Rojtberg
12ab54648c
highui: qt - enable hidpi by default
...
can be overriden by environment:
QT_AUTO_SCREEN_SCALE_FACTOR=0
3 years ago
cudawarped
76aff84788
Merge pull request #21561 from cudawarped:ffmpeg_prefer_tcp_default
...
Default FFMPEG VideoCapture backend to rtsp_flags=prefer_tcp
* Make the VideoCapture ffmpeg backends default rtsp connection type prefer_tcp.
* Ensure that the ffmpeg version of avformat is checked.
3 years ago
Vincent Rabaud
fc28ba3156
Merge pull request #21594 from vrabaud:3.4_msan
...
* Fix harmless MSAN error.
This is similar to https://github.com/opencv/opencv/pull/21527
A macro is also created to simplify the code.
* Declare fallback only once.
3 years ago
Alexander Alekhin
effce0573b
dnn: drop legacy Inference Engine NN builder API
3 years ago
Sergey Ivanov
d5ecb5ff5a
Merge pull request #21567 from sivanov-work:gapi_streaming_fix
...
G-API: Fix streaming hangs for ConstSource & Improve troubleshooting logger messages
3 years ago
Greg Fiumara
dae73938e8
Fix cv::FileStorage::Mode::Memory doxygen layout
3 years ago
Anatoliy Talamanov
619b6dfae3
Merge pull request #21579 from TolyaTalamanov:at/handle-errors-in-iebackend
...
[G-API] Handle errors in IEBackend & modeling tool
* Handle errors in IEBackend & modeling tool
* Handle exceptions in callback
* Add const cv to exception
3 years ago
Dmitry Budnikov
3eeec4faae
Merge pull request #21560 from dbudniko:dbudniko/gapi_media_format_gray_plus_gst_source
...
G-API gst source gray support
3 years ago
Suleyman TURKMEN
ffee1a4126
fix cv::floodfill() for calling it with an empty mask
3 years ago
Anatoliy Talamanov
08356007c9
Merge pull request #21566 from TolyaTalamanov:at/gapi-modeling-tool_fix_handling_fp16_precision
...
[G-API] Pipeline modeling tool - Fix generating FP16 Mat
* Fix handling fp16 precision
* Disable preproc in case FP16 input inside IE backend
* Fix isApplicableForResize function
3 years ago
lamm45
5064b6f747
Update LineIterator documentation
3 years ago
Alexander Alekhin
1da48beeec
dnn(ngraph): fix output names
3 years ago
Alexander Alekhin
b57ff73086
dnn(ngraph): fix outputs handling, drop 'unconnected' logic
3 years ago
Alexander Alekhin
67978b5746
dnn(ngraph): add debuging messages
3 years ago
Alexander Alekhin
062f305d1a
dnn: don't fuse 'outputs' with OpenVINO backend
3 years ago
Alexander Alekhin
1f70d4e2a5
dnn(test): re-enable ONNX split tests for OpenVINO
3 years ago
Alexander Alekhin
aa5bc20c83
dnn(ngraph): fixup get_output_as_single_output_node() replacement patch
3 years ago
Dmitry Budnikov
4d0148b417
Merge pull request #21511 from dbudniko:dbudniko/gapi_media_format_gray
...
G-API media format gray
3 years ago
Anna Khakimova
1605d1d24d
Merge pull request #21474 from anna-khakimova:ak/simd_for_divc
...
GAPI Fluid: SIMD for DivC kernel.
* GAPI Fluid:SIMD for DivC
* Applied comment
3 years ago
cudawarped
f66a2ffa1e
Fix GpuMat to correctly calculate dataend when using GpuMat::create().
...
Add output to createMat() to be used by locateROI test cases.
3 years ago
Maksim Shabunin
d1e76a34a0
3.4: Use modern OpenVINO package interface
...
original commit: 437af37b13
3 years ago
Maksim Shabunin
437af37b13
Use modern OpenVINO package interface
3 years ago
Aleksei Trutnev
c62367612d
Enable dynamic dispatching for Merge3
3 years ago
Anatoliy Talamanov
a92cba8484
Merge pull request #21477 from TolyaTalamanov:at/pipeline-builder-tool
...
[G-API] Implement G-API pipeline modeling tool
* Implement G-API pipeline builder tool
* Remove whitespaces from config
* Remove unused unittest stuff
* Fix comments to review
* Fix MAC warning
* Rename to pipeline_modeling_tool
* Move to opencv apps
* Move config to gapi/samples/data
* gapi: samples sources are installed automatically
3 years ago
Ed Martin
dc29632d4e
Fallback to vaCreateImage + vaPutImage/vaGetImage when vaDeriveImage fails
...
Per intel docs for libva, when vaDeriveImage fails vaCreateImage +
vaPutImage should be tried. This is important as mesa with AMD HW
will always fail because the image is interlaced so a indirect
method must be used to get the surface to/from and image
Fixes https://github.com/opencv/opencv/issues/21536
3 years ago
Harvey
f4a7754cc0
Merge pull request #21428 from Harvey-Huang:TIFF
...
TiffEncoder write support more depth type
* TiffEncoder write support more depth type
* testing code
* update testing code
* add fallthrough
3 years ago
Trutnev Aleksei
245f6273bd
Merge pull request #21520 from alexgiving:atrutnev/simd_for_split4
...
GAPI FLUID: Enable dynamic dispatching for Split4
* Enable dynamic dispatching for split4
* Add tail proc for split3 and split4
3 years ago
Alexander Alekhin
870c8d3c4e
dnn(test): fix int8 tolerances
3 years ago
Alexander Alekhin
a7e6a1059c
dnn(test): fix outputs handling in ONNX conformance
...
- ONNX output is 1 tensor per defined output instead of N tensors from outputs of "output" layer
3 years ago