import directory of Grayscale Word image slice files

Operating system: Window 10
Slicer version: 4.8.1
Expected behavior: I expect to see an 3D image in the 3D pane
Actual behavior: I see an empty cube and grayscale images in the other three panes

My first question is, “Does slicer DO 16bit word gray scale images? Would it load them if I got all the voodoo correct?”

If the answer to that question is, “No” then let me know and ignore the rest of this post.

I am new to Dicom and have inherited a C# app that reads a MatLab file that contains meta-data and an array of floats containing intensity data for a single 3D image. I am using the C# fo-dicom library to export this data as Grayscale images. I can save the slices as a multi-frame dcm file. That file is valid according to DVTK and I can load it into the leadtools dicom viewer and it plays as a “video” of slices.

I tried loading it into Slicer and that didn’t have anything visible displayed in the four Slicer panes. Can I assume that Slicer doesn’t load multi-frame files or have I got the voodoo wrong?

Anyway, I can also export my data as a series of images, one for each slice of my 3D volume. Each of those files is valid according to DVTK and can be viewed as a single slice in various Dicom viewers. But none of them will stitch the files into a, reconstructed, 3D volume. So I assume that I am doing it wrong, that I am not providing the information needed to reconstruct the 3D images from my slices.

I have Googled and will continue to Google for answers but I haven’t yet seen a simple list of requisites or instructions for creating a series of image slices that can be reconstructed into a 3D volume.

Does anyone know where I could find such a list or could you post the info I need?

As an aside: I am pretty much stuck with C# based solutions as I will be called from a C# app and I’d rather not have to spawn a process to run a Python script or install Matlab on hospital machines. My reluctance might crumble as I get closer to my deadline :wink: I am also going to look at using VTK - I know I can load and view my data in VTK so VTK or ITK might be a good option for me to generate slices and I will investigate it.

For today, I am hoping that I am just missing a few Dicom elements that can be used to stitch my files together. I just don’t know what they are yet.

I tried to upload 2 text files that describe the Dicom elements in the first two files of my series so you could see what I’m setting. But that isn’t allowed so I will append them as replies to this post.

Now I’m thinking that this should be posted to the developer’s forum but I don’t want to cross post.

What you describe should be easy to do. Can you confirm that you can browse through the volume by moving the sliders at the top of slice viewers? What imaging modality you use? What would you like to visualize in the 3D viewer? Have you tried Volume rendering module?

Hi Andras,

I can scroll through the image slices in all the 2D panes. It looks as good as our low res images always look. So that part works.

The imaging modality is imaging via a multi-static microwave antenna array which isn’t, yet, an official Dicom modality. This could be one of the many reasons that the volume isn’t reconstructed in the 3D pane (I guess).

My modality is: OT (other)

I am going to paste the text headers (exported by DVTK) of the first two files in my series.

First file headers follow this line.

DICOM header

(0x00020000, UL, 212) #Group 0002 Length
(0x00020001, OB, C:\DVTk - The Healthcare Validation Toolkit )\DICOM Editor\5.0.2.0\Results\B08_0026.pix) #File Meta Information Version
(0x00020002, UI, 1.2.840.10008.5.1.4.1.1.7) #Media Storage SOP Class UID
(0x00020003, UI, 1.2.826.0.1.5616345.57279226668323982872100893960904823680) #Media Storage SOP Instance UID
(0x00020010, UI, 1.2.840.10008.1.2.1) #Transfer Syntax UID
(0x00020012, UI, 1.3.6.1.4.1.30071.8) #Implementation Class UID
(0x00020013, SH, fo-dicom 3.0.2) #Implementation Version Name
(0x00020016, AE, REDACTED) #Source Application Entity Title
(0x00080005, CS, ISO_IR 100) #Specific Character Set
(0x00080008, CS, DERIVED\PRIMARY) #Image Type
(0x00080016, UI, 1.2.840.10008.5.1.4.1.1.7) #SOP Class UID
(0x00080018, UI, 1.2.826.0.1.5616345.57279226668323982872100893960904823680) #SOP Instance UID
(0x00080020, DA, 20170131) #Study Date
(0x00080021, DA, 20180521) #Series Date
(0x00080022, DA, 20170131) #Acquisition Date
(0x00080023, DA, 20180521) #Content Date
(0x00080030, TM, 095821) #Study Time
(0x00080031, TM, 151710) #Series Time
(0x00080032, TM, 095951) #Acquisition Time
(0x00080033, TM, 151710) #Content Time
(0x00080050, SH, EMPTY) #Accession Number
(0x00080060, CS, OT) #Modality
(0x00080064, CS, WSD) #Conversion Type
(0x00080090, PN, EMPTY) #Referring Physician’s Name
(0x00081030, LO, EMPTY) #Study Description
(0x00081070, PN, R^S) #Operators’ Name
(0x00100010, PN, L^G) #Patient’s Name
(0x00100020, LO, M5-1_P153) #Patient ID
(0x00100022, CS, TEXT) #Type of Patient ID
(0x00100030, DA, 20170131) #Patient’s Birth Date
(0x00100040, CS, F) #Patient’s Sex
(0x00101010, AS, 001Y) #Patient’s Age
(0x00180015, CS, BREAST) #Body Part Examined
(0x00180050, DS, 1) #Slice Thickness
(0x00181010, LO, REDACTED-SN003) #Secondary Capture Device ID
(0x00181016, LO, REDACTED) #Secondary Capture Device Manufacturer
(0x00181018, LO, REDACTED Workstation) #Secondary Capture Device Manufacturer’s Model Name
(0x00185100, CS, HFP) #Patient Position
(0x0020000d, UI, 1.2.826.0.1.5616345.503559762324855987616799250770876782749) #Study Instance UID
(0x0020000e, UI, 1.2.826.0.1.5616345.5059240054954347331544666827536685729) #Series Instance UID
(0x00200010, SH, 20170131095819) #Study ID
(0x00200011, IS, ) #Series Number
(0x00200013, IS, 1) #Instance Number
(0x00200020, CS, R\H) #Patient Orientation
(0x00200060, CS, R) #Laterality
(0x00280002, US, 1) #Samples per Pixel
(0x00280004, CS, MONOCHROME2) #Photometric Interpretation
(0x00280008, IS, 1) #Number of Frames
(0x00280010, US, 127) #Rows
(0x00280011, US, 127) #Columns
(0x00280030, DS, 1\1) #Pixel Spacing
(0x00280100, US, 16) #Bits Allocated
(0x00280101, US, 16) #Bits Stored
(0x00280102, US, 15) #High Bit
(0x00280103, US, 0) #Pixel Representation
(0x00281050, DS, 32768) #Window Center
(0x00281051, DS, 65535) #Window Width
(0x00400244, DA, 20170131) #Performed Procedure Step Start Date
(0x00400245, TM, 095821) #Performed Procedure Step Start Time
(0x00400254, LO, EMPTY) #Performed Procedure Step Description
(0x7fe00010, OW, C:\DVTk - The Healthcare Validation Toolkit ()\DICOM Editor\5.0.2.0\Results\W16L0027.pix) #Pixel Data

Second file headers follow this line:

DICOM header

(0x00020000, UL, 212) #Group 0002 Length
(0x00020001, OB, C:\DVTk - The Healthcare Validation Toolkit (www.dvtk.org)\DICOM Editor\5.0.2.0\Results\B08_0028.pix) #File Meta Information Version
(0x00020002, UI, 1.2.840.10008.5.1.4.1.1.7) #Media Storage SOP Class UID
(0x00020003, UI, 1.2.826.0.1.5616345.46390217425012691973470357670106283408) #Media Storage SOP Instance UID
(0x00020010, UI, 1.2.840.10008.1.2.1) #Transfer Syntax UID
(0x00020012, UI, 1.3.6.1.4.1.30071.8) #Implementation Class UID
(0x00020013, SH, fo-dicom 3.0.2) #Implementation Version Name
(0x00020016, AE, REDACTED) #Source Application Entity Title
(0x00080005, CS, ISO_IR 100) #Specific Character Set
(0x00080008, CS, DERIVED\PRIMARY) #Image Type
(0x00080016, UI, 1.2.840.10008.5.1.4.1.1.7) #SOP Class UID
(0x00080018, UI, 1.2.826.0.1.5616345.46390217425012691973470357670106283408) #SOP Instance UID
(0x00080020, DA, 20170131) #Study Date
(0x00080021, DA, 20180521) #Series Date
(0x00080022, DA, 20170131) #Acquisition Date
(0x00080023, DA, 20180521) #Content Date
(0x00080030, TM, 095821) #Study Time
(0x00080031, TM, 151710) #Series Time
(0x00080032, TM, 095951) #Acquisition Time
(0x00080033, TM, 151710) #Content Time
(0x00080050, SH, EMPTY) #Accession Number
(0x00080060, CS, OT) #Modality
(0x00080064, CS, WSD) #Conversion Type
(0x00080090, PN, EMPTY) #Referring Physician’s Name
(0x00081030, LO, EMPTY) #Study Description
(0x00081070, PN, R^S) #Operators’ Name
(0x00100010, PN, L^G) #Patient’s Name
(0x00100020, LO, M5-1_P153) #Patient ID
(0x00100022, CS, TEXT) #Type of Patient ID
(0x00100030, DA, 20170131) #Patient’s Birth Date
(0x00100040, CS, F) #Patient’s Sex
(0x00101010, AS, 001Y) #Patient’s Age
(0x00180015, CS, BREAST) #Body Part Examined
(0x00180050, DS, 1) #Slice Thickness
(0x00181010, LO, REDACTED-SN003) #Secondary Capture Device ID
(0x00181016, LO, REDACTED) #Secondary Capture Device Manufacturer
(0x00181018, LO, REDACTED Workstation) #Secondary Capture Device Manufacturer’s Model Name
(0x00185100, CS, HFP) #Patient Position
(0x0020000d, UI, 1.2.826.0.1.5616345.503559762324855987616799250770876782749) #Study Instance UID
(0x0020000e, UI, 1.2.826.0.1.5616345.5059240054954347331544666827536685729) #Series Instance UID
(0x00200010, SH, 20170131095819) #Study ID
(0x00200011, IS, ) #Series Number
(0x00200013, IS, 1) #Instance Number
(0x00200020, CS, R\H) #Patient Orientation
(0x00200060, CS, R) #Laterality
(0x00280002, US, 1) #Samples per Pixel
(0x00280004, CS, MONOCHROME2) #Photometric Interpretation
(0x00280008, IS, 1) #Number of Frames
(0x00280010, US, 127) #Rows
(0x00280011, US, 127) #Columns
(0x00280030, DS, 1\1) #Pixel Spacing
(0x00280100, US, 16) #Bits Allocated
(0x00280101, US, 16) #Bits Stored
(0x00280102, US, 15) #High Bit
(0x00280103, US, 0) #Pixel Representation
(0x00281050, DS, 32768) #Window Center
(0x00281051, DS, 65535) #Window Width
(0x00400244, DA, 20170131) #Performed Procedure Step Start Date
(0x00400245, TM, 095821) #Performed Procedure Step Start Time
(0x00400254, LO, EMPTY) #Performed Procedure Step Description
(0x7fe00010, OW, C:\DVTk - The Healthcare Validation Toolkit (www.dvtk.org)\DICOM Editor\5.0.2.0\Results\W16L0029.pix) #Pixel Data

Data import is correct then. You have a 3D volume in the scene.

If you are lucky (structures that you would like to visualize have a distinct intensity range) then direct volume rendering can nicely visualize your data in 3D. So, I would recommend to experiment with Volume rendering module.

If your structures of interest are not easily separable by intensity range, then you have to segment the volume by using Segment editor module. There are some manual and semi-automatic tools - see step-by-step tutorials here.

Thanks, I used the Grayscale Model maker and saw a 3D volume. I will try your suggestions and see what I get.

My problems were, probably, down to my unfamiliarity with Slicer but I thought they were due to my data exporting.

Still, if anyone knows some good links that might help me export better data then I would be grateful. maybe I could export data that could be viewed in a wide range of Dicom viewers.

Thank you :slight_smile: