Can I get the Fourier Descriptor coefficients for an object outline without using macro code?
I want to study the outlines of objects using Fourier descriptors. I see that their is a macro that uses the maximum of the Fourier descriptor coefficients to rename obects. Can I get the coefficients withour writing macro code? In particular, I would like to get output to Excel for the first 20 coefficients for all the objects in an image.
Thanks
0
Answers
I'm using also the Fourier descriptors but i would like to have 128 instead of the 32 that are by default. How can I change it.
Thanks
Public Sub SetNumberOfElements Dim md As MediaCy.Addins.Measurements.McMMData=ThisApplication.ActiveImage.MeasurementsData If md.Rows>0 Then Dim rgn As MediaCy.IQL.Features.McRegions=md.Item(0).MainSubFeature.GetFeatures() rgn.maRgnFourierDescriptor.NumElements=128 End If End Sub Yuri
It's my first time using this program and I don't know very well how to run macros. I tried to do it using your instructions but when I try to run it a error occurs in this "If md.Rows>0 Then"
Module 'Project6.ipp', line 16, character 0
The project attached.
Yuri
Thanks