mirror of https://github.com/AlexeyAB/darknet.git
This can improve on the python array_to_image function where we already have an allocated image struct and simply need to copy the data into the correct format/shape without reallocating. Aside: I think array_to_image does two frees because the pointer data_as returns doesn't own the memory that is ultimately freed in free_image.pull/2352/head
parent
7e9416aa80
commit
c00d3c92db
2 changed files with 20 additions and 0 deletions
Loading…
Reference in new issue