Returns the number of frames in a Pixel Data element.
#include "Ltdic.h"
L_LTDIC_API L_UINT32 L_DicomGetCountImage(hDS, pElement)
A DICOM handle.
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.
Win32, x64, Linux.
This example gets the number of all images in Data Set
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;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document