Forums > Jitter

crop black in matrix

June 7, 2011 | 5:51 pm

Hey there!

I’m trying to crop black borders automatically, any hints?

Thanks!
MH


June 7, 2011 | 9:26 pm

Where to begin? jit.rota might serve your purposes.


June 7, 2011 | 9:33 pm

I tried using jit.iter to slice the matrix X and Y in the center, then look at the lists with ZL objects. if I can get the position of the first and last non-zero in each list, I might be able to feed those numbers into an object that crops, or the dstdims of another matrix.

I trying that strategy next.

Thanks!
MH


Viewing 3 posts - 1 through 3 (of 3 total)