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) voidAdd a new graph segmentation in the list of graph segementations to process.voidAdd a new image in the list of images to process.voidAdd a new strategy in the list of strategy to process.voidClear the list of graph segmentations to process;voidClear the list of images to processvoidClear the list of strategy to process;protected voidfinalize()voidBased on all images, graph segmentations and stragies, computes all possible rects and return themvoidsetBaseImage(Mat img) Set a image used by switch* functions to initialize the classvoidInitialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchFast(int base_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchFast(int base_k, int inc_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchFast(int base_k, int inc_k, float sigma) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidInitialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchQuality(int base_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchQuality(int base_k, int inc_k) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidswitchToSelectiveSearchQuality(int base_k, int inc_k, float sigma) Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.voidInitialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.voidswitchToSingleStrategy(int k) Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.voidswitchToSingleStrategy(int k, float sigma) Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.Methods inherited from class 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
-