I want to change the value of DCM_InstanceNumber, ie. the number of the image by using the following:
Uint16 value;
findAndGetUint16 (Dcm_InstanceNumber, value);
But I couldn't get the value I want. Could you please give me an example? Thank you.
findAndGetUint16
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 117
- Joined: Tue, 2004-11-02, 17:21
- Location: Oldenburg, Germany
- Contact:
According to part 6 of the DICOM standard, attribute InstanceNumber has a datatype/value representation of IS (integer string).
Function findAndGetUint16(...) is applicable to OW and US attributes only (see comment in dcmdata/include/dcitem.h).
You should use findAndGetOFString(...), which is applicable to AE, AS, AT, CS, DA, DS, DT, FL, FD, ___IS___, LO, LT, OB, OF, OW, PN, SH, SL, SS, ST, TM, UI, UL, US and UT, instead. See comment in dcmdata/include/dcitem.h for more information.
Function findAndGetUint16(...) is applicable to OW and US attributes only (see comment in dcmdata/include/dcitem.h).
You should use findAndGetOFString(...), which is applicable to AE, AS, AT, CS, DA, DS, DT, FL, FD, ___IS___, LO, LT, OB, OF, OW, PN, SH, SL, SS, ST, TM, UI, UL, US and UT, instead. See comment in dcmdata/include/dcitem.h for more information.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
You can also use findAndGetSint32().
Who is online
Users browsing this forum: Bing [Bot] and 1 guest