本文整理汇总了C++中DcmDataset::findAndGetSequenceItem方法的典型用法代码示例。如果您正苦于以下问题:C++ DcmDataset::findAndGetSequenceItem方法的具体用法?C++ DcmDataset::findAndGetSequenceItem怎么用?C++ DcmDataset::findAndGetSequenceItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DcmDataset
的用法示例。
在下文中一共展示了DcmDataset::findAndGetSequenceItem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initImage
//.........这里部分代码省略.........
studyTime.setDate(QDate::fromString(QString::fromLocal8Bit(value),
DATE_DICOM_FORMAT));
result = dset->findAndGetString(DCM_StudyTime, value);
studyTime.setTime(formatDicomTime(QString::fromLatin1(value)));
result = dset->findAndGetString(DCM_StudyDescription, value);
studyDes = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_ProtocolName, value);
procId = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_BodyPartExamined, value);
bodyPart = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_Manufacturer, value);
manufacturer = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_Modality, value);
modality = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_StationName, value);
stationName = QString::fromLocal8Bit(value);
//series information
result = dset->findAndGetString(DCM_SeriesInstanceUID, value);
seriesUid = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_SeriesNumber, value);
seriesNumber = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_SeriesDescription, value);
seriesDes = QString::fromLocal8Bit(value);
//instance information
result = dset->findAndGetString(DCM_SOPClassUID, value);
sopClassUid = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_SOPInstanceUID, value);
instanceUid = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_InstanceNumber, value);
instanceNumber = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_InstitutionName, value);
institution = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_AcquisitionDate, value);
if (value==NULL) result = dset->findAndGetString(DCM_ContentDate, value);
acquisitionTime.setDate(QDate::fromString(QString::fromLatin1(value),
DATE_DICOM_FORMAT));
result = dset->findAndGetString(DCM_AcquisitionTime, value);
if (value==NULL) result = dset->findAndGetString(DCM_ContentTime, value);
acquisitionTime.setTime(formatDicomTime(QString::fromLatin1(value)));
result = dset->findAndGetString(DCM_PatientPosition, value);
patientPostion = QString::fromLatin1(value);
result = dset->findAndGetString(DCM_RequestingPhysician, value);
reqPhysician = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_PerformingPhysicianName, value);
perPhysician = QString::fromLocal8Bit(value);
result = dset->findAndGetString(DCM_AccessionNumber, value);
accessionNumber = QString::fromLatin1(value);
result = dset->findAndGetFloat64(DCM_PixelSpacing, pixelSpacingY, 0);
result = dset->findAndGetFloat64(DCM_PixelSpacing, pixelSpacingX, 1);
result = dset->findAndGetString(DCM_KVP, value);
kvp = QString::fromLatin1(value).toDouble();
result = dset->findAndGetString(DCM_Exposure, value);
mAs = QString::fromLatin1(value).toInt();
result = dset->findAndGetFloat64(DCM_WindowWidth, winWidth);
result = dset->findAndGetFloat64(DCM_WindowCenter, winCenter);
defCenter = winCenter;
defWidth = winWidth;
if (UID_DigitalXRayImageStorageForPresentation == sopClassUid) {
DcmItem *refItem;
const char *refImageUid;
dset->findAndGetSequenceItem(DCM_ReferencedImageSequence, refItem);
if (refItem && refItem->findAndGetString(DCM_ReferencedSOPInstanceUID, refImageUid).good()) {
QString dirName = file.left(file.lastIndexOf('/'));
rawFile = QString("%1/%2_%3.dcm").arg(dirName, RAW_IMAGE_PREFIX, refImageUid);
rawCenter = winCenter;
rawWidth = winWidth;
}
}
}
dcmImage = new DicomImage(dset, dset->getOriginalXfer());
if (dcmImage->getStatus() == EIS_Normal) {
//dcmImage->getWindow(winCenter, winWidth);
getPixmap(cachedPixmap);
}
}