Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Agapiou <jagapiou@google.com>2015-07-22 16:57:40 +0300
committerJohn Agapiou <jagapiou@google.com>2015-07-22 17:13:43 +0300
commitacefe6f8f626dbcec8c8e4987c5398e8806db849 (patch)
tree0b32a2b6ffc4dbd74085cad91db2c23ea696b05b /README.md
parentc7eef085d9ffdbca894cd77a0d186ccd2ce13bd8 (diff)
Add bicubic interpolation to image.scale.
* Added 'bicubic' method to image.scale. * Added unit tests of scaling. Does interpolation for both upsizing and downsizing and does not preserve the average pixel intensity. Note this is different from 'bilinear' which preserves the average pixel intensity on downsizing but not on upsizing. At edges the missing data is added by extending the first/last line segment.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9c71d7e..3912801 100644
--- a/README.md
+++ b/README.md
@@ -87,7 +87,8 @@ Rescale the height and width of image `src` to have
width `width` and height `height`. Variable `mode` specifies
type of interpolation to be used. Valid values include
[bilinear](https://en.wikipedia.org/wiki/Bilinear_interpolation)
-(the default) or *simple* interpolation. Returns a new `res` Tensor.
+(the default), [bicubic](https://en.wikipedia.org/wiki/Bicubic_interpolation),
+or *simple* interpolation. Returns a new `res` Tensor.
### [res] image.scale(src, size, [mode]) ###
Rescale the height and width of image `src`.