mirror of https://github.com/AlexeyAB/darknet.git
Check if image does not require resizing
This commit is contained in:
parent
88cccfcad4
commit
993af0fb5b
|
@ -1275,6 +1275,8 @@ float bilinear_interpolate(image im, float x, float y, int c)
|
|||
|
||||
image resize_image(image im, int w, int h)
|
||||
{
|
||||
if (im.w == w && im.h == h) return copy_image(im);
|
||||
|
||||
image resized = make_image(w, h, im.c);
|
||||
image part = make_image(w, im.h, im.c);
|
||||
int r, c, k;
|
||||
|
|
Loading…
Reference in New Issue