added blob contours to blob detector#21942
Conversation
49e9c75 to
539efc5
Compare
b36fa69 to
bf284a9
Compare
139ebd5 to
cd46489
Compare
|
@pglotov, thank you for the contribution! |
|
makes sense, made changes |
5469b78 to
de097f5
Compare
|
@pglotov, thank you! I have just one more comment – see above. Other than that, the patch is ready for integration. |
2351b8b to
8586426
Compare
3de47e5 to
76f7efb
Compare
|
@alalek Could you add an exception to abi-complience-checker for the new fields and methods. |
| CV_WRAP static Ptr<SimpleBlobDetector> | ||
| create(const SimpleBlobDetector::Params ¶meters = SimpleBlobDetector::Params()); | ||
| CV_WRAP virtual String getDefaultName() const CV_OVERRIDE; | ||
| CV_WRAP virtual const std::vector<std::vector<Point> >& getBlobContours() const = 0; |
There was a problem hiding this comment.
"Source API" compatibility doesn't allow to add new virtual pure methods.
Do we really want to violate that and bypass checker?
- 4.x: implementation with
CV_Error(not implemented)should be used instead. - 5.x: pure method patch should be used
There was a problem hiding this comment.
I initially wanted to merged this into master, not a particular release. Do you think it makes sense to have two PRs for both branches?
There was a problem hiding this comment.
@alalek I added stup implementation with CV_Error.
…resume source API compatibility.
added blob contours to blob detector * added blob contours * Fixed Java regression test after new parameter addition to SimpleBlobDetector. * Added stub implementation of SimpleBlobDetector::getBlobContours to presume source API compatibility.
docs(features2d): document getBlobContours and collectContours in SimpleBlobDetector #28275 Description: This PR adds missing Doxygen documentation for the getBlobContours() method and the collectContours parameter in SimpleBlobDetector. These features were previously undocumented, making the contour collection functionality difficult for users to discover and use correctly. Changes: Added a @brief and detailed note for SimpleBlobDetector::Params::collectContours. Added documentation for SimpleBlobDetector::getBlobContours(), including a @note regarding the required parameter setup. Testing: Verified the documentation build locally on macOS using ninja opencv_docs. Confirmed the generated HTML displays the descriptions and cross-references accurately. Partially fixes: #25904 Related PR that adds method: #21942 ### 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 - [x] 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. - [x] The feature is well documented and sample code can be built with the project CMake
…ctor-api docs(features2d): document getBlobContours and collectContours in SimpleBlobDetector opencv#28275 Description: This PR adds missing Doxygen documentation for the getBlobContours() method and the collectContours parameter in SimpleBlobDetector. These features were previously undocumented, making the contour collection functionality difficult for users to discover and use correctly. Changes: Added a @brief and detailed note for SimpleBlobDetector::Params::collectContours. Added documentation for SimpleBlobDetector::getBlobContours(), including a @note regarding the required parameter setup. Testing: Verified the documentation build locally on macOS using ninja opencv_docs. Confirmed the generated HTML displays the descriptions and cross-references accurately. Partially fixes: opencv#25904 Related PR that adds method: opencv#21942 ### 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 - [x] 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. - [x] The feature is well documented and sample code can be built with the project CMake
This PR adds an option to collect blob contours during blob detection (SimpleBlobDetector).
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.