Use fourier descriptor and chain code as feature extraction
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?
this post
I have tried implementing it. Is it the proper way to get fourier descriptors?
I have tried implementing it but with no success. Is it the proper way to get fourier descriptors?
If you run this program without change it will find angle and translation between shape (and matching distance).
What have you tried?
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
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...