Click or drag to resize

CvInvokeSortIdx Method

http://www.emgu.com
Sorts each matrix row or each matrix column in the ascending or descending order.So you should pass two operation flags to get desired behaviour. Instead of reordering the elements themselves, it stores the indices of sorted elements in the output array.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void SortIdx(
	IInputArray src,
	IOutputArray dst,
	SortFlags flags
)

Parameters

src
Type: Emgu.CVIInputArray
input single-channel array.
dst
Type: Emgu.CVIOutputArray
output integer array of the same size as src.
flags
Type: Emgu.CV.CvEnumSortFlags
operation flags
See Also