ihhub / penguinV

Computer vision library with focus on heterogeneous systems
Other
119 stars 90 forks source link

Closes #644: Optimise Bitmap image saving function #678

Closed manekenpix closed 3 years ago

manekenpix commented 3 years ago

Closes #644

These changes optimize the image saving function in src/file/bmp_image.cpp.

During the saving process, instead of copying a line of the pass image to a temporary array, along with the extra bytes needed for proper alignment, and then writing it into the output file; it writes the line from the image and the extra bytes for proper alignment directly into the file.

ihhub commented 3 years ago

@manekenpix , thank you so much for your contribution!