Can't we load an image in binary directly??
We can load an image in grayscale directly right. What about binary. Do we have to convert it into binary after grayscale only??
We can load an image in grayscale directly right. What about binary. Do we have to convert it into binary after grayscale only??
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.
Asked: 2016-11-20 00:20:26 -0600
Seen: 6,952 times
Last updated: Nov 20 '16
Area of a single pixel object in OpenCV
how to understand which functions available in python bindings?
Problems installing opencv on mac with python
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Weird result while finding angle
cv2.perspectiveTransform() with Python
Using OpenCV's stitching module, strange error when compositing images