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:
Diffstat (limited to 'doc/simpletransform.md')
-rw-r--r--doc/simpletransform.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/simpletransform.md b/doc/simpletransform.md
index 5b713c7..8c0cfb0 100644
--- a/doc/simpletransform.md
+++ b/doc/simpletransform.md
@@ -25,12 +25,13 @@ type of interpolation to be used. Valid values include
or *simple* interpolation. Returns a new `res` Tensor.
### [res] image.scale(src, size, [mode]) ###
-Rescale the height and width of image `src`.
-Variable `size` is a number or a string specifying the
-size of the result image. When `size` is a number, it specifies the
-maximum height or width of the output. When it is a string like
-*WxH* or *MAX* or *^MIN*, it specifies the `height x width`, maximum, or minimum height or
-width of the output, respectively.
+Rescale the height and width of image `src`. Variable `size` is a number
+or a string specifying the size of the result image. When `size` is a
+number, it specifies the maximum height or width of the output. When it is
+a string like `WxH` or `MAX` or `^MIN`, `*SC` or `*SCn/SCd` it specifies
+the `height x width`, maximum height or width of the output, minimum height
+or width of the output, scaling factor (number), or fractional scaling
+factor (int/int), respectively.
### [res] image.scale(dst, src, [mode]) ###
Rescale the height and width of image `src` to fit the dimensions of