mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Check if image does not require resizing
This commit is contained in:
@ -1275,6 +1275,8 @@ float bilinear_interpolate(image im, float x, float y, int c)
|
|||||||
|
|
||||||
image resize_image(image im, int w, int h)
|
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 resized = make_image(w, h, im.c);
|
||||||
image part = make_image(w, im.h, im.c);
|
image part = make_image(w, im.h, im.c);
|
||||||
int r, c, k;
|
int r, c, k;
|
||||||
|
Reference in New Issue
Block a user