|
[Date Index]
[Thread Index]
[Author Index]
Re: Just trying to import an image
- To: mathgroup at smc.vnet.net
- Subject: [mg44467] Re: Just trying to import an image
- From: "Steven Shippee" <slshippee at comcast.net>
- Date: Mon, 10 Nov 2003 19:55:52 -0500 (EST)
- Organization: Comcast Online
- References: <bonnfg$h8i$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
To make it easy to debug, try putting the file (the "image") in a root
directory somewhere (of your "c" drive or your "d" drive), and also ensure
it has no spaces in the file name, for example, use something like
c:\practice.jpg or c:\practice.bmp.
Then you could run the command
myimage=Import["c:\practice.jpg"];
and manipulate myimage from there.
Steven
shippee at jcs.mil
"Bob Harris" <nitlion at mindspring.com> wrote in message
news:bonnfg$h8i$1 at smc.vnet.net...
> Howdy,
>
> Have an assignment in an computer vision class I'm taking. Thought I'd
try
> fiddling around with it in Mathematica. Have run into the second or third
> brick wall, just trying to bring an image into Mathematica. Am in need of
> help.
>
> For starters, I found Import[] in the big book and tried it:
> Import ["vl100.gif"]
> The file vl100.gif is in the same directory as the mathematica notebook
that
> I launched. But that seems not to be one of the places mathematica looks.
> So I just got a file not found error. So be it.
>
> I figured there must be a way to convince mathematica to look for the file
> where e file is. After stumbling around for a while in the book and in
the
> help browser, I finally found the SetDirectory command. So looking at the
> format of file paths in $Path, I did
> SetDirectory["Kablooie:ClassesS:VisionS:Project4S"]
> which is the path to the directory containing the file.
>
> So then I tried
> Import ["vl100.gif"]
> again, and I get
> Experimental`RegisterConverter::noexe: Could not find the
> executable GIF.exe in any of { <<65>>, <<74>>, <<83>>, GIF.exe}.
>
> Now, I'm running this using mathematica 4.0.1.0 for the Mac on a PowerMac
G3
> running OS 9.0.4. Yes, I know I haven't upgraded in a while, but it sure
> seems like what I'm trying to do is supposed to work on my configuration.
>
> The error message suggests that it doesn't have the executable code to
> handle gif images. I tried .pgm format and got the same result. Since
both
> are listed in the big book I figured it's pointless to try other formats.
> Those two should've worked.
>
> I did a search of my hard drive and I do find a gif.exe (and hdf.exe,
> jpeg.exe, pnm.exe, and tiff.exe) in the folder
> ... MathematicaS:SystemFiles:Converters:Binaries:PowerMac
> So it seems like it's got 'em, and it's just not looking for them.
>
> Can anyone point me toward a way to get this working?
>
> Thanks for any help,
> Bob H
>
Prev by Date:
Re: Fluid dynamics
Next by Date:
Re: Numerical Optimization of
Previous by thread:
Just trying to import an image
Next by thread:
Re: Just trying to import an image
|