[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IMREAD does not recognize image path
From: |
Ben Abbott |
Subject: |
Re: IMREAD does not recognize image path |
Date: |
Sun, 19 Jul 2015 20:45:33 -0400 |
I’ve made an effort to decipher this string of emails. You’ll notice that the
result may be read in chronological order from top to bottom. This is how the
thread would be read if everyone “bottom-posts”, which is the standard for this
mail list. When you respond, please do so at the bottom!
> On Jul 19, 2015, at 5:05 PM, Byron Harding <address@hidden> wrote:
>
>> On Sun, Jul 19, 2015 at 6:08 AM, Nicholas Jankowski <address@hidden> wrote:
>>
>> On Jul 19, 2015 1:41 AM, "Byron Harding" <address@hidden> wrote:>>
>> >
>> > On Thu, Jul 16, 2015 at 7:55 PM, Nicholas Jankowski <address@hidden>
>> > wrote:
>> >>
>> >> On Thu, Jul 16, 2015 at 6:29 PM, Rick T <address@hidden> wrote:
>> >>>
>> >>> 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
>> >>>>
>> >>>>
>> >>> 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');
>> >>>
>> >>>
>> >>
>> >> 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
>> >>
>> > 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.
>> >
>> > --
>> > 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 ?
>
> 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:”
First, please make sure the octave version you are running is compatible with
the image toolbox you are using. Your image toolbox is for version 3.8.2. From
the Octave command prompt what does the command “ver” return. I’m running
Octave on Mac OSX and see …
ver
----------------------------------------------------------------------
GNU Octave Version 3.8.2
GNU Octave License: GNU General Public License
Operating System: Darwin 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28
11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
Package Name | Version | Installation directory
---------------+---------+-----------------------
financial | 0.4.0 | /Users/bpabbott/octave/financial-0.4.0
general | 1.3.4 | /Users/bpabbott/octave/general-1.3.4
io | 2.2.2 | /Users/bpabbott/octave/io-2.2.2
miscellaneous | 1.2.1 | /Users/bpabbott/octave/miscellaneous-1.2.1
octsympy | 0.1.0 | /Users/bpabbott/octave/octsympy-0.1.0
optim | 1.3.1 | /Users/bpabbott/octave/optim-1.3.1
optiminterp | 0.3.4 | /Users/bpabbott/octave/optiminterp-0.3.4
poly2d | 1.0.0 | /Users/bpabbott/octave/poly2d-1.0.0
struct | 1.0.10 | /Users/bpabbott/octave/struct-1.0.10
I do not have the image toolbox installed, and have all the toolboxes installed
as an individual user.
Second, the commands below don’t look correct.
>> > I tried: I = imread('/home/OSUHat.jpg')
>> > I = imread('/home/exps5/Desktop/.OSUHat.jpg')
>> > I = imread('/home/exps5/Pictures/OSUHat.jpg’)
For standard *nix systems those paths do not exist. You mentioned placing the
file OSUHat.jpg on your Desktop. You can navigate there and confirm the file is
present by ...
cd ~/Desktop
pwd
ls *.jpg
What does “pwd” and “ls *.jpg” return?
Ben
- IMREAD does not recognize image path, Byron Harding, 2015/07/16
- Re: IMREAD does not recognize image path, Rick T, 2015/07/16
- Re: IMREAD does not recognize image path, Nicholas Jankowski, 2015/07/16
- Message not available
- Re: IMREAD does not recognize image path, Nicholas Jankowski, 2015/07/19
- Re: IMREAD does not recognize image path, Byron Harding, 2015/07/19
- Re: IMREAD does not recognize image path,
Ben Abbott <=
- Re: IMREAD does not recognize image path, Dmitri A. Sergatskov, 2015/07/19
- Re: IMREAD does not recognize image path, Byron Harding, 2015/07/19
- Re: IMREAD does not recognize image path, Mike Miller, 2015/07/20
- Message not available
- Re: IMREAD does not recognize image path, Mike Miller, 2015/07/20
- Re: IMREAD does not recognize image path, Byron Harding, 2015/07/20
- Re: IMREAD does not recognize image path, Mike Miller, 2015/07/20
- Re: IMREAD does not recognize image path, Byron Harding, 2015/07/20