Ask Your Question

twentylemon's profile - activity

2018-10-07 01:03:15 -0600 received badge  Notable Question (source)
2017-12-17 03:50:33 -0600 received badge  Popular Question (source)
2015-11-09 15:32:23 -0600 received badge  Student (source)
2015-08-16 11:30:03 -0600 commented question distance between images, pixel by pixel

I'm implemented painterly rendering for a project. One of the steps is the calculate the distance between the source and a blurred image in a pixel by pixel manner, then sum square regions of the distance map to make decisions. I found the sum of the regions in a Mat using operator() and sum -- I'm hoping that the distance map can be found as a Mat then.

2015-08-16 11:18:51 -0600 commented question distance between images, pixel by pixel

How can I store the result in a Mat? Sorry - I justed started using opencv yesterday.

2015-08-16 11:15:57 -0600 received badge  Editor (source)
2015-08-16 11:10:15 -0600 asked a question distance between images, pixel by pixel

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!