LDicomDS::GetCountImage

Summary

Returns the number of frames in a Pixel Data element.

Syntax

#include "Ltdic.h"

L_UINT32 LDicomDS::GetCountImage(pElement)

Parameters

pDICOMELEMENT 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

Platforms

Win32, x64

See Also

Functions

Topics

Example

This example gets the number of all images in Data Set.

L_INT LDicomDS_GetCountImageExample() 
{ 
   L_INT       nRet; 
   LDicomDS*   pDS; 
   L_UINT32    nCount; 
 
   pDS = new LDicomDS(NULL); 
 
   nRet = pDS->LoadDS(MAKE_IMAGE_PATH(TEXT("image1.dcm")), 0); 
   if(nRet != DICOM_SUCCESS) 
      return nRet; 
 
   nCount = pDS->GetCountImage(NULL); 
 
   delete pDS; 
 
   return DICOM_SUCCESS; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.