ImageGear for C and C++ on Linux v20.0 - Updated
MED_DCM_DS_orig_TS_get
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Data Set Functions > MED_DCM_DS_orig_TS_get

This function returns the original Transfer Syntax used for the image, and indicates whether of not it had a Part 10 header and the group length Data Elements.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_orig_TS_get(
        const HIGEAR hIGear, 
        LPAT_MODE lpOrigTS, 
        LPBOOL lpPart10, 
        LPBOOL lpGrpLengths
);

Arguments:

Name Type Description
hIGear const HIGEAR HIGEAR handle to the image.
lpOrigTS LPAT_MODE A far pointer to the original setting for TS (Transfer Syntax). Set to NULL if you do not need this information. See enumIGMedTS enumeration for complete list of Transfer Syntaxes.
lpPart10 LPBOOL A far pointer to a BOOL which indicates whether the original file was a Part 10 file. If TRUE-the original was a Part 10 file; If FALSE-the original was not a Part 10 file. Set to NULL if you do not need this information.
lpGrpLengths LPBOOL A far pointer that returns a Boolean value indicating whether the original DICOM image had any Group Length Data Elements in it. TRUE means that it did have Group Length Data Elements; FALSE means that there were none. Set to NULL if you do not need this information.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

This function does not process image pixels.

The image must have a DICOM DataSet attached to it. Use MED_DCM_DS_exists to check whether the image contains a DataSet.

Is this page helpful?
Yes No
Thanks for your feedback.