Hello, I am attempting to modify and distort a 12MP image obtained from the ColorCamera ISP output. My current pipeline consists of the following pipeline: ColorCamera.isp -> ImageManip -> H.264 encoder -> XlinkOut.
My objective is to resize the 12MP image to a resolution of 2016x1520 and then apply distortion correction using the setWarpMesh function. As per a Github issue I came across, the ImageManip component should perform the resizing operation before any other operations.
(the resize is done as part of of first step in current updated ImageManip impl)
In the code snippet from the Github gist, I've noticed that it crops the image instead of resizing it, resulting in a loss of image data. Specifically, the ImageManip node seems to take only a 2160x1520 portion of the 12MP image.
Interestingly, when I adjust the ispScale to (1,2), ensuring that the input and output resolutions of the ImageManip node match, the process works as intended.
Do you know where could be a problem? Thanks