Zernike Moments and TAS Feature Names

10 views
Skip to first unread message

Lily

unread,
May 20, 2021, 5:00:59 AM5/20/21
to pythonvision
Hello,

I've been extracting zernike and tas features but I can't find what are the exact names of each feature value so I was wondering where I can find them? 

Thank you in advance
 

Luis Pedro Coelho

unread,
May 24, 2021, 5:47:53 AM5/24/21
to Lily, python...@googlegroups.com
Dear Lily,

I'm going to assume you are discussing the mahotas implementations.

Unfortunately, it is not very trivial.

For Zernike, you can look at the code:

      for n in range(degree+1):
          for l in range(n+1):
              if (n-l)%2 == 0:
                  z = _zernike.znl(Dn, Ans[l], frac_center, n, l)
                  zvalues.append(abs(z))

and adapt it to generate names:

     znames = []
      for n in range(degree+1):
          for l in range(n+1):
              if (n-l)%2 == 0:
                  znames.append(f'zernike_degree={n}_ell={l}')
 

HTH
Luis


Luis Pedro Coelho | Fudan University | http://luispedro.org
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages