@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(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
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, 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 SelectiveSearchSegmentationStrategy(Pointer p)
Pointer.Pointer(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 © 2020. All rights reserved.