Hi Szu,

from within your plugin you will have to find the data node, which contains 
your 2d contour, in the data storage.
You can access the data storage from within your plugin via:

mitk::DataStorage::Pointer myDataStorage = this->GetDataStorage()

Having the data storage, there are various ways to get a specific data node, 
e.g.

myDataStorage->GetNamedNode(name)
myDataStorage->GetSubset(Predicate))

Getting the coordinates then depends on how you have created you 2d contour.

Best regards,
Andreas

Von: szu <[email protected]<mailto:[email protected]>>
Antworten an: szu <[email protected]<mailto:[email protected]>>
Datum: Monday 10 August 2015 10:27
An: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Betreff: [mitk-users] get coordinates of a manual contour from plugin

Hello,

my question is that how can I get the coordinates of a manully drawn 2d contour 
in my MITK plugin?

Thanks,

szu

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to