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 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 setSigma(double sigma)
public double getSigma()
public void setK(float k)
public float getK()
public void setMinSize(int min_size)
public int getMinSize()
Copyright © 2024. All rights reserved.