Hi Timothy,
welcome to the MITK users list. Sorry, the response to your question took a
while - most of us were out of office during Easter break.
When I get your question right, you are using the Rigid Registration plugin to
register some images with masked areas? Actually we checked your issue here -
hopefully we reconstructed your problem correctly - by using two loaded images
with two masks. Indeed you're right the masking option is not shown with loaded
data. I filed a bug for this issue, you can follow the progress here:
http://bugs.mitk.org/show_bug.cgi?id=11680
For the moment, it is possible to select mask images in the Rigid Registration
plugin if you create a new mask with the segmentation bundle. The segmentation
is attached as child node to the image you used for generation of the
segmentation.
If you need to use saved data, you might want to write a method in your plugin
that attach mask images as subnode to images. Something like:
void QmitkMyPluginName( mitk::Image::Pointer image, mitk::Image::Pointer
maskImage )
{
mitk::DataNode::Pointer node = mitk::DataNode::New();
node->SetData(image);
node->SetName("myImageName");
mitk::DataNode::Pointer maskNode = mitk::DataNode::New();
maskNode->SetData(maskImage);
maskNode->SetName("mymaskImageName");
// get data storage from within your plugin!
this->GetDataStorage()->Add(node);
this->GetDataStorage()->Add(maskNode, node); // add mask node to parent node
}
should work for this task.
Hope I did not get your question wrong and sorry for the inconvenience. We try
to fix this issue as fast as possible!
Best regards!
Sven
-----Ursprüngliche Nachricht-----
Von: Timothy Tattersall [mailto:[email protected]]
Gesendet: Montag, 2. April 2012 02:54
An: [email protected]
Betreff: [mitk-users] Applying binary mask for affine registration
Hi,
I am new to MITK. I want to apply a binary mask to my template image so the
cost function is calculated only for voxels in the mask that equal 1.
I can't find an option to use the mask. I can use BasicImageProcessing to
multiply the mask with the template, but I don't think this excludes non-masked
regions from the cost calculation - it merely sets them to 0.
Any advice is greatly appreciated.
Cheers
Tim
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users