简体   繁体   中英

Can't read tiff image using imread() in Octave 5.2.0 , getting this error : Magick++ exception

I downloaded Octave 5.2.0 for Image Processing, I tried to read the tiff image using imread() but I am getting this error

>>imread('cameraman.tif');

error: Magick++ exception: Magick: C:\Users\Admin\Desktop\cameraman.tif: Null count for "Tag 34022" (type 1, writecount -3, passcount 1). (_TIFFVSetField) r
eported by coders/tiff.c:911 (TIFFReadErrors)
error: called from
    __imread__ at line 80 column 10
    imageIO at line 118 column 28
    imread at line 106 column 33
>>

I tried reading a JPG file and it worked fine, but I am having this trouble with tiff images

That's because octave doesn't have these examples

try to download the image from the internet and put it in the same working directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM