Skip to content

Fix bug in Objective-C/Swift [Mat initWithSize:**] functions#22300

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:fix-Mat-initWithSize
Jul 26, 2022
Merged

Fix bug in Objective-C/Swift [Mat initWithSize:**] functions#22300
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:fix-Mat-initWithSize

Conversation

@komakai
Copy link
Copy Markdown
Contributor

@komakai komakai commented Jul 25, 2022

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 test

Bug fix:
The original implementation of -[Mat initWithSize:type:] and -[Mat initWithSize:type:scalar] contained a bug where the dimensions were swapped round. This PR fixes this.

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Thank you 👍

@opencv-pushbot opencv-pushbot merged commit ebaf8cc into opencv:4.x Jul 26, 2022
@alalek alalek mentioned this pull request Aug 21, 2022
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.

3 participants