mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
![]() Rewrite Universal Intrinsic code: float related part #24325 The goal of this series of PRs is to modify the SIMD code blocks guarded by CV_SIMD macro: rewrite them by using the new Universal Intrinsic API. The series of PRs is listed below: #23885 First patch, an example #23980 Core module #24058 ImgProc module, part 1 #24132 ImgProc module, part 2 #24166 ImgProc module, part 3 #24301 Features2d and calib3d module #24324 Gapi module This patch (hopefully) is the last one in the series. This patch mainly involves 3 parts 1. Add some modifications related to float (CV_SIMD_64F) 2. Use `#if (CV_SIMD || CV_SIMD_SCALABLE)` instead of `#if CV_SIMD || CV_SIMD_SCALABLE`, then we can get the `CV_SIMD` module that is not enabled for `CV_SIMD_SCALABLE` by looking for `if CV_SIMD` 3. Summary of `CV_SIMD` blocks that remains unmodified: Updated comments - Some blocks will cause test fail when enable for RVV, marked as `TODO: enable for CV_SIMD_SCALABLE, ....` - Some blocks can not be rewrited directly. (Not commented in the source code, just listed here) - ./modules/core/src/mathfuncs_core.simd.hpp (Vector type wrapped in class/struct) - ./modules/imgproc/src/color_lab.cpp (Array of vector type) - ./modules/imgproc/src/color_rgb.simd.hpp (Array of vector type) - ./modules/imgproc/src/sumpixels.simd.hpp (fixed length algorithm, strongly ralated with `CV_SIMD_WIDTH`) These algorithms will need to be redesigned to accommodate scalable backends. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [ ] I agree to contribute to the project under Apache 2 License. - [ ] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [ ] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake |
||
---|---|---|
.. | ||
caffe | ||
cuda | ||
cuda4dnn | ||
darknet | ||
int8layers | ||
layers | ||
ocl4dnn | ||
onnx | ||
opencl | ||
tensorflow | ||
tflite | ||
torch | ||
vkcom | ||
webnn | ||
backend.cpp | ||
backend.hpp | ||
debug_utils.cpp | ||
dnn_common.hpp | ||
dnn_params.cpp | ||
dnn_read.cpp | ||
dnn_utils.cpp | ||
dnn.cpp | ||
factory.hpp | ||
graph_simplifier.cpp | ||
graph_simplifier.hpp | ||
halide_scheduler.cpp | ||
halide_scheduler.hpp | ||
ie_ngraph.cpp | ||
ie_ngraph.hpp | ||
init.cpp | ||
layer_factory.cpp | ||
layer_internals.hpp | ||
layer.cpp | ||
legacy_backend.cpp | ||
legacy_backend.hpp | ||
math_utils.hpp | ||
model.cpp | ||
net_cann.cpp | ||
net_impl_backend.cpp | ||
net_impl_fuse.cpp | ||
net_impl.cpp | ||
net_impl.hpp | ||
net_openvino.cpp | ||
net_quantization.cpp | ||
net.cpp | ||
nms.cpp | ||
nms.inl.hpp | ||
op_cann.cpp | ||
op_cann.hpp | ||
op_cuda.cpp | ||
op_cuda.hpp | ||
op_halide.cpp | ||
op_halide.hpp | ||
op_inf_engine.cpp | ||
op_inf_engine.hpp | ||
op_timvx.cpp | ||
op_timvx.hpp | ||
op_vkcom.cpp | ||
op_vkcom.hpp | ||
op_webnn.cpp | ||
op_webnn.hpp | ||
plugin_api.hpp | ||
plugin_wrapper.impl.hpp | ||
precomp.hpp | ||
registry.cpp |