GDCM:读取DICOM Series
以下是一个使用GDCM(Grassroots DICOM)库读取DICOM系列的示例代码:
#include <iostream>
#include "gdcmReader.h"
#include "gdcmFile.h"
#include "gdcmFileHelper.h"
#include "gdcmGlobal.h"
#include "gdcmSystem.h"
#include "gdcmAttribute.h"
#include "gdcmStringFilter.h"
#include "gdcmDirectory.h"
#include "gdcmPrinter.h"
#include "gdcmImageReader.h"
#include "gdcmImage.h"
#include "gdcmImageHelper.h"
#include "gdcmUIDGenerator.h"
#include "gdcmSerieHelper.h"
int main(int argc, char *argv[])
{
if (argc < 2)
{
std::cerr << "Usage: " << argv[0] << " <DICOM directory>" << std::endl;
return 1;
}
const char *directory = argv[1];
gdcm::Directory *d = new gdcm::Directory;
d->Load(director
标签:argc,读取,int,Series,源码,DICOM,GDCM,include
From: https://blog.csdn.net/it_xiangqiang/article/details/136664832