What I'm trying to do is very simple. It takes three lines in matlab. But I can't figure out how to do it in max.
I have a jit.matrix that holds a black and white picture. What I want to do is run over the rows of the matrix, from right to left, and when I hit a non-white cell, add the column coordinate of that cell to a list.
(The picture is a profile of a face, where the face is black and background white, and I'm trying to find the outline of the face).
How can I do this?