From 28bdc746b5b1f49aa187df994b819dc1824c07f0 Mon Sep 17 00:00:00 2001 From: Ali Moeeny Date: Fri, 27 Dec 2013 15:25:47 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f19bac..97df823 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,18 @@ The provided interpolation functions are (from fast to slow execution time) - `Lanczos3Lut`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3 using a look-up table for fast computation - `Lanczos3`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3 -Which of these methods gives the best results depends on your use case. +Which of these methods gives the best results depends on your use case. +Just as a very rough comparison here are times each method takes to downsample (resize down) an 720p frame to 10px wide on a macbook pro with 2.3 GHz core i7 CPU : +***nearestneigh***: 810ms +**bilinear**: 905ms +**bicubic**: 3.9s +**MitchellNetravali**: 3.9s +**Lanczos2Lut**: 3.9s +**Lanczos2**: 9.1s +**Lanczos3Lut**: 9.0s +**Lanczos3**: 20.7s + + Sample usage: From c6215ec362ddb1aa5fbaec18f32ae4f1fa2d558e Mon Sep 17 00:00:00 2001 From: Ali Moeeny Date: Fri, 27 Dec 2013 15:25:47 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2aefa75..14d18db 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,18 @@ The provided interpolation functions are (from fast to slow execution time) - `Lanczos2`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=2 - `Lanczos3`: [Lanczos resampling](http://en.wikipedia.org/wiki/Lanczos_resampling) with a=3 -Which of these methods gives the best results depends on your use case. +Which of these methods gives the best results depends on your use case. +Just as a very rough comparison here are times each method takes to downsample (resize down) an 720p frame to 10px wide on a macbook pro with 2.3 GHz core i7 CPU : +***nearestneigh***: 810ms +**bilinear**: 905ms +**bicubic**: 3.9s +**MitchellNetravali**: 3.9s +**Lanczos2Lut**: 3.9s +**Lanczos2**: 9.1s +**Lanczos3Lut**: 9.0s +**Lanczos3**: 20.7s + + Sample usage: