Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F638
patch.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
wangx
Nov 18 2010, 4:30 PM
2010-11-18 16:30:41 (UTC+1)
Size
624 B
Referenced Files
None
Subscribers
None
patch.txt
View Options
Index: mitkImageMapperGL2D.cpp
===================================================================
--- mitkImageMapperGL2D.cpp (revision 27708)
+++ mitkImageMapperGL2D.cpp (working copy)
@@ -237,7 +237,10 @@
// create text
std::stringstream volumeString;
- volumeString << std::fixed << std::setprecision(1) << segmentationVolume;
+ int precision = 1;
+ if (segmentationVolume < 0.1)
+ precision = 4;
+ volumeString << std::fixed << std::setprecision(precision) << segmentationVolume;
std::string unit;
if (node->GetStringProperty("volume annotation unit", unit))
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
613
Default Alt Text
patch.txt (624 B)
Attached To
Mode
T6156: if the segmentation volume is smaller than 0.1 ml, the volume can not be showed correctly.
Attached
Detach File
Event Timeline
•
wangx
added a comment.
Nov 18 2010, 4:30 PM
2010-11-18 16:30:41 (UTC+1)
Comment Actions
Set precision of the volume string to 4 for small segmentation volume
Log In to Comment