VolumeDataPreProcessor.h 623 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "Common.h"
  3. class VolumeDataPreProcessor
  4. {
  5. public:
  6. VolumeDataPreProcessor();
  7. VolumeDataPreProcessor(int size,VolumeDataPreProcessorInfo dataInfo);
  8. ~VolumeDataPreProcessor();
  9. cv::Mat GetImage(int index);
  10. private:
  11. void AddImage(int index, cv::Mat image);
  12. bool Contains(int index);
  13. void RemoveTopMostImage();
  14. std::map<int, cv::Mat> _images;
  15. std::queue<int> _imageIndex;
  16. int _queueSize;
  17. const uint8_t* _dataBuffer;
  18. int _origWidth;
  19. int _origHeight;
  20. int _origImgCount;
  21. int _dstWidth;
  22. int _dstHeight;
  23. int _depthFlag;
  24. int _bytePerPixel;
  25. cv::Rect _cropRect;
  26. int _origImgByteCount;
  27. };