X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.cxx;h=2db040b4bb89969e7cfac3b5c5079ff74e0eba53;hb=58f3178d52d0c1762a566b375354816e0cc4bb26;hp=1f5116849cb711a73cc80cfa19954c1bcfd7c6ab;hpb=c13d024475699d94ed1018a1e3be7cce91f1de97;p=clitk.git diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 1f51168..2db040b 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -249,6 +249,7 @@ vtkSmartPointer vvImage::GetTransform() } //-------------------------------------------------------------------- + //-------------------------------------------------------------------- void vvImage::UpdateReslice() { @@ -258,4 +259,18 @@ void vvImage::UpdateReslice() } //-------------------------------------------------------------------- + +//-------------------------------------------------------------------- +bool vvImage::HaveSameSizeAndSpacingThan(vvImage * other) +{ + bool same = true; + for(int i=0; iGetSize()[i]) same = false; + if ( GetSpacing()[i] != other->GetSpacing()[i]) same = false; + } + return same; +} +//-------------------------------------------------------------------- + + #endif // VVIMAGE_CXX