# DICOM Export Rounding to Integer Values

**URL:** <https://discourse.slicer.org/t/dicom-export-rounding-to-integer-values/8038>\
**Category:** Support\
**Tags:** dicom, pkmodeling\
**Created:** [August 15, 2019, 1:19am UTC](https://discourse.slicer.org/t/dicom-export-rounding-to-integer-values/8038 "2019-08-15T01:19:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 16, 2019, 4:39am UTC](https://discourse.slicer.org/t/dicom-export-rounding-to-integer-values/8038/6 "2019-08-16T04:39:01Z")

</div>

To share data between Slicer and Matlab, I would not recommend using DICOM, especially if you want to minimize information loss and you don’t have a clear idea how PK maps should be stored in DICOM in a standard-compliant way.

Probably the most forward-looking solution is to not bother with Matlab anymore and implement your analysis in Python. See tutorials [here](https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s_Slicer_bootcamp_training_materials).

Second option is to use Slicer’s [MatlabBridge extension](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MatlabBridge), which allows running a function implemented in Matlab directly from Slicer (the bridge takes care of passing data between Slicer and Matlab).

Third option is to save the image to a nrrd file and manually read it into Matlab using [nrrdread.m](https://github.com/PerkLab/SlicerMatlabBridge/blob/master/MatlabCommander/commandserver/nrrdread.m).

---

_[View the full topic](https://discourse.slicer.org/t/dicom-export-rounding-to-integer-values/8038)._
