bures Posted September 5, 2019 Share Posted September 5, 2019 I have image with two colors (black and white). I try to count quantity pixels of each color. But the numbers are weird, bigger than sum of image pixels (1446 + 864 vs. 770). See the picture. Could someone explain to me what the numbers means? flg_cz-2.bmp Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted September 5, 2019 Staff Share Posted September 5, 2019 This is a 1 bit image (which we don't support). Affinity is reading it as an RGB image which means the white/black is represented by three colours/channels (red, green and blue). If you divide the values you are getting by 3 (864:3 for white = 288 and 1446:3 for black = 482) and sum both results you get the 770 pixels the histogram is reporting as the total. Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
bures Posted September 5, 2019 Author Share Posted September 5, 2019 Thanks for explanation. It makes sense. Sadly the program behaviour is confusing because there are two "pixels" values under the histogram. Pixels at 4th row tells good value (770 image pixels) but second row not. When I create new Gray/8 (Greyscale D50) image with white background I do not see any white pixels in histogram. The same situation is with RGB/8 image. Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted September 5, 2019 Staff Share Posted September 5, 2019 Is the "white" coming from the canvas itself? if so there's no actual data there - it's just an empty canvas. Go to Document > Transparent Background to see what I mean. If you fill it with white using the Flood Fill Tool the histogram should reflect it. bures 1 Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
bures Posted September 5, 2019 Author Share Posted September 5, 2019 Thanks for reply to my second paragraph. Can you tell me your opinion about this: Quote Sadly the program behaviour is confusing because there are two "pixels" values under the histogram. Pixels at 4th row tells "good" value (770 image pixels) but second row not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.