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