필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how i can transfer this image ?

조회 수: 2 (최근 30일)
mmm ssss
mmm ssss 2012년 1월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
i find it's center by :
s=regionprops(image_1,'centroid'); c=round(s.Centroid);
c is :[159 169]
i want to transfer this image to be in the center of the whole figure
i mean i want to rising object(hand) above, how this can be done ?
regards
  댓글 수: 1
Image Analyst
Image Analyst 2012년 1월 22일
Why do you want to do that? It shouldn't be necessary. If it is, just crop it and assign it to a new, blank image in the correct rows and columns.

답변 (1개)

Image Analyst
Image Analyst 2012년 1월 22일
You could use circshift().
  댓글 수: 1
mmm ssss
mmm ssss 2012년 1월 22일
y=imread(........);
imshow(y);
x=graythresh(y)*255;
[r,c]=size(y);
for i=1:r;
for j=1:c;
if(y(i,j)<=x)
y(i,j)=0;
end;
end;
end;
figure;
imshow(y);
>> image_1 = im2bw(y);
>> image_2 = double(image_1);
s=regionprops(image_2,'centroid');
c=round(s.Centroid);
>> z=circshift(image_2,c);
imshow(z);
the resultant image was
http://www.2shared.com/photo/e6JlJXQy/an_online.html

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by