필터 지우기
필터 지우기

how to move image to certain coordinate

조회 수: 4 (최근 30일)
mohd
mohd 2012년 4월 15일
hello everyone,
i need to move image to a specify coordinate. i need to detect top left black pixel and move to new coordinate. below i have draw the illustration for better understanding.
please help me sir, how to move the image to coordinate that we want.

답변 (1개)

Image Analyst
Image Analyst 2012년 4월 15일
I'd probably just use circshift() in your case, since you don't seem to have to worry about stuff getting shifted in. If you do get unwanted wrap around of stuff shifting in, then you can use assignment, but I think circshift will be the simplest way.

Community Treasure Hunt

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

Start Hunting!

Translated by