Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to remove green pixels in PCB to highlight components?

1 vue (au cours des 30 derniers jours)
snehal dahiphale
snehal dahiphale le 22 Fév 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
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:)

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by