@ALDAOperator(genericExecutionMode=ALL) public class ImageConverter extends MTBOperator
Modifier and Type | Field and Description |
---|---|
private Boolean |
channelsAreRGB |
private MTBImage |
inputImg |
private MTBImage.MTBImageType |
outputType |
private MTBImage |
resultImg |
private boolean |
scaleValues |
Constructor and Description |
---|
ImageConverter()
Constructor.
|
ImageConverter(MTBImage _inputImg,
MTBImage.MTBImageType _outputType,
boolean _scaleValues,
Boolean _channelsAreRGB)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getChannelsAreRGBFlag()
Get flag if RGB color channels are interpreted as real image channels.
|
MTBImage |
getInputImg()
Get input image
|
MTBImage.MTBImageType |
getOutputType()
Get output image type
|
MTBImage |
getResultImg()
Get result image
|
boolean |
isScaleValues()
Get flag if values are scaled to match the range of output type values if necessary
|
protected void |
operate() |
void |
setChannelsAreRGBFlag(Boolean channelsAreRGB1)
Set flag if RGB color channels are interpreted as real image channels.
|
void |
setInputImg(MTBImage _inputImg1)
Set input image
|
void |
setOutputType(MTBImage.MTBImageType outputType1)
Set output image type
|
protected void |
setResultImg(MTBImage resultImg1)
Set result image
|
void |
setScaleValues(boolean scaleValues1)
Set flag if values are scaled to match the range of output type values if necessary
|
void |
validateCustom() |
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="InputImage", required=true, direction=IN, mode=STANDARD, dataIOOrder=1, description="Input image") private transient MTBImage inputImg
@Parameter(label="ResultingImage", required=true, direction=OUT, mode=STANDARD, dataIOOrder=1, description="Resulting image") private transient MTBImage resultImg
@Parameter(label="OutputType", required=true, direction=IN, mode=STANDARD, dataIOOrder=2, description="output image type") private MTBImage.MTBImageType outputType
@Parameter(label="ScaleValues", required=true, direction=IN, mode=STANDARD, dataIOOrder=3, description="Scale image values to the range of values of the output type if necessary") private boolean scaleValues
@Parameter(label="ChannelsAreRGB", required=false, direction=IN, mode=STANDARD, dataIOOrder=4, description="Flag for interpretation of channels as RGB color channels (and vice versa) if converting from or to RGB") private Boolean channelsAreRGB
public ImageConverter() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public ImageConverter(MTBImage _inputImg, MTBImage.MTBImageType _outputType, boolean _scaleValues, Boolean _channelsAreRGB) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_inputImg
- input image that has to be converted_outputType
- output image type_scaleValues
- set true to scale values to the range of output type values if necessary_channelsAreRGB
- if true, RGB color channels are separated to true channels when converting from RGB to gray and channels are merged into RGB color channels
when converting from gray to RGB. See setChannelsAreRGBFlag(..)-method. May be null for gray-to-gray conversion.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public void validateCustom() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
validateCustom
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
public MTBImage getInputImg()
public void setInputImg(MTBImage _inputImg1)
public MTBImage getResultImg()
protected void setResultImg(MTBImage resultImg1)
public MTBImage.MTBImageType getOutputType()
public void setOutputType(MTBImage.MTBImageType outputType1)
public boolean isScaleValues()
public void setScaleValues(boolean scaleValues1)
public Boolean getChannelsAreRGBFlag()
public void setChannelsAreRGBFlag(Boolean channelsAreRGB1)
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.