Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F542
Bug4255.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
xplanes
Jun 11 2010, 1:04 PM
2010-06-11 13:04:14 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
Bug4255.diff
View Options
Index: mitkImageMapper2D.cpp
===================================================================
--- mitkImageMapper2D.cpp (revision 21081)
+++ mitkImageMapper2D.cpp (working copy)
@@ -1156,7 +1156,11 @@
node->AddProperty( "bounding box", mitk::BoolProperty::New( false ) );
// some more properties specific for a binary...
- if(image->GetScalarValueMax() == image->GetScalarValue2ndMin()&& image->GetScalarValueMin() == image->GetScalarValue2ndMax())
+ mitk::BoolProperty::Pointer dontBinarizeProp = static_cast <mitk::BoolProperty *> (node->GetProperty("dontBinarize"));
+ bool dontBinarize = dontBinarizeProp.IsNotNull() && (dontBinarizeProp->GetValue()==true);
+ if( ( image->GetScalarValueMax() == image->GetScalarValue2ndMin()&&
+ image->GetScalarValueMin() == image->GetScalarValue2ndMax() ) &&
+ !dontBinarize )
{
node->AddProperty( "opacity", mitk::FloatProperty::New(0.3f), renderer, overwrite );
node->AddProperty( "color", ColorProperty::New(1.0,0.0,0.0), renderer, overwrite );
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
520
Default Alt Text
Bug4255.diff (1 KB)
Attached To
Mode
T4255: Added a property to avoid binarization of images in 2D views
Attached
Detach File
Event Timeline
xplanes
added a comment.
Jun 11 2010, 1:04 PM
2010-06-11 13:04:14 (UTC+2)
Comment Actions
Unified patch
Log In to Comment