Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomDS::GetCountImage

Show in webframe

#include "Ltdic.h"

L_UINT32 LDicomDS::GetCountImage(pElement)

pDICOMELEMENT pElement;

/* pointer to a DICOMELEMENT structure */

Returns the number of frames in a Pixel Data element.

Parameter

Description

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

Platforms

Win32, x64

See Also

Functions:

LDicomDS::GetImage, LDicomDS::GetImageList

Topics:

Working with Data Sets

 

How to Disable the Automatic Loading of the default DICOM IOD Table

Example

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 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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.