Unable to open vff file

I have Slicer 5.6.1, but I’m unable to open the vff file despite having the SlicerRT extension installed. The following is the error log:

LoadVffFile: The values for the origin must each be greater than or equal to 0.
LoadVffFile: Incorrect parameters or required parameters that were not set, vff file failed to load. The required parameters are: rank, type, format, bits, bands, size, spacing, origin, rawsize, data scale, data offset, and title.
Warning: In vtkSlicerVffFileReaderLogic.cxx, line 109
vtkSlicerVffFileReaderLogic (0000016588499780): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘batch’
Warning: In vtkSlicerVffFileReaderLogic.cxx, line 109
vtkSlicerVffFileReaderLogic (0000016588499780): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘gel’
Warning: In vtkSlicerVffFileReaderLogic.cxx, line 109
vtkSlicerVffFileReaderLogic (0000016588499780): ReadVffFileHeader: Nothing follows the equal sign in header item: ‘modification_history’

The vff files that I’m trying to open are optical CT images, which were reconstructed using a software called VistaScan.

Thank you!

Thanks for including the log!

It is possible that the VFF files written by the latest scanners have changed. It will be needed to update the reader class.

For example, it is possible that the restriction for the origin to be positive is not needed, see

If you have the capacity to build SlicerRT and try simply commenting out this check, then it would be great.

1 Like

Can you elaborate on what you mean by “building SlicerRT”? All I could find was vtkSlicerVffFileReaderLogic.so and not a cxx file.

I also tried downloading the vtkSlicerVffFileReaderLogic.cxx file from github, commented out the line, and added it to the folder qt-loadable modules. However, I’m still getting the same error message.

File path: Slicer > Show Package Contents > Contents > Extensions-32438 > SlicerRT > lib > Slicer-5.6 > qt-loadable-modules

So the answer is no. No worries. Let me remove this condition for you then.

I created an issue for this: Fix Vff file loading with latest scanners · Issue #241 · SlicerRt/SlicerRT · GitHub

I removed the condition for positive origin coordinates. The change will be reflected in the preview version tomorrow. This means that if you download the latest Slicer preview tomorrow, and install SlicerRT from there, the change will be in effect. Let’s see if there are more errors with your file. Please note that it takes time for all the extensions to be built by the factory, so it may only be available in the afternoon (also depending on your time zone).

Thank you so much!
I was able to open the vff file.
I realized I forgot to install the extensions before opening the vff file in my previous reply.

1 Like

Excellent, thank you for the confirmation. I’m then closing the issue in SlicerRT.