Macro: Open Image with path , file is not supported

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Macro: Open Image with path , file is not supported

Laurie
Hello ,
Can somebody help me with opening an image from my computer?
I've saved the picture of my cell culturein .jpeg-Format, which ImageJ is supporting (right?!).Creating a new Macro I now did the following:

// Writing the path of my image into the variable "path"
path="C:\Benutzer\L.Bahr\Desktop\TestbildImageJ.jpg";  

//Opening the image
open(path);


As as result I get this error-message :
File is a not supported format (it's jpeg !!!!), a reader plugin is not available or was not found.
Underneath that message there is the path, that basiclly describes the path to my image just without the "\".

Furthermore I've downloaded the plugin Loci-tools from Bioformat. Am I supposed to refer to the plugin in my code? I kinda don't get the thing with loci-tools, since ImageJ is supposed to be working with jpeg.
It needs to be done via code as I'm working on a programm.
Thank you so much for help
Reply | Threaded
Open this post in threaded view
|

Re: Macro: Open Image with path , file is not supported

Laurie
Can someone help?