public class CanvasImage<T extends Type<T>> extends Object implements OutputAlgorithm<T>, Benchmark
| Constructor and Description |
|---|
CanvasImage(Image<T> input,
int[] newSize)
This constructor can be called if the image is only cropped, then there is no
OutOfBoundsStrategyFactory necessary. |
CanvasImage(Image<T> input,
int[] newSize,
int[] offset,
OutOfBoundsStrategyFactory<T> outOfBoundsFactory)
Increase or decrease size of the image in all dimensions
|
CanvasImage(Image<T> input,
int[] newSize,
OutOfBoundsStrategyFactory<T> outOfBoundsFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
int[] |
getOffset() |
long |
getProcessingTime() |
Image<T> |
getResult() |
boolean |
process() |
public CanvasImage(Image<T> input, int[] newSize, int[] offset, OutOfBoundsStrategyFactory<T> outOfBoundsFactory)
input - - the input imagenewSize - - the size of the new imageoutOfBoundsFactory - - what to do when extending the imagepublic CanvasImage(Image<T> input, int[] newSize, OutOfBoundsStrategyFactory<T> outOfBoundsFactory)
public CanvasImage(Image<T> input, int[] newSize)
OutOfBoundsStrategyFactory necessary.
It will fail if the image size is increased.input - - the input imagenewSize - - the size of the new imagepublic int[] getOffset()
public long getProcessingTime()
getProcessingTime in interface Benchmarkpublic Image<T> getResult()
getResult in interface OutputAlgorithm<T extends Type<T>>public boolean checkInput()
checkInput in interface Algorithmpublic String getErrorMessage()
getErrorMessage in interface AlgorithmCopyright © 2015–2021 Fiji. All rights reserved.