Page MenuHomePhabricator

segmentation view changes opacity of source image
Closed, ResolvedPublic

Description

After selecting "draw segmentations as transparent overlay", the segmentation view changes the opacity value of the original image!

Event Timeline

The code that changes the opacity is in QmitkSegmentationView:

void QmitkSegmentationView::ApplyDisplayOptions(mitk::DataTreeNode* node)
{

if (!node) return;

node->SetProperty( "outline binary", mitk::BoolProperty::New( m_SegmentationPreferencesNode->GetBool("draw outline", true)) );
node->SetProperty( "outline width", mitk::FloatProperty::New( 2.0 ) );
//node->SetProperty( "opacity", mitk::FloatProperty::New( m_SegmentationPreferencesNode->GetBool("draw outline", true) ? 1.0 : 0.3 ) );
node->SetProperty( "volumerendering", mitk::BoolProperty::New( m_SegmentationPreferencesNode->GetBool("volume rendering", false) ) );

}

<-- this method is called for all original images. It should probably be called for the segmentations only.

[SVN revision 21688]
FIX (#3390): only change visual appearance of binary images (segmentations) when changing preferences