public class SelectiveSearchSegmentation extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
SelectiveSearchSegmentation(long addr) |
Modifier and Type | Method and Description |
---|---|
static SelectiveSearchSegmentation |
__fromPtr__(long addr) |
void |
addGraphSegmentation(GraphSegmentation g)
Add a new graph segmentation in the list of graph segementations to process.
|
void |
addImage(Mat img)
Add a new image in the list of images to process.
|
void |
addStrategy(SelectiveSearchSegmentationStrategy s)
Add a new strategy in the list of strategy to process.
|
void |
clearGraphSegmentations()
Clear the list of graph segmentations to process;
|
void |
clearImages()
Clear the list of images to process
|
void |
clearStrategies()
Clear the list of strategy to process;
|
protected void |
finalize() |
void |
process(MatOfRect rects)
Based on all images, graph segmentations and stragies, computes all possible rects and return them
|
void |
setBaseImage(Mat img)
Set a image used by switch* functions to initialize the class
|
void |
switchToSelectiveSearchFast()
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchFast(int base_k)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchFast(int base_k,
int inc_k)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchFast(int base_k,
int inc_k,
float sigma)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchQuality()
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchQuality(int base_k)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchQuality(int base_k,
int inc_k)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSelectiveSearchQuality(int base_k,
int inc_k,
float sigma)
Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSingleStrategy()
Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSingleStrategy(int k)
Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
|
void |
switchToSingleStrategy(int k,
float sigma)
Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
|
clear, empty, getDefaultName, getNativeObjAddr, save
public static SelectiveSearchSegmentation __fromPtr__(long addr)
public void addGraphSegmentation(GraphSegmentation g)
g
- The graph segmentationpublic void addImage(Mat img)
img
- The imagepublic void addStrategy(SelectiveSearchSegmentationStrategy s)
s
- The strategypublic void clearGraphSegmentations()
public void clearImages()
public void clearStrategies()
public void process(MatOfRect rects)
rects
- The list of rects. The first ones are more relevents than the lasts ones.public void setBaseImage(Mat img)
img
- The imagepublic 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(int base_k, int inc_k)
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentationspublic void switchToSelectiveSearchFast(int base_k)
base_k
- The k parameter for the first 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(int base_k, int inc_k)
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentationspublic void switchToSelectiveSearchQuality(int base_k)
base_k
- The k parameter for the first graph segmentationpublic void switchToSelectiveSearchQuality()
public void switchToSingleStrategy(int k, float sigma)
k
- The k parameter for the graph segmentationsigma
- The sigma parameter for the graph segmentationpublic void switchToSingleStrategy(int k)
k
- The k parameter for the graph segmentationpublic void switchToSingleStrategy()
Copyright © 2020. All rights reserved.