From: Esteban Correa Date: Tue, 16 Apr 2013 13:10:56 +0000 (-0400) Subject: Issue #1967 fixed X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=837b3ed9344947560cc322c78bddb74b755683b4;p=bbtk.git Issue #1967 fixed --- diff --git a/packages/itk/src/bbitkImageProperties.cxx b/packages/itk/src/bbitkImageProperties.cxx index 458531f..2304ba8 100644 --- a/packages/itk/src/bbitkImageProperties.cxx +++ b/packages/itk/src/bbitkImageProperties.cxx @@ -104,6 +104,17 @@ namespace bbitk 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; diff --git a/packages/itk/src/bbitkImageProperties.h b/packages/itk/src/bbitkImageProperties.h index a1c90df..4149e44 100644 --- a/packages/itk/src/bbitkImageProperties.h +++ b/packages/itk/src/bbitkImageProperties.h @@ -69,6 +69,7 @@ namespace bbitk BBTK_DECLARE_OUTPUT(LargestPossibleRegion,anyImageRegion); BBTK_DECLARE_OUTPUT(Index,std::vector); BBTK_DECLARE_OUTPUT(Size,std::vector); + BBTK_DECLARE_OUTPUT(Origin,std::vector); BBTK_DECLARE_OUTPUT(Spacing,std::vector); BBTK_DECLARE_OUTPUT(MinMax,std::vector); BBTK_PROCESS(DoIt); @@ -91,8 +92,9 @@ namespace bbitk 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,MinMax,"Minimum and the maximum intensity values of an image",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(ImageProperties);