public class Smoothing extends AbstractImageProcessor
imageKeyDEFAULT_IMAGE_KEY| Constructor and Description |
|---|
Smoothing() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOutput() |
Integer |
getWindowSize() |
void |
init(stream.ProcessContext ctx) |
stream.Data |
process(stream.Data item,
ImageRGB img) |
void |
setOutput(String output)
Setter for the Parameter Output
|
void |
setWeighted(Boolean weighted) |
void |
setWindowSize(Integer windowSize) |
getImage, process, setImagepublic Integer getWindowSize()
@Parameter(description="Sets the window size. The window size determines the neighboring pixels for each pixel, that are averaged. A windowSize of 3 means that 3 times 3 = 9 pixels are taken into account.") public void setWindowSize(Integer windowSize)
windowSize - the windowSize to set@Parameter(description="If a weighted smoothing technique is selected, neighbors closer to the pixel to be smoothend are counted with a higher weight.") public void setWeighted(Boolean weighted)
public String getOutput()
@Parameter(description="The name/key of 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 smoothed Image is stored. If this
name equals the name of the input image, the input image is
going to be overwritten.public void init(stream.ProcessContext ctx)
throws Exception
init in interface stream.StatefulProcessorinit in class stream.AbstractProcessorExceptionpublic stream.Data process(stream.Data item,
ImageRGB img)
process in interface ImageProcessorprocess in class AbstractImageProcessorCopyright © 2015. All rights reserved.