universal window and level

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

universal window and level

Josh Star-Lack
Hello,

This is probably a simple thing but I can't seem to figure out how to get
around it.

Does anyone know if it is possible to get ImageJ to apply window/level
slider values universally to all open stacks. Right now, if I want to
compare two images in different stacks using the same brightness and
contrast settings, I have to adjust the slider values separately for each
stack.

Much thanks,
Josh
Reply | Threaded
Open this post in threaded view
|

Re: universal window and level

Wayne Rasband
> This is probably a simple thing but I can't seem to figure
> out how to get around it.
>
> Does anyone know if it is possible to get ImageJ to apply
> window/level slider values universally to all open stacks.
> Right now, if I want to compare two images in different
> stacks using the same brightness and contrast settings, I
> have to adjust the slider values separately for each stack.

This macro applies the window/level (brightness/contrast) of the
current image to all open images.

     getMinAndMax(min, max);
     for (i=1; i<=nImages; i++) {
          selectImage(i);
          setMinAndMax(min, max);
     }

And, in ImageJ 1.37b, there will be an "Apply to all Open Images"
checkbox the the "Set" dialog box.

-wayne