@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(Algorithm pointer)
Downcast constructor.
|
GraphSegmentation(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(GraphSegmentation pointer) |
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, getPointer, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public GraphSegmentation(Pointer p)
Pointer(Pointer)
.public GraphSegmentation(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(GraphSegmentation 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 © 2024. All rights reserved.