Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to remove green pixels in PCB to highlight components?
1 次查看(过去 30 天)
显示 更早的评论
I=imread('C:\Users\SNEHAL DAHIPHALE\Desktop\new_photos\same_size1.jpg'); J=imread('C:\Users\SNEHAL DAHIPHALE\Desktop\new_photos\same_size2.jpg'); sub = 15; [M , N]= size(I); [O , P]= size(J); imshow(I); imshow(J); display(O); display(M); for i= 1:485; for j = 1:616; if ((I(i,j,1) >= (J(i,j,1)-sub) && (I(i,j,1) <= (J(i,j,1)+sub))) &&(I(i,j,2) >= (J(i,j,2)-sub) && (I(i,j,2) <= (J(i,j,2)+sub))) &&(I(i,j,3) >= (J(i,j,3)-sub) && (I(i,j,3) <= (J(i,j,3)+sub)))) I(i,j,1) = 255; I(i,j,2) = 255; I(i,j,2) = 255; end end end imshow(I);
I have obtained the following results. But, I want proper results in order to eliminate background green color completetely. Please help:)
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!