public class ColorDiscretization extends AbstractImageProcessor
imageKeyDEFAULT_IMAGE_KEY| 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()
@Parameter(description="The name/key under which the output image is stored. If this name equals the name of the input image, the input image is going to be overwritten.") 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()
@Parameter(description="Set the number of discrete color values, each channel in divided into.") 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 interface ImageProcessorprocess in class AbstractImageProcessorCopyright © 2015. All rights reserved.