diff options
author | John Agapiou <jagapiou@google.com> | 2015-07-22 16:57:40 +0300 |
---|---|---|
committer | John Agapiou <jagapiou@google.com> | 2015-07-22 17:13:43 +0300 |
commit | acefe6f8f626dbcec8c8e4987c5398e8806db849 (patch) | |
tree | 0b32a2b6ffc4dbd74085cad91db2c23ea696b05b /README.md | |
parent | c7eef085d9ffdbca894cd77a0d186ccd2ce13bd8 (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.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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`. |