Hi Steven, This is what I do:
//set the pointers for each channel const float* R = in[Chan_Red]; const float* G = in[Chan_Green]; const float* B = in[Chan_Blue]; And then get the actual values once you're inside the row loop float red_value = R[x_offset]; etc... Cheers, Ivan On Thu, Aug 4, 2011 at 10:18 AM, Stephen Newbold <[email protected]> wrote: > I have a PixelIop and I want to access the RGB channels of my first input, > storing each as a value within my pixel engine. The docs say it is > recommended that you use the foreach (z, channels)... way of doing things > but once I've done this what is the best way of knowing that 'z' is the red > channel, or the green channel etc. in order to store the current values? Is > there a quicker way of directly accessing the RGB channels with a PixelIop? > I'm not interested in any other channel. > > Cheers, > Steve > > -- > Stephen Newbold > Compositing Lead - Film > MPC > 127 Wardour Street > Soho, London, W1F 0NL > Main - + 44 (0) 20 7434 3100 > www.moving-picture.com > > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > _______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
