@Namespace(value="cv::ximgproc::segmentation") @Properties(inherit=opencv_ximgproc.class) public class SelectiveSearchSegmentationStrategy extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SelectiveSearchSegmentationStrategy(Algorithm pointer)
Downcast constructor.
|
SelectiveSearchSegmentationStrategy(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(SelectiveSearchSegmentationStrategy pointer) |
float |
get(int r1,
int r2)
\brief Return the score between two regions (between 0 and 1)
|
void |
merge(int r1,
int r2)
\brief Inform the strategy that two regions will be merged
|
void |
setImage(GpuMat img,
GpuMat regions,
GpuMat sizes) |
void |
setImage(GpuMat img,
GpuMat regions,
GpuMat sizes,
int image_id) |
void |
setImage(Mat img,
Mat regions,
Mat sizes) |
void |
setImage(Mat img,
Mat regions,
Mat sizes,
int image_id)
\brief Set a initial image, with a segmentation.
|
void |
setImage(UMat img,
UMat regions,
UMat sizes) |
void |
setImage(UMat img,
UMat regions,
UMat sizes,
int image_id) |
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 SelectiveSearchSegmentationStrategy(Pointer p)
Pointer(Pointer)
.public SelectiveSearchSegmentationStrategy(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(SelectiveSearchSegmentationStrategy pointer)
public void setImage(@ByVal Mat img, @ByVal Mat regions, @ByVal Mat sizes, int image_id)
img
- The input image. Any number of channel can be providedregions
- A segmentation of the image. The parameter must be the same size of img.sizes
- The sizes of different regionsimage_id
- If not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same.public void setImage(@ByVal UMat img, @ByVal UMat regions, @ByVal UMat sizes, int image_id)
public void setImage(@ByVal GpuMat img, @ByVal GpuMat regions, @ByVal GpuMat sizes, int image_id)
public float get(int r1, int r2)
r1
- The first regionr2
- The second regionpublic void merge(int r1, int r2)
r1
- The first regionr2
- The second regionCopyright © 2024. All rights reserved.