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

19 lines
519 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_CROP_LAYER_HEADER__
  2. #define __CORTEX_CROP_LAYER_HEADER__
  3. #include "../base/basicLayer.h"
  4. class cropLayer: public cortexLayer{
  5. private:
  6. public:
  7. explicit cropLayer(bool useGPU = true);
  8. virtual ~cropLayer();
  9. bool create(uint32_t batch, uint32_t h, uint32_t w, uint32_t c, uint32_t crop_height, uint32_t crop_width, bool flip, float angle, float saturation, float exposure);
  10. friend class gpuCUDA;
  11. friend class cpuHOST;
  12. friend class cortexLayersFactory;
  13. };
  14. #endif