Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef volimage_h
- #define volimage_h
- #include<string>
- #include<vector>
- namespace GRLMAT001
- {
- class VolImage
- {
- private: // private members
- int width, height,noSlices; // 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
- void setWidth(int w){width = w;} //set value of width
- int getWidth(){return width;} //returns current width value
- void setHeight(int h){height = h;} //sets value of height
- int getHeight(){return height;} //returns current height value
- void setNoSlices(int s){noSlices = s;} //sets value of noSlices
- int getNoSlices(){return noSlices;} //returns current noSlices value
- // 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 used to store image data bytes
- //and pointers (ignore vector<> container, dims etc)
- int volImageSize(void); // define in .cpp
- };
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement