I am working with DICOM images, and would like to change the resolution of all the images I have to 0.5mm/pixel. What are the entries that I should access in the DICOM header and how can I change the resolution?
Thank you,
I am working with DICOM images, and would like to change the resolution of all the images I have to 0.5mm/pixel. What are the entries that I should access in the DICOM header and how can I change the resolution?
Thank you,
What is the SOP Class of your DICOM dataset? Assuming you are dealing with volumetric SOP class which should include Image Plane module. In that case, Pixel Spacing (0028, 0030) is a mandatory type 1 element and should be present in the dataset. You can also add the attribute to the dataset and set the values yourself. Please note that all pixel spacing related attributes are encoded as the physical distance between the centers of each two dimensional pixel, specified by two numeric values in mm. The first value is the spacing between the centers of adjacent rows (row spacing) and second value is the is the spacing between the centers of adjacent columns (column spacing).