From e536f793e553ac6bd0c01d2a8dae7b4e0d0748d2 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Wed, 14 Oct 2009 15:57:13 +0800 Subject: [PATCH] STYLE: header --- .../otbBinaryImageDensityFunction.txx | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Code/BasicFilters/otbBinaryImageDensityFunction.txx b/Code/BasicFilters/otbBinaryImageDensityFunction.txx index 361d03ae42..d1a66d18ba 100644 --- a/Code/BasicFilters/otbBinaryImageDensityFunction.txx +++ b/Code/BasicFilters/otbBinaryImageDensityFunction.txx @@ -1,22 +1,21 @@ /*========================================================================= -Program: ORFEO Toolbox -Language: C++ -Date: $Date$ -Version: $Revision$ + Program: ORFEO Toolbox + Language: C++ + Date: $Date$ + Version: $Revision$ -Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. -See OTBCopyright.txt for details. + Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. + See OTBCopyright.txt for details. -Copyright (c) CS Systemes d'information. All rights reserved. -See CSCopyright.txt for details. -This software is distributed WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. See the above copyright notices for more information. + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. =========================================================================*/ + #ifndef __otbBinaryImageDensityFunction_txx #define __otbBinaryImageDensityFunction_txx @@ -65,12 +64,12 @@ BinaryImageDensityFunction<TInputImage,TCoordRep> RealType var; sum = itk::NumericTraits<RealType>::Zero; - + if( !this->GetInputImage() ) { return ( itk::NumericTraits<RealType>::max() ); } - + if ( !this->IsInsideBuffer( index ) ) { return ( itk::NumericTraits<RealType>::max() ); @@ -95,7 +94,7 @@ BinaryImageDensityFunction<TInputImage,TCoordRep> const RealType num = static_cast<RealType>( size ); var = sum/num; - + return var; } -- GitLab