# Unable to open vff file

**URL:** <https://discourse.slicer.org/t/unable-to-open-vff-file/34265>\
**Category:** Support\
**Created:** [February 12, 2024, 7:36pm UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265 "2024-02-12T19:36:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [February 12, 2024, 7:36pm UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/1 "2024-02-12T19:36:04Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 14, 2024, 10:41am UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/2 "2024-02-14T10:41:58Z")

</div>

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

> <https://github.com/SlicerRt/SlicerRT/blob/master/VffFileReader/Logic/vtkSlicerVffFileReaderLogic.cxx#L368>

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

---

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [February 15, 2024, 8:55pm UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/3 "2024-02-15T20:55:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 16, 2024, 11:39am UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/4 "2024-02-16T11:39:06Z")

</div>

> [@sieunmiin96](#):
>
> Can you elaborate on what you mean by “building SlicerRT”?

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

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 16, 2024, 11:44am UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/5 "2024-02-16T11:44:39Z")

</div>

I created an issue for this: [Fix Vff file loading with latest scanners · Issue #241 · SlicerRt/SlicerRT · GitHub](https://github.com/SlicerRt/SlicerRT/issues/241)

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).

---

<div class="post-metadata">

**Author:** ![sieunmiin96](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sieunmiin96/32/67738_2.png) [@sieunmiin96](https://discourse.slicer.org/u/sieunmiin96)\
**Post date:** [February 20, 2024, 4:33pm UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/7 "2024-02-20T16:33:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 21, 2024, 12:44pm UTC](https://discourse.slicer.org/t/unable-to-open-vff-file/34265/8 "2024-02-21T12:44:45Z")

</div>

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