Skip to content

IndexError during Frame Detection #3

@k-mazurek

Description

@k-mazurek

Hello,

We have been trying to use your plugin to perform postoperative SEEG localization from CT and MRIs but have been running into an error when performing Frame Detection. We tried Slicer v5.8.0 and v4.11.20210226 following the installation instructions in the docs but have received with the same error:

first maxima after soft tissue found: 175.70703125
3 objects left after objectMajorAxisSize_mask
2 objects left after compacityRatio_mask
2 objects left after centroidDist_mask
Traceback (most recent call last):
File "[path]/trajectoryguide/frameDetect/frameDetect.py", line 685, in onFrameDetectButton
self.logic.runFrameDetection(self.ui.frameFidVolumeCBox.currentNode(), self.frame_settings, self._parameterNode.GetParameter('derivFolder'))
File "[path]/trajectoryguide/frameDetect/frameDetect.py", line 1165, in runFrameDetection self.frameDetectInstance = frameDetection(frameFidVolume, derivFolder, frame_settings)
File "[path]/trajectoryguide/helpers/helpers.py", line 383, in __init__ self.frame_detect()
File "[path]/trajectoryguide/helpers/helpers.py", line 1068, in frame_detect combined=self.NLocalizersSort(component, self.frame_settings['n_components'], 2)
File "[path]/trajectoryguide/helpers/helpers.py", line 766, in NLocalizersSort min_threshold=gaps[0][0]
IndexError: list index out of range

We used a postop CT to detect the Frame Fiducials with the Leksell G LF Frame System. Upon hitting this IndexError the system locks up but seems to fix upon restarting Slicer. We are pretty sure the Stereotactic Frame System is Leksell G LF but tried the other two Frame systems and received the same error. I'm not sure if this is a result of our images not having the desired landmarks captured for the algorithm but wanted to post this issue to confirm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions