This post explains how we can add support for panning and zoom functionality in the display node in OpenVX.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Many application requires support for features like panning and zoom in/out. This features can be implemented in the last component of the entire usecase chain, so that rest of the chains does not require to be adjusted due to change in the frame position/size.
Please find attached patch, which adds control command interface for setting up crop parameters. Please apply this patch on ti-processor-sdk-rtos-j721e-evm-07_01_00_11\tiovx folder in PSDKRA7.1 release.
In this patch, we can enable cropping at the create time by setting "enableCropping" flag to true and then setting 4 crop parameters, ie startX, startY, width and height. Scaling will be enabled if the cropped size is different from the output frame size, ie outWidth and outHeight.
Later on, the crop parameters could be changed the TIVX_DISPLAY_SET_CROP_PARAMS control command.
I have tested this feature by updating Single camera example. Pease find attached patch which adds support for testing this feature on single camera example. Please apply this on ti-processor-sdk-rtos-j721e-evm-07_01_00_11\vision_apps folder. I have added few run time options to move crop window around the image.