# Original objects

We differentiate between the *original* and *derived* DICOM objects in the IDC portal and discussions of the IDC-hosted data. By Original objects we mean DICOM objects that are produced by image acquisition equipment - MR, CT, or PET images fall into this category. By Derived objects we mean those objects that were generated by means of analysis or annotation of the original objects. Those objects can contain, for example, volumetric segmentations of the structures in the original images, or quantitative measurements of the objects in the image.

## Original objects

Most of the images stored on IDC are saved as objects that store individual slices of the image in separate instances of a series, with the image stored in the `PixelData` attribute.

As of production release, IDC contains both radiology and digital pathology images. The following publication can serve as a good introduction into the use of DICOM for digital pathology.

> Herrmann, M. D., Clunie, D. A., Fedorov, A., Doyle, S. W., Pieper, S., Klepeis, V., Le, L. P., Mutter, G. L., Milstone, D. S., Schultz, T. J., Kikinis, R., Kotecha, G. K., Hwang, D. H., Andriole, K. P., John Lafrate, A., Brink, J. A., Boland, G. W., Dreyer, K. J., Michalski, M., Golden, J. A., Louis, D. N. & Lennerz, J. K. Implementing the DICOM standard for digital pathology. J. Pathol. Inform. **9,** 37 (2018). [PubMed](https://pubmed.ncbi.nlm.nih.gov/30533276/)

Open source libraries such as DCMTK, GDCM, ITK, and pydicom can be used to parse such files and load pixel data of the individual slices. Recovering geometry of the individual slices (spatial location and resolution) and reconstruction of the individual slices into a volume requires some extra consideration.

{% hint style="info" %}
You can use one of the existing tools to reconstruct image volume instead of implementing sorting of the slices on your own:
{% endhint %}

* [dcm2niix](https://github.com/rordenlab/dcm2niix): command-line tool to convert neuroimaging data from the DICOM format to the NIfTI format
* [Plastimatch](https://plastimatch.org/): open source software for image computation, which includes [command-line file format converter](https://plastimatch.org/plastimatch.html)
* [dicom2nifti](https://github.com/icometrix/dicom2nifti): python library providing API and command-line tools for converting DICOM images into NIfTI format
* [SimpleITK](https://simpleitk.readthedocs.io/en/master/index.html): python interface to the [Insight Toolkit](https://github.com/InsightSoftwareConsortium/ITK), includes [DICOM read functionality](https://simpleitk.readthedocs.io/en/master/link_DicomSeriesReader_docs.html).
