LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing the DICOM RT structure with DICOM images

Hi, 

 

LabVIEW can read DICOM images.

But How can I read the DICOM RT structure with DICOM images for radiotherapy application? The DICOM RT structure file is a *.dcm file format among the DICOM images.

 

 

 

 

 

0 Kudos
Message 1 of 6
(5,736 Views)

@MedPhy wrote:

LabVIEW can read DICOM images.

But How can I read the DICOM RT structure with DICOM images for radiotherapy application? The DICOM RT structure file is a *.dcm file format among the DICOM images.


I'm not an expert, but at least your post get bumped.

 

As far as I can tell, the .dcm has the same structure as a .dicom file.  Reading tags in a dicom file is explained here: How-to-Read-and-Write-DICOM-tags (I wouldn't use that coding style, but it might inspire a solution.)

 

If the RT structure is a tag, and you can get it's data by reading a tag, it's a matter of converting the data. If that is the problem, please post the structure and example data.

0 Kudos
Message 2 of 6
(5,662 Views)

Thanks for your reply.

I'd like to display RT structure file(.dcm) on CT DICOM images with as below.

 

MedPhy_0-1585699960910.png

 

But, an attached .dcm file wasn't read when I use LabVIEW Read Image Express VI as well as built-in "3D Image reconstructor.vi" example using isosurface extraction.

 

MedPhy_1-1585700393823.png

 

 

Download All
0 Kudos
Message 3 of 6
(5,643 Views)

I can't run that because a) it's LV19 I need <LV18 and b) I don't have the biomedical toolkit.

 

The only think I can think of is to see what happens when you change (or copy) the .dcm file to a .dicom file. Maybe, just maybe, the Read Image tests for the extension, and generates an error.

 

EDIT: Never mind, the previous link uses .dcm files.

 

Have you tried that code? If the file doesn't open at all you might have bigger issues. Perhaps a newer version that isn't supported by the biomedical toolkit?

0 Kudos
Message 4 of 6
(5,617 Views)

Yes, indeed I try to read your link. General .dcm(CT images) files are good to read but RT structure file couldn't read.

Thanks anyway.

0 Kudos
Message 5 of 6
(5,577 Views)

Are you comfortable with Python? It's integration into LV is decent.

 

 

From https://github.com/pydicom/pydicom/issues/770:

 

There is an RTSTRUCT example file included in pydicom

 from pydicom import dcmread
 from pydicom.data import get_testdata_files
 
 filename = get_testdata_files("rtstruct")[0]
 ds = dcmread(filename, force=True)

 

0 Kudos
Message 6 of 6
(5,542 Views)