public class ImageCalculator<U extends RealType<U>,V extends RealType<V>> extends ContextCommand
Constructor and Description |
---|
ImageCalculator() |
Modifier and Type | Method and Description |
---|---|
Dataset |
getInput1()
Returns the
Dataset that is input 1 for this image calculation. |
Dataset |
getInput2()
Returns the
Dataset that is input 2 for this image calculation. |
net.imagej.operator.CalculatorOp<U,V> |
getOperation()
Returns the
CalculatorOp that was used in the image calculation. |
Dataset |
getOutput()
Returns the output
Dataset of the image calculation. |
boolean |
isDoubleOutput()
Returns true if image calculation will return a double backed Img as
output.
|
boolean |
isNewWindow()
Returns true if image calculation with create a new image window.
|
void |
run()
Runs the plugin filling the output image with the user specified binary
combination of the two input images.
|
void |
setDoubleOutput(boolean wantDoubles)
Sets whether image calculation will create double backed output.
|
void |
setInput1(Dataset input1)
Sets the
Dataset that will be input 1 for this image calculation. |
void |
setInput2(Dataset input2)
Sets the
Dataset that will be input 2 for this image calculation. |
void |
setNewWindow(boolean newWindow)
Sets whether image calculation will create a new image window.
|
void |
setOperation(net.imagej.operator.CalculatorOp<U,V> operation)
Sets the
CalculatorOp to be used in the image calculation. |
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public void run()
public Dataset getInput1()
Dataset
that is input 1 for this image calculation.public void setInput1(Dataset input1)
Dataset
that will be input 1 for this image calculation.public Dataset getInput2()
Dataset
that is input 2 for this image calculation.public void setInput2(Dataset input2)
Dataset
that will be input 2 for this image calculation.public net.imagej.operator.CalculatorOp<U,V> getOperation()
CalculatorOp
that was used in the image calculation.public void setOperation(net.imagej.operator.CalculatorOp<U,V> operation)
CalculatorOp
to be used in the image calculation.public boolean isNewWindow()
public void setNewWindow(boolean newWindow)
public boolean isDoubleOutput()
public void setDoubleOutput(boolean wantDoubles)
Copyright © 2014–2022 ImageJ. All rights reserved.