Page MenuHomePhabricator

0001-instead-of-taking-all-slices-only-take-first-and-las.patch

Authored By
saruji
Oct 5 2011, 9:58 AM
Size
1 KB
Referenced Files
None
Subscribers
None

0001-instead-of-taking-all-slices-only-take-first-and-las.patch

From 59aa8b01c5721c1af0fbe496f71916b40fc57886 Mon Sep 17 00:00:00 2001
From: Danial Saruji <d.saruji@mint-medical.de>
Date: Wed, 5 Oct 2011 09:58:38 +0200
Subject: [PATCH] instead of taking all slices only take first and last
---
.../mitkClippedSurfaceBoundsCalculator.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp b/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp
index a60674f..f4c309a 100644
--- a/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp
+++ b/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp
@@ -108,10 +108,8 @@ void mitk::ClippedSurfaceBoundsCalculator::Update()
// go through all slices of the image, ...
const mitk::SlicedGeometry3D* slicedGeometry3D = dynamic_cast<const mitk::SlicedGeometry3D*>( m_Geometry3D.GetPointer() );
int allSlices = slicedGeometry3D->GetSlices();
- for ( int slice=0; slice<allSlices; slice++ )
- {
- this->CalculateIntersectionPoints(dynamic_cast<mitk::PlaneGeometry*>(slicedGeometry3D->GetGeometry2D(slice)));
- }
+ this->CalculateIntersectionPoints(dynamic_cast<mitk::PlaneGeometry*>(slicedGeometry3D->GetGeometry2D(0)));
+ this->CalculateIntersectionPoints(dynamic_cast<mitk::PlaneGeometry*>(slicedGeometry3D->GetGeometry2D(allSlices-1)));
}
}
--
1.7.0.4

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
706
Default Alt Text
0001-instead-of-taking-all-slices-only-take-first-and-las.patch (1 KB)

Event Timeline

use only first and last slice