Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

distance between images, pixel by pixel

$
0
0
I'm need to calculate the euclidean distance between two `cv::Mat` images in a pixel by pixel manner. Is there a function that does this? Specifically, I need the result to be of the form diff[i] = sqrt( (r1-r2)^2 + (g1-g2)^2 + (b1-b2)^2 ) where `diff` is a `Mat`. If there is no function, is there a simple way to calculate this? Thanks!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>