bregaldo / pywph

Wavelet Phase Harmonics in PyTorch for Images
BSD 3-Clause "New" or "Revised" License
15 stars 3 forks source link

wph_moments_indices #4

Closed NiallJeffrey closed 2 years ago

NiallJeffrey commented 2 years ago

When I run wph_op.wph_moments_indices(), I get a shape that doesn't match the coefficients returns by wph_op.apply().

Is this the desired behaviour?

bregaldo commented 2 years ago

This discrepancy should coincide with the number of scaling moments estimates ("L" class of moments).

You can check that the combination of wph_op.scaling_moments_indices and wph_op.wph_moments_indices gives you a consistent number of coefficients with what is returned by the apply method.