Summary
Step to prevent Benchmark C++ Tool to recompute image for every pixel.
Description
- Modified Benchmark C++ Tool in order to load grayscale images.
- The obtained inference speed was very low.
Resolution
Slow inference speed is due to ternary operator's inner loop from modified Benchmark C++ Tool recomputes image for every pixel.
Optimize loop by computing image once per loop.