OpenCV 中的反向投影与模板匹配技术
1. 反向投影(Back Projection)
反向投影是一种记录像素与直方图模型中像素分布匹配程度的方法。例如,若有肤色直方图,就可以使用反向投影在图像中查找肤色区域。
1.1 基本反向投影函数 cv::calcBackProject()
该函数有三种变体:
void cv::calcBackProject(
const cv::Mat* images, // C-style array of images, 8U or 32F
int nimages, // number of images in 'images' array
const int* channels, // C-style list, ints identifying channels
cv::InputArray hist, // input histogram array
cv::OutputArray backProject, // output single channel array
const float** ranges, // C-style array, 'dims' pairs of bin sizes
double scale = 1, // Optional scale factor for output
bo
超级会员免费看
订阅专栏 解锁全文
5

被折叠的 条评论
为什么被折叠?



