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

This function destroys the Data Set associated with the HIGEAR image specified.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_destroy(HIGEAR hIGear);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of the image whose Data Set will be destroyed.

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.

Remarks:

Once the Data Set is removed, the image is just like any other image loaded into ImageGear.