Compare two or three surfaces
7 次查看(过去 30 天)
显示 更早的评论
Good morning guys,
my question is about subtracting surfaces from each other. Lets say I have a surface that is like a master surface and I want to see the differences in the Rz values in 3D. My idea was to subtract one surface from another to see what the differences are.
Is this possible with delaunay or surf plot? I am open for new ideas from you guys.
Cheers!
0 个评论
回答(2 个)
Image Analyst
2016-11-21
Unless your two images are of the very same surface AND your two surfaces are perfectly aligned (registered), this will be a noisier method. Why? Review your numerical analysis theory and you'll see the noise on the difference of two noisy signals is the sqrt(2) times the noise on just one surface or the difference of one noisy signal and a constant (or theoretically smooth noiseless surface).
Because of that you're better off computing Ra or Sa on each independently and compare those values rather than try to get some metric on the differences of the two surfaces.
However if you're not analyzing them and simply want to visualize a rough idea of the differences, then you can subtract them and view them with surf() or imshow():
diffImage = double(testImage) - double(refImage);
subplot(1,2,1);
imshow(diffImage, []);
subplot(1,2,2);
surf(diffImage);
2 个评论
Image Analyst
2016-11-21
My code depends on your data being a 2-D matrix. Is there anyway to convert your delaunay object into a matrix like an image?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Delaunay Triangulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!