필터 지우기
필터 지우기

How to get pixel values from a selected image window

조회 수: 1 (최근 30일)
Tania
Tania 2014년 11월 26일
편집: Tania 2014년 11월 26일
Hi everyone,
I am trying to get all the pixel values from a rectangle region

채택된 답변

Image Analyst
Image Analyst 2014년 11월 26일
First of all, x is column, and y is row - not vice versa like you have it. So to get a 5-by-5block of pixels, a subimage, around an x,y location, you can use indexing:
subImage5x5 = fullImage(y-2:y+2, x-2:x+2);

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by