public class GraphSegmentation extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
GraphSegmentation(long addr) |
Modifier and Type | Method and Description |
---|---|
static GraphSegmentation |
__fromPtr__(long addr) |
protected void |
finalize() |
float |
getK() |
int |
getMinSize() |
double |
getSigma() |
void |
processImage(Mat src,
Mat dst)
Segment an image and store output in dst
|
void |
setK(float k) |
void |
setMinSize(int min_size) |
void |
setSigma(double sigma) |
clear, empty, getDefaultName, getNativeObjAddr, save
public static GraphSegmentation __fromPtr__(long addr)
public double getSigma()
public float getK()
public int getMinSize()
public void processImage(Mat src, Mat dst)
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.public void setK(float k)
public void setMinSize(int min_size)
public void setSigma(double sigma)
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2