title: compare arbitrary shapes using generalized hough transform
body: <p>I am using generalized hough transform to differentiate between various arbitrary shapes. Few shapes that I'll be dealing with is shown below:
  <a href="http://i50.tinypic.com/2u550t5.png" rel="nofollow">http://i50.tinypic.com/2u550t5.png</a></p>
  
  <p>I have implemented the following steps successfully:</p>
  
  <p><strong>A) Transform / Training phase</strong></p>
  
  <p><strong>i)</strong> Threshold to get binary image
  <strong>ii)</strong> Get contour using cvFindContour
  <strong>iii)</strong> calculate distance 'r' and gradient orientation (phi) for each edge pixel
  <strong>iv)</strong> Create R-table</p>
  
  <p>Create a database of R-table for each shape</p>
  
  <p><strong>B) Recognition</strong></p>
  
  <p><strong>i)</strong> Get contour of an arbitrary shape
  <strong>ii)</strong> calculate gradient orientation for each edge pixel
  <strong>iii)</strong> Using R-table, build the accumulator</p>
  
  <p>My problem is how do I proceed further?</p>
  
  <p>How do I detect the shape using this accumulator data?</p>