You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

FineMapping.h 713 B

4 years ago
1234567891011121314151617181920212223242526272829
  1. //
  2. // Created by Jack Yu on 22/09/2017.
  3. //
  4. #ifndef HYPERPR_FINEMAPPING_H
  5. #define HYPERPR_FINEMAPPING_H
  6. #include <opencv2/dnn.hpp>
  7. #include <opencv2/opencv.hpp>
  8. #include <string>
  9. namespace pr {
  10. class FineMapping {
  11. public:
  12. FineMapping();
  13. FineMapping(std::string prototxt, std::string caffemodel);
  14. static cv::Mat FineMappingVertical(cv::Mat InputProposal, int sliceNum = 15,
  15. int upper = 0, int lower = -50,
  16. int windows_size = 17);
  17. cv::Mat FineMappingHorizon(cv::Mat FinedVertical, int leftPadding,
  18. int rightPadding);
  19. private:
  20. cv::dnn::Net net;
  21. };
  22. } // namespace pr
  23. #endif // HYPERPR_FINEMAPPING_H