Change dimensions once a jit.matrix is cropped?
Hi~
I'm jit.qt.grab-ing a 320x240 webcam feed, but need to resize & crop it into a 256x256 matrix. I've used this to do the rescale & crop...
jit.matrix @usesrcdim 1 @usedstdim 1 @srcdimstart 40 0 @srcdimend 279 239 @dstdimstart 0 0 @dstdimend 255 255
...but, even though I get the 256x256 live feed I'm after, the jit.matrix itself seems to still be dimensioned at 320x240! Is there anything I can do to force it to redimension to the required 256x256 (for jit.fft processing)? Thanks in advance for any suggestions...
~Randy! :~)
jit.submatrix should do the trick...
add @dim 256 256 ?
Worked a treat - thanks! :~)