how to move image to certain coordinate

2 views (last 30 days)
mohd
mohd on 15 Apr 2012
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.

Answers (1)

Image Analyst
Image Analyst on 15 Apr 2012
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.

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!