These are the results of timing tests done on some of the various ImgSource resizing functions. They were done with v4.0.19.0. Results for ImgSource version 3.0
are here.
First, the reductions. Each function was run in a timer, reducing the 600x600 input image to 170x170, 300x300 and 430x430, a total of 1000 times for each algorithm.
The results below show the speed of the algorithm as compared to IS40_ResizeImage mode 16 (bi-linear resampling). For example: in reducing 600x600 to 170x170, mode 18 (nearest neighbor) takes just 15% as long to process the image as mode 16, while mode 12 (Hanning) takes 11.33 times longer.
| Reduce from 600x600 to: | 170x170 | 300x300 | 430x430 |
| Mode 0 (Box) | 6.49 | 4.14 | 2.10 |
| Mode 1 (Triangle) | 11.74 | 5.76 | 3.53 |
| Mode 2 (Hamming) | 11.40 | 5.79 | 3.47 |
| Mode 3 (Gaussian) | 13.44 | 6.02 | 3.92 |
| Mode 4 (Bell) | 15.21 | 7.84 | 4.45 |
| Mode 5 (B-Spline) | 18.54 | 8.94 | 5.28 |
| Mode 6 (Cubic 1) | 11.21 | 5.74 | 3.47 |
| Mode 7 (Cubic 2) | 18.75 | 9.00 | 5.30 |
| Mode 8 (Lanczos3) | 25.43 | 11.48 | 7.30 |
| Mode 9 (Mitchell) | 18.67 | 8.80 | 5.28 |
| Mode 10 (Sinc) | 30.99 | 13.75 | 8.39 |
| Mode 11 (Hermite) | 11.21 | 5.79 | 3.43 |
| Mode 12 (Hanning) | 11.33 | 5.70 | 3.47 |
| Mode 13 (Catrom) | 18.37 | 8.74 | 5.36 |
| Mode 14 (Area-avg 1) | 1.29 | 1.04 | 0.80 |
| Mode 15 (Area-Avg 2) | 2.96 | 1.39 | 1.57 |
| Mode 16 (Bi-linear) | 1.00 | 1.00 | 1.00 |
| Mode 17 (Bi-Cubic) | 2.82 | 2.63 | 2.62 |
| Mode 18 (Nearest neighbor) | 0.15 | 0.17 | 0.15 |
The enlargement comparison is based on resizing the input image to 600x600 pixels from 170x170, 300x300 and 430x430, a total of 1000 times per algorithm.
| Enlarge to 600x600 from: | 170x170 | 300x300 | 430x430 |
| Mode 0 (Box) | 1.16 | 1.72 | 1.37 |
| Mode 1 (Triangle) | 1.86 | 2.32 | 2.22 |
| Mode 2 (Hamming) | 1.87 | 2.40 | 2.22 |
| Mode 3 (Gaussian) | 2.23 | 2.35 | 2.64 |
| Mode 4 (Bell) | 2.26 | 2.72 | 2.67 |
| Mode 5 (B-Spline) | 2.50 | 3.04 | 3.02 |
| Mode 6 (Cubic 1) | 1.90 | 2.47 | 2.28 |
| Mode 7 (Cubic 2) | 2.56 | 3.03 | 3.02 |
| Mode 8 (Lanczos3) | 3.34 | 4.01 | 4.07 |
| Mode 9 (Mitchell) | 2.55 | 3.05 | 3.09 |
| Mode 10 (Sinc) | 3.98 | 5.16 | 4.87 |
| Mode 11 (Hermite) | 1.85 | 2.30 | 2.25 |
| Mode 12 (Hanning) | 1.84 | 2.34 | 2.24 |
| Mode 13 (Catrom) | 2.56 | 3.05 | 3.06 |
| Mode 14 (Area-avg 1) | n/a | n/a | n/a |
| Mode 15 (Area-Avg 2) | n/a | n/a | n/a |
| Mode 16 (Bi-linear) | 1.00 | 1.00 | 1.00 |
| Mode 17 (Bi-Cubic) | 3.30 | 3.41 | 3.34 |
| Mode 18 (Nearest neighbor) | 0.12 | 0.13 | 0.14 |
These numbers are intended for general comparison purposes only. The exact performance of these functions will vary along with your available memory, your CPU type and speed, the overall performance of your system. These results are not specific guarantees.
Return to the ImgSource page.
Copyright © 2010, Smaller Animals Software, Inc.