Go to the documentation of this file.00001 #ifndef CROP_LAYER_H
00002 #define CROP_LAYER_H
00003
00004 #include "image.h"
00005 #include "layer.h"
00006 #include "network.h"
00007
00008 typedef layer crop_layer;
00009
00010 image get_crop_image(crop_layer l);
00011 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);
00012 void forward_crop_layer(const crop_layer l, network_state state);
00013 void resize_crop_layer(layer *l, int w, int h);
00014
00015 #ifdef GPU
00016 void forward_crop_layer_gpu(crop_layer l, network_state state);
00017 #endif
00018
00019 #endif
00020