# OCT .fds image in 3D slicer?

**URL:** <https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219>\
**Category:** Support\
**Tags:** oct\
**Created:** [June 18, 2021, 7:11pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219 "2021-06-18T19:11:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daiana\_P](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/daiana_p/32/11310_2.png) [@Daiana\_P](https://discourse.slicer.org/u/Daiana_P)\
**Post date:** [June 18, 2021, 7:11pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/1 "2021-06-18T19:11:20Z")

</div>

Wondering if I can load OCT .fds files into 3D slicer.

Otherwise I can get .png files but how can i stack them?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 18, 2021, 7:22pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/2 "2021-06-18T19:22:47Z")

</div>

I’m not too familiar with OCT, but if you can convert them to something Slicer can read it should work. People have done it before and had good luck. It looks like [this converter](https://github.com/marksgraham/OCT-Converter) could be helpful and maybe you could use it to bypass the png step by reading directly into slicer. Or if you have the pngs already you could use [ImageStacks](https://github.com/SlicerMorph/SlicerMorph/tree/master/Docs/ImageStacks) from SlicerMorph to read them in and set the spacing parameters.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 18, 2021, 7:42pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/3 "2021-06-18T19:42:23Z")

</div>

If you often need to read such images into Slicer then you can use the converter that @pieper suggested above to create a reader plugin for Slicer (probably you need to write less than 30 lines of code, see a complete example [here](https://github.com/Slicer/Slicer/blob/master/Applications/SlicerApp/Testing/Python/SlicerScriptedFileReaderWriterTest.py)). If you can share an example file then I can give it a try to write a plugin.

---

<div class="post-metadata">

**Author:** ![Daiana\_P](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/daiana_p/32/11310_2.png) [@Daiana\_P](https://discourse.slicer.org/u/Daiana_P)\
**Post date:** [June 20, 2021, 1:29pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/4 "2021-06-20T13:29:36Z")

</div>

Thank you very much for your help. Here is an example file [https://uwoca-my.sharepoint.com/:u:/g/personal/dpur\_uwo\_ca/EbAqtJUjuBpEpAm8QD\_uxfYBy359eLrZNye78o2K41Ftag?e=z4FSzk](https://uwoca-my.sharepoint.com/:u:/g/personal/dpur_uwo_ca/EbAqtJUjuBpEpAm8QD_uxfYBy359eLrZNye78o2K41Ftag?e=z4FSzk)

@pieper Thank you for the suggestions I have tried it, it did work to get the PNG files with a different OCT file. The one I plan on using seems to have a slightly different internal organization and it’s giving me some errors when converting to PNG. I reached out to the creator of the converter and hopefully he has some tips!

---

<div class="post-metadata">

**Author:** ![dpuruwo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpuruwo/32/11520_2.png) [@dpuruwo](https://discourse.slicer.org/u/dpuruwo)\
**Post date:** [July 7, 2021, 5:09pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/5 "2021-07-07T17:09:42Z")

</div>

I am wondering if you have had a chance to write a plugin for it. Thank you

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 9, 2021, 5:53am UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/6 "2021-07-09T05:53:04Z")

</div>

I’ve added an [OCT importer plugin](https://github.com/PerkLab/SlicerSandbox/blob/master/ImportOCT/ImportOCT.py) to Sandbox extension that uses [OCT-Converter](https://github.com/marksgraham/OCT-Converter) Python package to read OCT volumes stored in .fda file format. It is available in the latest Slicer Preview Release.

---

<div class="post-metadata">

**Author:** ![dpuruwo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpuruwo/32/11520_2.png) [@dpuruwo](https://discourse.slicer.org/u/dpuruwo)\
**Post date:** [July 21, 2021, 1:14am UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/7 "2021-07-21T01:14:51Z")

</div>

Thank you very much! I’ve been struggling to find the extension in the extension manager. Not sure why! This is what I see

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/6/f6b71c1b61e99edd885c0139ee0b617855c9cc40.jpeg)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 21, 2021, 1:28am UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/8 "2021-07-21T01:28:09Z")

</div>

Thanks for reporting this. I’ve made a mistake when I added the new module, which cause packaging to fail. The Sandbox extension should be available again in the Slicer Preview Release from tomorrow.

---

<div class="post-metadata">

**Author:** ![dpuruwo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dpuruwo/32/11520_2.png) [@dpuruwo](https://discourse.slicer.org/u/dpuruwo)\
**Post date:** [August 1, 2021, 2:00pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/9 "2021-08-01T14:00:55Z")

</div>

Hello! Sorry to bug you again. I’ve tried different things but I still cannot access it.

 ![Screen Shot 2021-08-01 at 9.58.19 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/b/8b2389e0c78a0db4801b778b9a22fe8b43b29530.jpeg)  
 ![Screen Shot 2021-08-01 at 9.58.41 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/5/9552b1d37c066041c1eca85c7f857cdd69dc2a17.jpeg)

I can see and download the Sandbox but when I try to access it via Slicer it’s not there.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 1, 2021, 8:37pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/10 "2021-08-01T20:37:14Z")

</div>

All you need is to install the extension. It registers the reader plugin automatically. You can then simply drag-and-drop the .fda file to the application window to load it.

---

<div class="post-metadata">

**Author:** ![YaseminTurkan](https://avatars.discourse-cdn.com/v4/letter/y/b2d939/32.png) [@YaseminTurkan](https://discourse.slicer.org/u/YaseminTurkan)\
**Post date:** [April 24, 2022, 12:02pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/11 "2022-04-24T12:02:33Z")

</div>

Hi, I am also trying to run fds files with the 3D Slicer. I have seen that you have developed an extention. However when I try to install the sandbox extention I can not see it. I am new to 3D Slicer, do I miss anything?

---

<div class="post-metadata">

**Author:** ![YaseminTurkan](https://avatars.discourse-cdn.com/v4/letter/y/b2d939/32.png) [@YaseminTurkan](https://discourse.slicer.org/u/YaseminTurkan)\
**Post date:** [April 24, 2022, 1:29pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/12 "2022-04-24T13:29:30Z")

</div>

Hi, I have managed to install the sandbox and the extension. When I choose the fda file I can see the correct Description called “OCT image”  
However when I try to open the file I get the following error:

Error occurred while loading the selected files.

Click ‘Show details’ button and check the application log for more information.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 24, 2022, 7:29pm UTC](https://discourse.slicer.org/t/oct-fds-image-in-3d-slicer/18219/13 "2022-04-24T19:29:02Z")

</div>

What do you see in “See details” and in the application log?
