【发布时间】:2014-03-01 15:40:02
【问题描述】:
这道题不是this question的重复题
我想对整个Mat image 进行排序并存储类似于MatLab's [B , Ix] = sort(A); 的索引
但在 openCV 中,sort() 和 sortIdx() 仅适用于 EACH_ROW 或 EACH_COLUMN。
问题:那么,我怎样才能对整个Mat 进行排序并将Indices 也存储在openCV 中?
PS:我想得到以下内容:
输入 =
2 0
4 1
dst_index =
1 1
2 2
dst_sorted =
0 1
2 4
【问题讨论】:
标签: c++ matlab opencv image-processing