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: Nicholas Jankowski
Subject: Re: IMREAD does not recognize image path
Date: Sun, 19 Jul 2015 06:37:44 -0400

---------- Forwarded message ----------
From: "Byron Harding" <address@hidden>
Date: Jul 19, 2015 1:41 AM
Subject: Re: IMREAD does not recognize image path
To: "Nicholas Jankowski" <address@hidden>
Cc:

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 <address@hidden> 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 <address@hidden> 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 <address@hidden> 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
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave





--
Byron Harding


reply via email to

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