public class HSVToRGBArrayConverter extends MTBOperator
Class to convert a whole array of values from HSV color space to RGB.
| Modifier and Type | Field and Description |
|---|---|
private double[] |
h
Array of hue values.
|
private LinkedList<int[]> |
rgbColor
Resulting RGB values.
|
private double[] |
s
Array of saturation values.
|
private double[] |
v
Array of intensity values.
|
| Constructor and Description |
|---|
HSVToRGBArrayConverter()
Standard constructor.
|
HSVToRGBArrayConverter(double[] _h,
double[] _s,
double[] _v)
Constructor to create a HSVconverter object
|
| Modifier and Type | Method and Description |
|---|---|
LinkedList<int[]> |
getRGBResult()
Get RGB values.
|
protected void |
operate() |
private void |
toRGB()
Method to convert colors from HSV color space to 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 values.")
private double[] h
@Parameter(label="Saturation",
required=true,
dataIOOrder=2,
direction=IN,
description="Saturation input values.")
private double[] s
@Parameter(label="Brightness Value",
required=true,
dataIOOrder=3,
direction=IN,
description="Brightness input values.")
private double[] v
@Parameter(label="RGB values",
required=true,
dataIOOrder=1,
direction=OUT,
description="Result.")
private LinkedList<int[]> rgbColor
public HSVToRGBArrayConverter()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic HSVToRGBArrayConverter(double[] _h,
double[] _s,
double[] _v)
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
_h - Hue values._s - Saturation values._v - Brightness values.de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic LinkedList<int[]> getRGBResult()
protected void operate()
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorprivate void toRGB()
This method falls back to methods from HSVToRGBPixelConverter.
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.