public class HSVToRGBPixelConverter extends MTBOperator
Class to convert values from HSV color space into other color spaces like RGB or so. H: color value. S: saturation of color. V: brightness value of color. Ranges of HSI: H in [0,360) (representing degrees), S and V in [0, 1] (representing [0, 100 %]).
This implementation is taken from
W. Burger/M. Burge, "Digitale Bildverarbeitung", pp.256, Springer,
2nd edition, 2006.
| Modifier and Type | Field and Description |
|---|---|
private double |
h
Hue of HSV space.
|
private int[] |
rgbColor
Resulting RGB values.
|
private double |
s
Saturation of HSV space.
|
private double |
v
Intensity of HSV space.
|
| Constructor and Description |
|---|
HSVToRGBPixelConverter()
Standard constructor.
|
HSVToRGBPixelConverter(double _h,
double _s,
double _v)
Constructor to create a HSVconverter object
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getRGBResult()
Get RGB values.
|
protected void |
operate() |
protected static int[] |
toRGB(double _h,
double _s,
double _v)
Method to convert a single color from HSV color space into RGB color space.
|
readResolveaddOperatorExecutionProgressEventListener, 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, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="Hue",
required=true,
dataIOOrder=1,
direction=IN,
description="Hue input value.")
private double h
@Parameter(label="Saturation",
required=true,
dataIOOrder=2,
direction=IN,
description="Saturation input value.")
private double s
@Parameter(label="Brightness Value",
required=true,
dataIOOrder=3,
direction=IN,
description="Brightness input value.")
private double v
@Parameter(label="RGB values",
required=true,
dataIOOrder=1,
direction=OUT,
description="Result.")
private int[] rgbColor
public HSVToRGBPixelConverter()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic HSVToRGBPixelConverter(double _h,
double _s,
double _v)
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_h - hue of HSV space_s - saturation of HSV space_v - brightness value of HSV spacede.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic int[] getRGBResult()
protected void operate()
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorprotected static int[] toRGB(double _h,
double _s,
double _v)
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.