It's time, to du-du-du-du-DU-DU-DUEL!!

https://www.youtube.com/watch?v=IVmtUK_1jh4
This commit is contained in:
Joseph Redmon
2015-04-20 08:43:54 -07:00
parent f199fd3b64
commit 451ef0a0a6
5 changed files with 82 additions and 37 deletions

View File

@ -603,12 +603,12 @@ image load_image_color(char *filename, int w, int h)
exit(0);
}
image out = ipl_to_image(src);
cvReleaseImage(&src);
if((h && w) && (h != out.h || w != out.w)){
image resized = resize_image(out, w, h);
free_image(out);
out = resized;
}
cvReleaseImage(&src);
return out;
}