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

[Feature Request] Add requested update rate to OpenIGTLinkIF #74

Open
jamesobutler opened this issue Mar 11, 2019 · 0 comments
Open

[Feature Request] Add requested update rate to OpenIGTLinkIF #74

jamesobutler opened this issue Mar 11, 2019 · 0 comments

Comments

@jamesobutler
Copy link
Contributor

jamesobutler commented Mar 11, 2019

It would be nice to have the ability to set the rate at which Slicer nodes get updated from incoming OpenIGTlink events. Changes probably needed in here:

#endif
volumeNode->SetAndObserveImageData(image);
volumeNode->SetName(deviceName.c_str());
this->External->GetScene()->SaveStateForUndo();
volumeNode->SetDescription("Received by OpenIGTLink");
vtkDebugWithObjectMacro(this->External, "Name vol node " << volumeNode->GetClassName());
this->External->GetScene()->AddNode(volumeNode);

My specific use case is being able to acquire >100 FPS using a PLUS device which can save all of its data and then render the image data in Slicer at some slower update rate. If the RequestedRate is lower than the number of events entering, then update the Slicer node only at that rate or if RequestedRate is higher than the number of events, update the Slicer node for all device events. It would be similar to functionality of vtkPlusVirtualCapture which can choose to save image data at some requested frame rate which might be lower than the device source. I figured this feature could be in this repo instead of in vtkPlusOpenIGTLinkServer so that any server sending OpenIGTLink messages to Slicer could benefit from this new requested update rate.

Sometimes I want to only update a live stream in Slicer at maybe 15FPS and save my CPU overhead for other tasks instead of rendering images in Slicer that are unnecessary.

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