suckah or getcell?

Mar 4, 2011 at 2:37pm

suckah or getcell?

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. :)
A

[attachment=155536,1883]

Attachments:
  1. pinkgreenblue.jpg
#55319
Mar 4, 2011 at 5:35pm

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.

#199115
Mar 4, 2011 at 6:08pm

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.
A
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.

#199116

You must be logged in to reply to this topic.