| T O P I C R E V I E W |
| xequte |
Posted - Nov 12 2025 : 17:18:59 How can I use the DICOM tags (US Region sequence or pixel spacing value) together with the TImageEnVIew.SetScaleFromPixels() function to accurately perform measurement in a medical image?
OK, so the tags in your DICOM image specify the scaling as follows:
(0018,6024) Physical Units X Direction (US) : "3" (0018,6026) Physical Units Y Direction (US) : "3" (0018,6028) Reference Pixel Physical Value X (FD) : "0.000000" (0018,602A) Reference Pixel Physical Value Y (FD) : "0.000000" (0018,602C) Physical Delta X (FD) : "0.011576" (0018,602E) Physical Delta Y (FD) : "0.011576"
(You can view tags using the demo: Demos\InputOutput\DicomTags\DicomTags.dpr).
The values for "Physical Units X Direction" are defined at:
https://dicom.nema.org/medical/Dicom/2015c/output/chtml/part03/sect_C.8.5.5.html#sect_C.8.5.5.1.15
where 3 = CM.
So the scaling for this image would be:
1 pixel = 0.011576cm
Which you can scale the TImageEnView using:
ImageEnView1.SetScale( 1, 0.011576, ieuCentimeters );
https://www.imageen.com/help/TImageEnView.SetScale.html
You can test this in the MeasureIt demo:
\Demos\ImageAnalysis\MeasureIt\MeasureIt.dpr
Nigel Xequte Software www.imageen.com
|
|
|