6 Replies Latest reply on Mar 6, 2011 10:57 AM by RedThruViolet

    Is the number of histogram pixels the same for each channel within each layer?

    RedThruViolet

      Dear Photoshop Scripting Forum:

       

      I have written a script to isolate the number histogram pixels for each channel within each layer of a file.

      However, I have found some unexpected results: That, the number of pixels is the same for each channel within each layer.

       

      For example,

       

        Layer 1 has 18,979 pixels by itself, and so does each channel within it (Red, Green, and Blue)

        Layer 1, Channel Red, has 18,979 pixels

        Layer 1, Channel Green, has 18,979 pixels

        Layer 1, Channel Blue, has 18,979 pixels.

       

      This does not seem right to me.

       

      Does someone else have the same experience, or knowledge of something else?

      I am wondering if there is a bug in my script.

       

      If need be, I will post the script, but it's kind of long for a forum.

       

      Thank you.