# How to import a sequence of radial OCT image(.jpg)

**URL:** https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006
**Category:** Support
**Created:** [June 23, 2022, 7:33am UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006 "2022-06-23T07:33:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![coastcode](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coastcode/32/15762_2.png) [@coastcode](https://discourse.slicer.org/u/coastcode)
#### Post date: [June 23, 2022, 7:33am UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006/1 "2022-06-23T07:33:05Z")

</div>

I’m new to 3D Slicer. I have a sequence of radial OCT images(as jpg). How can I load it to slicer and reconstruct it?  
Really appreciate your help.

---

<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 24, 2022, 5:01am UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006/2 "2022-06-24T05:01:16Z")

</div>

Please follow the method described in this topic:

> [@3D reconstruction of radial OCT slices](https://discourse.slicer.org/t/3d-reconstruction-of-radial-oct-slices/20734):
>
> Hi everyone! I’m working on radial OCT scans of the optic nerve head (eye), and the slices are rotated from each other by 15°. Since I don’t have parallel slices, I’m struggling to construct the 3D model of the optic nerve head using those rotational slices. Is there a way that I could do it in 3D Slicer? Thanks in advance

---

<div class="post-metadata">

### Author: ![coastcode](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coastcode/32/15762_2.png) [@coastcode](https://discourse.slicer.org/u/coastcode)
#### Post date: [June 24, 2022, 9:10am UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006/3 "2022-06-24T09:10:13Z")

</div>

Thanks for your reply. I read this method, but there are many details that confuse me. For example, how to use the Transforms module to set the origin, spacing, and axis directions for each image slice? Also, is it right to run the code line by line in the python interactor window?

---

<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 24, 2022, 1:00pm UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006/4 "2022-06-24T13:00:40Z")

</div>

> [@coastcode](#):
>
> how to use the Transforms module to set the origin, spacing, and axis directions for each image slice?

You can set spacing by modifying the first 3 diagonal elements of the transformation matrix.

You can set the origin and axis direction by using the transform sliders. It takes time, maybe one minute for each image slice, but if you have a few dozens then you can finish it within half an hour. Of course it can be automated using Python scripting, but it may be easier to get started with just using the GUI.

> [@coastcode](#):
>
> is it right to run the code line by line in the python interactor window?

Yes, you can copy-paste code into the Python interactor.

The main concern is what you can get out of these 3D reconstructions. If you only have 12 images as in the linked topic above, then 3D information will be very sparse. You would need 5-10x more images to get a nice complete 3D volume. How many images do you have (what is the angle increment between each slice)?

---

<div class="post-metadata">

### Author: ![coastcode](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coastcode/32/15762_2.png) [@coastcode](https://discourse.slicer.org/u/coastcode)
#### Post date: [June 25, 2022, 5:40am UTC](https://discourse.slicer.org/t/how-to-import-a-sequence-of-radial-oct-image-jpg/24006/5 "2022-06-25T05:40:03Z")

</div>

I have 128 images, rotated 180 degrees in total, with the rotation axis in the middle.
