# Use Image Spacing Default To On

Hans Johnson
2011-09-17
The default behavior of filters should respect the physical space characteristics of an image. The end user will need to explicitly request to ignore image space (usually for performance reasons under well controlled conditions).
FiniteDifferenceImageFilter::Pointer pFD = FiniteDifferenceImageFilter::New(); DisplacementFieldJacobianDeterminantFilter::Pointer pDFJD = DisplacementFieldJacobianDeterminantFilter::New(); VectorGradientMagnitudeImageFilter::Pointer pVGMI = VectorGradientMagnitudeImageFilter::New();
FiniteDifferenceImageFilter::Pointer pFD = FiniteDifferenceImageFilter::New(); pFD->SetUseImageSpacing(false); DisplacementFieldJacobianDeterminantFilter::Pointer pDFJD = DisplacementFieldJacobianDeterminantFilter::New(); pDFJD->SetUseImageSpacing(false); VectorGradientMagnitudeImageFilter::Pointer pVGMI = VectorGradientMagnitudeImageFilter::New(); pVGMI->SetUseImageSpacing(false);
I54a7f519321ba3db49fbd334bad7ca0a74a86a10
Modules/Core/FiniteDifference/include/itkFiniteDifferenceImageFilter.hxx Modules/Filtering/DisplacementField/include/itkDisplacementFieldJacobianDeterminantFilter.hxx Modules/Filtering/ImageGradient/include/itkVectorGradientMagnitudeImageFilter.hxx