From: Esteban Correa Date: Tue, 16 Apr 2013 13:15:22 +0000 (-0400) Subject: Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/bbtk X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=285ee5f1317074a4daec697ce27c9c53fdbf0793;p=bbtk.git Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/bbtk Conflicts: packages/itk/src/bbitkImageProperties.h --- 285ee5f1317074a4daec697ce27c9c53fdbf0793 diff --cc packages/itk/src/bbitkImageProperties.cxx index 2304ba8,8004f5c..7e5f47d --- a/packages/itk/src/bbitkImageProperties.cxx +++ b/packages/itk/src/bbitkImageProperties.cxx @@@ -104,22 -104,11 +104,22 @@@ namespace bbit if (dim==2) vsz.push_back(1); bbSetOutputSize(vsz); + + const typename itkImageType::PointType& orgn = im->GetOrigin(); + std::vector vog; + for (unsigned int i=0;iGetSpacing(); - std::vector vsp; + std::vector vsp; for (unsigned int i=0;i); BBTK_DECLARE_OUTPUT(Size,std::vector); + BBTK_DECLARE_OUTPUT(Origin,std::vector); - BBTK_DECLARE_OUTPUT(Spacing,std::vector); + BBTK_DECLARE_OUTPUT(Spacing,std::vector); ++ BBTK_DECLARE_OUTPUT(MinMax,std::vector); BBTK_PROCESS(DoIt); void DoIt(); @@@ -92,10 -91,9 +93,10 @@@ BBTK_OUTPUT(ImageProperties,TypeName,"Pixel type name",std::string,"pixel type"); BBTK_OUTPUT(ImageProperties,Dimension,"Dimension",unsigned int,"image dimension"); BBTK_OUTPUT(ImageProperties,LargestPossibleRegion,"Global extent of the image",anyImageRegion,""); - BBTK_OUTPUT(ImageProperties,Index,"Origin of the image",std::vector,"image index"); + BBTK_OUTPUT(ImageProperties,Index,"Index of the image",std::vector,"image index"); BBTK_OUTPUT(ImageProperties,Size,"Size in each dimension",std::vector,"image size"); + BBTK_OUTPUT(ImageProperties,Origin,"Origin of the image",std::vector,"image origin"); - BBTK_OUTPUT(ImageProperties,Spacing,"Size of the voxels",std::vector,"voxel size"); + BBTK_OUTPUT(ImageProperties,Spacing,"Size of the voxels",std::vector,"voxel size"); BBTK_OUTPUT(ImageProperties,MinMax,"Minimum and the maximum intensity values of an image",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(ImageProperties); //=================================================================