Re: apply run command on IP

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

Re: apply run command on IP

Rasband, Wayne (NIH/NIMH) [E]
On Apr 25, 2012, at 5:20 AM, Mohammed Tlais wrote:

> Dear Members,
>
> I use the record Macro to see what code I can use In my Java application, and mostly they use the IJ.run command on the ImagePlus; So when I am writing my code, each time I need to process an ImageProcessor ,  i must create an ImagePlus and set that imageProcessor to it.
> My question is: isn't there a way to use the run command directly on the ImageProcessor? or maybe I should look for the command its corresponding class in the ij Library? Any tutorials available for developers?
> What do you do in your code?

You should be looking at the methods in the ImageProcessor class, such as add(), multiply(), crop(), drawLine(), duplicate(), fill(), findEdges(), getStatistics(), insert(), resize(), rotate(), scale(), sharpen(), smooth() and translate().

The ImageProcessor API is at

     http://imagej.nih.gov/ij/developer/api/ij/process/ImageProcessor.html

There is a tutorial at

     http://www.imagingbook.com/index.php?id=102

-wayne


-wayne