Skip to content

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