Jump to content
  • Advertisement
Sign in to follow this  
Martin Perry

Movement vector of areas in image

This topic is 2331 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have two images with severeal non-convex areas. I need to find vector in which I can move area from image 1 to position in image 2.
Problem is, that areas change shape and also can vreak into multiple smaller areas (this is not problem, I use Morphological operator to enclose areas together).
After some operation (median filter -> tressholding -> binary image -> morphological enclose) I have final areas without noise and "errors"

For. example:
a) on first image i have square, but on second image it could be circle
b) area on edge of image... in one image is only part of square (I part of L), on second image is full L shaped area

I have identified corresponding areas in both images. That I use convex hull and calculate its centroid for both areas and create vector from those centroids... problem is, that its not universal solution. Succes rate is about 60%.
Can aynone help me with some suitable solution ?

Concrete example in image:

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!