How do i determine the pixel coordinates of an image using RGB values?
조회 수: 1 (최근 30일)
이전 댓글 표시
For example: i'd like to get the coordinates of the pixels with R values from 230 to 250.
댓글 수: 0
답변 (1개)
JESUS DAVID ARIZA ROYETH
2019년 12월 10일
image=imread('peppers.png');
R=image(:,:,1);%red chanel
[x,y]=find(and(R>=230,R<=250));%here coordinates
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!