|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.MiToBo.core.operator.MTBOperator
de.unihalle.informatik.MiToBo.tools.image.ImageConverter
@ALDMetaInfo(export=ALLOWED) @ALDAOperator(genericExecutionMode=ALL) public class ImageConverter
Plugin to convert images that are represented by MTBImage. This plugin can be used as operator, because it provides more functionality than the MTBImage.convertType(..)-method, namely splitting of RGB color channels to true channels and merging of true channels to RGB color channels. See setChannelsAreRGBFlag(..)-method
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider |
Constructor Summary | |
---|---|
ImageConverter()
Constructor. |
|
ImageConverter(MTBImage _inputImg,
MTBImage.MTBImageType _outputType,
boolean _scaleValues,
Boolean _channelsAreRGB)
Constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator |
---|
readResolve |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator |
---|
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateGeneric, writeHistory, writeHistory, writeHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |