-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVolImage.h
32 lines (29 loc) · 1.24 KB
/
VolImage.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
#ifndef VOLIMAGE_H
#define VOLIMAGE_H
#include <string>
#include <vector>
namespace CHNJAR003
{
class VolImage
{
private: // private members
int width, height; // width and height of image stack
std::vector<unsigned char **> slices; // data for each slice, in order
public: // public members
VolImage(); // default constructor - define in .cpp
~VolImage(); // destructor - define in .cpp file
// populate the object with images in stack and
//set member variables define in .cpp
bool readImages(std::string baseName);
// compute difference map and write out; define in .cpp
void diffmap(int sliceI, int sliceJ, std::string output_prefix);
// extract slice sliceId and write to output - define in .cpp
void extract(int sliceId, std::string output_prefix);
// number of bytes uses to store image data bytes
//and pointers (ignore vector<> container, dims etc)
int volImageSize(void); // define in .cpp
//extract an image along row i of the image volume and write it to output.
void extractRow(int row, std::string output_prefix);
};
} // namespace CHNJAR003
#endif