Home > Software engineering >  Opencv read tif image
Opencv read tif image

Time:09-20

I know opencv can read the tif image, but it only supports using LZW compression tif image, inquire can read CCITT t. 6 tif image compression?
Read the image using imread function words can only read image data section? If not how to acquire the image file header information?
Imread reads the image if you don't know in advance when the image is monochrome or true color, can be read automatically into the corresponding single color or true color, or the said there must be the input parameters to control?
I opencv small white, each great god solve genuflect is begged!

CodePudding user response:

Call Image MagicK in bringing the convert. Exe command-line tools will stay read tif files into opencv can read format,

CodePudding user response:

Opencv to CCITT this support is not very positive, but if it is to belong to the ITU - T related standards, opencv generally there is no problem, if you can't read, can be used alone CCITT decoding library decoding with opencv loading

CodePudding user response:

Using imread, absolute path of the input image can be read directly, single channel or multiple channels, if it is a three-channel images, want to read a single channel, the second parameter is can be set to 1

CodePudding user response:

What you ask directly a debug problems are solved, each version has different content of upgrades, want to know the accurate results, only their debugging, success is that can be read, not success is not support

CodePudding user response:

refer to Sue, reply: 3/f
using imread, absolute path of the input image can be read directly, single channel or multiple channels, if is the three-channel images, want to read a single channel, the second parameter is set to 1 can.
Du Wei single channel when the second parameter is 0

CodePudding user response:

Yes, write wrong, indeed, it should be 0
  • Related