Skip to content

CV_MAKETYPE Python binding#23674

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
dkurt:py_cv_maketype
May 25, 2023
Merged

CV_MAKETYPE Python binding#23674
asmorkalov merged 2 commits intoopencv:4.xfrom
dkurt:py_cv_maketype

Conversation

@dkurt
Copy link
Copy Markdown
Member

@dkurt dkurt commented May 24, 2023

Pull Request Readiness Checklist

resolves #23628

import cv2 as cv

t = cv.CV_MAKETYPE(cv.CV_32F, 4)

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

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov asmorkalov added this to the 4.8.0 milestone May 25, 2023
@asmorkalov asmorkalov self-assigned this May 25, 2023
@asmorkalov asmorkalov merged commit 29b2f77 into opencv:4.x May 25, 2023
@dkurt dkurt deleted the py_cv_maketype branch May 25, 2023 12:55
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
CV_MAKETYPE Python binding opencv#23674 

### Pull Request Readiness Checklist

resolves opencv#23628

```python
import cv2 as cv

t = cv.CV_MAKETYPE(cv.CV_32F, 4)
```

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
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
CV_MAKETYPE Python binding opencv#23674 

### Pull Request Readiness Checklist

resolves opencv#23628

```python
import cv2 as cv

t = cv.CV_MAKETYPE(cv.CV_32F, 4)
```

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.

Exposing CV_MAKETYPE(depth, cn) and CV_8UC(n), CV_8SC(n) etc., macros to the Python binding for arbitrary channel number handling in cv2.cuda.GpuMat

2 participants