Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1004
b53e24e1e23971f64493160d874525e9e27df387.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
morency
Sep 17 2013, 8:12 PM
2013-09-17 20:12:31 (UTC+2)
Size
861 B
Referenced Files
None
Subscribers
None
b53e24e1e23971f64493160d874525e9e27df387.patch
View Options
From b53e24e1e23971f64493160d874525e9e27df387 Mon Sep 17 00:00:00 2001
From: Félix C. Morency <felix.c.morency@usherbrooke.ca>
Date: Tue, 09 Jul 2013 12:04:16 -0400
Subject: Use inverted spacing if negative
---
diff --git a/Core/Code/DataManagement/mitkImage.h b/Core/Code/DataManagement/mitkImage.h
index 3693b59..8d724a8 100644
--- a/Core/Code/DataManagement/mitkImage.h
+++ b/Core/Code/DataManagement/mitkImage.h
@@ -361,7 +361,7 @@ public:
itkdirectionOk = false;
}
if ( (spacing[j] < - mitk::eps) // (normally sized) negative value
- && (j==2) && (m_Dimensions[2] == 1) )
+ && (j==2) )
{
// Negative spacings can occur when reading single DICOM slices with ITK via GDCMIO
// In these cases spacing is not determind by ITK correctly (because it distinguishes correctly
--
cgit v0.9.2
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
970
Default Alt Text
b53e24e1e23971f64493160d874525e9e27df387.patch (861 B)
Attached To
Mode
T15355: Negative spacing set to 1.0
Attached
Detach File
Event Timeline
morency
added a comment.
Sep 17 2013, 8:12 PM
2013-09-17 20:12:31 (UTC+2)
Comment Actions
Patch to address the negative spacing
Log In to Comment