[Insight-developers] FFT Patch / Tcon Today Afternoon

Kevin H. Hobbs hobbsk at ohio.edu
Fri Sep 9 17:09:34 EDT 2011


This had nothing to do with the patch or FFT, it was an itty bitty pixel
problem!

I read the original image from an LSM file with binary spacing.

I read the mask image from an mhd file.

The pixel spacing is 1.09863e-07.

itkImageToImageFilter.hxx uses a tolerance of :

  1.0e-6 * inputPtr1->GetSpacing()[0]

So that's one digit off of the end of the number in the mhd file.

When I convert my input image to mhd format all is well.

On 09/09/2011 03:03 PM, Kevin H. Hobbs wrote:
> 
> [kevin at bubbles ConsistentFFT]$ ./FFTMaskIFFT ../Sarcomere/032911/032911\
> p1\ unstretched\ middle\ 40x.lsm mask.mhd masked.mhd
> Image (0xf643f0)
>   
>   Spacing: [1.09863e-07, 1.09863e-07]
>   
> Image (0xf64da0)
>   
>   Spacing: [1.09863e-07, 1.09863e-07]
>   
> Exception caught !
> 
> itk::ExceptionObject (0xf761a0)
> Location: "void itk::ImageToImageFilter<TInputImage,
> TOutputImage>::VerifyInputInformation() [with TInputImage =
> itk::Image<std::complex<float>, 2u>, TOutputImage =
> itk::Image<std::complex<float>, 2u>]"
> File:
> /home/kevin/kitware/ITK_Dev/ITK/Modules/Core/Common/include/itkImageToImageFilter.hxx
> Line: 253
> Description: itk::ERROR: MaskImageFilter(0xf72ce0): Inputs do not occupy
> the same physical space!
> InputImage Spacing: [1.09863e-07, 1.09863e-07], InputImage1 Spacing:
> [1.09863e-07, 1.09863e-07]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110909/4de0304b/attachment.pgp>


More information about the Insight-developers mailing list