how to move image to certain coordinate

2 次查看(过去 30 天)
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.

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by