00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifdef _USE_ITK_
00033 #include "bbitkAnyImageToTypedImage.h"
00034 #include "bbitkPackage.h"
00035
00036 namespace bbitk
00037 {
00038
00039 BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(AnyImageToTypedImage,
00040 bbtk::AtomicBlackBox);
00041 BBTK_BLACK_BOX_TEMPLATE2_IMPLEMENTATION(AnyImageToConstTypedImage,
00042 bbtk::AtomicBlackBox);
00043
00044
00045
00046 #ifdef BBTK_ITK_IMAGE_DIM_2
00047 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00048 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int8_t_2_ptr);
00049 # endif
00050 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00051 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int16_t_2_ptr);
00052 # endif
00053 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00054 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int32_t_2_ptr);
00055 # endif
00056 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00057 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint8_t_2_ptr);
00058 # endif
00059 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00060 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint16_t_2_ptr);
00061 # endif
00062 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00063 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint32_t_2_ptr);
00064 # endif
00065 # ifdef BBTK_ITK_IMAGE_TYPE_float
00066 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_float_2_ptr);
00067 # endif
00068 # ifdef BBTK_ITK_IMAGE_TYPE_double
00069 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_double_2_ptr);
00070 # endif
00071 #endif
00072
00073
00074
00075 #ifdef BBTK_ITK_IMAGE_DIM_3
00076 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00077 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int8_t_3_ptr);
00078 # endif
00079 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00080 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int16_t_3_ptr);
00081 # endif
00082 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00083 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int32_t_3_ptr);
00084 # endif
00085 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00086 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint8_t_3_ptr);
00087 # endif
00088 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00089 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint16_t_3_ptr);
00090 # endif
00091 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00092 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint32_t_3_ptr);
00093 # endif
00094 # ifdef BBTK_ITK_IMAGE_TYPE_float
00095 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_float_3_ptr);
00096 # endif
00097 # ifdef BBTK_ITK_IMAGE_TYPE_double
00098 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_double_3_ptr);
00099 # endif
00100 #endif
00101
00102
00103
00104
00105 #ifdef BBTK_ITK_IMAGE_DIM_4
00106 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00107 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int8_t_4_ptr);
00108 # endif
00109 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00110 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int16_t_4_ptr);
00111 # endif
00112 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00113 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_int32_t_4_ptr);
00114 # endif
00115 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00116 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint8_t_4_ptr);
00117 # endif
00118 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00119 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint16_t_4_ptr);
00120 # endif
00121 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00122 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_uint32_t_4_ptr);
00123 # endif
00124 # ifdef BBTK_ITK_IMAGE_TYPE_float
00125 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_float_4_ptr);
00126 # endif
00127 # ifdef BBTK_ITK_IMAGE_TYPE_double
00128 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,AnyImageToTypedImage,Image_double_4_ptr);
00129 # endif
00130 #endif
00131
00132
00133 #ifdef BBTK_ITK_IMAGE_DIM_2
00134 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00135 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int8_t_2_ptr,Image_int8_t_2_cptr);
00136 # endif
00137 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00138 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int16_t_2_ptr,Image_int16_t_2_cptr);
00139 # endif
00140 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00141 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int32_t_2_ptr,Image_int32_t_2_cptr);
00142 # endif
00143 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00144 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint8_t_2_ptr,Image_uint8_t_2_cptr);
00145 # endif
00146 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00147 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint16_t_2_ptr,Image_uint16_t_2_cptr);
00148 # endif
00149 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00150 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint32_t_2_ptr,Image_uint32_t_2_cptr);
00151 # endif
00152 # ifdef BBTK_ITK_IMAGE_TYPE_float
00153 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_float_2_ptr,Image_float_2_cptr);
00154 # endif
00155 # ifdef BBTK_ITK_IMAGE_TYPE_double
00156 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_double_2_ptr,Image_double_2_cptr);
00157 # endif
00158 #endif
00159
00160 #ifdef BBTK_ITK_IMAGE_DIM_3
00161 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00162 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int8_t_3_ptr,Image_int8_t_3_cptr);
00163 # endif
00164 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00165 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int16_t_3_ptr,Image_int16_t_3_cptr);
00166 # endif
00167 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00168 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int32_t_3_ptr,Image_int32_t_3_cptr);
00169 # endif
00170 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00171 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint8_t_3_ptr,Image_uint8_t_3_cptr);
00172 # endif
00173 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00174 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint16_t_3_ptr,Image_uint16_t_3_cptr);
00175 # endif
00176 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00177 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint32_t_3_ptr,Image_uint32_t_3_cptr);
00178 # endif
00179 # ifdef BBTK_ITK_IMAGE_TYPE_float
00180 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_float_3_ptr,Image_float_3_cptr);
00181 # endif
00182 # ifdef BBTK_ITK_IMAGE_TYPE_double
00183 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_double_3_ptr,Image_double_3_cptr);
00184 # endif
00185 #endif
00186
00187 #ifdef BBTK_ITK_IMAGE_DIM_4
00188 # ifdef BBTK_ITK_IMAGE_TYPE_int8_t
00189 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int8_t_4_ptr,Image_int8_t_4_cptr);
00190 # endif
00191 # ifdef BBTK_ITK_IMAGE_TYPE_int16_t
00192 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int16_t_4_ptr,Image_int16_t_4_cptr);
00193 # endif
00194 # ifdef BBTK_ITK_IMAGE_TYPE_int32_t
00195 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_int32_t_4_ptr,Image_int32_t_4_cptr);
00196 # endif
00197 # ifdef BBTK_ITK_IMAGE_TYPE_uint8_t
00198 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint8_t_4_ptr,Image_uint8_t_4_cptr);
00199 # endif
00200 # ifdef BBTK_ITK_IMAGE_TYPE_uint16_t
00201 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint16_t_4_ptr,Image_uint16_t_4_cptr);
00202 # endif
00203 # ifdef BBTK_ITK_IMAGE_TYPE_uint32_t
00204 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_uint32_t_4_ptr,Image_uint32_t_4_cptr);
00205 # endif
00206 # ifdef BBTK_ITK_IMAGE_TYPE_float
00207 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_float_4_ptr,Image_float_4_cptr);
00208 # endif
00209 # ifdef BBTK_ITK_IMAGE_TYPE_double
00210 BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(itk,AnyImageToConstTypedImage,Image_double_4_ptr,Image_double_4_cptr);
00211 # endif
00212 #endif
00213
00214
00215 }
00216 #endif