The PR utilizes broadcasting mechanism and numpy functions to speed up the color correction.
On a machine with 8-core 3.1 Ghz CPU, the original correctImage takes ~1.88 second to process example_images/figure3.jpg. With the PR, it takes ~0.14 second to process the same image.
The PR utilizes broadcasting mechanism and numpy functions to speed up the color correction.
On a machine with 8-core 3.1 Ghz CPU, the original
correctImage
takes ~1.88 second to process example_images/figure3.jpg. With the PR, it takes ~0.14 second to process the same image.See also #5 and #6.