public class CenterOfMass extends AbstractImageProcessor
imageKeyDEFAULT_IMAGE_KEY| Constructor and Description |
|---|
CenterOfMass() |
| Modifier and Type | Method and Description |
|---|---|
String |
getColorchannel()
Delivers, on which color the Center of Mass computation is based on.
|
Boolean |
getNormalized()
Delivers, if the CenterOfMass processor is actually looking for the absolute or the normalized x- and
y- coordinates of the Center of Mass.
|
stream.Data |
process(stream.Data item,
ImageRGB img) |
void |
setColorchannel(String colorchannel)
Tells the CenterOfMass processor, on which color to base the Center of Mass computation on.
|
void |
setNormalized(Boolean normalized)
Tells the CenterOfMass processor, if we are looking for the absolute or the normalized x- and
y- coordinates of the Center of Mass.
|
getImage, process, setImage@Parameter(description="Sets the color channel, on which the Center of Mass computation is based on.") public void setColorchannel(String colorchannel)
colorchannel - the color. Possible values are "red", "green", and "blue"public String getColorchannel()
@Parameter(description="Sets, if the processor computes the normalized Center of Mass or the absolute Center of Mass") public void setNormalized(Boolean normalized)
normalized - public Boolean getNormalized()
public stream.Data process(stream.Data item,
ImageRGB img)
process in interface ImageProcessorprocess in class AbstractImageProcessorCopyright © 2015. All rights reserved.