<div dir="ltr">Hi everyone,<div><br></div><div style>I'm interested in storing a number of itkImageMaskSpatial objects into a vector like structure, so that I can iterator through them. I thought that itkVectorContainer was the correct way to do this. however I can't seem to get it to compile. for instance the following example won't compile</div>
<div style><br></div><div style><div>#include <itkVectorContainer.h></div><div>#include <itkImageMaskSpatialObject.h><br></div><div><br></div><div>int main(int, char*[])</div><div>{</div><div> typedef itk::ImageMaskSpatialObject<3> ImageMaskType;</div>
<div> typedef itk::VectorContainer<int, ImageMaskType> MaskContainerType;</div><div><br></div><div> MaskContainerType::Pointer masks = MaskContainerType::New();</div><div> return EXIT_SUCCESS;</div><div>
}</div><div><br></div><div style>The error seems to boil down to this...</div><div style><br></div><div style><div>/opt/ITK/InsightToolkit-4.2.0/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx:37: error: ‘itk::ImageMaskSpatialObject<TDimension>::~ImageMaskSpatialObject() [with unsigned int TDimension = 3u]’ is protected</div>
<div><br></div><div style>My question is should i just use another vector like object to hold my ImageMasks? </div><div style><br></div><div style>-Thanks.</div><div style>Luke</div></div></div></div>