ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scaling TImageEnView for measurement of DICOM images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

39245 Posts

Posted - Nov 12 2025 :  17:18:59  Show Profile  Reply
 
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: