Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault when printings statistics. The following segfault was de…
…tected on Apple M1 Pro, while there is no segfault on CI! There was an out of range memory access to computation_times vector. % ./tutorial-compare-auto-gamma --input Sample_low_brightness.png --output Results/cube Input: Sample_low_brightness.png Process on half image resolution? 0 Gaussian kernel size: 3 Gaussian standard deviation: 1 Aperture size: 3 Canny filtering type: 0 RGB colorspace? 0 Output result folder: Results/cube Computation time (gamma_log): 2.30396 ms Computation time (gamma_nonlinear): 1.27197 ms Computation time (gamma_cdf): 2.1228 ms Computation time (gamma_classification): 2.62817 ms Computation time (gamma_spatial_variant): 19.5791 ms Write result to: Results/cube/Sample_low_brightness.jpeg Stats: Nb images: 1 gamma_log: mean=2.1228 ms ; median=2.1228 ms gamma_nonlinear: mean=2.62817 ms ; median=2.62817 ms gamma_cdf: mean=19.5791 ms ; median=19.5791 ms libc++abi: terminating due to uncaught exception of type vpException: Empty vector !
- Loading branch information