Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

to open file .tif 1bit with imread cause access violation

I try to read .tif file 1bit (black&white) with imread :

  1. FF = "D:\Scan\num-03-1.tif";
    image = imread(FF,0); // Read the file
    and got :
    Unhandled exception at 0x0f76ac87 in CV.exe: 0xC0000005: Access violation writing location 0x0042e428.
    tried all parameter possibilities.

  2. if I save the file as .png 1bit :
    FF = "D:\Scan\num-03-1.png";
    the imread , read ok !

  3. if I save the file as .tif 8bit (grayscale):
    FF = "D:\Scan\num-03-8.tif";
    the imread , read ok !

so the question is :
can imread open 1bit .tif files ?

C:\fakepath\num-03-1.tiff

to open file .tif 1bit with imread cause access violation

I try to read .tif file 1bit (black&white) with imread :

  1. FF = "D:\Scan\num-03-1.tif";
    image = imread(FF,0); // Read the file
    and got :
    Unhandled exception at 0x0f76ac87 in CV.exe: 0xC0000005: Access violation writing location 0x0042e428.
    tried all parameter possibilities.

  2. if I save the file as .png 1bit :
    FF = "D:\Scan\num-03-1.png";
    the imread , read ok !

  3. if I save the file as .tif 8bit (grayscale):
    FF = "D:\Scan\num-03-8.tif";
    the imread , read ok !

so the question is :
can imread open 1bit .tif files ?

C:\fakepath\num-03-1.tiff