# Segmentation of CT scan loaded from large .tiff/.nrrd

**URL:** <https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [April 9, 2018, 4:02pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545 "2018-04-09T16:02:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 9, 2018, 4:02pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/1 "2018-04-09T16:02:27Z")

</div>

Hello,

first of sorry, I know that this topic has been answered before, but the solutions don’t work for me.

Version: 3D Slicer 4.8.1  
Windows 10

I have a CT scan in individual .tiff images. If I try this method [Documentation/4.8/FAQ - Slicer Wiki](https://www.slicer.org/wiki/Documentation/4.8/FAQ#How_to_load_data_from_a_sequence_of_jpg.2C_tif.2C_or_png_files.3F) either just one picture is loaded or none. Or everything is a single volume.

I have generated a .nrrd of my tiff-stack in hopes of using this, but the file won’t load.  
This is the Error Massage for the .nrrd file.

> Exception from vtkITK MegaMacro:  
> itk::MemoryAllocationError (00000005DC4F8F58)  
> Location: “unknown”  
> File: d:\d\p\slicer-481-package\itkv4\modules\core\common\include\itkImportImageContainer.hxx  
> Line: 199  
> Description: Failed to allocate memory for image.
> 
> Algorithm vtkITKArchetypeImageSeriesScalarReader(000001F7F8403B10) returned failure for request: vtkInformation (000001F782BB4F40)  
> Debug: Off  
> Modified Time: 896388  
> Reference Count: 1  
> Registered Events: (none)  
> Request: REQUEST\_DATA  
> FROM\_OUTPUT\_PORT: 0  
> FORWARD\_DIRECTION: 0  
> ALGORITHM\_AFTER\_FORWARD: 1
> 
> ReadData: Cannot read file as a volume of type DiffusionTensorVolume[fullName = F:/filepath]  
> Number of files listed in the node = 0.  
> File reader says it was able to read 1 files.  
> File reader used the archetype file name of F:/filepath [reader 0th file name = F:/filepath]  
> FileFormatError
> 
> ReadData: MRMLVolumeNode does not match file kind
> 
> ReadData: Failed to instantiate a file reader
> 
> ReadData: Cannot read file as a volume of type Volume[fullName = F:/filepath]  
> Number of files listed in the node = 0.  
> File reader says it was able to read 1 files.  
> File reader used the archetype file name of F:/filepath[reader 0th file name = F:/filepath]  
> FileFormatError

If someone has an idea or can point out what I did wrong it would be greatly appreciated.

Thank you.

---

<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:** [April 9, 2018, 5:00pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/2 "2018-04-09T17:00:48Z")

</div>

> [@r\_baumgarten](#):
>
> Or everything is a single volume

Isn’t loading all the tiff files as a single volume what you want?

---

<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 9, 2018, 6:39pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/3 "2018-04-09T18:39:51Z")

</div>

> [@r\_baumgarten](#):
>
> Description: Failed to allocate memory for image.

You don’t have enough memory space to load this image. You may need to increase the amount of physical RAM or virtual memory or load a smaller version of the image.

How big is one frame? How many frames makes up the volume? How much physical and virtual memory do you have? (reported in first few lines of the application log in Help / Report a bug)

---

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 9, 2018, 7:53pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/4 "2018-04-09T19:53:35Z")

</div>

Ah sorry, I wasn’t clear enough in that description. So what I meant is, that i get image1.tiff, image2.tiff, etc. as a volume that I can choose from and not all images in a single volume

---

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 9, 2018, 8:02pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/5 "2018-04-09T20:02:33Z")

</div>

> [@lassoan](#):
>
> How big is one frame? How many frames makes up the volume? How much physical and virtual memory do you have? (reported in first few lines of the application log in Help / Report a bug)

One frame is 16091 KB and I have approximatly 5000 in a volume. The Laptop I’m currently using has 8GB RAM and 689 GB virtual memory.

So if memory space and RAM is a problem I can work with a more powerful PC.

---

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 11, 2018, 11:34am UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/6 "2018-04-11T11:34:38Z")

</div>

I tested my file on another Computer with 129 RAM. I could only open a single tiff-file, otherwise the programm would crash.

Does someone have another idea?

---

<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 11, 2018, 6:47pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/7 "2018-04-11T18:47:27Z")

</div>

You could try to have just a few ten or few hundred files in the folder to see if loading succeeds then.

---

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 13, 2018, 12:49pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/8 "2018-04-13T12:49:10Z")

</div>

It isn’t. But even if it were I want to look at my whole scan, not just images. Thanks anyways.

---

<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 13, 2018, 1:07pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/9 "2018-04-13T13:07:40Z")

</div>

Can you share 10-20 subsequent images of your data set? If not then please copy 10 subsequent images to a separate folder, drag-and-drop the first one to the application window, uncheck single file option in the add data dialog, and post here the application log (menu: Help / Report a bug).

---

<div class="post-metadata">

**Author:** ![r\_baumgarten](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@r\_baumgarten](https://discourse.slicer.org/u/r_baumgarten)\
**Post date:** [April 16, 2018, 12:21pm UTC](https://discourse.slicer.org/t/segmentation-of-ct-scan-loaded-from-large-tiff-nrrd/2545/10 "2018-04-16T12:21:26Z")

</div>

I don’t know what happend but it’s working know with the tiff files. So thank you all for your help :).
