Skip to content
Snippets Groups Projects
Commit e536f793 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

STYLE: header

parent 9daf7d61
Branches
Tags
No related merge requests found
/*========================================================================= /*=========================================================================
Program: ORFEO Toolbox Program: ORFEO Toolbox
Language: C++ Language: C++
Date: $Date$ Date: $Date$
Version: $Revision$ Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details. 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 This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information. PURPOSE. See the above copyright notices for more information.
=========================================================================*/ =========================================================================*/
#ifndef __otbBinaryImageDensityFunction_txx #ifndef __otbBinaryImageDensityFunction_txx
#define __otbBinaryImageDensityFunction_txx #define __otbBinaryImageDensityFunction_txx
...@@ -65,12 +64,12 @@ BinaryImageDensityFunction<TInputImage,TCoordRep> ...@@ -65,12 +64,12 @@ BinaryImageDensityFunction<TInputImage,TCoordRep>
RealType var; RealType var;
sum = itk::NumericTraits<RealType>::Zero; sum = itk::NumericTraits<RealType>::Zero;
if( !this->GetInputImage() ) if( !this->GetInputImage() )
{ {
return ( itk::NumericTraits<RealType>::max() ); return ( itk::NumericTraits<RealType>::max() );
} }
if ( !this->IsInsideBuffer( index ) ) if ( !this->IsInsideBuffer( index ) )
{ {
return ( itk::NumericTraits<RealType>::max() ); return ( itk::NumericTraits<RealType>::max() );
...@@ -95,7 +94,7 @@ BinaryImageDensityFunction<TInputImage,TCoordRep> ...@@ -95,7 +94,7 @@ BinaryImageDensityFunction<TInputImage,TCoordRep>
const RealType num = static_cast<RealType>( size ); const RealType num = static_cast<RealType>( size );
var = sum/num; var = sum/num;
return var; return var;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment