Class SelectiveSearchSegmentation
Selective search segmentation algorithm The class implements the algorithm described in: Jasper RR Uijlings, Koen EA van de Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. International journal of computer vision, 104(2):154–171, 2013.
public class SelectiveSearchSegmentation : UnmanagedObject, IDisposable
- Inheritance
-
SelectiveSearchSegmentation
- Implements
- Inherited Members
Constructors
SelectiveSearchSegmentation()
Selective search segmentation algorithm
public SelectiveSearchSegmentation()
Methods
AddImage(IInputArray)
Add a new image in the list of images to process.
public void AddImage(IInputArray img)
Parameters
img
IInputArrayThe image
DisposeObject()
Release the unmanaged memory associated with this object.
protected override void DisposeObject()
Process()
Based on all images, graph segmentations and stragies, computes all possible rects and return them.
public Rectangle[] Process()
Returns
- Rectangle[]
The list of rects. The first ones are more relevents than the lasts ones.
SetBaseImage(IInputArray)
Set a image used by switch* functions to initialize the class.
public void SetBaseImage(IInputArray image)
Parameters
image
IInputArrayThe image
SwitchToSelectiveSearchFast(int, int, float)
Initialize the class with the 'Selective search fast' parameters
public void SwitchToSelectiveSearchFast(int baseK = 150, int incK = 150, float sigma = 0.8)
Parameters
baseK
intThe k parameter for the first graph segmentation
incK
intThe increment of the k parameter for all graph segmentations
sigma
floatThe sigma parameter for the graph segmentation
SwitchToSelectiveSearchQuality(int, int, float)
Initialize the class with the 'Selective search quality' parameters
public void SwitchToSelectiveSearchQuality(int baseK = 150, int incK = 150, float sigma = 0.8)
Parameters
baseK
intThe k parameter for the first graph segmentation
incK
intThe increment of the k parameter for all graph segmentations
sigma
floatThe sigma parameter for the graph segmentation
SwitchToSingleStrategy(int, float)
Initialize the class with the 'Single stragegy' parameters
public void SwitchToSingleStrategy(int k, float sigma)