MantisBT - ITK | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0006453 | ITK | public | 2008-02-27 09:36 | 2008-06-04 07:59 | |||||||||||
Reporter | Nicolas Savoire | ||||||||||||||
Assigned To | Tom Vercauteren | ||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||
Status | closed | Resolution | fixed | ||||||||||||
Platform | OS | OS Version | |||||||||||||
Product Version | |||||||||||||||
Target Version | Fixed in Version | ||||||||||||||
Resolution Date | |||||||||||||||
Sprint | |||||||||||||||
Sprint Status | |||||||||||||||
Summary | 0006453: VnlFFTRealToComplexConjugateImageFilter result is wrong | ||||||||||||||
Description | Computation of N-d fft with VnlFFTRealToComplexConjugateImageFilter returns invalid result if N>1. There are two issues. First VnlFFTRealToComplexConjugateImageFilter computes the conjugate of the transform (i.e. the "backward" transform). Second vnl_fft_base expects the array dimensions with the fastest varying dimension last: if an image is nx x ny x nz then the dimensions given to vnl_fft_base (through its variable member vnl_fft_prime_factors<T> factors_[D]) should be [nz,ny,nx]. At the present time dimensions are given with the fastest varying dimension first, which is incorrect. | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | I included a small test case (itk_fft.cpp) which computes the 2d fft of the image: 0 1 4 9 16 25 36 49 64 81 100 121 144 169 196 The correct result (computed with matlab) is: (1015.00,0.00) (-102.50,64.95) (-102.50,-64.95) (-187.13,526.47) (4.62,-43.96) (40.38,-17.98) (-307.87,124.28) (18.28,-20.30) (26.72,5.68) (-307.87,-124.28) (26.72,-5.68) (18.28,20.30) (-187.13,-526.47) (40.38,17.98) (4.62,43.96) Instead the test case returns: (1015,0) (-90.7918,-154.843) (-104.208,-36.5535) (-104.208,36.5535) (-90.7918,154.843) (-462.5,-411.362) (7.70046,73.265) (30.4653,33.8351) (44.5347,9.46615) (67.2995,-29.9637) (-462.5,411.362) (67.2995,29.9637) (44.5347,-9.46615) (30.4653,-33.8351) (7.70046,-73.265) | ||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | ![]() https://public.kitware.com/Bug/file/1330/itk_fft.cpp ![]() https://public.kitware.com/Bug/file/1331/itk_fft.patch | ||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2008-02-27 09:36 | Nicolas Savoire | New Issue | |||||||||||||
2008-02-27 09:36 | Nicolas Savoire | File Added: itk_fft.cpp | |||||||||||||
2008-02-27 09:46 | Nicolas Savoire | Note Added: 0010654 | |||||||||||||
2008-02-27 09:46 | Nicolas Savoire | File Added: itk_fft.patch | |||||||||||||
2008-02-27 09:47 | Nicolas Savoire | Note Edited: 0010654 | |||||||||||||
2008-05-13 04:47 | Tom Vercauteren | Relationship added | related to 0002161 | ||||||||||||
2008-05-20 12:13 | kentwilliams | Note Added: 0012028 | |||||||||||||
2008-05-22 05:15 | Tom Vercauteren | Note Added: 0012065 | |||||||||||||
2008-05-22 11:31 | Tom Vercauteren | Note Added: 0012070 | |||||||||||||
2008-05-22 11:31 | Tom Vercauteren | Assigned To | => Tom Vercauteren | ||||||||||||
2008-05-22 11:31 | Tom Vercauteren | Status | new => feedback | ||||||||||||
2008-05-22 11:47 | Tom Vercauteren | Relationship added | has duplicate 0003677 | ||||||||||||
2008-05-22 11:53 | kentwilliams | Note Added: 0012071 | |||||||||||||
2008-06-02 13:55 | Tom Vercauteren | Note Added: 0012185 | |||||||||||||
2008-06-03 04:41 | Tom Vercauteren | Status | feedback => resolved | ||||||||||||
2008-06-03 04:41 | Tom Vercauteren | Resolution | open => fixed | ||||||||||||
2008-06-04 07:58 | Tom Vercauteren | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|