public class Downsampler extends Object
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.
| Constructor and Description |
|---|
Downsampler() |
| Modifier and Type | Method and Description |
|---|---|
void |
getInput(int imgWidth,
int imgHeight)
Displays a dialog to harvest user input, allowing scaling from a
specified image width and height.
|
boolean |
hasInput() |
void |
run(ImageCollectionElement element)
Scales the specified
ImageCollectionElement based on the previous
getInput(int, int) call. |
void |
run(ij.ImagePlus... imps)
Runs the "Image > Scale..." plugin on all provided ImagePlus objects,
based on the previous
getInput(int, int) call. |
void |
run(List<ImageCollectionElement> elements)
Scales all provided
ImageCollectionElements based on the previous
getInput(int, int) call. |
public void getInput(int imgWidth,
int imgHeight)
imgWidth - Base image widthimgHeight - Base image heightpublic boolean hasInput()
public void run(ij.ImagePlus... imps)
getInput(int, int) call.public void run(ImageCollectionElement element)
ImageCollectionElement based on the previous
getInput(int, int) call.public void run(List<ImageCollectionElement> elements)
ImageCollectionElements based on the previous
getInput(int, int) call.Copyright © 2015–2021 Fiji. All rights reserved.