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.
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.
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!