-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmammography.h
36 lines (32 loc) · 1.48 KB
/
mammography.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <vector>
#include <string>
#include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
#include "dcmtk/dcmdata/dctk.h"
#include "dcmtk/dcmimgle/dcmimage.h" /* for DicomImage */
/* #include "dcmtk/dcmjpeg/djencode.h" */
/* #include "dcmtk/dcmjpeg/djrplol.h" */
#include "various.h"
class mammography: public various{
public:
long XRayTubeCurrent, Exposure, Rows, Columns, BitsAllocated, PixelRepresentation, SmallestImagePixelValue, LargestImagePixelValue, BitsStored;
OFString KVP, BodyPartThickness, CompressionForce, Filter, Target, ViewPosition, ImageLaterality;
std::vector<Uint16> pixelVec;
std::string strFileName, strKVP;
double numThickness, numExposure;
public:
mammography(std::string t_strFileName): strFileName(t_strFileName){
this->loadHeaderData(strFileName);
this->loadPixelData(strFileName);
strKVP = various::ToString<OFString>(this->KVP);
std::string strBodyThickness = various::ToString<OFString>(this->BodyPartThickness);
std::string strExposure = various::ToString<long>(this->Exposure);
numThickness = atoi(strBodyThickness.c_str());
numExposure = atoi(strExposure.c_str());
};
~mammography() {}
//LOAD DICOM HEADER DATA
void loadHeaderData(const std::string fileName);
//LOAD DICOM PIXEL DATA
void loadPixelData(const std::string fileName);
};