SpacingType spacing = input->GetSpacing(), like_spacing = like_image->GetSpacing();
if (spacing != like_spacing) {
std::cerr << "Like-image must have same spacing as input: " << spacing << " " << like_spacing << std::endl;
- return ERR_NOT_SAME_SPACING;
+ return PAD_ERR_NOT_SAME_SPACING;
}
SizeType size = input->GetLargestPossibleRegion().GetSize(), like_size = like_image->GetLargestPossibleRegion().GetSize();
if (auxl < 0 || auxu < 0) {
std::cerr << "Like-image's bounding box must be larger than input's" << std::endl;
- return ERR_NOT_LIKE_LARGER;
+ return PAD_ERR_NOT_LIKE_LARGER;
}
padLower[i] = (PadBoundType)auxl;
if (mArgsInfo.verbose_flag)
std::cout << "PadLike - OUT" << std::endl;
- return ERR_SUCCESS;
+ return PAD_ERR_SUCCESS;
}
} //end clitk
#include "clitkImageToImageGenericFilter.h"
#include "clitkPadImage_ggo.h"
-#ifdef ERR_SUCCESS
-# undef ERR_SUCCESS
-#endif
-
//--------------------------------------------------------------------
namespace clitk
{
public:
enum
{
- ERR_SUCCESS = 0,
- ERR_NOT_SAME_SPACING = -1,
- ERR_NOT_LIKE_LARGER = -2
+ PAD_ERR_SUCCESS = 0,
+ PAD_ERR_NOT_SAME_SPACING = -1,
+ PAD_ERR_NOT_LIKE_LARGER = -2
};
//--------------------------------------------------------------------