@Namespace(value="cv::ximgproc::segmentation") @Properties(inherit=opencv_ximgproc.class) public class SelectiveSearchSegmentation extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SelectiveSearchSegmentation(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphSegmentation(GraphSegmentation g)
\brief Add a new graph segmentation in the list of graph segementations to process.
|
void |
addImage(GpuMat img) |
void |
addImage(Mat img)
\brief Add a new image in the list of images to process.
|
void |
addImage(UMat img) |
void |
addStrategy(SelectiveSearchSegmentationStrategy s)
\brief Add a new strategy in the list of strategy to process.
|
void |
clearGraphSegmentations()
\brief Clear the list of graph segmentations to process;
|
void |
clearImages()
\brief Clear the list of images to process
|
void |
clearStrategies()
\brief Clear the list of strategy to process;
|
void |
process(RectVector rects)
\brief Based on all images, graph segmentations and stragies, computes all possible rects and return them
|
void |
setBaseImage(GpuMat img) |
void |
setBaseImage(Mat img)
\brief Set a image used by switch* functions to initialize the class
|
void |
setBaseImage(UMat img) |
void |
switchToSelectiveSearchFast() |
void |
switchToSelectiveSearchFast(int base_k,
int inc_k,
float sigma)
\brief Initialize the class with the 'Selective search fast' parameters describled in \cite uijlings2013selective.
|
void |
switchToSelectiveSearchQuality() |
void |
switchToSelectiveSearchQuality(int base_k,
int inc_k,
float sigma)
\brief Initialize the class with the 'Selective search fast' parameters describled in \cite uijlings2013selective.
|
void |
switchToSingleStrategy() |
void |
switchToSingleStrategy(int k,
float sigma)
\brief Initialize the class with the 'Single stragegy' parameters describled in \cite uijlings2013selective.
|
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 SelectiveSearchSegmentation(Pointer p)
Pointer.Pointer(Pointer)
.public void setBaseImage(@ByVal Mat img)
img
- The imagepublic void switchToSingleStrategy(int k, float sigma)
k
- The k parameter for the graph segmentationsigma
- The sigma parameter for the graph segmentationpublic void switchToSingleStrategy()
public void switchToSelectiveSearchFast(int base_k, int inc_k, float sigma)
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentationssigma
- The sigma parameter for the graph segmentationpublic void switchToSelectiveSearchFast()
public void switchToSelectiveSearchQuality(int base_k, int inc_k, float sigma)
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentationssigma
- The sigma parameter for the graph segmentationpublic void switchToSelectiveSearchQuality()
public void addImage(@ByVal Mat img)
img
- The imagepublic void clearImages()
public void addGraphSegmentation(@opencv_core.Ptr GraphSegmentation g)
g
- The graph segmentationpublic void clearGraphSegmentations()
public void addStrategy(@opencv_core.Ptr SelectiveSearchSegmentationStrategy s)
s
- The strategypublic void clearStrategies()
public void process(@ByRef RectVector rects)
rects
- The list of rects. The first ones are more relevents than the lasts ones.Copyright © 2020. All rights reserved.