Package org.opencv.ximgproc
Class GraphSegmentation
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ximgproc.GraphSegmentation
Graph Based Segmentation Algorithm.
The class implements the algorithm described in CITE: PFF2004 .
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphSegmentation
__fromPtr__
(long addr) protected void
finalize()
float
getK()
int
double
getSigma()
void
processImage
(Mat src, Mat dst) Segment an image and store output in dstvoid
setK
(float k) void
setMinSize
(int min_size) void
setSigma
(double sigma) Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
GraphSegmentation
protected GraphSegmentation(long addr)
-
-
Method Details
-
__fromPtr__
-
processImage
Segment an image and store output in dst- Parameters:
src
- The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provideddst
- The output segmentation. It's a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel.
-
setSigma
public void setSigma(double sigma) -
getSigma
public double getSigma() -
setK
public void setK(float k) -
getK
public float getK() -
setMinSize
public void setMinSize(int min_size) -
getMinSize
public int getMinSize() -
finalize
-