Add SamplePerPixel to ExtendMedicalImageProperties
This commit is contained in:
@@ -113,6 +113,11 @@ void DICOMDirectoryHelper::getFileProperty(const std::string &path, DICOMFileMap
|
||||
dataset->findAndGetFloat64(DcmTagKey(0x0028, 0x0030), Spacing[1], 1);
|
||||
seriesProperty->SetSpacing(Spacing);
|
||||
|
||||
unsigned short SamplePerPixel = 0;
|
||||
dataset->findAndGetUint16(DcmTagKey(0x0028, 0x0002), SamplePerPixel);
|
||||
seriesProperty->SetSamplePerPixel(SamplePerPixel);
|
||||
//TODO:暂时不考虑颜色空间的事(只与缩略图相关!!!)
|
||||
|
||||
seriesProperties.push_back(seriesProperty);
|
||||
//暂时不考虑acqnumber的影响
|
||||
//seriesProperty->SetAcquisitionNumber(AcquisitionNumber);
|
||||
|
||||
@@ -28,6 +28,9 @@ public:
|
||||
vtkGetMacro(AcquisitionNumber, long)
|
||||
vtkSetMacro(AcquisitionNumber, long)
|
||||
|
||||
vtkGetMacro(SamplePerPixel, unsigned short)
|
||||
vtkSetMacro(SamplePerPixel, unsigned short)
|
||||
|
||||
vtkSetVector2Macro(Spacing,double);
|
||||
vtkGetVector2Macro(Spacing,double);
|
||||
|
||||
@@ -60,6 +63,7 @@ protected:
|
||||
char * SeriesUID = nullptr;
|
||||
double Spacing[2] ={1.0,1.0};
|
||||
long AcquisitionNumber = 0;
|
||||
unsigned short SamplePerPixel;
|
||||
std::vector<std::string> FileNames;
|
||||
private:
|
||||
ExtendMedicalImageProperties(const ExtendMedicalImageProperties&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user