section "Crop like another image"
option "like" - "Crop like this image (must have the same spacing" string no
+option "BGLike" - "Background value in output (if like larger)" double default="0" no
+
{
// Default values
cmdline_parser_clitkCropImage_init(&mArgsInfo);
- //InitializeImageType<2>();
+ InitializeImageType<2>();
InitializeImageType<3>();
InitializeImageType<4>();
}
typename FilterType::Pointer filter = FilterType::New();
filter->SetInput(input);
filter->SetCropLikeFilename(mArgsInfo.like_arg);
+ filter->SetBackgroundValue(mArgsInfo.BGLike_arg);
filter->Update();
output = filter->GetOutput();
}