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.

24 lines
802 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_REGION_LAYER_HEADER__
  2. #define __CORTEX_REGION_LAYER_HEADER__
  3. #include "../base/basicLayer.h"
  4. #include "../base/basicTree.h"
  5. class regionLayer: public cortexLayer{
  6. private:
  7. cortexTREE * m_pSoftmaxTree;
  8. public:
  9. explicit regionLayer(bool useGPU = true);
  10. ~regionLayer();
  11. bool create(uint32_t batch, uint32_t w, uint32_t h, uint32_t n, uint32_t classes, uint32_t coords);
  12. virtual void forward(cortexSTATE state);
  13. virtual void backward(cortexSTATE state);
  14. virtual bool resize(uint32_t w, uint32_t h);
  15. void get_region_boxes(uint32_t w, uint32_t h, float thresh, float **probs, cortexBOXLABEL *boxes, bool only_objectness, uint32_t *map);
  16. friend class gpuCUDA;
  17. friend class cpuHOST;
  18. friend class cortexLayersFactory;
  19. };
  20. #endif