Absolute differences of images in OpenCV using a mask

╄→尐↘猪︶ㄣ 提交于 2021-01-27 21:12:01

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!