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
531 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef CROP_LAYER_H
  2. #define CROP_LAYER_H
  3. #include "image.h"
  4. #include "layer.h"
  5. #include "network.h"
  6. namespace DN{
  7. typedef layer crop_layer;
  8. image get_crop_image(crop_layer l);
  9. crop_layer make_crop_layer(int batch, int h, int w, int c, int crop_height, int crop_width, int flip, float angle, float saturation, float exposure);
  10. void forward_crop_layer(const crop_layer l, network net);
  11. void resize_crop_layer(layer *l, int w, int h);
  12. #ifdef GPU
  13. void forward_crop_layer_gpu(crop_layer l, network net);
  14. #endif
  15. };
  16. #endif