Package org.opencv.ximgproc
Class GraphSegmentation
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ximgproc.GraphSegmentation
 
 
- 
 public class GraphSegmentation extends Algorithm Graph Based Segmentation Algorithm. The class implements the algorithm described in CITE: PFF2004 .
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedGraphSegmentation(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphSegmentation__fromPtr__(long addr)protected voidfinalize()floatgetK()intgetMinSize()doublegetSigma()voidprocessImage(Mat src, Mat dst)Segment an image and store output in dstvoidsetK(float k)voidsetMinSize(int min_size)voidsetSigma(double sigma)- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static GraphSegmentation __fromPtr__(long addr) 
 - 
processImagepublic void processImage(Mat src, Mat dst) 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 provided
- dst- 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.
 
 - 
setSigmapublic void setSigma(double sigma) 
 - 
getSigmapublic double getSigma() 
 - 
setKpublic void setK(float k) 
 - 
getKpublic float getK() 
 - 
setMinSizepublic void setMinSize(int min_size) 
 - 
getMinSizepublic int getMinSize() 
 
- 
 
-