convert image into binary

asked 2015-01-18 02:19:41 -0500

Deepak Kumar gravatar image

hi, i am trying to convert this image into binary. while converting i got this binary image . how can i make it pure white in hand part and else part in black. so that it should look exactly like this image.

thanks

edit retag flag offensive close merge delete

Comments

Are these images from the intel realsense? How did you create the first images? Which datatype do they have?

FooBar gravatar imageFooBar ( 2015-01-18 02:27:12 -0500 )edit

ok, nice. now please show your conversion code.

(looks like you convert from 16 to 8 bits too early)

berak gravatar imageberak ( 2015-01-18 02:27:37 -0500 )edit

i simply capture video frame from camera number 2 VideoCaptue cap(2); and it is giving me 1st image.

Deepak Kumar gravatar imageDeepak Kumar ( 2015-01-18 08:16:45 -0500 )edit