问题
i need to compute some absolute differences on a set of images. Not all of the pixels should be taken into account. Unfortunately the opencv function cv::absdiff() doesnt provide a mask parameter. I also tried the cv::subtract() function which does provide a mask param, but this one doesnt compute absolute values and cuts the negative results to 0.
So does anyone knows a fast way to compute absolute differences on a masked image/matrix with opencv?
Thx!
来源:https://stackoverflow.com/questions/9421513/absolute-differences-of-images-in-opencv-using-a-mask