With initialisation of the smart pointer to NULL, it failed to compile (error of conversion from int to smart pointer). I removed the NULL
{
// Read mask input
typedef itk::Image<unsigned char, ImageType::ImageDimension> MaskInputImageType;
- typename MaskInputImageType::Pointer mask = NULL;
+ typename MaskInputImageType::Pointer mask;
mask = this->template GetInput<MaskInputImageType>(0);
//Create the Shape Label Map from the mask
//Read mask
typedef itk::Image<unsigned char, ImageType::ImageDimension> MaskImageType;
- typename MaskImageType::Pointer mask = NULL;
+ typename MaskImageType::Pointer mask;
if(mArgsInfo.mask_given) {
mask = this->template GetInput<MaskImageType>(1);
}