L_DicomGetCountImage

#include "Ltdic.h"

L_UINT32 EXT_FUNCTION L_DicomGetCountImage(hDS, pElement)

HDICOMDS hDS;

/* a DICOM */

pDICOMELEMENT pElement;

/* pointer to a DICOMELEMENT structure */

Returns the number of frames in a Pixel Data element.

Parameter

Description

hDS

A DICOM handle.

pElement

Pointer to a DICOMELEMENT structure within the Data Set.

Returns

Number of frames in a Pixel Data element.

Comments

If pElement is NULL, this function returns the number of images present in the entire Data Set.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomGetImage, L_DicomGetImageList

Topics:

Working with Data Sets

Example

/* This example gets the number of all images in Data Set */

L_VOID Test()
{
   HDICOMDS hDS;
   L_UINT32 nCount;

   hDS = L_DicomCreateDS(NULL);

   L_DicomLoadDS(hDS, "c:\\ltwin14\\images\\image1.dic", 0);

   nCount = L_DicomGetCountImage(hDS, NULL);

   L_DicomFreeDS(hDS);
}