From e518b40cc863a7be4d986469decc52d3f60f14b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Tue, 1 Mar 2022 15:55:58 -0500 Subject: [PATCH] STYLE: Applying clang-format --- include/itkMorphologicalContourInterpolator.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/itkMorphologicalContourInterpolator.hxx b/include/itkMorphologicalContourInterpolator.hxx index f961ac4..a36a180 100644 --- a/include/itkMorphologicalContourInterpolator.hxx +++ b/include/itkMorphologicalContourInterpolator.hxx @@ -1422,9 +1422,9 @@ MorphologicalContourInterpolator< TImage >::InterpolateAlong( int axis, TImage* jconn->DisconnectPipeline(); int jReq = *next < reqRegion.GetIndex( axis ) ? -1 : ( *next > reqRegion.GetIndex( axis ) + IndexValueType( reqRegion.GetSize( axis ) ) ? +1 : 0 ); - if ( *prev + 1 < *next // only if they are not adjacent slices + if ( *prev + 1 < *next // only if they are not adjacent slices && itk::Math::abs( iReq + jReq ) <= 1 ) // and not out of the requested region - // unless they are on opposite ends + // unless they are on opposite ends { SegmentBetweenTwo< TImage > s; s.axis = axis;