public class ColorDiscretization extends AbstractImageProcessor
imageKey| Constructor and Description |
|---|
ColorDiscretization() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOutput() |
Integer |
getQuantilesPerChannel() |
void |
init(stream.ProcessContext ctx) |
stream.Data |
process(stream.Data item,
ImageRGB img) |
void |
setBins(Integer bins) |
void |
setOutput(String output)
Setter for the Parameter Output
|
getImage, process, setImagepublic void init(stream.ProcessContext ctx)
throws Exception
init in interface stream.StatefulProcessorinit in class stream.AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public String getOutput()
public void setOutput(String output)
output - The name/key under which the discretized Image is stored.
If this name equals the name of the input image, the input image
is going to be overwritten.public Integer getQuantilesPerChannel()
public void setBins(Integer bins)
bins - Set the number of discrete color values, each channel in divided intopublic stream.Data process(stream.Data item,
ImageRGB img)
process in class AbstractImageProcessorCopyright © 2013. All Rights Reserved.