I need a little help!
I am developing a viewing DICOM application, similar to the KPacs. But I have a doubt about the best way to proceed.
I will implement the ability to import DICOM files with and without DICOMDIR but do not know the best way to do it. Copy the original file without modifications or I copy the whole dataset and pixel-data to a new file?
What is the best way to realiar the second option?
Thanks!
Best way to proceed with my Dicom Viewer
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Best way to proceed with my Dicom Viewer
Hi,
I am not sure whether I understand exactly what you mean by
In general, you should at least somewhere keep a copy of the original file, i.e. do not alter any of its attributes or pixel data at all.
If you need to modify them (e.g. since they contain errors), you may copy the file for yourself and then alter the copy, or you patch those alterations into the file every time you work with the file. The latter is what most PACSes do (to my knowledge). In both cases you can re-produce the original dataset.
I never implemented a DICOM viewer so this may not be the final truth
Best,
Michael
I am not sure whether I understand exactly what you mean by
. Do you mean you want to split the pixel data from the rest of the dataset and save both separately? Note that you usually need information from the non-pixel data data elements in order to interpret the pixel data correctly (e.g. Modality LUT, Windowing but also CT positional data in case you like to sort frames for display).Copy the original file without modifications or I copy the whole dataset and pixel-data to a new file?
In general, you should at least somewhere keep a copy of the original file, i.e. do not alter any of its attributes or pixel data at all.
If you need to modify them (e.g. since they contain errors), you may copy the file for yourself and then alter the copy, or you patch those alterations into the file every time you work with the file. The latter is what most PACSes do (to my knowledge). In both cases you can re-produce the original dataset.
I never implemented a DICOM viewer so this may not be the final truth

Best,
Michael
-
- Posts: 4
- Joined: Mon, 2008-09-08, 21:24
Re: Best way to proceed with my Dicom Viewer
I think citing an example is better.
The KPacs has the ability to import DICOM files for your database through the Filesystem tab.
So I can import a CD/DVD/e-mail data to KPacs database and store for backup and others.
I wanted to know the best way to do the same.
Copy the whole dataset feathers modifying the compression of the image, Iterate dataset, only I copy and rename the file?
private tags, copy or discard?
I want only one .dcm file, but was the best way to do?
The KPacs has the ability to import DICOM files for your database through the Filesystem tab.
So I can import a CD/DVD/e-mail data to KPacs database and store for backup and others.
I wanted to know the best way to do the same.
Copy the whole dataset feathers modifying the compression of the image, Iterate dataset, only I copy and rename the file?
private tags, copy or discard?
I want only one .dcm file, but was the best way to do?
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest