Principle
The purpose of histogram back projection is to segment and find the target image. It will output an image of the same size as the input image. Each pixel value of the output represents the probability corresponding to the target image on the input image. The higher the pixel value is that the approximate rate is the point we are looking for. Histogram projection is often used with camshaft algorithm.
Create two histograms, the target image’s histogram ‘M’ and the input image’s histogram 'I’
import cv2
import numpy as np
from matplotlib
直方图反投影的目的是为了分割并找到目标图像。它将输出与输入图像大小相同的图像,每个像素值表示输入图像上目标图像的概率。像素值越高,表示我们寻找的目标的可能性越大。常与卡门涡旋算法结合使用。通过创建目标图像的直方图'M'和输入图像的直方图'I',计算比例R=IM,根据R创建新图像,每个像素值表示该点为目标值的概率。经过卷积操作和阈值二值化,找到目标区域。
订阅专栏 解锁全文
675

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



