help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IMREAD does not recognize image path


From: Byron Harding
Subject: Re: IMREAD does not recognize image path
Date: Sun, 19 Jul 2015 14:05:31 -0700

Hello,

I tried another image in the past, a jpeg, and had the same problem. I just tried a png and tiff with no luck and same error messages that included "invalid image files:"





On Sun, Jul 19, 2015 at 6:08 AM, Nicholas Jankowski <address@hidden> wrote:

On Jul 19, 2015 1:41 AM, "Byron Harding" <littleejido@gmail.com> wrote:
>
> Hello,
>
>
> I am using Linux, I have tried exactly what you suggested, and I still cannot use "imread" or any function to load an image.
>
> For example, my "path" above was:
>
> "/usr/home/exps5/Pictures/OSUHat.jpg", but I also moved the photo to Desktop and home so I tried:
>
> "/usr/home/exps5/Desktop/OSUHat.jpg" and "/usr/home/exps5/OSUHat.jpg"
>
> I also noted the "pwd" and that is why I created a jpg in the home directory, which is where my Octave-workspace resides.
>
> I tried: I = imread('/home/OSUHat.jpg')
> I = imread('/home/exps5/Desktop/.OSUHat.jpg')
> I = imread('/home/exps5/Pictures/OSUHat.jpg')
>
> and others.
>
> I still get the same error as mentioned originally.
>
> The only time I get a different error is when I try: I = imread("OSUHat.jpg") when the director is /home/exps5. In that case, I get:
>
> error: imread: invalid image file: /usr/lib/x84-64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
> error: /usr/share/ocatve/3.8.2/m/image/private/__imread__.m at line 181, column 7
> error: /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
>
> I am a bit frustrated and confused since I am a newbie, but I seem to be doing the same as you.
>
>
>
> On Thu, Jul 16, 2015 at 7:55 PM, Nicholas Jankowski <jankowskin@asme.org> wrote:
>>
>> or Octave 4.0.0 on Windows, the following works for me:
>>
>> (check where you are)
>> >> pwd
>> ans = c:\temp
>>
>> if i'm in the same directory as the file
>> >>imread('test.bmp');
>>
>> if I'm not in the same directorry as the file:
>> imread('c:\temp\test.bmp');
>>
>> if I'm in the directory 'under the file'
>> >> pwd
>> ans = c:\
>>
>> imread('.\temp\test.bmp');
>>
>>
>> and you can change directory with the cd command.
>>
>> Or, assuming you're using a version of Octave with the GUI, you can navigate with the file/folder tree in the upper left pane.
>>
>> if you're still having a problem, you'll have to show us exactly what you're entering so we can see where the error might be.
>>
>> nickj
>>
>> On Thu, Jul 16, 2015 at 6:29 PM, Rick T <ratulloch1@gmail.com> wrote:
>>>
>>> This works for me, I'm using 3.8.1 on ubuntu 14.04 64bit
>>>
>>> Try to test with no spaces in the path or filename
>>>
>>>
>>> f=imread('/tmp/palm.jpg');
>>>
>>>
>>> On Thu, Jul 16, 2015 at 1:36 AM, Byron Harding <littleejido@gmail.com> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I have tried to load an image into Octave using:
>>>>
>>>> I = imread ("path of image");
>>>>
>>>> I get the following error messages:
>>>>
>>>> error: imread: cannot find "path of image"
>>>> error: called from:
>>>> error: /usr/share/octave/3.8.1/m/image/private/__.m at line 56, column 5
>>>> error: /usr/share/octave/3.8.1/m/image/private/imageIO.m at line 66, column 26
>>>> error: /usr/share/octave/3.8.1/m/image/imread.m at line 107, column 30
>>>> octave:6>
>>>>
>>>> I have also tried:
>>>>
>>>> IMAGE_PATH("path") with no success.
>>>>
>>>> Help would be greatly appreciated! I am completely new to Octave.
>>>>
>>>> Byron Harding
>>>>
>>>>
>>>> _______________________________________________
>>>> Help-octave mailing list
>>>> Help-octave@gnu.org
>>>> https://lists.gnu.org/mailman/listinfo/help-octave
>>>>
>>>
>>>
>>> _______________________________________________
>>> Help-octave mailing list
>>> Help-octave@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/help-octave
>>>
>>
>
>
>
> --
> Byron Harding
>

Sorry, forgot to copy the whole group.

Not a linux user, but it seems only your last command was actually pointing octave to the .jpg file. Can you try a different jpg file to see if the problem is with your copy of octave or just that image file ?




--
Byron Harding


reply via email to

[Prev in Thread] Current Thread [Next in Thread]