Package org.opencv.ximgproc
Class SelectiveSearchSegmentation
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ximgproc.SelectiveSearchSegmentation
 
 
- 
 public class SelectiveSearchSegmentation extends Algorithm Selective search segmentation algorithm The class implements the algorithm described in CITE: uijlings2013selective.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedSelectiveSearchSegmentation(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectiveSearchSegmentation__fromPtr__(long addr)voidaddGraphSegmentation(GraphSegmentation g)Add a new graph segmentation in the list of graph segementations to process.voidaddImage(Mat img)Add a new image in the list of images to process.voidaddStrategy(SelectiveSearchSegmentationStrategy s)Add a new strategy in the list of strategy to process.voidclearGraphSegmentations()Clear the list of graph segmentations to process;voidclearImages()Clear the list of images to processvoidclearStrategies()Clear the list of strategy to process;protected voidfinalize()voidprocess(MatOfRect rects)Based 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 classvoidswitchToSelectiveSearchFast()Initialize 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.voidswitchToSelectiveSearchQuality()Initialize 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.voidswitchToSingleStrategy()Initialize 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 org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static SelectiveSearchSegmentation __fromPtr__(long addr) 
 - 
setBaseImagepublic void setBaseImage(Mat img) Set a image used by switch* functions to initialize the class- Parameters:
- img- The image
 
 - 
switchToSingleStrategypublic 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 segmentation
- sigma- The sigma parameter for the graph segmentation
 
 - 
switchToSingleStrategypublic 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
 
 - 
switchToSingleStrategypublic void switchToSingleStrategy() Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
 - 
switchToSelectiveSearchFastpublic 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 segmentation
- inc_k- The increment of the k parameter for all graph segmentations
- sigma- The sigma parameter for the graph segmentation
 
 - 
switchToSelectiveSearchFastpublic 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 segmentation
- inc_k- The increment of the k parameter for all graph segmentations
 
 - 
switchToSelectiveSearchFastpublic 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
 
 - 
switchToSelectiveSearchFastpublic void switchToSelectiveSearchFast() Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
 - 
switchToSelectiveSearchQualitypublic 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 segmentation
- inc_k- The increment of the k parameter for all graph segmentations
- sigma- The sigma parameter for the graph segmentation
 
 - 
switchToSelectiveSearchQualitypublic 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 segmentation
- inc_k- The increment of the k parameter for all graph segmentations
 
 - 
switchToSelectiveSearchQualitypublic 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
 
 - 
switchToSelectiveSearchQualitypublic void switchToSelectiveSearchQuality() Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
 - 
addImagepublic void addImage(Mat img) Add a new image in the list of images to process.- Parameters:
- img- The image
 
 - 
clearImagespublic void clearImages() Clear the list of images to process
 - 
addGraphSegmentationpublic void addGraphSegmentation(GraphSegmentation g) Add a new graph segmentation in the list of graph segementations to process.- Parameters:
- g- The graph segmentation
 
 - 
clearGraphSegmentationspublic void clearGraphSegmentations() Clear the list of graph segmentations to process;
 - 
addStrategypublic void addStrategy(SelectiveSearchSegmentationStrategy s) Add a new strategy in the list of strategy to process.- Parameters:
- s- The strategy
 
 - 
clearStrategiespublic void clearStrategies() Clear the list of strategy to process;
 - 
processpublic void process(MatOfRect rects) 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.
 
 
- 
 
-