Imread for .pbm file

246 Views Asked by At

I am trying to read an image, but it gives me errors as such. I have tried to read other formats, which work fine. I could not find much online, so I am posting the question here. Any ideas would be helpful!

>> A = imread('C:\Users\5460\Desktop\CV2\Apple\image001.pbm', 'pbm')
Error using impnminfo (line 72)
Invalid magic number. File is not a PPM, PGM, or PBM file.

Error in readpnm (line 25)
   info = impnminfo(filename);

Error in imread (line 434)
    [X, map] = feval(fmt_s.read, filename, extraArgs{:});

Thanks in advance!

0

There are 0 best solutions below