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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scaling TImageEnView for measurement of DICOM images

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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