Re: How to use ij in my Application

Posted by mobitel on
URL: http://imagej.273.s1.nabble.com/How-to-use-ij-in-my-Application-tp3696841p3696843.html

How I do the same if I want to use a function from the ij.plugin - or else how to use any plugin of imageJ in my application.

Thanks,



Volker Bäcker wrote
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
to despeckle you can use:
               
RankFilters filter = new RankFilters();
filter.rank(image.getProcessor(), 1, RankFilters.MEDIAN);
image.updateAndDraw();

Don't use RankFilters.DESPECKLE if you call the method rank. In imagej
the command despeckle is a median filter of radius 1.

The other possibility is to use IJ.run() to run imagej commands. For example
IJ.run("Despeckle");
You can use the macro recorder to see how parameters are set for a command.

Volker

Amol Patil a écrit :
> Hi,
>
> I want to use ImageJ Function in my own application. I am building web base
> image Viewer.For this purpose i want to implement function for despeckle and
> many more.I know for despeckle RankFilter class is called but what input i
> have to provide how to provide is not gettting.Please If anybody have done
> or know how to do send there reply as soon as possible.If any one have
> sample code for this please send it.
>
> Thanks in advance. Application
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUYR8xZKX7A/4oMERAiBCAKCMrDMHsER+SR55RJl8CmfKuyi5kwCfSL0i
30tJFlZIW1G/CX5UWwz6Z8E=
=znkQ
-----END PGP SIGNATURE-----

--
passerelle antivirus du campus CNRS de Montpellier
--