Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetImageMetaElement not wrapped in Python. #8

Open
d-vogel opened this issue May 23, 2018 · 0 comments
Open

GetImageMetaElement not wrapped in Python. #8

d-vogel opened this issue May 23, 2018 · 0 comments

Comments

@d-vogel
Copy link

d-vogel commented May 23, 2018

Hello,
We are trying to automate data export from an IGTLink server within Slicer. Unfortunately we were not able to access more information than the number of metaElement in the vtkMRMLabelMetaListNode object.
It seems the GetLabelMetaElement is not wrapped in python, is this by design or is there a straightforward way to add that ?

igtConnNode = slicer.vtkMRMLIGTLConnectorNode()
slicer.mrmlScene.AddNode(igtConnNode)
igtConnNode.SetName("IGTserver")
igtConnNode.SetTypeClient(<IP>, <PORT>)
igtConnNode.Start()

#create image list request
queryNode = slicer.vtkMRMLIGTLQueryNode()
queryNode.SetIGTLName("IMGMETA")
queryNode.SetQueryType(queryNode.TYPE_GET)
#send query
igtConnNode.PushQuery(queryNode)

igtConnNode.ImportDataFromCircularBuffer()
igtConnNode.ImportEventsFromEventBuffer()
igtConnNode.PushOutgoingMessages()

#get the metalist
metaList = igtConnNode.GetIncomingMRMLNode(1)

imgNb = metaList.GetNumberOfImageMetaElement()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant