필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to remove green pixels in PCB to highlight components?

조회 수: 1 (최근 30일)
snehal dahiphale
snehal dahiphale 2017년 2월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
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개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by