Program: bbtk
Module: $RCSfile: bbitkImage.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:21 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/11/27 14:58:06 $
+ Version: $Revision: 1.5 $
=========================================================================*/
/* ---------------------------------------------------------------------
#define BBTK_HUMAN_READABLE_ITK_IMAGES_DIM(DIM) \
- BBTK_HUMAN_READABLE_ITK_IMAGE(int8_t,DIM); \
+ BBTK_HUMAN_READABLE_ITK_IMAGE(int8_t,DIM); \
BBTK_HUMAN_READABLE_ITK_IMAGE(uint8_t,DIM); \
BBTK_HUMAN_READABLE_ITK_IMAGE(int16_t,DIM); \
- BBTK_HUMAN_READABLE_ITK_IMAGE(uint16_t,DIM); \
+ BBTK_HUMAN_READABLE_ITK_IMAGE(uint16_t,DIM);\
BBTK_HUMAN_READABLE_ITK_IMAGE(int32_t,DIM); \
- BBTK_HUMAN_READABLE_ITK_IMAGE(uint32_t,DIM); \
- BBTK_HUMAN_READABLE_ITK_IMAGE(float,DIM); \
+ BBTK_HUMAN_READABLE_ITK_IMAGE(uint32_t,DIM);\
+ BBTK_HUMAN_READABLE_ITK_IMAGE(float,DIM); \
BBTK_HUMAN_READABLE_ITK_IMAGE(double,DIM)
BBTK_HUMAN_READABLE_ITK_IMAGES_DIM(2);
Program: bbtk
Module: $RCSfile: bbitkImageProperties.cxx,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:21 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/11/27 14:58:06 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
<<">()"<<std::endl);
- itkImageType* im = bbGetInputIn().get<itkImageType*>();
+ itkImageType* im = bbGetInputIn().get<itkImageType*>();
unsigned int dim = im->GetImageDimension();
bbSetOutputTypeName(bbtk::TypeName<typename itkImageType::PixelType>());
typename itkImageType::SpacingType sp = im->GetSpacing();
std::vector<float> vsp;
for (unsigned int i=0;i<dim;++i) vsp.push_back(sp[i]);
+
+
bbSetOutputSpacing(vsp);
bbtkDebugDecTab("Core",9);