[Insight-users] Re: Extract Image Filter

Luis Ibanez luis.ibanez at kitware.com
Tue Apr 18 09:19:01 EDT 2006


Hi Shekhar,

Could you please be more specific ?

When you say that the filter

       "is not working"



Do you mean that

   0) it doesn't compile ?
   1) it produces segmentation faults ?
   2) it throws exceptions ?
   3) it runs but produces wrong output ?


The filter passed its tests during the
release of ITK 2.6.

Could you please post a minimal piece
of code where you can illustrate what
is the wrong behavior of the filter ?


About you question regarding settings
of Spacing to a 2D slice, if the slice
is being extractted from the 3D volume,
the values of Spacing and origin will
be inherited from the Volume. You should
not change those values of spacing.


   Regards


      Luis


---------------------------
Dwivedi, Shekhar (GE, Research) wrote:
> Hi Luis,
> 
> I am using Extract Image filter to extract a slice from a 3D volume. Extract Image filter is not working with ITK 2.6.0, but the same code is working with ITK 2.4.1. The error message when using ITK 2.6.0 is "vector subscript out of range". Even the example code given is not working with 2.6.0 and working fine with 2.4.1
> 
> My another doubt is if I create a 2D slice, can I assign spacing to it, though there is no function like SetSpacing or GetSpacing in its class. This 2D slice is to be extracted/derived from a 3D volume and hence spacing is also required to be maintained.
> 
> thanks
> Shekhar
> 
> 
> 



More information about the Insight-users mailing list