이미지의 점수 값을 꺼냅니다
-
21-12-2019 - |
문제
이미지가 있고 이미지의 특정 지점에서 색조 값을 가져올 수 있기를 원합니다.
나는 Impixel을 사용하여 색상 값을 나가는 것이지만, speicifc 픽셀의 색조 값을 얻기 위해 Impixel과 같은 기능을 궁금해하고있었습니다.
해결책
예 :
im = imread('peppers.png'); %// example image
im = im2double(im); %// convert to double values in [0, 1]
c = [12 146 410]; %// column coordinates of desired pixels
r = [104 156 129]; %// row coordinates of desired pixels
pixels = impixel(im,c,r); %// rgb values of pixels
hsv = rgb2hsv(pixels); %// convert to hsv
hue = hsv(:,1); %// hue is first column of hsv
. 제휴하지 않습니다 StackOverflow