@Namespace(value="cv::ximgproc::segmentation") public static class opencv_ximgproc.GraphSegmentation extends opencv_core.Algorithm
/** \brief Graph Based Segmentation Algorithm. The class implements the algorithm described in \cite PFF2004 .
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_ximgproc.GraphSegmentation(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getK() |
int |
getMinSize() |
double |
getSigma() |
void |
processImage(opencv_core.Mat src,
opencv_core.Mat dst)
\brief Segment an image and store output in dst
|
void |
setK(float k) |
void |
setMinSize(int min_size) |
void |
setSigma(double sigma) |
clear, empty, getDefaultName, position, read, save, save, writeaddress, asBuffer, asByteBuffer, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_ximgproc.GraphSegmentation(Pointer p)
Pointer.Pointer(Pointer).public void processImage(@ByVal opencv_core.Mat src, @ByVal opencv_core.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 © 2016. All rights reserved.