Skip to content
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

Support RGB and autoresize function #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

guirodrigueslima
Copy link

@guirodrigueslima guirodrigueslima commented Jun 26, 2023

RGB support, set the PV (P):cam1:colorMode to any RGB mode (NDColorModeRGB1, RGB2 or RGB3), support has also been implemented for both interpolation modes (Nearest and Bilinear). It is important to point out that the colorMode affect the ArrayRate.

In the AutoResize function, just set the PV (P):warp1:AutoResize to true, in this way the plane trigonometry calculation is applied to resize the new image defined by input angle and the center of the image becomes the origin for the rotation matrix calculation. When AutoResize is true, the PV (P):warp1:CenterX and (P):warp1:CenterY do not work, I found it unnecessary for this option to work, since the complete image is being viewed by the user, but that is optional and can be easily changed in code. AutoResize works for monochrome and RGB mode.

If you have any suggestions for improvements and/or changes, I can implement them.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant