Use fourier descriptor and chain code as feature extraction

asked 2016-03-21 20:46:34 -0600

bob409 gravatar image

I have extracted chain code from a contour using the old-C Api, now I want to feed it into a fourier descriptor as length of chain code is too long and i am unable to know how to classify it. I have seen some of the people uses fourier descriptor after extracting chain code. How to use fourier descriptor? Does anyone has an example of it? And is it translation and scale invariant?

edit retag flag offensive close merge delete

Comments

LBerger gravatar imageLBerger ( 2016-03-22 02:43:38 -0600 )edit

I have tried implementing it. Is it the proper way to get fourier descriptors?

bob409 gravatar imagebob409 ( 2016-03-22 21:52:52 -0600 )edit

I have tried implementing it but with no success. Is it the proper way to get fourier descriptors?

bob409 gravatar imagebob409 ( 2016-03-22 21:53:11 -0600 )edit

If you run this program without change it will find angle and translation between shape (and matching distance).

What have you tried?

LBerger gravatar imageLBerger ( 2016-03-23 05:19:48 -0600 )edit

I have run it and I have got the required output but I have only one contour. So I have to find the FD of the contour and classify it. Then use it during testing

bob409 gravatar imagebob409 ( 2016-03-23 08:44:08 -0600 )edit

In this program contour with index is a reference.After best match contour 1 and 4 is to rotate of -179.63 degrees change origin of 625 pixels and scale it 1.00109. All contours have got 1024 pixels after resampling using linear interpolation.

Now I don't know what you want to do. If you have many 10 references shape and 100 shapes you can this program to find best match...

LBerger gravatar imageLBerger ( 2016-03-23 08:53:47 -0600 )edit