3 Replies Latest reply: Sep 28, 2012 9:36 AM by Tom Ruark RSS

    How to request for more than one plane data (RGB data)?

    dheeraj_c Community Member

      Hi All,

                I want to request for output/input image data for more than one plane. Currently I get R, G & B data separately in a for loop as in Dissolve example. Is there a way to get the data for all the planes at once? Can anyone please tell me how it can be done?

       

      Thanks & Regards,

      Dheeraj

        • 1. Re: How to request for more than one plane data (RGB data)?
          Chris Cox Adobe Employee

          Just set the highplane and lowplane values for the planes you need.

           

          Also, read the SDK - it explains how to do many of these things.

          • 2. Re: How to request for more than one plane data (RGB data)?
            Royi A Community Member

            Hi Chris,

            I'm having the same problem and I can't find a solution in the SDK.

             

            I look at the following code:

             

            for (int16 plane = 0; plane < gFilterRecord->planes; plane++)

                                          {

                                                    // we want one plane at a time, small memory foot print is good

                                                    gFilterRecord->outLoPlane = gFilterRecord->inLoPlane = plane;

                                                    gFilterRecord->outHiPlane = gFilterRecord->inHiPlane = plane;

             

            As I understand if I change it into:

             

            gFilterRecord->outLoPlane = gFilterRecord->inLoPlane = 0;

            gFilterRecord->outHiPlane = gFilterRecord->inHiPlane = 2;

             

            I should have all 3 channels at once.

             

            Yet when I go to the pointer 'gFilterRecord->inData' / 'gFilterRecord->outData'

             

            I see a NULL pointer.

             

            I'd be happy for a clarification.

             

            Thank You.

            • 3. Re: How to request for more than one plane data (RGB data)?
              Tom Ruark Adobe Employee

              I did the same experiment and it worked for me. I got interleaved RGB values as expected. What did advanceState return as an error code? Are you sure something else was not modified from the original example code? Is your image very large? Give me the info on the rest of the FilterRecord (width, height, mode ).