Hello,

I think this is a very simple question but I don't manage to solve it:
1) I have a DataNode already filled with a mitkImage (myDataNode).
2) I do some operation in the mitkImage resulting in a new_mitkImage
(because of an itk filter).
3) To update it in the render window, I wanted to mantain the original
DataNode and just rewrite its data by doing:
myDataNode->SetData(new_MitkImage);

However when I do this, the image in the render window gets black and it
does not show any image at all...

If I create a new dataNode in the dataStorage and adds the new_MitkImage,
it works, but in this way I have two dataNodes, and I would like to operate
only with one.

What would be the correct way to proceed? I think there should be a way to
"Update" the image in the data... isn't it? Does it has to do with this
<http://docs.mitk.org/nightly/MitkImagePage.html#MitkImagePage_AccessImageData>
?

Thank you very much in advance!

Best,


-- 

Rocío López Velazco

*SimbioSYS** group, BCN MedTech*

*UniversityPompeu Fabra*




*Department of Information and Communication Technologies Roc Boronat, 122
(Tànger Building),  08018 Barcelona                    Office 55 119
https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to