Forums > Jitter

suckah or getcell?

March 4, 2011 | 2:37 pm

hi people,
i’m try to extract colors from an image in an automated way. I tried using suckah, but even in boundmode it gets the values of my screen and not of the image. Then i decided to try using a matrix and the getcell command, but somehow i don’t understand the manual and cannot get it: First of all get cell takes one dimension and not two (?). And then the output format is not what i see in my picture. Here’s my patch. Probably is a very stupid question but i’m used to msp and jitter is quite awkward sometimes for me. :)


  1. pinkgreenblue.jpg

March 4, 2011 | 5:35 pm

the number of arguments getcell messaged expects is equal to the number of dimensions of the matrix. if it’s 2D matrix, it expects two args, the x and y coords of the cell.

if you are having trouble with the suckah object, please post a patch and explain what’s not working. i do remember a former student having trouble with the suckah object, and required a restart of computer for some reason.

March 4, 2011 | 6:08 pm

Thanks robtherich, i got it now. It was conterintuitive for me that the three RGB values ouput of getcell were the last three of four. The first is the alpha, which i would expect at the last place. Kind of easy but took me a while.
For the sukah i can post the patch, but it’s basically the example in the help. In the documentation is written that sukah should get the value in the suckah area relative to the coordinates (not mouse clicking) when in boundmode 1. It doesn’t do that in my case, it takes the value of the computer screen.

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