简体   繁体   中英

Display VALUE parameter of DICOM image

I'm using the Evil Dicom dll. Currently for one of the tags, Counts Accumulated, I can extract and display the VR parameter, LENGTH parameter and TAG DESCRIPTION parameter.

However, I haven't found a way to extract and display the VALUE parameter, ie the physical number of the counts accumulated. Everything I have tried up to know keeps giving me errors.

Can someone be kind enough to give me an idea how to extract this information?

According to the EvilDicom Getting Started page , it should be as simple as this:

DICOMFile df = new DICOMFile("test.dcm");  
int[] countsDataArray = df.COUNTS_ACCUMULATED.Data;
int countsAccumulated = countsArray[0];

COUNTS_ACCUMULATED is of type IntegerString , which has a Data member that returns an integer array. The Value Multiplicity of Counts Accumulated is 1 , so you only need to access the first value in the Data array.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM