Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to remove green pixels in PCB to highlight components?

1 visualización (últimos 30 días)
snehal dahiphale
snehal dahiphale el 22 de Feb. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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:)

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by