Forums - Shape Context - Rotation Invariance

1 post / 0 new
Shape Context - Rotation Invariance
datahead8888
Join Date: 24 Nov 12
Posts: 2
Posted: Sat, 2012-11-24 14:17

Hello,

I was trying to implement Shape Context (in MatLab).  I was trying to achieve rotation invariance.


The general approach for shape context is to compute distances and angles between each set of interest points in a given image.  You then bin into a histogram based on whether these calculated values fall into certain ranges. You do this for both a standard and a test image.  To match two different images, from this you use a chi-square function to estimate a "cost" between each possible pair of points in the two different histograms.  Finally, you use an optimization technique such as the hungarian algorithm to find optimal assignments of points and then sum up the total cost, which will be lower for good matches.

I've checked several websites and papers, and they say that to make the above approach rotation invariant, you need to calculate each angle between each pair of points using the tangent vector as the x-axis.  (ie http://www.cs.berkeley.edu/~malik/papers/BMP-shape.pdf page 513)

What exactly does this mean?  No one seems to explain it clearly.  Also, from which of each pair of points would you get the tangent vector - would you average the two?

A couple other people suggested I could use gradients (which are easy to find in Matlab) and use this as a subtitute for the tangent points, though it does not seem to compute reasonable cost scores with this.  Is it feasible to do this with gradients?

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.