Click or drag to resize

CvInvokeSelectROIs Method
Selects ROIs on the given image. Function creates a window and allows user to select a ROIs using mouse. Controls: use space or enter to finish current selection and start a new one, use esc to terminate multiple ROI selection process.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static Rectangle[] SelectROIs(
	string windowName,
	IInputArray img,
	bool showCrosshair = true,
	bool fromCenter = false


Type: SystemString
Name of the window where selection process will be shown.
Type: Emgu.CVIInputArray
Image to select a ROI.
showCrosshair (Optional)
Type: SystemBoolean
If true crosshair of selection rectangle will be shown.
fromCenter (Optional)
Type: SystemBoolean
If true center of selection will match initial mouse position. In opposite case a corner of selection rectangle will correspont to the initial mouse position.

Return Value

Type: Rectangle
Selected ROIs.
See Also