[Insight-users] All zero output with ResampleImageFilter (ITK 3.4)

Luis Ibanez luis.ibanez at kitware.com
Wed Dec 10 14:08:53 EST 2008


Hi Victor,

Thanks for the additional information.

The culprit of your all zero output image
is without a doubt:


Image 1:
 >   Origin: [-4.31602e+008,-4.31602e+008,-4.31602e+008]


Image 2:
 >   Origin: [0,0,0]



If your units are millimeters,
then the images are currently separated by 100Km !

and they have a size of about 200x200 mm...


You must use a Transform whose translation component has
values similar to:

 >   [+4.31602e+008,+4.31602e+008,+4.31602e+008]

So that you will have a chance to translate one of the image
by 100 Km, and put it on top of the other.   :-)


   Regards,


      Luis



--------------------------
Víctor Rodrigo Córdoba wrote:
> Hi.
> 
> The result of modReader->GetOutput()->Print( std::cout ) is:
> 
> Image <04C69D08>
>   RTTI typeinfo:  class itk::Image<short,3>
>   Reference Count: 1
>   Modified Time: 9424
>   Debug: Off
>   Observers:
>     none
>   Source: <04C67588>
>   Source Output Index: 0
>   Release Data: Off
>   Data Released: False
>   Global Release Data: Off
>   PipelineMTime: 7802
>   UpdateMTime: 9425
>   LargestPossibleRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [188,238,54]
>   BufferedRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [188,238,54]
>   RequestedRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [188,238,54]
>   Spacing: [1,1,1]
>   Origin: [-4.31602e+008,-4.31602e+008,-4.31602e+008]
>   Direction:
> 1 0 0
> 0 1 0
> 0 0 1
> 
>   PixelContainer:
>     ImportImageContainer: <0633DF48>
>       RTTI typeinfo: class itk::ImportImageContainer<unsigned long,short>
>       Referenced Count: 1
>       Modified Time: 7857
>       Debug: Off
>       Observers:
>         none
>       Pointer: 0633DF78
>       Container manages memory: true
>       Size: 2416176
>       Capacity: 2416176
> 
> The result of contActivo->Print(std::out); is:
> 
> Image <05D57C38>
>   RTTI typeinfo:  class itk::Image<double,3>
>   Reference Count: 2
>   Modified Time: 7768
>   Debug: Off
>   Observers:
>     none
>   Source: <04D36028>
>   Source Output Index: 0
>   Release Data: Off
>   Data Released: False
>   Global Release Data: Off
>   PipelineMTime: 7769
>   UpdateMTime: 7769
>   LargestPossibleRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [101,156,27]
>   BufferedRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [101,156,27]
>   RequestedRegion:
>     Dimension: 3
>     Index: [0,0,0]
>     Size:  [101,156,27]
>   Spacing: [1,1,1]
>   Origin: [0,0,0]
>   Direction:
> 1 0 0
> 0 1 0
> 0 0 1
> 
>   PixelContainer:
>     ImportImageContainer: <04D36178>
>       RTTI typeinfo: class itk::ImportImageContainer<unsigned long,double>
>       Referenced Count: 1
>       Modified Time: 7767
>       Debug: Off
>       Observers:
>         none
>       Pointer: 04D361A8
>       Container manages memory: true
>       Size: 425412
>       Capacity: 425412
> 
> The pixel of modReader is signed short.
> The pixel of contActivo is double.
> 
> Thank you for your interest.
>  


More information about the Insight-users mailing list