Scaling and rotating the image by selecting three known reference point in image

1 次查看(过去 30 天)
I have a image with lithography alignment mark on them. The distance between the mark is 200 micro meter and two alignment mark are in straight line. While taking image in microscope the image gets little rotated and the distace between the markers is in pixels. I want to write a program where I will upload the image, select three markers, assign coordinate to them and the program should return me with the scaled and roated image such that distance between marker is 200 micro meter and these markers are in straight line.
I know how to read, rotate and scale but the I am facing problem in asigning cordinate to referece points.

回答(1 个)

Matt J
Matt J 2021-8-16
You could use drawpoint() or drawcrosshair(). This will return an object containing the position coordinates of the selected point.
  4 个评论
Matt J
Matt J 2021-8-16
编辑:Matt J 2021-8-16
I don't recommend ginput, since that will not give you the option of refining the position of the selected locations, as in the following:
obj=drawpoint;
wait(obj) %%double-click on the point to proceed from here.
coordinates=obj.Position,
delete(obj)

请先登录,再进行评论。

类别

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

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by