#include "Ltdic.h"
L_LTDIC_API L_UINT32 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. |
Number of frames in a Pixel Data element.
If pElement is NULL, this function returns the number of images present in the entire Data Set.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Win32, x64, Linux.
Functions: |
|
Topics: |
This example gets the number of all images in Data Set
#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName
L_INT DicomGetCountImageExample(L_VOID)
{
HDICOMDS hDS;
L_UINT32 nCount;
L_UINT16 nRet;
hDS = L_DicomCreateDS(NULL);
nRet = L_DicomLoadDS(hDS,MAKE_IMAGE_PATH(TEXT("Image1.dcm")), 0);
if (nRet != DICOM_SUCCESS)
{
L_DicomFreeDS(hDS);
return nRet;
}
nCount = L_DicomGetCountImage(hDS, NULL);
L_DicomFreeDS(hDS);
return DICOM_SUCCESS;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET