| | |
| | | } |
| | | } |
| | | |
| | | void draw_box_width(image a, int x1, int y1, int x2, int y2, int w, float r, float g, float b) |
| | | { |
| | | int i; |
| | | for(i = 0; i < w; ++i){ |
| | | draw_box(a, x1+i, y1+i, x2-i, y2-i, r, g, b); |
| | | } |
| | | } |
| | | |
| | | void flip_image(image a) |
| | | { |
| | | int i,j,k; |
| | |
| | | { |
| | | int x,y,k; |
| | | image copy = copy_image(p); |
| | | constrain_image(copy); |
| | | rgbgr_image(copy); |
| | | //normalize_image(copy); |
| | | |
| | |
| | | } |
| | | } |
| | | free_image(copy); |
| | | if(disp->height < 448 || disp->width < 448 || disp->height > 1000){ |
| | | if(0){ |
| | | //if(disp->height < 448 || disp->width < 448 || disp->height > 1000){ |
| | | int w = 448; |
| | | int h = w*p.h/p.w; |
| | | if(h > 1000){ |