-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Python wrapping and documentation for alphamat module #2729
Conversation
Please rebase patch. Use something like:
|
Do not use PRs for updating forks. This way can't remove trash from patches:
Use |
Rebased my local branch to upstream/master and then force pushed to origin master. |
Input Trimap: ![](samples/trimaps/plant.png) | ||
Output alpha Matte: ![](samples/output_mattes/plant_result.jpg) | ||
Input Image: ![](../samples/input_images/plant.jpg) | ||
Input image should be preferably a RGB image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the image links. The local files image in the same directory as the markdown file are showing fine in GitHub, while the first three ones with path starting from alphamat folder are not. How to check if all image references are working in the final OpenCV doc page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just refreshed in the test url you gave. All images look good now. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is OK to keep images in samples
, which can be used as sample's input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you 👍
Possible next steps are:
- adding Python sample
- adding test for Python (as
misc/python/test/test_alphamat.py
) - also there is a way to improve tutorial by adding multiple languages support (example)
Input Trimap: ![](samples/trimaps/plant.png) | ||
Output alpha Matte: ![](samples/output_mattes/plant_result.jpg) | ||
Input Image: ![](../samples/input_images/plant.jpg) | ||
Input image should be preferably a RGB image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is OK to keep images in samples
, which can be used as sample's input.
@alalek I can do the Python example and test file changes you suggested above in this PR, if you leave it open. Or I can create a new one, if you need to close this one. |
This PR is merged. |
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.