Imageplus alternative in ImageJ 2.0 version

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

Imageplus alternative in ImageJ 2.0 version

sharanbabuk
This post was updated on .
Hello,

I built a plugin in imagej 1.x version api and it uses imageplus to open the images through plugin. When I deploy same plugin(jar) in ImageJ 2.0 Alpha version, plugin works fine but images doesn't pop-up. I presume that problem is straight in Imageplus class when associated with ImageJ 2.0 version.
Below is the code that I'm using and need your help if it is not proper or need to be changed for imagej 2.0

/*Image processing*/
                        Opener opener = new Opener();
                        String imageFilePath = "path";
                        ImagePlus imp = opener.openImage(imageFilePath);
Reply | Threaded
Open this post in threaded view
|

Re: Imageplus alternative in ImageJ 2.0 version

ctrueden
Hi Sharanbabuk,

> Below is the code that im using and need your help if it proper or
> need to be changed for imagej 2.0
>
> /*Image processing*/
> Opener opener = new Opener();
> String imageFilePath = "path";
> ImagePlus imp = opener.openImage(imageFilePath);

The ImageJ2 API is completely different:

  final ImageJ ij = new ImageJ();
  String imageFilePath = "path";
  final Dataset dataset = ij.dataset().open(imageFilePath);
  ij.ui().show(dataset);

See this tutorial for further details:

https://github.com/imagej/imagej-tutorials/tree/master/load-and-display-dataset

Regards,
Curtis


On Fri, Jan 10, 2014 at 3:54 PM, sharanbabuk <[hidden email]> wrote:

> Hello,
>
> I build a plugin in imagej 1.x version api and it uses imageplus to open
> the
> images through plugin. When I deploy same plugin in ImageJ 2.0 Alpha
> version, plugin works fine but images doesn't pop-up. I presume that
> problem
> is straight in Imageplus class when associated with ImageJ 2.0 version.
> Below is the code that im using and need your help if it proper or need to
> be changed for imagej 2.0
>
> /*Image processing*/
>                         Opener opener = new Opener();
>                         String imageFilePath = "path";
>                         ImagePlus imp = opener.openImage(imageFilePath);
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Imageplus-alternative-in-ImageJ-2-0-version-tp5006088.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Imageplus alternative in ImageJ 2.0 version

sharanbabuk
@Curtis

Thanks for the reply.
I checked the git and it seems to be a complete different API. In my case, it looks like entire plugin has to be re-written for ImageJ 2.0 Alpha.

Let me just check the feasibility and revert back.


Regards
Sharan