Posted by
Ziqiang Huang-2 on
May 10, 2019; 3:22pm
URL: http://imagej.273.s1.nabble.com/Java-code-for-redirecting-to-original-image-under-set-measurements-tp5022167p5022170.html
I am not sure what you mean by “better”, but another way to check this is
through images api:
https://imagej.nih.gov/ij/developer/api/ij/plugin/filter/Analyzer.html#setRedirectImage-ij.ImagePlus- - setRedirectImage
public static void setRedirectImage(ImagePlus
<
https://imagej.nih.gov/ij/developer/api/ij/ImagePlus.html> imp)
Set the "Redirect To" image. Pass 'null' as the argument to disable
redirected sampling.
It’s quite clear and simple to use this function. Just assign the ImagePlus
instance of your original image as the input. Give it a try.
On a side note:
You didn’t share your code, and at least to me your description of the
problem was not clear. Therefore, help or suggestion can be limited. It’s
also not clear to me whether you want to create a plugin, a script, or a
macro. On one part you said you trying to make a plugin, and on another
part it seems like a macro. You didn’t mention which language you set the
macro recorder to, plus what code generated either. Purely guessing from
the context, a macro (in imagej macro language) should be sufficient to
fulfill what you want to achieve. Then you don’t even need to worry about
the java code .
Good luck.
On Fri, 10 May 2019 at 15:35, Rohitesh Gupta <
[hidden email]>
wrote:
> Thanks for your email. But, is there a better way to do this ? Any more
> suggestions.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
Ziqiang Huang
Bioimage Analyst of Light Microscopy Facility
CRUK Cambridge Institute
Li Ka Shing Centre
Robinson Way
Cambridge, UK
CB2 0RE
01223-769538
email:
[hidden email] <
[hidden email]>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html