Package mpicbg.stitching
Class Downsampler
java.lang.Object
mpicbg.stitching.Downsampler
Helper class for running the "Image > Scale..." plugin on a collection of
ImagePlus objects. Displays one dialog to collect scale values, which
are applied to all provided images.
NB: scaling different images in a stack to different proportions is not currently supported.
- Author:
- Mark Hiner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetInput(int imgWidth, int imgHeight) Displays a dialog to harvest user input, allowing scaling from a specified image width and height.booleanhasInput()voidrun(ij.ImagePlus... imps) Runs the "Image > Scale..." plugin on all provided ImagePlus objects, based on the previousgetInput(int, int)call.voidrun(List<ImageCollectionElement> elements) Scales all providedImageCollectionElements based on the previousgetInput(int, int)call.voidrun(ImageCollectionElement element) Scales the specifiedImageCollectionElementbased on the previousgetInput(int, int)call.
-
Constructor Details
-
Downsampler
public Downsampler()
-
-
Method Details
-
getInput
public void getInput(int imgWidth, int imgHeight) Displays a dialog to harvest user input, allowing scaling from a specified image width and height.- Parameters:
imgWidth- Base image widthimgHeight- Base image height
-
hasInput
public boolean hasInput()- Returns:
- true iff getInput has been called.
-
run
Runs the "Image > Scale..." plugin on all provided ImagePlus objects, based on the previousgetInput(int, int)call. -
run
Scales the specifiedImageCollectionElementbased on the previousgetInput(int, int)call. -
run
Scales all providedImageCollectionElements based on the previousgetInput(int, int)call.
-