Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

Scale factor point spread function matching: Beyond aliasing in image resampling

Scale factor point spread function matching: Beyond aliasing in image resampling Scale factor point spread function matching: beyond aliasing in image resampling 1;2 1;2 1 M. Jorge Cardoso , Marc Modat , Tom Vercauteren , and 1;2 Sebastien Ourselin Translational Imaging Group, CMIC, University College London, UK Dementia Research Centre (DRC), University College London, UK Abstract. Imaging devices exploit the Nyquist-Shannon sampling the- orem to avoid both aliasing and redundant oversampling by design. Con- versely, in medical image resampling, images are considered as contin- uous functions, are warped by a spatial transformation, and are then sampled on a regular grid. In most cases, the spatial warping changes the frequency characteristics of the continuous function and no special care is taken to ensure that the resampling grid respects the conditions of the sampling theorem. This paper shows that this oversight introduces artefacts, including aliasing, that can lead to important bias in clinical applications. One notable exception to this common practice is when multi-resolution pyramids are constructed, with low-pass "anti-aliasing" filters being applied prior to downsampling. In this work, we illustrate why similar caution is needed when resampling images under general spa- tial transformations and propose a novel method that is more respectful of the sampling theorem, minimising aliasing and loss of information. We introduce the notion of scale factor point spread function (sfPSF) and employ Gaussian kernels to achieve a computationally tractable resam- pling scheme that can cope with arbitrary non-linear spatial transfor- mations and grid sizes. Experiments demonstrate significant (p < 10 ) technical and clinical implications of the proposed method. 1 Introduction Image resampling is ubiquitous in medical imaging. Any processing pipeline that requires coordinate mapping, correction for imaging distortions, or sim- ply altering the resolution of an image, needs a representation of the image outside of the digital sampling grid provided by the initial image. The theoreti- cal foundations from the Nyquist-Shannon sampling theorem provide conditions under which perfect continuous reconstruction can be achieved from regularly spaced samples. This theoretical model thus provides a means of interpolating between the discrete samples and underpins the typical resampling procedure used in medical imaging. Many interpolating methods, ranging from low order, e.g. piecewise constant and linear interpolation, to high order, e.g. polynomial, piecewise-polynomial (spline) and windowed sinc (Lanczos) methods have thus been developed , with different methods being optimal for specific types of signal. arXiv:2101.06440v1 [eess.IV] 16 Jan 2021 2 M.J. Cardoso et al. Resampling typically relies on one such interpolation method to represent, on a given (discrete) target sampling grid, a continuous image derived from the input source image. In most cases, the (discrete) resampled image is simply assumed to be a faithful representation of the continuous derived image, with no special care taken to ensure the sampling theorem conditions. Within the context of medical imaging, Meijering et al. [1] compared multiple resampling kernels, concluding that the quality of the resampling was proportional to the degree of the kernel, with linear, cubic and Lanczos resampling kernels being the best with st nd rd a 1 , 2 and 3 order neighbourhood respectively. This comparison was done with grid aligned data under translation, thus respecting the Nyquist criterion, meaning that their conclusions cannot be extrapolated to general resampling. Resampling is known to introduce artefacts in medical imaging. One common example arises within the context of image registration [2,3] where a source im- age is typically resampled to the sampling grid of a target image and a similarity function is used to compare the images based on the discrete samples at the tar- get grid location only, thereby discarding the continuous image representation. For example, Pluim et al. [2] ameliorated the problem by using partial volume (PV) sampling, and more recently Aganj et al. [3] replaced the cost function sum- mation term with an approximate integral. Another main source of artefacts is the fact that aliasing is introduced when resampling an image to lower resolution. While, in multi-resolution pyramids [4], aliasing is well addressed by applying a Gaussian filter prior to downsampling, the problem in the general resampling case has surprisingly received little attention in the medical imaging community. Unser et al. [5] propose a least-squares spline-based formulation that achieves aliasing-free resampling for affine transformations, but to the best of our knowl- edge no general solution has been proposed for local transformations. Inverse approximation-based resampling has also been proposed [6], but this technique cannot easily take into account the local anisotropy of the transformations and has the drawback of requiring the inverse transformation. In this paper, we propose to address aliasing artefacts in the general context of resampling with non-linear spatial transformations by associating a scale factor point spread function (sfPSF) to the images and formulating the resampling process as an sfPSF matching problem. In the case of an original image from a known imaging device, the sfPSF is simply the PSF of the device. Our approach models local sfPSF transformations as a result of coordinate mapping, providing a unified and scale-aware way to resample images between grids of arbitrary sizes, under arbitrary spatial transformations. 2 Methods and Methodological considerations Nominal scale factor Point Spread Function (sfPSF). Observed samples (pixels/voxels) in medical images are not direct Dirac impulse measurements of a biological scene, but are typically samples from the convolution of the unob- servable biological scene with an observation kernel, i.e. they have an associated point spread function (PSF). This PSF is commonly a property of the acquisi- Scale factor PSF matching: beyond aliasing in image resampling 3 tion or reconstruction system. For example, 3D MRI images have approximately Gaussian PSFs due to several factors, including the low-pass filters in the re- ceiver coils, while CT and PET images have spatially variant PSFs dependent on many parameters including the image reconstruction algorithm. In this work, we propose to associate a PSF to each image, whether it di- rectly arises from an imaging device or is the result of further transformation or processing, and refer to this as the scale factor PSF (sfPSF) by analogy with the scale factor used in scale space theory [4]. In the case where the image di- rectly arises from an imaging device with known PSF, the sfPSF is simply taken as the closest Gaussian approximation. When the actual PSF associated with a given image is unkown, without loss of generality the nominal sfPSF is as- sumed to be a Gaussian G , where the covariance matrix  is diagonal and the full-width-half-maximum (FWHM) of the Gaussian PSF is matched to the voxel 2 2 2 2 size D = fD ; D ; D g:  = (2 2 log 2) diag(D ; D ; D ). The relevance of x y z x y z the sfPSF will become clear in the following section. Intuitively, when an image with an associated sfPSF is smoothed, the resulting smoothed image will have larger sfPSF. Conversely, when an image is upsampled, the resulting image will be associated with the same sfPSF as the source image (in world coordinates). Compensating for aliasing when downsampling. In medical images, fre- quencies commonly approach the Nyquist limit of their representation (e.g. full k-space sampling in MRI). If one affinely transforms an image onto its own grid with an affine transformation which has a determinant greater than 1, i.e. spa- tially compressing the samples, or transforms an image into a lower resolution grid, then the Nyquist criterion is not satisfied with typical interpolation. This sub-Nyquist sampling introduces frequency aliasing and loss of information. In scale-space and pyramidal approaches, when downsampling an image by a factor of k = 2, the original image is typically pre-convolved with a Gaus- sian filter with variance  = 0:7355. Applying the notion of sfPSF and the notations introduced above, we specify G and G as the source image and S T target grid nominal sfPSFs respectively. Following the scale space methodology [4], sfPSF matching consists of finding the best scale-matching PSF G that, High Res Resampling Resampled to Resampled to Low Resolution Grid ~ ! Image Grid High Res Grid Linear Sinc Gaussian sfPSF ~ ! Fig. 1. Left to right: a high resolution (HR) image (63x63 voxels at 1x1mm voxel size) with a square on a high frequency pattern; the resampling grid (transformation); the HR image resampled to the original HR grid and to a lower resolution (21x21 voxels at 3x3mm voxel size) grid using linear, sinc and a Gaussian sfPSF (proposed) interpolation. Note the aliasing in the linear/sinc examples. 4 M.J. Cardoso et al. when combined with the source sfPSF, provides the best approximation of the target sfPSF. If the sfPSFs are Gaussian, then the covariance of G can be obtained through simple covariance addition  =  +  . In the downsam- T S P pling example above, without additional knowledge, we have FWHM = k = 2 2 2 2 and FWHM = 1. We therefore get  =   = (k 1 )(2 2 log 2) Id S P T S or, in this case,  = 0:7355. This is equivalent to finding the best Fourier domain filter that limits the bandwidth of the source image frequencies to the representable Nyquist frequencies on the target grid. Similar filtering would be necessary to avoid aliasing when rigidly resampling high resolution images to a lower resolution, e.g. high resolution anatomical MRI and CT images or binary segmentations are transformed to lower resolution MRI (2D FLAIR), metabolic (PET), microstructural (DWI) and functional (fMRI) images. In this work we propose to compensate for the differences in sfPSF when resampling to arbitrary grid sizes under global (affine) or local (non-linear) spatial transformations. Before presenting our methodological contribution in detail, we illustrate the sfPSF performance in comparison with standard interpolation on a syn- thetic phantom (Fig. 1) with a low frequency object (square) overlaid on a high-frequency pattern (to highlight aliasing). This phantom is resampled to a grid with 3 times less resolution per axis. Note that the proposed sfPSF method appropriately integrates out high frequencies without introducing aliasing. Pre-convolution sfPSF matching. In the affine transformation A scenario from the space of T to S, the source image can be pre-convolved with an anti- S | aliasing filter with covariance  +  = A  A and then resampled using S T classical interpolation. Note that  is now defined in the space of S. In the general non-linear spatial transformation case, a similar but spatially- variant pre-filtering procedure could be applied by relying on a local affine ap- proximation of the spatial transformation, i.e. using the jacobian matrix. This solution might provide useful results but because the sfPSF matching, or smooth- ing, is performed before the spatial transformation, and the sfPSF potentially has a large spatial extent, it can be seen as disregarding the non-homogeneous distribution of the samples in target space T . Instead, we propose to model and perform the sfPSF matching in the space of T and thus rely on  . Target space sfPSF matching. Let F (v) be a spatial transformation S T mapping the location v = (v ; v ; v ) from the space of T to that of S, given x y z either an affine or non-linear transformation. Let A (v) be the jacobian ma- S T trix of F at v which provides the best linear approximation of F at v. Following our previous derivations we have  (v)+  A (v) A (v). Thus, S S T T P S T S T T given  (v) = A (v)  (v)A (v) we now want  (v) +A (v) S T P P S T P S T A (v)   . In other words, we want to find a symmetric positive semi- S T S T definite covariance  (v) that, when combined with the affinely transformed T 1 covariance  (v) = A (v)    A (v), best approximates  . Under S T S S T S T the typical assumption that the nominal sfPSF  is diagonal, this approxi- ~T mation is given by  (v) = max( (v); 0) with (v) being a diagonal P Scale factor PSF matching: beyond aliasing in image resampling 5 scaling matrix containing the components of  (v) obtained through polar de- composition and max(;) is the element-wise maximum operator between two matrices. It is important to note that under regimes where the Nyquist limit is not violated, e.g. upsampling and rigid transformation between isotropic grids, the proposed method reverts to standard resampling as the sfPSF would become a Dirac. Interpolation by convolution with the sfPSF. Let I (v) be the sought resampled intensity in the space of T at location v, and I (v) be the intensity of the source image. The interpolated and PSF matched value of I at location (v) can be obtained by an oversampled discretised convolution N (v) N (v) y N (v) x z X X X I (v) = I (F (v v))G (v) (1) T S S T ~ (v) v v v x y z 3 1 1 0 ~ 1 v ( (v)) v 2 2 2 P where G (v) = (2) j (v)j e , Z is a normaliser that ~T P (v) ensures the (discrete) sum over G (v) equals 1. N (v), N (v) and N (v) are ~T x y z (v) sampling regions centered at v in the x, y and z directions respectively. More specifically, N (v) are homogeneously spaced samples between -3 and 3 standard xx 2 T deviations, i.e. N (v) = fk (v) 8k 2 [3; 3]g, with  (v) =  (v), and x P x P P equivalently for N (v), N (v),  (v) and  (v). As S is a discrete image, y z P P y z an appropriate interpolation method, such as linear, cubic or sinc interpolation is used to get the sample values at F (v v). Similarly, interpolation is S T required to compute F (v v) if the spatial transformation is represented S T as a displacement field. Note also that when  (resp.  or  ) becomes 0 P P P x y z or very small, care has to be taken to appropriately compute the limit of the Gaussian weight by resorting to an axis aligned Dirac function. Limitations of Sinc interpolation by convolution. Under the sampling theorem, replacing the Gaussian in Eq.1 with Sinc should produce the theoreti- cally best alias-free results. Knowing that this work focuses on obtaining realistic PSF’s rather than the least aliased one, we note 3 problems with Sinc resam- pling that are addressed with the proposed method: First, Sinc is only optimal if the discretised sampling scheme of Eq.1 is replaced with an integral. Second, sincs are optimal from a bandlimit point of view, but are poor approximations of real PSFs, e.g. PET images have aproximate Gaussian PSF larger than the voxel size. Finally, sincs cannot be used for signal-limited images (probabilistic segmentations bounded from 0 to 1), as it would produce negative probabilities. Conversely, Gaussians do not have this problem. 3 Validation and Discussion Data. 30 healthy control subjects were obtained from the ADNI2 database. All subjects had an associated T1-weighted MRI image, acquired at 1.111mm 6 M.J. Cardoso et al. voxel size, and a F-FDG PET image, reconstructed at 333mm. For this se- lected subset of ADNI2, all data (MRI and PET) were acquired on the same scan- ner with the same scanning parameters, thus removing acquisition confounds. While the effective PSF of PET images can be between 3 and 6mm FWHM, in these experiments we will assume a PSF with 3mm FWHM. Frequency domain analysis under non-linear transformation. Frequency domain analysis was used to assess whether resampling images under non-linear transformation respects the Nyquist limit and to test whether the proposed method can mitigate any error. The 30 T1 MRIs were zero padded by a factor of 2 in the frequency domain (0.550.50.5mm voxel size), doubling the rep- resentable frequencies. Fig. 2 shows two upsampled images and their frequency magnitude. Note the empty power spectrum outside the Nyquist band (white box). 29 upsampled T1 images were affinely [7] and then non-rigidly [8] regis- tered to the remaining image using standard algorithms. Each upsampled image was resampled to the space of the remaining image using both a three-lobed truncated sinc resampling, and the proposed Gaussian sfPSF method (see Fig. 2). The Gaussian sfPSF was set to 1.111mm FWHM for both  and  . S T Note that, as expected, supra-Nyquist frequencies are created when using sinc interpolation. These frequencies are greatly suppressed when using the proposed method. Analysis of the power spectra of the 29 resampled images showed an av- erage power suppression of 94.4% for frequencies above the Nyquist band when using the Gaussian PSF instead of sinc interpolation. This power suppression results in an equivalent reduction of aliasing at the original resolution. Volume preservation and partial volume under rigid resampling. To demonstrate clinically relevant consequences of aliasing, we tested the effect of resampling within the context of segmentation propagation and partial volume estimation. Specifically, T1 images are segmented into 98 different regions using Fig. 2. Left to right: (Top) upsampled source S and target T images followed by S non-linearly resampled to T using sinc and Gaussian sfPSF; (Bottom) their respective frequency domain log magnitude. The white box represents the Nyquist limit before zero-padding. Note the high supra-Nyquist magnitude after sinc resampling. Scale factor PSF matching: beyond aliasing in image resampling 7 High Res Vol=14.54ml Linear Vol=14.39ml Gaussian sfPSF Vol=14.53ml Fig. 3. Left to right: A segmented region overlaid on a high resolution T1 (1.11 1mm) image (and zoomed), followed by the same segmentation resampled to the res- olution of a PET image (333mm) using linear and the proposed Gaussian sfPSF. The zoomed segmentations are in gray scale between 0 and 1. Given that the cor- tex is commonly thinner than 3mm, note the unrealistic large amount of voxels with segmentation probability equal to 1 at PET resolution when using linear resampling. multi-atlas label propagation and fusion [9] based on the Neuromorphometrics, Inc. labels. The T1 images were then rigidly registered [7] to the PET data, and each one of the segmented regions was resampled to the PET data using both linear interpolation and the Gaussian sfPDF. Linear was chosen here due to the signal-limited [0; 1] nature of probabilities. Example results are shown in Fig. 3. As all the segmentations are probabilistic, volume was estimated as the sum of all probabilities for all voxels v times the voxel size V. The volume was estimated in the original T1 space (V ), and in the PET space after linear (V ) and HR TRI the Gaussian sfPSF (V ) resampling. Similar volumes were obtained when sfPSF the probabilistic segmentations were thresholded at 0.5. The relative volume dif- ference RVD= (V V )=V and its absolute value, ARVD = jRVDj, sfPSF HR HR were estimated for each of the 30 subjects, 98 cortical regions and 2 resampling methods. The RVD and ARVD were averaged over all subjects for each region, resulting in 98 mean RVD and ARVD values per region, per method. These val- ues are plotted in Fig. 4. A Parzen window mean and STD are also plotted in the same figure. Both resampling methods are unbiased according to the mean RVD. However, the Gaussian sfPSF method provides significantly lower (p < 10 - Wilcoxon signed-rank test) errors in terms of mean ARVD for all regions, espe- cially in smaller regions where linear resampling can introduce up to 8% mean absolute volume difference. An 8% mean difference implies even larger local er- Gaussian PSF Gaussian PSF 1.5 Linear Linear 1 6 0.5 -0.5 3 -1 2 -1.5 -2 0 0 2000 4000 6000 8000 10000 12000 14000 16000 0 2000 4000 6000 8000 10000 12000 14000 16000 3 3 Structure Volume (mm ) Structure Volume (mm ) Fig. 4. The mean RVD (Left) and mean ARVD (Right) between a low and high reso- lution representation of a segmented region averaged over the population. 100 different regions are plotted against the mean volume of the region V over the population. HR Mean Relative Volume Difference (%) Mean Absolute Relative Volume Difference (%) 8 M.J. Cardoso et al. rors, resulting in detrimental effects in partial volume/ compartment modelling, and when estimating biomarkers that rely on structural segmentations. 4 Conclusion The presented work explores aliasing in medical image resampling and proposes a new interpolation technique that matches the scale factor PSF given arbitrary grid sizes and non-linear transformations. We demonstrate the advantages of using Gaussian sfPSF resampling, both in terms of Nyquist limit and volume preservation, when compared with common resampling techniques. Future work will involve deploying the proposed methodology within image registration algo- rithms and verifying the impact of the sfPSF in partial volume and compartment modelling. An implementation will be made available at the time of publication. Acknowledgements. This work was supported by the EPSRC (EP/H046410/1, EP/J020990/1, EP/K005278), the MRC (MR/J01107X/1), the EU-FP7 (FP7- ICT-2011-9-601055), the NIHR BRC UCLH/UCL HII (BW.mn.BRC10269), and the UCL Leonard Wolfson Experimental Neurology Centre (PR/ylr/18575). References 1. Meijering, E.H.W., Niessen, W.J., Pluim, J.P.W., Viergever, M.A.: Quantitative comparison of sinc-approximating kernels for medical image interpolation. In: Proc. MICCAI’99. Springer Berlin Heidelberg (1999) 210–217 2. Pluim, J.P., Maintz, J.B.A., Viergever, M.A.: Mutual information matching and interpolation artifacts. In: SPIE Medical Imaging. Volume 3661., SPIE Press (May 1999) 56–65 3. Aganj, I., Yeo, B.T.T., Sabuncu, M.R., Fischl, B.: On removing interpolation and resampling artifacts in rigid image registration. IEEE Trans. Image Process. 22(2) (February 2013) 816–827 4. Lindeberg, T.: Scale-space for discrete signals. IEEE Trans. Pattern Anal. Mach. Intell. 12(3) (1990) 234–254 5. Unser, M., Neimark, M., Lee, C.: Affine transformations of images: a least squares formulation. In: Proc. ICIP’94. Volume 3. (1994) 558–561 6. Arigovindan, M., Sühling, M., Hunziker, P., Unser, M.: Variational image recon- struction from arbitrarily spaced samples: A fast multiresolution spline solution. IEEE Trans. Image Process. 14(4) (2005) 450–460 7. Modat, M., Cash, D.M., Daga, P., Winston, G.P., Duncan, J.S., Ourselin, S.: Global image registration using a symmetric block-matching approach. Journal of Medical Imaging 1(2) (July 2014) 024003–024003 8. Modat, M., Ridgway, G.R., Taylor, Z.A., Lehmann, M., Barnes, J., Hawkes, D.J., Fox, N.C., Ourselin, S.: Fast free-form deformation using graphics processing units. Computer Methods and Programs in Biomedicine 98(3) (June 2010) 278–284 9. Cardoso, M., Modat, M., Wolz, R., Melbourne, A., Cash, D., Rueckert, D., Ourselin, S.: Geodesic information flows: Spatially-variant graphs and their ap- plication to segmentation and fusion. IEEE TMI (in press) (2015) Scale factor PSF matching: beyond aliasing in image resampling 9 10. Higham, N.J.: Computing a nearest symmetric positive semidefinite matrix. Linear Algebra Appl. 103 (1988) 103–118 11. Schröcker, H.P.: Uniqueness results for minimal enclosing ellipsoids. Comput. Aided Geom. Des. 25(9) (2008) 756–762 10 M.J. Cardoso et al. Draft Appendix Let S and T be 2 symmetric positive definite (SPD) matrices representing covari- ance matrices. We are looking for the smallest symmetric positive semi-definite (SPSD) matrix P such that S + P is larger than T . Some useful tools and properties A matrix X is SPSD if 8v; v  X  v  0 (2) We then write X  0 (3) Furthermore, we write X  Y iff X Y  0. A matrix X is SPD if 8v 6= 0; v  X  v > 0 (4) We then write X  0 (5) We also write X  Y iff X Y  0 If Z is invertible, then Z  X  Z  0 (resp.  0) iff X  0 (resp.  0). The spectral decomposition of a SPSD matrix is given by X = Z(X) (X) Z(X) (6) where Z(X)  Z(X) = Id and (X) = diag( (X)). Note that for any matrix Y , det(Z(X) Y  Z(X) ) = det(Y ) (7) Smallest SPSD matrix increment A matrix norm minimization view. We are looking for an SPSD matrix P such that S +P is close to T . In other words, we want P to be close to TS. We rephrase this more formally as minimizing the Frobenius norm k(S + P ) Tk = kP (T S)k subject to the condition P  0. Following [10], the solution to this problem is given by: P = Z(T S) max((T S); 0) Z(T S) (8) While this provides a nice closed-form solution. It is unclear whether the Frobe- nius norm really captures the discrepancy in term of covariance matrix. This solution still has interesting properties. We indeed have S + P  S and S + P  T . Indeed, from (8), we easily see that P (T S)  0 Scale factor PSF matching: beyond aliasing in image resampling 11 A geometric view. We are looking for an SPSD matrix P that minimizes the volume of S + P (i.e. det(S + P )) under the constraints that P  0, S + P  S (which is trivially obtained from P  0) and S + P  T . Let us first generalize the problem. We now simply look for an SPD matrix Q that minimizes det(Q) subject to the conditions Q  S and Q  T . Let us consider the spectral decomposition of S and use the corresponding spectral coordinate system: 0 | X = Z(S)  X  Z(S) (9) 0 0 Note that we have S = (S). Our problem is equivalent to minimizing det(Q ) = 0 0 0 0 det(Q) subject to the conditions Q  S = (S) and Q  T . Fig. 5. Covariances in coordinate system of S. Let us now rescale the space with a volume-preserving transformation to turn (S) into a scalar matrix. Let 1=2 1=(2Dim) (S) = det(S)  diag( (S)) (10) where Dim is the dimension of the space and det( (S)) = 1. Let 00 0 | X =  (S) X   (S) =  (S) Z(X)  X  Z(X)  (S) (11) N N N N 00 1=Dim Note that we have S = det(S) Id. Our problem become equivalent to 00 00 00 that of minimizing det(Q ) = det(Q) subject to the constraints Q  S = 1=Dim 00 00 det(S) Id and Q  T . Let us now consider the spectral decomposition of T and use the corre- sponding spectral coordinate system: 000 00 | 00 00 X = Z(T )  X  Z(T ) (12) 000 00 Note that we have T = (T ). Our problem become equivalent to that of mini- 000 000 000 1=Dim mizing det(Q ) = det(Q) subject to the constraints Q  S = det(S) Id 000 000 00 1=Dim 00 and Q  T = (T ). Note that both det(S) Id and (T ) are axis- aligned, i.e. diagonal. For symmetry-reasons, and because of the uniqueness of the solution [11], it 000 000 has to also be axis-aligned, i.e. diagonal: Q = diag( (Q )). We find that our i 12 M.J. Cardoso et al. Fig. 6. Volume-preserving rescaling to make S isotropic. Fig. 7. Rotation to make both covariances axis-aligned. 000 000 problem is now equivalent to minimizing det(Q ) =  (Q ) subject to the 000 1=Dim 000 00 conditions  (Q )  det(S) and  (Q )   (T ). The solution to this i i i problem is obtained by taking: 000 1=Dim 00 (Q ) = max(det(S) ;  (T )) (13) i i Fig. 8. Best covariance in this space? Scale factor PSF matching: beyond aliasing in image resampling 13 Now we need to roll back the transformations and get 1 00 Q = Z(S)  (S) Z(T ) 1=Dim 00 00 | 1 | max(det(S) Id; (T )) Z(T )   (S) Z(S) (14) Equivalently, focusing on T first, we get: 1 00 Q = Z(T )  (T ) Z(S ) 1=Dim 00 00 | 1 | max(det(T ) Id; (S )) Z(S )   (T ) Z(T ) (15) Axis-aligned T . If T is axis aligned, (15) simplifies to: 1=2 000 000 000 | 1=2 Q = T  Z(S ) max(Id; (S )) Z(S )  T (16) with 000 1=2 1=2 S = T  S  T (17) Relating the matrix norm and the geometric views. At this stage it’s unclear how (8) and (14) relate to each other. Numerical simulations shows a difference but the results are quite close to each other. Figure 9 shows an example with a rather large difference. The geometric method indeed leads to smaller volume but this comes at the cost of increasing the anisotropy. The matrix norm method produces more intuitive results. Some interesting references include [10,11] and http://mathoverflow.net/questions/120925. 14 M.J. Cardoso et al. S+P det=0.49792 Q det=0.42077 Q-S 0.5 -0.5 -1 -1.5 -1 -0.5 0 0.5 1 1.5 Fig. 9. Summary of all ellipses http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png Computing Research Repository arXiv (Cornell University)

Scale factor point spread function matching: Beyond aliasing in image resampling

Loading next page...
 
/lp/arxiv-cornell-university/scale-factor-point-spread-function-matching-beyond-aliasing-in-image-bC2qfqaVPv

References

References for this paper are not available at this time. We will be adding them shortly, thank you for your patience.

ISSN
0302-9743
eISSN
ARCH-3344
DOI
10.1007/978-3-319-24571-3_81
Publisher site
See Article on Publisher Site

Abstract

Scale factor point spread function matching: beyond aliasing in image resampling 1;2 1;2 1 M. Jorge Cardoso , Marc Modat , Tom Vercauteren , and 1;2 Sebastien Ourselin Translational Imaging Group, CMIC, University College London, UK Dementia Research Centre (DRC), University College London, UK Abstract. Imaging devices exploit the Nyquist-Shannon sampling the- orem to avoid both aliasing and redundant oversampling by design. Con- versely, in medical image resampling, images are considered as contin- uous functions, are warped by a spatial transformation, and are then sampled on a regular grid. In most cases, the spatial warping changes the frequency characteristics of the continuous function and no special care is taken to ensure that the resampling grid respects the conditions of the sampling theorem. This paper shows that this oversight introduces artefacts, including aliasing, that can lead to important bias in clinical applications. One notable exception to this common practice is when multi-resolution pyramids are constructed, with low-pass "anti-aliasing" filters being applied prior to downsampling. In this work, we illustrate why similar caution is needed when resampling images under general spa- tial transformations and propose a novel method that is more respectful of the sampling theorem, minimising aliasing and loss of information. We introduce the notion of scale factor point spread function (sfPSF) and employ Gaussian kernels to achieve a computationally tractable resam- pling scheme that can cope with arbitrary non-linear spatial transfor- mations and grid sizes. Experiments demonstrate significant (p < 10 ) technical and clinical implications of the proposed method. 1 Introduction Image resampling is ubiquitous in medical imaging. Any processing pipeline that requires coordinate mapping, correction for imaging distortions, or sim- ply altering the resolution of an image, needs a representation of the image outside of the digital sampling grid provided by the initial image. The theoreti- cal foundations from the Nyquist-Shannon sampling theorem provide conditions under which perfect continuous reconstruction can be achieved from regularly spaced samples. This theoretical model thus provides a means of interpolating between the discrete samples and underpins the typical resampling procedure used in medical imaging. Many interpolating methods, ranging from low order, e.g. piecewise constant and linear interpolation, to high order, e.g. polynomial, piecewise-polynomial (spline) and windowed sinc (Lanczos) methods have thus been developed , with different methods being optimal for specific types of signal. arXiv:2101.06440v1 [eess.IV] 16 Jan 2021 2 M.J. Cardoso et al. Resampling typically relies on one such interpolation method to represent, on a given (discrete) target sampling grid, a continuous image derived from the input source image. In most cases, the (discrete) resampled image is simply assumed to be a faithful representation of the continuous derived image, with no special care taken to ensure the sampling theorem conditions. Within the context of medical imaging, Meijering et al. [1] compared multiple resampling kernels, concluding that the quality of the resampling was proportional to the degree of the kernel, with linear, cubic and Lanczos resampling kernels being the best with st nd rd a 1 , 2 and 3 order neighbourhood respectively. This comparison was done with grid aligned data under translation, thus respecting the Nyquist criterion, meaning that their conclusions cannot be extrapolated to general resampling. Resampling is known to introduce artefacts in medical imaging. One common example arises within the context of image registration [2,3] where a source im- age is typically resampled to the sampling grid of a target image and a similarity function is used to compare the images based on the discrete samples at the tar- get grid location only, thereby discarding the continuous image representation. For example, Pluim et al. [2] ameliorated the problem by using partial volume (PV) sampling, and more recently Aganj et al. [3] replaced the cost function sum- mation term with an approximate integral. Another main source of artefacts is the fact that aliasing is introduced when resampling an image to lower resolution. While, in multi-resolution pyramids [4], aliasing is well addressed by applying a Gaussian filter prior to downsampling, the problem in the general resampling case has surprisingly received little attention in the medical imaging community. Unser et al. [5] propose a least-squares spline-based formulation that achieves aliasing-free resampling for affine transformations, but to the best of our knowl- edge no general solution has been proposed for local transformations. Inverse approximation-based resampling has also been proposed [6], but this technique cannot easily take into account the local anisotropy of the transformations and has the drawback of requiring the inverse transformation. In this paper, we propose to address aliasing artefacts in the general context of resampling with non-linear spatial transformations by associating a scale factor point spread function (sfPSF) to the images and formulating the resampling process as an sfPSF matching problem. In the case of an original image from a known imaging device, the sfPSF is simply the PSF of the device. Our approach models local sfPSF transformations as a result of coordinate mapping, providing a unified and scale-aware way to resample images between grids of arbitrary sizes, under arbitrary spatial transformations. 2 Methods and Methodological considerations Nominal scale factor Point Spread Function (sfPSF). Observed samples (pixels/voxels) in medical images are not direct Dirac impulse measurements of a biological scene, but are typically samples from the convolution of the unob- servable biological scene with an observation kernel, i.e. they have an associated point spread function (PSF). This PSF is commonly a property of the acquisi- Scale factor PSF matching: beyond aliasing in image resampling 3 tion or reconstruction system. For example, 3D MRI images have approximately Gaussian PSFs due to several factors, including the low-pass filters in the re- ceiver coils, while CT and PET images have spatially variant PSFs dependent on many parameters including the image reconstruction algorithm. In this work, we propose to associate a PSF to each image, whether it di- rectly arises from an imaging device or is the result of further transformation or processing, and refer to this as the scale factor PSF (sfPSF) by analogy with the scale factor used in scale space theory [4]. In the case where the image di- rectly arises from an imaging device with known PSF, the sfPSF is simply taken as the closest Gaussian approximation. When the actual PSF associated with a given image is unkown, without loss of generality the nominal sfPSF is as- sumed to be a Gaussian G , where the covariance matrix  is diagonal and the full-width-half-maximum (FWHM) of the Gaussian PSF is matched to the voxel 2 2 2 2 size D = fD ; D ; D g:  = (2 2 log 2) diag(D ; D ; D ). The relevance of x y z x y z the sfPSF will become clear in the following section. Intuitively, when an image with an associated sfPSF is smoothed, the resulting smoothed image will have larger sfPSF. Conversely, when an image is upsampled, the resulting image will be associated with the same sfPSF as the source image (in world coordinates). Compensating for aliasing when downsampling. In medical images, fre- quencies commonly approach the Nyquist limit of their representation (e.g. full k-space sampling in MRI). If one affinely transforms an image onto its own grid with an affine transformation which has a determinant greater than 1, i.e. spa- tially compressing the samples, or transforms an image into a lower resolution grid, then the Nyquist criterion is not satisfied with typical interpolation. This sub-Nyquist sampling introduces frequency aliasing and loss of information. In scale-space and pyramidal approaches, when downsampling an image by a factor of k = 2, the original image is typically pre-convolved with a Gaus- sian filter with variance  = 0:7355. Applying the notion of sfPSF and the notations introduced above, we specify G and G as the source image and S T target grid nominal sfPSFs respectively. Following the scale space methodology [4], sfPSF matching consists of finding the best scale-matching PSF G that, High Res Resampling Resampled to Resampled to Low Resolution Grid ~ ! Image Grid High Res Grid Linear Sinc Gaussian sfPSF ~ ! Fig. 1. Left to right: a high resolution (HR) image (63x63 voxels at 1x1mm voxel size) with a square on a high frequency pattern; the resampling grid (transformation); the HR image resampled to the original HR grid and to a lower resolution (21x21 voxels at 3x3mm voxel size) grid using linear, sinc and a Gaussian sfPSF (proposed) interpolation. Note the aliasing in the linear/sinc examples. 4 M.J. Cardoso et al. when combined with the source sfPSF, provides the best approximation of the target sfPSF. If the sfPSFs are Gaussian, then the covariance of G can be obtained through simple covariance addition  =  +  . In the downsam- T S P pling example above, without additional knowledge, we have FWHM = k = 2 2 2 2 and FWHM = 1. We therefore get  =   = (k 1 )(2 2 log 2) Id S P T S or, in this case,  = 0:7355. This is equivalent to finding the best Fourier domain filter that limits the bandwidth of the source image frequencies to the representable Nyquist frequencies on the target grid. Similar filtering would be necessary to avoid aliasing when rigidly resampling high resolution images to a lower resolution, e.g. high resolution anatomical MRI and CT images or binary segmentations are transformed to lower resolution MRI (2D FLAIR), metabolic (PET), microstructural (DWI) and functional (fMRI) images. In this work we propose to compensate for the differences in sfPSF when resampling to arbitrary grid sizes under global (affine) or local (non-linear) spatial transformations. Before presenting our methodological contribution in detail, we illustrate the sfPSF performance in comparison with standard interpolation on a syn- thetic phantom (Fig. 1) with a low frequency object (square) overlaid on a high-frequency pattern (to highlight aliasing). This phantom is resampled to a grid with 3 times less resolution per axis. Note that the proposed sfPSF method appropriately integrates out high frequencies without introducing aliasing. Pre-convolution sfPSF matching. In the affine transformation A scenario from the space of T to S, the source image can be pre-convolved with an anti- S | aliasing filter with covariance  +  = A  A and then resampled using S T classical interpolation. Note that  is now defined in the space of S. In the general non-linear spatial transformation case, a similar but spatially- variant pre-filtering procedure could be applied by relying on a local affine ap- proximation of the spatial transformation, i.e. using the jacobian matrix. This solution might provide useful results but because the sfPSF matching, or smooth- ing, is performed before the spatial transformation, and the sfPSF potentially has a large spatial extent, it can be seen as disregarding the non-homogeneous distribution of the samples in target space T . Instead, we propose to model and perform the sfPSF matching in the space of T and thus rely on  . Target space sfPSF matching. Let F (v) be a spatial transformation S T mapping the location v = (v ; v ; v ) from the space of T to that of S, given x y z either an affine or non-linear transformation. Let A (v) be the jacobian ma- S T trix of F at v which provides the best linear approximation of F at v. Following our previous derivations we have  (v)+  A (v) A (v). Thus, S S T T P S T S T T given  (v) = A (v)  (v)A (v) we now want  (v) +A (v) S T P P S T P S T A (v)   . In other words, we want to find a symmetric positive semi- S T S T definite covariance  (v) that, when combined with the affinely transformed T 1 covariance  (v) = A (v)    A (v), best approximates  . Under S T S S T S T the typical assumption that the nominal sfPSF  is diagonal, this approxi- ~T mation is given by  (v) = max( (v); 0) with (v) being a diagonal P Scale factor PSF matching: beyond aliasing in image resampling 5 scaling matrix containing the components of  (v) obtained through polar de- composition and max(;) is the element-wise maximum operator between two matrices. It is important to note that under regimes where the Nyquist limit is not violated, e.g. upsampling and rigid transformation between isotropic grids, the proposed method reverts to standard resampling as the sfPSF would become a Dirac. Interpolation by convolution with the sfPSF. Let I (v) be the sought resampled intensity in the space of T at location v, and I (v) be the intensity of the source image. The interpolated and PSF matched value of I at location (v) can be obtained by an oversampled discretised convolution N (v) N (v) y N (v) x z X X X I (v) = I (F (v v))G (v) (1) T S S T ~ (v) v v v x y z 3 1 1 0 ~ 1 v ( (v)) v 2 2 2 P where G (v) = (2) j (v)j e , Z is a normaliser that ~T P (v) ensures the (discrete) sum over G (v) equals 1. N (v), N (v) and N (v) are ~T x y z (v) sampling regions centered at v in the x, y and z directions respectively. More specifically, N (v) are homogeneously spaced samples between -3 and 3 standard xx 2 T deviations, i.e. N (v) = fk (v) 8k 2 [3; 3]g, with  (v) =  (v), and x P x P P equivalently for N (v), N (v),  (v) and  (v). As S is a discrete image, y z P P y z an appropriate interpolation method, such as linear, cubic or sinc interpolation is used to get the sample values at F (v v). Similarly, interpolation is S T required to compute F (v v) if the spatial transformation is represented S T as a displacement field. Note also that when  (resp.  or  ) becomes 0 P P P x y z or very small, care has to be taken to appropriately compute the limit of the Gaussian weight by resorting to an axis aligned Dirac function. Limitations of Sinc interpolation by convolution. Under the sampling theorem, replacing the Gaussian in Eq.1 with Sinc should produce the theoreti- cally best alias-free results. Knowing that this work focuses on obtaining realistic PSF’s rather than the least aliased one, we note 3 problems with Sinc resam- pling that are addressed with the proposed method: First, Sinc is only optimal if the discretised sampling scheme of Eq.1 is replaced with an integral. Second, sincs are optimal from a bandlimit point of view, but are poor approximations of real PSFs, e.g. PET images have aproximate Gaussian PSF larger than the voxel size. Finally, sincs cannot be used for signal-limited images (probabilistic segmentations bounded from 0 to 1), as it would produce negative probabilities. Conversely, Gaussians do not have this problem. 3 Validation and Discussion Data. 30 healthy control subjects were obtained from the ADNI2 database. All subjects had an associated T1-weighted MRI image, acquired at 1.111mm 6 M.J. Cardoso et al. voxel size, and a F-FDG PET image, reconstructed at 333mm. For this se- lected subset of ADNI2, all data (MRI and PET) were acquired on the same scan- ner with the same scanning parameters, thus removing acquisition confounds. While the effective PSF of PET images can be between 3 and 6mm FWHM, in these experiments we will assume a PSF with 3mm FWHM. Frequency domain analysis under non-linear transformation. Frequency domain analysis was used to assess whether resampling images under non-linear transformation respects the Nyquist limit and to test whether the proposed method can mitigate any error. The 30 T1 MRIs were zero padded by a factor of 2 in the frequency domain (0.550.50.5mm voxel size), doubling the rep- resentable frequencies. Fig. 2 shows two upsampled images and their frequency magnitude. Note the empty power spectrum outside the Nyquist band (white box). 29 upsampled T1 images were affinely [7] and then non-rigidly [8] regis- tered to the remaining image using standard algorithms. Each upsampled image was resampled to the space of the remaining image using both a three-lobed truncated sinc resampling, and the proposed Gaussian sfPSF method (see Fig. 2). The Gaussian sfPSF was set to 1.111mm FWHM for both  and  . S T Note that, as expected, supra-Nyquist frequencies are created when using sinc interpolation. These frequencies are greatly suppressed when using the proposed method. Analysis of the power spectra of the 29 resampled images showed an av- erage power suppression of 94.4% for frequencies above the Nyquist band when using the Gaussian PSF instead of sinc interpolation. This power suppression results in an equivalent reduction of aliasing at the original resolution. Volume preservation and partial volume under rigid resampling. To demonstrate clinically relevant consequences of aliasing, we tested the effect of resampling within the context of segmentation propagation and partial volume estimation. Specifically, T1 images are segmented into 98 different regions using Fig. 2. Left to right: (Top) upsampled source S and target T images followed by S non-linearly resampled to T using sinc and Gaussian sfPSF; (Bottom) their respective frequency domain log magnitude. The white box represents the Nyquist limit before zero-padding. Note the high supra-Nyquist magnitude after sinc resampling. Scale factor PSF matching: beyond aliasing in image resampling 7 High Res Vol=14.54ml Linear Vol=14.39ml Gaussian sfPSF Vol=14.53ml Fig. 3. Left to right: A segmented region overlaid on a high resolution T1 (1.11 1mm) image (and zoomed), followed by the same segmentation resampled to the res- olution of a PET image (333mm) using linear and the proposed Gaussian sfPSF. The zoomed segmentations are in gray scale between 0 and 1. Given that the cor- tex is commonly thinner than 3mm, note the unrealistic large amount of voxels with segmentation probability equal to 1 at PET resolution when using linear resampling. multi-atlas label propagation and fusion [9] based on the Neuromorphometrics, Inc. labels. The T1 images were then rigidly registered [7] to the PET data, and each one of the segmented regions was resampled to the PET data using both linear interpolation and the Gaussian sfPDF. Linear was chosen here due to the signal-limited [0; 1] nature of probabilities. Example results are shown in Fig. 3. As all the segmentations are probabilistic, volume was estimated as the sum of all probabilities for all voxels v times the voxel size V. The volume was estimated in the original T1 space (V ), and in the PET space after linear (V ) and HR TRI the Gaussian sfPSF (V ) resampling. Similar volumes were obtained when sfPSF the probabilistic segmentations were thresholded at 0.5. The relative volume dif- ference RVD= (V V )=V and its absolute value, ARVD = jRVDj, sfPSF HR HR were estimated for each of the 30 subjects, 98 cortical regions and 2 resampling methods. The RVD and ARVD were averaged over all subjects for each region, resulting in 98 mean RVD and ARVD values per region, per method. These val- ues are plotted in Fig. 4. A Parzen window mean and STD are also plotted in the same figure. Both resampling methods are unbiased according to the mean RVD. However, the Gaussian sfPSF method provides significantly lower (p < 10 - Wilcoxon signed-rank test) errors in terms of mean ARVD for all regions, espe- cially in smaller regions where linear resampling can introduce up to 8% mean absolute volume difference. An 8% mean difference implies even larger local er- Gaussian PSF Gaussian PSF 1.5 Linear Linear 1 6 0.5 -0.5 3 -1 2 -1.5 -2 0 0 2000 4000 6000 8000 10000 12000 14000 16000 0 2000 4000 6000 8000 10000 12000 14000 16000 3 3 Structure Volume (mm ) Structure Volume (mm ) Fig. 4. The mean RVD (Left) and mean ARVD (Right) between a low and high reso- lution representation of a segmented region averaged over the population. 100 different regions are plotted against the mean volume of the region V over the population. HR Mean Relative Volume Difference (%) Mean Absolute Relative Volume Difference (%) 8 M.J. Cardoso et al. rors, resulting in detrimental effects in partial volume/ compartment modelling, and when estimating biomarkers that rely on structural segmentations. 4 Conclusion The presented work explores aliasing in medical image resampling and proposes a new interpolation technique that matches the scale factor PSF given arbitrary grid sizes and non-linear transformations. We demonstrate the advantages of using Gaussian sfPSF resampling, both in terms of Nyquist limit and volume preservation, when compared with common resampling techniques. Future work will involve deploying the proposed methodology within image registration algo- rithms and verifying the impact of the sfPSF in partial volume and compartment modelling. An implementation will be made available at the time of publication. Acknowledgements. This work was supported by the EPSRC (EP/H046410/1, EP/J020990/1, EP/K005278), the MRC (MR/J01107X/1), the EU-FP7 (FP7- ICT-2011-9-601055), the NIHR BRC UCLH/UCL HII (BW.mn.BRC10269), and the UCL Leonard Wolfson Experimental Neurology Centre (PR/ylr/18575). References 1. Meijering, E.H.W., Niessen, W.J., Pluim, J.P.W., Viergever, M.A.: Quantitative comparison of sinc-approximating kernels for medical image interpolation. In: Proc. MICCAI’99. Springer Berlin Heidelberg (1999) 210–217 2. Pluim, J.P., Maintz, J.B.A., Viergever, M.A.: Mutual information matching and interpolation artifacts. In: SPIE Medical Imaging. Volume 3661., SPIE Press (May 1999) 56–65 3. Aganj, I., Yeo, B.T.T., Sabuncu, M.R., Fischl, B.: On removing interpolation and resampling artifacts in rigid image registration. IEEE Trans. Image Process. 22(2) (February 2013) 816–827 4. Lindeberg, T.: Scale-space for discrete signals. IEEE Trans. Pattern Anal. Mach. Intell. 12(3) (1990) 234–254 5. Unser, M., Neimark, M., Lee, C.: Affine transformations of images: a least squares formulation. In: Proc. ICIP’94. Volume 3. (1994) 558–561 6. Arigovindan, M., Sühling, M., Hunziker, P., Unser, M.: Variational image recon- struction from arbitrarily spaced samples: A fast multiresolution spline solution. IEEE Trans. Image Process. 14(4) (2005) 450–460 7. Modat, M., Cash, D.M., Daga, P., Winston, G.P., Duncan, J.S., Ourselin, S.: Global image registration using a symmetric block-matching approach. Journal of Medical Imaging 1(2) (July 2014) 024003–024003 8. Modat, M., Ridgway, G.R., Taylor, Z.A., Lehmann, M., Barnes, J., Hawkes, D.J., Fox, N.C., Ourselin, S.: Fast free-form deformation using graphics processing units. Computer Methods and Programs in Biomedicine 98(3) (June 2010) 278–284 9. Cardoso, M., Modat, M., Wolz, R., Melbourne, A., Cash, D., Rueckert, D., Ourselin, S.: Geodesic information flows: Spatially-variant graphs and their ap- plication to segmentation and fusion. IEEE TMI (in press) (2015) Scale factor PSF matching: beyond aliasing in image resampling 9 10. Higham, N.J.: Computing a nearest symmetric positive semidefinite matrix. Linear Algebra Appl. 103 (1988) 103–118 11. Schröcker, H.P.: Uniqueness results for minimal enclosing ellipsoids. Comput. Aided Geom. Des. 25(9) (2008) 756–762 10 M.J. Cardoso et al. Draft Appendix Let S and T be 2 symmetric positive definite (SPD) matrices representing covari- ance matrices. We are looking for the smallest symmetric positive semi-definite (SPSD) matrix P such that S + P is larger than T . Some useful tools and properties A matrix X is SPSD if 8v; v  X  v  0 (2) We then write X  0 (3) Furthermore, we write X  Y iff X Y  0. A matrix X is SPD if 8v 6= 0; v  X  v > 0 (4) We then write X  0 (5) We also write X  Y iff X Y  0 If Z is invertible, then Z  X  Z  0 (resp.  0) iff X  0 (resp.  0). The spectral decomposition of a SPSD matrix is given by X = Z(X) (X) Z(X) (6) where Z(X)  Z(X) = Id and (X) = diag( (X)). Note that for any matrix Y , det(Z(X) Y  Z(X) ) = det(Y ) (7) Smallest SPSD matrix increment A matrix norm minimization view. We are looking for an SPSD matrix P such that S +P is close to T . In other words, we want P to be close to TS. We rephrase this more formally as minimizing the Frobenius norm k(S + P ) Tk = kP (T S)k subject to the condition P  0. Following [10], the solution to this problem is given by: P = Z(T S) max((T S); 0) Z(T S) (8) While this provides a nice closed-form solution. It is unclear whether the Frobe- nius norm really captures the discrepancy in term of covariance matrix. This solution still has interesting properties. We indeed have S + P  S and S + P  T . Indeed, from (8), we easily see that P (T S)  0 Scale factor PSF matching: beyond aliasing in image resampling 11 A geometric view. We are looking for an SPSD matrix P that minimizes the volume of S + P (i.e. det(S + P )) under the constraints that P  0, S + P  S (which is trivially obtained from P  0) and S + P  T . Let us first generalize the problem. We now simply look for an SPD matrix Q that minimizes det(Q) subject to the conditions Q  S and Q  T . Let us consider the spectral decomposition of S and use the corresponding spectral coordinate system: 0 | X = Z(S)  X  Z(S) (9) 0 0 Note that we have S = (S). Our problem is equivalent to minimizing det(Q ) = 0 0 0 0 det(Q) subject to the conditions Q  S = (S) and Q  T . Fig. 5. Covariances in coordinate system of S. Let us now rescale the space with a volume-preserving transformation to turn (S) into a scalar matrix. Let 1=2 1=(2Dim) (S) = det(S)  diag( (S)) (10) where Dim is the dimension of the space and det( (S)) = 1. Let 00 0 | X =  (S) X   (S) =  (S) Z(X)  X  Z(X)  (S) (11) N N N N 00 1=Dim Note that we have S = det(S) Id. Our problem become equivalent to 00 00 00 that of minimizing det(Q ) = det(Q) subject to the constraints Q  S = 1=Dim 00 00 det(S) Id and Q  T . Let us now consider the spectral decomposition of T and use the corre- sponding spectral coordinate system: 000 00 | 00 00 X = Z(T )  X  Z(T ) (12) 000 00 Note that we have T = (T ). Our problem become equivalent to that of mini- 000 000 000 1=Dim mizing det(Q ) = det(Q) subject to the constraints Q  S = det(S) Id 000 000 00 1=Dim 00 and Q  T = (T ). Note that both det(S) Id and (T ) are axis- aligned, i.e. diagonal. For symmetry-reasons, and because of the uniqueness of the solution [11], it 000 000 has to also be axis-aligned, i.e. diagonal: Q = diag( (Q )). We find that our i 12 M.J. Cardoso et al. Fig. 6. Volume-preserving rescaling to make S isotropic. Fig. 7. Rotation to make both covariances axis-aligned. 000 000 problem is now equivalent to minimizing det(Q ) =  (Q ) subject to the 000 1=Dim 000 00 conditions  (Q )  det(S) and  (Q )   (T ). The solution to this i i i problem is obtained by taking: 000 1=Dim 00 (Q ) = max(det(S) ;  (T )) (13) i i Fig. 8. Best covariance in this space? Scale factor PSF matching: beyond aliasing in image resampling 13 Now we need to roll back the transformations and get 1 00 Q = Z(S)  (S) Z(T ) 1=Dim 00 00 | 1 | max(det(S) Id; (T )) Z(T )   (S) Z(S) (14) Equivalently, focusing on T first, we get: 1 00 Q = Z(T )  (T ) Z(S ) 1=Dim 00 00 | 1 | max(det(T ) Id; (S )) Z(S )   (T ) Z(T ) (15) Axis-aligned T . If T is axis aligned, (15) simplifies to: 1=2 000 000 000 | 1=2 Q = T  Z(S ) max(Id; (S )) Z(S )  T (16) with 000 1=2 1=2 S = T  S  T (17) Relating the matrix norm and the geometric views. At this stage it’s unclear how (8) and (14) relate to each other. Numerical simulations shows a difference but the results are quite close to each other. Figure 9 shows an example with a rather large difference. The geometric method indeed leads to smaller volume but this comes at the cost of increasing the anisotropy. The matrix norm method produces more intuitive results. Some interesting references include [10,11] and http://mathoverflow.net/questions/120925. 14 M.J. Cardoso et al. S+P det=0.49792 Q det=0.42077 Q-S 0.5 -0.5 -1 -1.5 -1 -0.5 0 0.5 1 1.5 Fig. 9. Summary of all ellipses

Journal

Computing Research RepositoryarXiv (Cornell University)

Published: Jan 16, 2021

There are no references for this article.