Hi Stefan, Thank you ! Yes, it was the FillBuffer(0) method that I was looking for :)
Another small question. Once I reset my image, I still see in the viewer the old image; only when I scroll through the image the image displayed will be updated. Is there a way to 'force' the refresh of the viewer display? Best, Hortense ---- Hortense KIRISLI, PhD Research & Development Engineer AQUILAB Parc Eurasanté - Lille Métropole Bâtiment Hermès 250 rue Salvador Allende 59120 Loos Les Lille - France Tel. +33 3 69 61 51 65 www.aquilab.com<http://www.aquilab.com> [AQUILAB] ---- De : Kislinskiy, Stefan [mailto:[email protected]] Envoyé : mardi 21 janvier 2014 14:18 À : Hortense KIRISLI; [email protected] Objet : AW: Erase content of a binary image stored in a datanode Hi Hortense, what you probably want is our AccessByITK macro [1] and the FillBuffer(0) method of itk::Image [2]. Best, Stefan [1] http://docs.mitk.org/nightly-qt4/group__Adaptor.html#ga67ad28ba2fe729db2f6e195dcf49c070 [2] http://www.itk.org/Doxygen/html/classitk_1_1Image.html#aca0cd1e488bef475a14692d54682f6e5 Von: Hortense KIRISLI [mailto:[email protected]] Gesendet: Montag, 20. Januar 2014 18:26 An: [email protected]<mailto:[email protected]> Betreff: [mitk-users] Erase content of a binary image stored in a datanode Hi all, I have a question that may sounds trivial, but I can not figure out a 'nice' solution. In my data-manager, I have a data node, in which a 3D binary image is stored. I want to implement a simple function that would erase the content of the binary image on pushbutton action. The only solution I got so far is to get the mitk image, to convert it to itk format, go through the full volume and set every voxel value to zero, go back to mitk and push back in the data in the node. Or delete the node and create a new one. Would there be an easy and more simplistic way to do it, please let me know! Many thanks, Best, Hortense ---- Hortense KIRISLI, PhD Research & Development Engineer AQUILAB Parc Eurasanté - Lille Métropole Bâtiment Hermès 250 rue Salvador Allende 59120 Loos Les Lille - France Tel. +33 3 69 61 51 65 www.aquilab.com<http://www.aquilab.com> [AQUILAB] ----
<<inline: image002.jpg>>
<<inline: image003.jpg>>
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
