03-23-2020 09:49 PM
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.
03-26-2020 07:41 AM
@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.
03-31-2020 07:37 PM
Thanks for your reply.
I'd like to display RT structure file(.dcm) on CT DICOM images with as below.
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.
04-01-2020 03:07 AM - edited 04-01-2020 03:10 AM
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?
04-03-2020 02:33 AM - edited 04-03-2020 02:43 AM
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.
04-03-2020 07:44 AM
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)