ImageGear for C and C++ on Linux v18.10 - Updated
MED_DCM_DS_exists
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Data Set Functions > MED_DCM_DS_exists

This function determines whether an image has a Data Set associated with it.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_exists(
        const HIGEAR hIGear, 
        LPBOOL lpExists
);

Arguments:

Name Type Description
hIGear const HIGEAR A HIGEAR handle to an image.
lpExists LPBOOL A far pointer that returns a BOOL. If it returns TRUE, a Data Set exists for the image; if it returns FALSE, a Data Set does not exist for the image.

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.

Remarks:

Supply it with the HIGEAR handle to the image you want to check, and lpExists will return whether or not this image has a Data Set. See Working With DICOM Data Structures section for more information.