Count pixels and calculating overlap between two layers
I have two images in their own layers. Both images are line drawings (one is in red and other is in blue), and the background is transparent. First I need to know how many pixels (only color pixels) are in each line drawing. Then I need to control for how much the images overlap so I need a way to calculate the overlap between the two layers. Again I only want color pixels. I've tried to use the histogram settings and I'm a little confused about how photoshop counts pixels -- I get a much lower number if I select the entire canvas (which includes the image on that canvas) as opposed to selecting only a smaller part of the canvas (such as selecting a segment of the image on that canvas). Any help would be appreciated!
