-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error while trying to read a grayscale image using load #475
Comments
That warning is telling you that your image is actually an indexed image, not a typical grayscale image. Or at least the Julia On Apr 20, 2016, at 9:25 PM, josnar33 <[email protected]mailto:[email protected]> wrote: I am new to Julia and trying to read few images using load. The function works fine for RBG4 images, however, fails with the following error for grayscale images - WARNING: OSX reader: indexed color images not implemented I would like to know if there is a way to read grayscale images in Julia. If not, is there some way to check for it using some other function. My ultimate goal is to have vectors created out of a collection of images, and some of them happen to be grayscale. Hence, I'm looking for a clean way to handle them (code below) - img = imread(nameFile) — Ronald S. Rock, Jr., Associate Professor |
Thanks @rsrock Before ImageMagick, I was getting the following -
I tried adding ImageMagick and loading the file once again. However, even now, it shows 'nothing' -
|
Does |
Hi Tim,
|
What does |
|
Hmm, seems OK but you're obviously still having trouble. See https:/JuliaIO/ImageMagick.jl#osx |
Thanks @timholy |
Getting the same issue, it seems like load is not falling back to ImageMagick for grayscale images. Using ImageMagick.load for the speciic grayscale images works for me, but as I understand it, I shouldn't have to do this explicitly. |
Any update on this @timholy ? I am getting an error when loading a greyscale image that says the following: |
doing ImageMagick.load worked! |
Just housekeeping here. This seems to be an upstream QuartzImageIO issue to me, so if you still have this issue, open a new issue on https:/JuliaIO/QuartzImageIO.jl |
I am new to Julia and trying to read few images using load. The function works fine for RBG4 images, however, fails with the following error for grayscale images -
WARNING: OSX reader: indexed color images not implemented
I would like to know if there is a way to read grayscale images in Julia. If not, is there some way to check for it using some other function. My ultimate goal is to have vectors created out of a collection of images, and some of them happen to be grayscale. Hence, I'm looking for a clean way to handle them (code below) -
The text was updated successfully, but these errors were encountered: