@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 .
| Constructor and Description |
|---|
GraphSegmentation(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getK() |
int |
getMinSize() |
double |
getSigma() |
void |
processImage(opencv_core.GpuMat src,
opencv_core.GpuMat dst) |
void |
processImage(opencv_core.Mat src,
opencv_core.Mat dst)
\brief Segment an image and store output in dst
|
void |
processImage(opencv_core.UMat src,
opencv_core.UMat dst) |
void |
setK(float k) |
void |
setMinSize(int min_size) |
void |
setSigma(double sigma) |
clear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic GraphSegmentation(org.bytedeco.javacpp.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 processImage(@ByVal
opencv_core.UMat src,
@ByVal
opencv_core.UMat dst)
public void processImage(@ByVal
opencv_core.GpuMat src,
@ByVal
opencv_core.GpuMat dst)
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 © 2018. All rights reserved.