How to map two different gray pattern in two images?
显示 更早的评论
I have two images temp1.jpg and temp2.jpg. Both images have some large gray collor pattern. I want to make boundary around each pattern and map pattern in temp1 with patten in temp2
回答(1 个)
KSSV
2020-2-13
You can make boundary as below:
I = imread('temp1.jpg') ;
[nx,ny,nz] = size(I) ;
[X,Y] = meshgrid(1:ny,1:nx) ;
id = I~=255 ;
x = X(id) ; y = Y(id) ;
idx = boundary(x,y) ;
imshow(I)
hold on
plot(x(idx),y(idx),'r')
类别
在 帮助中心 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!