Info
This question is closed. Reopen it to edit or answer.
How to remove green pixels in PCB to highlight components?
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!