Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I compare two images and track the movements of two points by comparing two pictures using C++ ? #13

Open
wesharlind opened this issue Mar 10, 2023 · 1 comment

Comments

@wesharlind
Copy link

I'm currently coding an app for a school project and now I need to compare 2 images in my windows form C# app. I've no ideas how can can I track the movement of four points between 2 pictures of a lattice structure. I need to compare an image of a lattice that is undeformed, then I need to deform it and take a picture of it again, to compare it with the same base lattice, how could I do it with your library? I was given some hints to start with the comparison, I could get displacement vectors, you would be a great help to me because it's a quite ambitious project, for now I managed to code a c# program that allows to binarize the lattice image and then to detect the central pattern of the undistorted lattice.

XrRmR

So I need to track the edges of the red center square on a non-deformed lattice.

7iRb3

And here is the picture with the possible square that we will have after deformation, but i dont have any ideas on how i can track the movement of the points.

I currently use EmguCV to do some image processing to detect the edges of the shape and to binarize the picture. After tracking the movement, I need to get the size of each segment of the square to calculation the deformation.

I think we can do a sort of correlation between the two images but like I said I really have no idea how I can do that if I need to use another library like this librairy...

@vincentjzy
Copy link
Owner

If you mean to track the change between the two images provided in the post, like compare a CAD sketch with a photo of real sample, DIC may not be capable of that job.
If you just want to track the motion of four corners in your prototype, you may draw four marks with different colors, take the photos before and after deformation, and then check the change in the coordinates of these marks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants