[Insight-users] MaskImageFilter with VectorImage
daviddoria at gmail.com
Wed Apr 6 17:47:47 EDT 2011
On Wed, Apr 6, 2011 at 2:53 PM, brian avants <stnava at gmail.com> wrote:
> adding the ZeroValue() function to numeric traits ( and changing the
> initialization code ) will do the trick, compiler-wise. but run-time
> behavior will depend on what's done in the rest of the code.
> we used this fix for the interpolators :
> which may enable a similar approach for the mask filter.
It now compiles this code without errors:
It seems to mostly work (i.e. pixels corresponding to zero valued mask
pixels are set to (0,0) ), but one pixel that should be zero seems to
be a garbage value. I'm not sure why this would be the case... any
Thanks for the tips,
More information about the Insight-users