From: grevillot Date: Fri, 25 Mar 2011 06:57:11 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v1.2.0~121 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9a3d4553643acd3165b1fd2bb0d576b661f2fa18;p=clitk.git *** empty log message *** --- diff --git a/tools/clitkImageExtractLine.cxx b/tools/clitkImageExtractLine.cxx index a4040dd..5360b02 100644 --- a/tools/clitkImageExtractLine.cxx +++ b/tools/clitkImageExtractLine.cxx @@ -104,75 +104,71 @@ int main(int argc, char * argv[]) } } // args_info.integral_arg=1, so, it computes the integral - else if (lastIndex[0]-firstIndex[0]==0 && lastIndex[1]-firstIndex[1]==0 && lastIndex[2]-firstIndex[2]>0) - direction=1; - else if (lastIndex[0]-firstIndex[0]==0 && lastIndex[1]-firstIndex[1]>0 && lastIndex[2]-firstIndex[2]==0) - direction=2; - else if (lastIndex[0]-firstIndex[0]>0 && lastIndex[1]-firstIndex[1]==0 && lastIndex[2]-firstIndex[2]==0) - direction=3; - else{ - //std::cout<GetLargestPossibleRegion().GetSize(); - DD(dim); - DD(direction); - int a=0, b=0, c=0; - - if (direction==2){ - a=0; - b=1; - c=2; + if (args_info.integralAxis_arg==0){ + a=1; + b=0; + c=2; + } + else if (args_info.integralAxis_arg==1){ + a=0; + b=1; + c=2; + } + else if (args_info.integralAxis_arg==2){ + a=2; + b=0; + c=1; + } + else {std::cout<<"Wrong axis"<GetLargestPossibleRegion().GetSize(); + DD(dim); + DD(direction); - int k; - for (int i=0; i iter(input, firstIndex, lastIndex); - iter.GoToBegin(); - // std::cout<<"B"< iter(input, firstIndex, lastIndex); + iter.GoToBegin(); + // std::cout<<"B"<