Difference between revisions of "Function:Resize"
From CUVI Wiki
(One intermediate revision by the same user not shown) | |||
Line 31: | Line 31: | ||
| inter | | inter | ||
| CuviInterpolationType | | CuviInterpolationType | ||
| Type of interpolation to use for re-sizing | | Type of interpolation to use for re-sizing. Supports: | ||
{| | |||
|CUVI_INTER_NN | |||
|- | |||
|CUVI_INTER_LINEAR | |||
|- | |||
|CUVI_INTER_CUBIC | |||
|} | |||
|- | |- | ||
| stream | | stream | ||
Line 38: | Line 45: | ||
|} | |} | ||
===Image Type Support=== | ===Image Type Support=== |
Latest revision as of 15:10, 16 June 2014
Re-sizes input image to fit into the output image size.
Function
|
Parameters
Name | Type | Description | |||
---|---|---|---|---|---|
src | const CuviImage& | Input Image | |||
dst | CuviImage& | Output Image | |||
inter | CuviInterpolationType | Type of interpolation to use for re-sizing. Supports:
| |||
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
16uC1 | 16uC1 |
16uC3 | 16uC3 |
32fC1 | 32fC1 |
32fC3 | 32fC3 |
Samples
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|