简体   繁体   English

无法在 Octave 5.2.0 中使用 imread() 读取 tiff 图像,出现此错误:Magick++ 异常

[英]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我下载了用于图像处理的 Octave 5.2.0,我尝试使用 imread() 读取 tiff 图像,但出现此错误

>>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我尝试读取 JPG 文件,它工作正常,但我在使用 tiff 图像时遇到了这个问题

That's because octave doesn't have these examples那是因为octave没有这些例子

try to download the image from the internet and put it in the same working directory.尝试从 Internet 下载图像并将其放在同一工作目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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