Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to find pixels's neighbours?
1 次查看(过去 30 天)
显示 更早的评论
I have two vectors of pixels with their position x and y length of vectors is not the same and their length is 520 There is an exemple: A = 20 40 60 120 30 50 100 140 B = 40 20 50 30 the result : pixels (20,30) and (40,50) are the same in two vectors so i have D = 40 20 as a result 50 30
4 个评论
Jan
2012-7-12
@Mohamed: Do you see the difference in the readability of Sebastian's example code and your one? It would be very helpful, when you edit the original question and insert full stops at the end of each sentence. To learn more about code formatting and asking good questions, follow the "About MATLAB Answers" link on the left side.
回答(1 个)
Sean de Wolski
2012-7-12
doc intersect
And specifically:
intersect(A,B);
or ismember
C = A(ismember(A,B))
2 个评论
Image Analyst
2012-7-12
Seems like it, based on his comment. But why are these "neighbors" of some pixels? Does this do what his subject line asks?
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!