Package org.opencv.ximgproc
Class SelectiveSearchSegmentation
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ximgproc.SelectiveSearchSegmentation
Selective search segmentation algorithm
The class implements the algorithm described in CITE: uijlings2013selective.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectiveSearchSegmentation
__fromPtr__
(long addr) void
Add a new graph segmentation in the list of graph segementations to process.void
Add a new image in the list of images to process.void
Add a new strategy in the list of strategy to process.void
Clear the list of graph segmentations to process;void
Clear the list of images to processvoid
Clear the list of strategy to process;protected void
finalize()
void
Based on all images, graph segmentations and stragies, computes all possible rects and return themvoid
setBaseImage
(Mat img) Set a image used by switch* functions to initialize the classvoid
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
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
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.Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
SelectiveSearchSegmentation
protected SelectiveSearchSegmentation(long addr)
-
-
Method Details
-
__fromPtr__
-
setBaseImage
Set a image used by switch* functions to initialize the class- Parameters:
img
- The image
-
switchToSingleStrategy
public void switchToSingleStrategy(int k, float sigma) Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.- Parameters:
k
- The k parameter for the graph segmentationsigma
- The sigma parameter for the graph segmentation
-
switchToSingleStrategy
public void switchToSingleStrategy(int k) Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.- Parameters:
k
- The k parameter for the graph segmentation
-
switchToSingleStrategy
public void switchToSingleStrategy()Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective. -
switchToSelectiveSearchFast
public void switchToSelectiveSearchFast(int base_k, int inc_k, float sigma) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
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 segmentation
-
switchToSelectiveSearchFast
public void switchToSelectiveSearchFast(int base_k, int inc_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentations
-
switchToSelectiveSearchFast
public void switchToSelectiveSearchFast(int base_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
base_k
- The k parameter for the first graph segmentation
-
switchToSelectiveSearchFast
public void switchToSelectiveSearchFast()Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective. -
switchToSelectiveSearchQuality
public void switchToSelectiveSearchQuality(int base_k, int inc_k, float sigma) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
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 segmentation
-
switchToSelectiveSearchQuality
public void switchToSelectiveSearchQuality(int base_k, int inc_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
base_k
- The k parameter for the first graph segmentationinc_k
- The increment of the k parameter for all graph segmentations
-
switchToSelectiveSearchQuality
public void switchToSelectiveSearchQuality(int base_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.- Parameters:
base_k
- The k parameter for the first graph segmentation
-
switchToSelectiveSearchQuality
public void switchToSelectiveSearchQuality()Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective. -
addImage
Add a new image in the list of images to process.- Parameters:
img
- The image
-
clearImages
public void clearImages()Clear the list of images to process -
addGraphSegmentation
Add a new graph segmentation in the list of graph segementations to process.- Parameters:
g
- The graph segmentation
-
clearGraphSegmentations
public void clearGraphSegmentations()Clear the list of graph segmentations to process; -
addStrategy
Add a new strategy in the list of strategy to process.- Parameters:
s
- The strategy
-
clearStrategies
public void clearStrategies()Clear the list of strategy to process; -
process
Based on all images, graph segmentations and stragies, computes all possible rects and return them- Parameters:
rects
- The list of rects. The first ones are more relevents than the lasts ones.
-
finalize
-