Dear Slicer users and developers,
I’m using the “prostate MRI-US Contour propagation” module under Slicer 4.10 windows 64 bits. I have scanned a prostate phantom for ultrasound devices using MR and US. I have segmented the region that mimics the prostate on both set of images using the segment editor module.
First of all, I have applied a transformation to the US volume and segmentation in order to resize and center them close to MR image and segmentation.
After that I harden the transformation and launch the registration. Do any of you know why I’m getting the following error that halts the process? (here you can find the data to replicate the error, the transformation performed is also attached)
[INFO][Python] 30.10.2018 10:19:54 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:547) - Performing registration workflow
[INFO][Python] 30.10.2018 10:19:54 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:602) - Cropping MRI volume
[INFO][Python] 30.10.2018 10:19:56 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:661) - Pre-aligning segmentations
[INFO][Python] 30.10.2018 10:19:56 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:674) - US prostate bounds: [154.5, 532.5, -443.5, -164.5, 0.5, 10.5]
[INFO][Python] 30.10.2018 10:19:56 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:683) - MRI prostate bounds: [305.0625, 381.9375, -353.453125, -254.546875, -29.5, 40.5]
[INFO][Python] 30.10.2018 10:19:56 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:687) - MRI to US prostate translation: [0.0, 0.0, 0.0]
[INFO][Python] 30.10.2018 10:19:56 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:722) - Resampling US volume
[INFO][Python] 30.10.2018 10:20:35 [Python] (C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py:747) - Creating prostate contour labelmaps
[INFO][Stream] 30.10.2018 10:19:54 (unknown:0) - Performing registration workflow
[INFO][Stream] 30.10.2018 10:19:54 (unknown:0) - Cropping MRI volume
[INFO][Stream] 30.10.2018 10:19:56 (unknown:0) - Pre-aligning segmentations
[INFO][Stream] 30.10.2018 10:19:56 (unknown:0) - US prostate bounds: [154.5, 532.5, -443.5, -164.5, 0.5, 10.5]
[INFO][Stream] 30.10.2018 10:19:56 (unknown:0) - MRI prostate bounds: [305.0625, 381.9375, -353.453125, -254.546875, -29.5, 40.5]
[INFO][Stream] 30.10.2018 10:19:56 (unknown:0) - MRI to US prostate translation: [0.0, 0.0, 0.0]
[WARNING][VTK] 30.10.2018 10:19:56 [vtkMRMLLinearTransformNode (0000000DA5111520)] (D:\D\S\Slicer-4100\Libs\MRML\Core\vtkMRMLTransformNode.cxx:1547) - vtkMRMLTransformNode::SetAndObserveMatrixTransformToParent method is deprecated. Use vtkMRMLTransformNode::SetMatrixTransformToParent instead
[INFO][Stream] 30.10.2018 10:19:56 (unknown:0) - Resampling US volume
[DEBUG][Qt] 30.10.2018 10:19:56 (unknown:0) - Found CommandLine Module, target is C:/Program Files/Slicer 4.10.0/bin/…/lib/Slicer-4.10/cli-modules/ResampleScalarVolume.exe
[DEBUG][Qt] 30.10.2018 10:19:56 (unknown:0) - ModuleType: CommandLineModule
[DEBUG][Qt] 30.10.2018 10:19:57 (unknown:0) - Resample Scalar Volume command line:
C:/Program Files/Slicer 4.10.0/bin/…/lib/Slicer-4.10/cli-modules/ResampleScalarVolume.exe --spacing 1,1,1 --interpolation lanczos C:/Users/BEBIG Variseed/AppData/Local/Temp/Slicer/DIDG_vtkMRMLScalarVolumeNodeC.nrrd C:/Users/BEBIG Variseed/AppData/Local/Temp/Slicer/DIDG_vtkMRMLScalarVolumeNodeBE.nrrd
[DEBUG][Qt] 30.10.2018 10:20:35 (unknown:0) - Resample Scalar Volume completed without errors
[INFO][VTK] 30.10.2018 10:20:35 [vtkMRMLVolumeArchetypeStorageNode (0000000D8A821C00)] (D:\D\S\Slicer-4100\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:465) - Loaded volume from file: C:/Users/BEBIG Variseed/AppData/Local/Temp/Slicer/DIDG_vtkMRMLScalarVolumeNodeBE.nrrd. Dimensions: 240x240x256. Number of components: 1. Pixel type: short.
[INFO][Stream] 30.10.2018 10:20:35 (unknown:0) - Creating prostate contour labelmaps
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - Traceback (most recent call last):
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - File "C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py", line 336, in onPerformRegistration
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - if self.logic.performRegistration():
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - File "C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py", line 551, in performRegistration
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - self.createProstateContourLabelmaps()
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - File "C:/Users/BEBIG Variseed/AppData/Roaming/NA-MIC/Extensions-27501/SegmentRegistration/lib/Slicer-4.10/qt-scripted-modules/ProstateMRIUSContourPropagation.py", line 756, in createProstateContourLabelmaps
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - mrProstateOrientedImageData.DeepCopy(self.mrSegmentationNode.GetSegmentation().GetSegment(self.mrProstateSegmentName).GetRepresentation(slicer.vtkSegmentationConverter.GetSegmentationBinaryLabelmapRepresentationName()))
[CRITICAL][Stream] 30.10.2018 10:20:35 (unknown:0) - AttributeError: ‘NoneType’ object has no attribute ‘GetRepresentation’
Thank you very much in advance.