Scaling and rotating the image by selecting three known reference point in image
조회 수: 3 (최근 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.

댓글 수: 0
답변 (1개)
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
Simon Chan
2021년 8월 16일
Use function ginput after display your image.
[x,y] = ginput(3);
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!