I was trying to make some simple "flipping" on images with jit.pix, when I found this little issue that goes beyond my ability to understand it.
Have a look at this patch:
There's a webcam input, I convert it to a single plane matrix with uyvy2luma and then a jit.pix object flips the x coords.
What happens is that, while the input is a single plane, the output of jit.pix is a 4-plane matrix.
I need a single plane matrix for further use with cv.jit objects and I thought that processing only one plane would be less CPU-expensive, hence the position of jit.pix. So, what am I doing wrong with the jit.pix object? Is there a way to output the correct plane number?
Second question: does this make sense? or elaborating the 4-plane matrix does not make difference in terms of CPU load?