in an image of size 256 by 256,what is the command to retrieve the value of the pixel (3,4)
조회 수: 1 (최근 30일)
이전 댓글 표시
is there any command available to get the pixel value of (3,4) from an image of size 256 by 256 ,so that i need not look from the variable editor window
댓글 수: 0
채택된 답변
Jos (10584)
2013년 9월 10일
PixelValue = ImageArray(3,4)
or if your image is actually having the size 256x256x3
PixelValueRGB = ImageArray(3,4,:)
which will give you the RGB components
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!