How to get the intensity value of the flower
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
Chunru
2022년 9월 26일
im = imread("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136290/image.jpeg");
whos
im = rgb2gray(im); % intensity: gray level here; you may have other defination
imshow(im)
%hold on
viscircles([1200, 1000], 300); % location of one flower
intensity = mean(im(1200+(-100:100), 1000+(-100:100)), 'all'); % average over 200x200 regions
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!