opencv/modules
Yuya Unno 500c55a808
Merge pull request #25122 from unnonouno:pqueue
Use std::priority_queue in inpaint function for performance improvement #25122

In `cv::inpaint` implementation, it uses a priority queue with O(n) time linear search. For large images it is very slow.
I replaced it with C++'s standard library `std::priority_queue`, that uses O(log(n)) algorithm.
In my use case, it is x10 faster than the original.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] 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
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] 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
2024-03-02 13:43:58 +03:00
..
calib3d Merge pull request #25050 from akretz:fix_issue_24330 2024-02-27 08:10:21 +03:00
core Merge pull request #25059 from opencv-pushbot:gitee/alalek/core_fix_float16 2024-02-24 13:28:05 +03:00
dnn Update net_impl.cpp 2024-03-01 14:56:00 +01:00
features2d Added Java bindings for BOWImgDescriptorExtractor constructor. 2023-10-31 11:23:47 +03:00
flann Merge pull request #25024 from vrabaud:neon 2024-02-20 11:29:23 +03:00
gapi Merge pull request #25060 from dmatveev:dm/gapi_test_time 2024-02-22 16:40:33 +03:00
highgui Partially backport C API removal in imgproc module to reduce conflicts with 5.x 2024-02-29 12:42:19 +03:00
imgcodecs Update ios_conversions.mm 2024-02-26 19:21:52 +11:00
imgproc Partially backport C API removal in imgproc module to reduce conflicts with 5.x 2024-02-29 12:42:19 +03:00
java Merge pull request #24946 from alexlyulkov:al/kotlin-tests2 2024-02-22 09:30:45 +03:00
js Merge pull request #25084 from EDVTAZ:emscripten-3.1.54-compat 2024-02-26 10:30:56 +03:00
ml Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
objc Merge pull request #24136 from komakai:visionos_support 2023-12-20 15:35:10 +03:00
objdetect Merge pull request #25091 from Dhanwanth1803:scoreThresh 2024-02-27 12:10:52 +03:00
photo Merge pull request #25122 from unnonouno:pqueue 2024-03-02 13:43:58 +03:00
python fix [use hasattr("cv2", "name") ,but first param is 'character string', 2024-02-23 22:02:43 +08:00
stitching Merge pull request #23736 from seanm:c++11-simplifications 2024-01-19 16:53:08 +03:00
ts Merge pull request #23736 from seanm:c++11-simplifications 2024-01-19 16:53:08 +03:00
video Merge pull request #24852 from Octopus136:4.x 2024-01-17 10:20:03 +03:00
videoio Fixed typo. 2024-02-24 18:03:18 +09:00
world cmake: use /INCREMENTAL:NO with MSVS 2015 2023-12-07 19:46:27 +00:00