|
||||||||||
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.enhance.GammaCorrection2D
@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) @ALDMetaInfo(export=MANDATORY) public class GammaCorrection2D
Gamma correction on a 8- oder 16-bit image for one- or multi-channel images. The gamma value can be set or automatically be computed.
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 | |
---|---|
GammaCorrection2D()
Standard constructor. |
|
GammaCorrection2D(MTBImage inimg,
double _gamma,
int _channel)
Constructor to create a new gamma correction 2D operator. |
|
GammaCorrection2D(MTBImage inimg,
int _channel)
No gamma value is set. |
Method Summary | |
---|---|
int |
getChannel()
Get the image channel. |
double |
getGamma()
Get the gamma value. |
boolean |
getGammaToAuto()
Get if gamma should be calculated automatically or not. |
MTBImage |
getInputImage()
Get the input image. |
MTBImage |
getResultImage()
Get the gamma corrected image. |
protected void |
operate()
This method does the actual work. |
void |
setChannel(int _channel)
Set the image channel. |
void |
setGamma(double _gamma)
Set the gamma value. |
void |
setGammaToAuto(boolean a)
Set if gamma should be calculated automatically or not. |
void |
setInputImage(MTBImage inImg)
Set the input image. |
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 GammaCorrection2D() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public GammaCorrection2D(MTBImage inimg, double _gamma, int _channel) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
inimg
- 2D input image for gamma correction_gamma
- gamma value to apply gamma correction_channel
- image channel to apply gamma correction
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public GammaCorrection2D(MTBImage inimg, int _channel) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
gamma = log(r/maxInt)/ log(mean/maxInt)
maxInt is the maximum pixel intensity for all pixels in the image, for example 65535 for a 16-Bit pixel image
mean is the mean value over all image pixels
r is the half value of the pixel intensity range (32768 for 16-bit image)
inimg
- 2D input image for gamma correction_channel
- image channel to apply gamma correction
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail |
---|
public MTBImage getInputImage()
public void setInputImage(MTBImage inImg)
public double getGamma()
public void setGamma(double _gamma)
public int getChannel()
public void setChannel(int _channel)
public MTBImage getResultImage()
public void setGammaToAuto(boolean a)
public boolean getGammaToAuto()
protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |