<div dir="ltr">Tobias,<div><br></div><div>Indeed, the prime factorization of each dimension needs to consist of 2s, 3s, and 5s, which is indeed different from being a multiple of 2. 416 has 13 as a prime, but 60 is fine.</div><div><br></div><div>You could pad up to 432 = 2^4 * 3^3, you don't need to pad all the way up to 512.</div><div><br></div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 7:10 AM, Wood, Tobias <span dir="ltr"><<a href="mailto:tobias.wood@kcl.ac.uk" target="_blank">tobias.wood@kcl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am trying to FFT a moderately large 3D image but am receiving a contradictory error message:<br>
<br>
itk::ERROR: VnlForwardFFTImageFilter(0x3038500): Cannot compute FFT of image with size [416, 416, 60]. VnlForwardFFTImageFilter operates only on images whose size in each dimension is a multiple of 2, 3, or 5.<br>
<br>
All the image dimensions are a multiple of 2! Are the dimensions restricted to be powers of 2/3/5 instead of multiples?<br>
<br>
I can pad the image out to a sensible size (e.g. 512x512x64), but would like to know if there are any other restrictions I should be aware of before going around in circles?<br>
<br>
Thanks,<br>
Toby<br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>