Comparing two images' point location & movement of an position of a point in video

조회 수: 5 (최근 30일)
I have two images that are taken in similar angle but different distance.
What i want to do is, when I click one image, I want to get mark of same location of the other image.
There're 4 markers and I already get marker point.
Is there any way I could compare the same position of two images?
Also, I have a video file and it has 4 markers. This video moves so makers move too.
What i want to do is, when I mark one position(which is not position of 4 markers), I want to calculate how it moves by using 4 markers.
Is there any way I could calculate the movement of an mark by using 4 markers?
Thanks!!!

채택된 답변

Udit06
Udit06 2023년 8월 30일
Hi Jaeyoung,
For the first question, you can use SIFT (Scale Invariant Feature Transform) to extract features from the images. Using the extracted features, you can then compare both the images having different scale. To extract SIFT features in MATLAB, you can use “detectSIFTFeatures” function: https://www.mathworks.com/help/vision/ref/detectsiftfeatures.html?s_tid=doc_ta
For the second question, you can follow the process mentioned below:
  1. Detect four marker points using a feature detection algorithm like SURF. You can use “detectSURFFeatures” MATLAB function to extract the SURF features. Refer to: https://www.mathworks.com/help/vision/ref/detectsurffeatures.html?s_tid=doc_ta
  2. Establish a coordinate system by defining the positions of four reference markers using “fitgeotform2d” MATLAB function. Refer to: https://www.mathworks.com/help/images/ref/fitgeotform2d.html
  3. Estimate the geometric transformation between the new frames and the referenced frame. You can use “estgeotform2d” MATLAB function for the same. Refer to: https://www.mathworks.com/help/vision/ref/estgeotform2d.html
  4. Once you have the estimated transformation, you can apply it to the position of the desired point in each frame to obtain its position in the reference frame.
I hope this helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by