We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › reading intensity values from an image in 3D
Page Index Toggle Pages: 1
reading intensity values from an image in 3D (Read 601 times)
reading intensity values from an image in 3D
Feb 27th, 2007, 12:11pm
 
I am having troubles reading intensity values from an image in 3D. I did this in 2D like this:

x = random (width);
y = random (height);

intensityVal = brightness(get((int)x,(int)y))/255;

Now what happens, when I move the image around in 3d, i dont get readings just from the image, but from the whole frame. How can I fix that?
Re: reading intensity values from an image in 3D
Reply #1 - Feb 27th, 2007, 1:37pm
 
use theImage.get() instead of get(), so that you can get values from the original image. check out the image examples included with the software for a demo.
Re: reading intensity values from an image in 3D
Reply #2 - Feb 28th, 2007, 12:52am
 
ohh, thanks Fry , it works now
Page Index Toggle Pages: 1