Ask Your Question
0

Can't we load an image in binary directly??

asked 2016-11-20 00:20:26 -0600

updated 2016-11-20 00:20:57 -0600

We can load an image in grayscale directly right. What about binary. Do we have to convert it into binary after grayscale only??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-11-20 01:26:00 -0600

berak gravatar image

if your image is binary already, you can simply load it with cv2.imread("my.png", cv2.IMREAD_GRAYSCALE)

if your question was "is there a flag to binarize it automatically on loading ?" then - NO.

edit flag offensive delete link more

Comments

1

yeah.. my image is already binary.. Thank you..it's working

Surya687 gravatar imageSurya687 ( 2016-11-20 02:30:01 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-11-20 00:20:26 -0600

Seen: 6,841 times

Last updated: Nov 20 '16