Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F734
0001-instead-of-taking-all-slices-only-take-first-and-las.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
saruji
Oct 5 2011, 9:58 AM
2011-10-05 09:58:04 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-instead-of-taking-all-slices-only-take-first-and-las.patch
View Options
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
Details
Attached
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)
Attached To
Mode
T9607: Enhance ClippedSurfaceBoundsCalculator to determine intersection points of two Geometry3D
Attached
Detach File
Event Timeline
saruji
added a comment.
Oct 5 2011, 9:58 AM
2011-10-05 09:58:04 (UTC+2)
Comment Actions
use only first and last slice
Log In to Comment