Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Kumataro
Copy link
Contributor

@Kumataro Kumataro commented Aug 13, 2024

close #26016
Related opencv/opencv_contrib#3778

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

@Kumataro Kumataro marked this pull request as draft August 13, 2024 00:41
Copy link
Contributor

@opencv-alalek opencv-alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relates #24527

@Kumataro Kumataro changed the title imgproc: use float32 to determine whether the corners points are within src imgproc: use double to determine whether the corners points are within src Aug 14, 2024
@Kumataro Kumataro marked this pull request as ready for review August 14, 2024 12:28
@Kumataro
Copy link
Contributor Author

Kumataro commented Aug 14, 2024

It seems that CI doesn't work well. Is there anything I can help ?

I had been tried to re-run CI/CD with new git commit and push,
CI For Linux64 ( https://pullrequest.opencv.org/buildbot/builders/precommit_linux64/builds/108564 ) starts first init step, but doest not finished and does not conitue to next steps.

--- Added comment
I'm sorry I didn't notice to make pull-request on opencv-contrib. I created. opencv/opencv_contrib#3778
However I think it seems not a reason ...

bool empty() const;

//! conversion to another data type
template<typename _Tp2> operator Rect_<_Tp2>() const;
Copy link
Contributor

@opencv-alalek opencv-alalek Aug 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try explicit for conversion operator instead? (to avoid unexpected conversions)

(since C++11: https://en.cppreference.com/w/cpp/language/cast_operator )

Copy link
Contributor Author

@Kumataro Kumataro Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try explicit for conversion operator instead? (to avoid unexpected conversions)

I think it is not easy, because cv::Point and cv::Rect is used for drawing functions in imgproc, so there are many side-effetcs not only OpenCV library but also user-applications. (I would like to do that if possible...)

Following are trial codes, but it doesn't include some modules (cuda*, hdf, ...).

@asmorkalov asmorkalov added this to the 4.11.0 milestone Aug 23, 2024
@asmorkalov asmorkalov self-assigned this Aug 23, 2024
@asmorkalov asmorkalov merged commit a3bdbf5 into opencv:4.x Aug 23, 2024
@asmorkalov asmorkalov mentioned this pull request Aug 27, 2024
thewoz pushed a commit to CobbsLab/OPENCV that referenced this pull request Feb 13, 2025
Imgproc: use double to determine whether the corners points are within src opencv#26022

close opencv#26016
Related opencv/opencv_contrib#3778

### 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
- [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.
- [x] The feature is well documented and sample code can be built with the project CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cv2.error: in function 'cv::cornerSubPix'

3 participants