Login  Register

Re: How to avoid updating the image

Posted by Avital Steinberg on Oct 15, 2014; 2:25pm
URL: http://imagej.273.s1.nabble.com/How-to-avoid-updating-the-image-tp5010025p5010059.html

Thank you for your answer - it worked well.

On Tue, Oct 14, 2014 at 5:07 PM, Pariksheet Nanda <
[hidden email]> wrote:

> On Tue, Oct 14, 2014 at 8:30 AM, Avital Steinberg
> <[hidden email]> wrote:
> > How can I cancel the display of the moving ROI? (needless to
> > say, it's slow)
>
> Try using setBatchMode(true) so, for example, adding that makes a
> script like this this execute much faster.
>
> setBatchMode(true);
> run("Blobs (25K)");
> imWidth = getWidth();
> imHeight = getWidth();
> roiWidth = roiHeight = 25;
> for (x = 0; x < imWidth - roiWidth; x++)
> {
>     for (y = 0; y < imHeight - roiHeight; y++)
>     {
>         makeOval(x, y, roiWidth, roiHeight);
>         run("Measure");
>     }
> }
>
>
> > Avital
>
> Pariksheet
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html