segmentation
|
Receives an rgb image, depending on the image type the user wants to work on (YUV or HSV) the module extracts the Y, U and V or H, S, and V planes and performs centre-surround processing with a construction of uniqueness maps (intensity saliency, colour, hue, saturation and value ) via a difference-of-Gaussian pyramid filter bank.
Receives an rgb image, depending on the image type the user wants to work on (YUV or HSV) the module extracts the Y, U and V or H, S, and V planes and performs centre-surround processing with a construction of uniqueness maps (intensity saliency, colour, hue, saturation and value ) via a difference-of-Gaussian pyramid filter bank.
YARP OpenCV (version >= 2.0)
Command-line Parameters
The following key-value pairs can be specified as command-line parameters by prefixing –
to the key (e.g. –from
file.ini. The value part can be changed to suit your needs; the default values are shown below.
from
lumaChroma.ini
context
lumaChroma
$ICUB_ROOT/icub/app
to the configuration file–name
lumaChroma
–image
\cyuv –out
Y
, UV, H, S, V Configuration File Parameters
The following key-value pairs can be specified as parameters in the configuration file (they can also be specified as command-line parameters if you so wish). The value part can be changed to suit your needs; the default values are shown below.
imageInputPort
/image
:i /yuvProc
or whatever else is specifed by the name parameter)YPort
/Y/image
:o /yuvProc
or whatever else is specifed by the name parameter)UVPort
/UV/image
:o /yuvProc
or whatever else is specifed by the name parameter)HPort
/H/image
:o /yuvProc
or whatever else is specifed by the name parameter)SPort
/S/image
:o /yuvProc
or whatever else is specifed by the name parameter)VPort
/V/image
:o /yuvProc
or whatever else is specifed by the name parameter)VPort
/image
:o /yuvProc
or whatever else is specifed by the name parameterInput ports
/lumaChroma
This port is used to change the parameters of the module at run time or stop the module.
The following commands are available
help
quit
Note that the name of this port mirrors whatever is provided by the –name
parameter value The port is attached to the terminal so that you can type in commands and receive replies. The port can be used by other modules but also interactively by a user through the yarp rpc directive, viz.: yarp
rpc
/yuvProc
This opens a connection from a terminal to the port and allows the user to then type in commands and receive replies.
/lumaChroma/image
:i /lumaChroma
/lumaChroma/Y/image
:o when YUV is selected/lumaChroma/UV/image
:o when YUV is selected/lumaChroma/H/image
:o when HSV is selected/lumaChroma/S/image
:o when HSV is selected/lumaChroma/V/image
:o when HSV is selected/lumaChroma/image
:o default filter port is selectedThe functional specification only names the ports to be used to communicate with the module but doesn't say anything about the data transmitted on the ports. This is defined by the following code.
BufferedPort<ImageOf<PixelRgb>
> inputPort
;
BufferedPort<ImageOf<PixelMono>
> outPortY
;
BufferedPort<ImageOf<PixelMono>
> outPortUV
;
BufferedPort<ImageOf<PixelMono>
> outPortV
;
BufferedPort<ImageOf<PixelMono>
> defaultPortOut
;
None
None
lumaChroma.ini
in $ICUB_ROOT/app/lumaChroma/conf
Linux: Ubuntu 9.10, Debian Stable, squeeze and windows
lumaChroma –name lumaChroma –image yuv (or hsv) –out Y –context lumaChroma –from config.ini
Vadim Tikhanoff
Copyright (C) 2009 RobotCub Consortium
CopyPolicy: Released under the terms of the GNU GPL v2.0.
Version:1.0
$ICUB_ROOT/icub/app
to the configuration file