Program: bbtk
Module: $RCSfile: bbitkImage.h,v $
Language: C++
- Date: $Date: 2009/06/24 08:08:57 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2011/05/25 12:34:48 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
BBTK_SWITCH_ITK_IMAGE_uint32_t_4(TYPE_INFO,FUN,) \
BBTK_SWITCH_ITK_IMAGE_float_4(TYPE_INFO,FUN,) \
BBTK_SWITCH_ITK_IMAGE_double_4(TYPE_INFO,FUN,) \
- BBTK_END_TEMPLATE_SWITCH(TYPE_INFO)
+ BBTK_END_TEMPLATE_SWITCH(TYPE_INFO)
+
+
/// General macro which calls the template function FUN instanciated
/// on the right type of itk image depending on the value of TYPE_INFO (which must be of type type_info).
BBTK_SWITCH_ITK_IMAGE_uint32_t_3(TYPE_INFO,FUN,) \
BBTK_SWITCH_ITK_IMAGE_float_3(TYPE_INFO,FUN,) \
BBTK_SWITCH_ITK_IMAGE_double_3(TYPE_INFO,FUN,) \
- BBTK_END_TEMPLATE_SWITCH_MESSAGE(TYPE_INFO,ERROR_MESSAGE)
+ BBTK_END_TEMPLATE_SWITCH_MESSAGE(TYPE_INFO,ERROR_MESSAGE)
/// General macro which calls the template function FUN instanciated
BBTK_SWITCH_ITK_IMAGE_uint32_t_4(TYPE_INFO,FUN,c) \
BBTK_SWITCH_ITK_IMAGE_float_4(TYPE_INFO,FUN,c) \
BBTK_SWITCH_ITK_IMAGE_double_4(TYPE_INFO,FUN,c) \
- BBTK_END_TEMPLATE_SWITCH(TYPE_INFO)
+ BBTK_END_TEMPLATE_SWITCH(TYPE_INFO)
#define BBTK_GITIFPTI_DIM(DIM) \
if (pti == typeid(unsigned char)) \
};
#define BBTK_BUILD_ITK_IMAGE_FUNCTION_MAPPING(MAP,FUN) \
- MAP.value<bbtk::Image_int8_t_2_ptr>() = FUN<bbtk::Image_int8_t_2_ptr>; \
+ MAP.value<bbtk::Image_int8_t_2_ptr>() = FUN<bbtk::Image_int8_t_2_ptr>; \
MAP.value<bbtk::Image_int16_t_2_ptr>() = FUN<bbtk::Image_int16_t_2_ptr>; \
MAP.value<bbtk::Image_int32_t_2_ptr>() = FUN<bbtk::Image_int32_t_2_ptr>; \
MAP.value<bbtk::Image_uint8_t_2_ptr>() = FUN<bbtk::Image_uint8_t_2_ptr>; \