Ask Your Question
0

Is white pixels value in binary image 255?

asked 2015-08-11 09:14:29 -0600

dpietrek gravatar image

Hi i wonder why white pixels value is 255? This is not intuitively.

edit retag flag offensive close merge delete

Comments

1

I understand binary image like an image with two values 0 and x . x can be 1 or offen 255 but you can use what you want for example for threshold it's maxval

LBerger gravatar imageLBerger ( 2015-08-11 09:46:16 -0600 )edit
3

~0 == 255 , ~255 == 0 (for 8bit)

berak gravatar imageberak ( 2015-08-11 23:44:52 -0600 )edit

~0 == 65535 ;)

FooBar gravatar imageFooBar ( 2015-08-12 03:50:29 -0600 )edit

But offen for binary image code looks like

if (pixel!=0)

So binary image is 0 and something not equal to zero

LBerger gravatar imageLBerger ( 2015-08-12 14:45:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-08-11 15:19:00 -0600

updated 2015-08-11 15:19:53 -0600

2^8 = 256 counting from 0 is 0-> 255 is in total 256, This is ==> a 8 bit memory need for each pixel, this is a commonly stored way of pixels. It could be more or less, but this depend what you want

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-11 09:14:29 -0600

Seen: 2,598 times

Last updated: Aug 11 '15