Converting Pathological Images to 3D Models

Hi dear Slicer community

I am trying to convert images of pathology (jpeg) to 3d models. Is it possible to do something like this in Slicer or should I look for other options ? Also I am open to any suggestions.

Best Regards

You can render these slices directly directly in 3D, or segment them and create 3D model. The main challenge is to align the slices and you may need a strong computer if the resolution of the slices is very high.

1 Like

Hello Andras ,

I am trying to make the jpeg images work on slicer but when I try to load a jpeg bundle it only loads one image as a sequance. Load sequence of PNG files as a 3D volume into 3D Slicer - YouTube I tried this tutorial and did not work for me. Do you have any suggestions.

Thank you

Probably not all your images are exactly the same size. You will probably see an error message about this in the application log. If there is no error message or it indicates a different problem, then let us know.

Hi Andras,

Recent log file is down below.

Errors:

Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\Yakup\AppData\Local\NA-MIC\Slicer 4.11.20210226\lib\Python\Lib\imp.py”, line 170, in load_source
module = _exec(spec, sys.modules[name])
File “”, line 618, in _exec
File “”, line 678, in exec_module
File “”, line 219, in call_with_frames_removed
File “C:/Users/Yakup/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/ChangeTracker/lib/Slicer-4.11/qt-scripted-modules/ChangeTracker.py”, line 4, in
import ChangeTrackerWizard
File "C:\Users\Yakup\AppData\Local\NA-MIC\Slicer 4.11.20210226\NA-MIC\Extensions-29738\ChangeTracker\lib\Slicer-4.11\qt-scripted-modules\ChangeTrackerWizard_init
.py", line 2, in
from ChangeTrackerStep import *
ModuleNotFoundError: No module named ‘ChangeTrackerStep’
loadSourceAsModule - Failed to load file “C:/Users/Yakup/AppData/Local/NA-MIC/Slicer 4.11.20210226/NA-MIC/Extensions-29738/ChangeTracker/lib/Slicer-4.11/qt-scripted-modules/ChangeTracker.py” as module “ChangeTracker” !
Fail to instantiate module “ChangeTracker”
libpng warning: iCCP: known incorrect sRGB profile
The following modules failed to be instantiated:
ChangeTracker
When loading module “ChangeTrackerSelfTest” , the dependency “ChangeTracker” failed to be loaded.

Warnings:

libpng warning: iCCP: known incorrect sRGB profile
When loading module “ChangeTrackerSelfTest” , the dependency “ChangeTracker” failed to be loaded.

Messages:

Session start time …: 2021-06-01 17:12:59

Slicer version …: 4.11.20210226 (revision 29738 / 7a593c8) win-amd64 - installed release

Operating system …: Windows / Professional / (Build 19041, Code Page 65001) - 64-bit

Memory …: 3978 MB physical, 15978 MB virtual

CPU …: GenuineIntel , 8 cores, 8 logical processors

VTK configuration …: OpenGL2 rendering, TBB threading

Qt configuration …: version 5.15.1, with SSL, requested OpenGL 3.2 (compatibility profile)

Developer mode enabled …: no

Prefer executable CLI …: yes

Application path …: C:/Users/Yakup/AppData/Local/NA-MIC/Slicer 4.11.20210226/bin

Additional module paths …: NA-MIC/Extensions-29738/ChangeTracker/lib/Slicer-4.11/cli-modules, NA-MIC/Extensions-29738/ChangeTracker/lib/Slicer-4.11/qt-scripted-modules, NA-MIC/Extensions-29738/PETTumorSegmentation/lib/Slicer-4.11/qt-loadable-modules, NA-MIC/Extensions-29738/PETTumorSegmentation/lib/Slicer-4.11/qt-scripted-modules, NA-MIC/Extensions-29738/PET-IndiC/lib/Slicer-4.11/cli-modules, NA-MIC/Extensions-29738/PET-IndiC/lib/Slicer-4.11/qt-scripted-modules, NA-MIC/Extensions-29738/PETDICOMExtension/lib/Slicer-4.11/cli-modules, NA-MIC/Extensions-29738/PETDICOMExtension/lib/Slicer-4.11/qt-scripted-modules, NA-MIC/Extensions-29738/SlicerElastix/lib/Slicer-4.11/qt-scripted-modules

Reversing DICOM dictionary so can look up tag from a keyword…

Scripted subject hierarchy plugin registered: Annotations

Scripted subject hierarchy plugin registered: SegmentStatistics

Scripted subject hierarchy plugin registered: SegmentEditor

Switch to module: “Welcome”

Loaded volume from file: C:/Users/Yakup/Desktop/Patoloji Deneme 3D/Prostate 1.jpg. Dimensions: 1041x969x1. Number of components: 3. Pixel type: unsigned char.

“Volume” Reader has successfully read the file “C:/Users/Yakup/Desktop/Patoloji Deneme 3D/Prostate 1.jpg” “[0.05s]”

Loaded volume from file: C:/Users/Yakup/Desktop/Patoloji Deneme 3D/Prostat 2.png. Dimensions: 1041x969x1. Number of components: 4. Pixel type: unsigned char.

“Volume” Reader has successfully read the file “C:/Users/Yakup/Desktop/Patoloji Deneme 3D/Prostat 2.png” “[0.05s]”

Thank you

If you uncheck the “single file” option then the file reader will look for similarly named files in the folder and attempt to load them as one image stack. The logs do not indicate that loading of multiple files was attempted, which may indicate that the reader did not find similar files. What are the names of your other files in the folder?

You can also use Image Stacks module (provided by SlicerMorph extension), which allows you to explicitly specify a list of files or name matching pattern (and it has a number of additional useful features, such as downsampling and loading of the relevant region of a large image).

1 Like