필터 지우기
필터 지우기

pixel values of a region around a point

조회 수: 1 (최근 30일)
babli
babli 2015년 2월 12일
I am trying to get pixel values of a region around a point thru looping but its giving only the last value. how to get all these values in a single matrix.
I=imread('spot.gif'); [c r]=imfindcircles(I,[10 30]); c1=c(1,:); c2=c(2,:); for i=-3:3; for j=-3:3;
P=impixel(I,c1+i,c2+j);
end end
and if im using P(i) its giving error, subscript indices must be real positive integers or logical. can anybody tell me how to get pixel values of all possible combination from -3 to +3 region in a single matrix.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by