Computing the integral of a binary image
显示 更早的评论
Hello fellows:
I am trying to figure out how to compute the integral of the square of the difference between 2 images. So far I know that I have to convert the image to a binary one, but in order to compute the integral I am thinking of plotting the profile of the intensity values of each image than subtract one from another and integrate after I square the result. What do you think about that methodology? If it is wrong or you have a better one can you share keywords for the approach to do that?
采纳的回答
更多回答(1 个)
Image Analyst
2012-7-2
Sounds like you just want the RMS difference between the two images, so I guess I don't understand why you think you must convert the images to binary images, or why " plotting the profile" is necessary. For gray scale images, why not just do
rmsDifference = sqrt(sum((double(grayImage1(:)) - double(grayImage2(:))) .^2));
类别
在 帮助中心 和 File Exchange 中查找有关 White 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!