Hi everybody, hi have an RGB image and i want to remove all pixels which were equal to 1 from the following command:
FIND=(A(:,:,1)>=175 & (A(:,:,1)<=193));
with A that is the 4000x6000x3 uint8 image.
How can i do it?
Thank you!

 채택된 답변

KSSV
KSSV 2019년 2월 27일
편집: KSSV 2019년 2월 27일

0 개 추천

YOu cannot remove them, replace them with any other value.......
A = I(:,:,1) ;
idx = A>=175 & A<=193;
A(idx) = 0 ;
I(:,:,1) = A ;

댓글 수: 4

Riccardo Rossi
Riccardo Rossi 2019년 2월 27일
Thank you for the answer, but what is I?
KSSV
KSSV 2019년 2월 27일
I is your RGB image of size (m,n,3)
Riccardo Rossi
Riccardo Rossi 2019년 2월 27일
okay, but i just want to select (A(:,:,1)>=175 & (A(:,:,1)<=193)) and not (A(:,:,i)>=175 & (A(:,:,i)<=193))
KSSV
KSSV 2019년 2월 27일
편집: KSSV 2019년 2월 27일
Okay..then remove the loop.....Edited the code.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2019년 2월 27일

편집:

2019년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by