mingw - opencv 2.4.5 unable to load tif image file properly in windows -


i have few tif images open on imread or cvloadimage gives null data in windows whereas same file processed conveniently on ubuntu installation.

running imagemagik identify returns

$identify 60018969.tif  60018969.tif[0] tiff 1696x2192 1696x2192+0+0 8-bit grayscale directclass 516kb 0.000u 0:00.040 60018969.tif[1] tiff 1696x2192 1696x2192+0+0 8-bit grayscale directclass 516kb 0.000u 0:00.030 60018969.tif[2] tiff 1696x2376 1696x2376+0+0 8-bit grayscale directclass 516kb 0.000u 0:00.019 60018969.tif[3] tiff 1696x2376 1696x2376+0+0 8-bit grayscale directclass 516kb 0.000u 0:00.019 identify: 60018969.tif: wrong data type 4 "jpegproc"; tag ignored. `tiffreaddirectory' @ warning/tiff.c/tiffwarnings/706. 

after lot of google search ,opencv can read uncompressed tiff images, compressed types tiff libtiff needed. tried re-intalling/re-configuring opencv many times not find way load compressed tiff images.

the same image processed in ubuntu installation of opencv 2.4.9. codec need build in windows opencv libtiff , how?

please help.

edit: during course of time. tried reading file using libtiff library , failed read file giving error "deprecated , troublesome old-style jpeg compression mode please convert new-style jpeg compression". made sure libtiff had following codecs installed

support external codecs: zlib support:                       yes pixar log-format algorithm:         yes jpeg support:                       yes old jpeg support:                   yes jpeg 8/12 bit dual mode:            no iso jbig support:                   yes lzma2 support:                      no c++ support:                        yes opengl support:                     no 

the example file askedexample tiff file

you should aware "old style jpeg" tiffs extension glommed on tiff microsoft (iirc) without consulting , did rather poorly. within tiff compression schemes there "interesting" cases non-spec compliant , more or less hacked various codecs compatibility, old-style jpeg king of kings in regard , crap i've seen (i work company makes tiff codec) turn hair white. know fact have @ least half-dozen classes of old-style jpeg tiffs can read libtiff cannot.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -