|
|
| (8 intermediate revisions by the same user not shown) |
| Line 56: |
Line 56: |
| |} | | |} |
|
| |
|
| ===Image Type Support=== | | ====Image Type Support==== |
|
| |
|
| {| class="wikitable" | | {| class="wikitable" |
| Line 71: |
Line 71: |
| |} | | |} |
|
| |
|
| ===Sample=== | | ====Sample==== |
| {|
| | [[File:taper.jpg|none|frame|Input]] |
| |-
| | <br /> |
| |[[File:taper.jpg|frame|Input]]
| | [[File:taper_result.jpg|none|frame|Result]] |
| |[[File:taper_result.jpg|frame|Result]]
| | <br /> |
| |}
| |
|
| |
|
| ===Example=== | | ====Code Example==== |
| {| | | {| |
| |style="font-size:100%;"| | | |style="font-size:100%;"| |
Latest revision as of 08:18, 18 October 2022
Smartly extends image borders
Function
CuviStatus taper(const CuviImage& src,
CuviImage& dst,
Cuvi32u taperLeft,
Cuvi32u taperRight,
Cuvi32u taperTop,
Cuvi32u taperBottom,
const CuviStream& stream = CuviStream());
|
Parameters
| Name
|
Type
|
Description
|
| src
|
const CuviImage&
|
Input Image
|
| dst
|
CuviImage&
|
Output Image
|
| top
|
Cuvi32u
|
Add this number of pixels to the top
|
| bottom
|
Cuvi32u
|
Add this number of pixels to the bottom
|
| left
|
Cuvi32u
|
Add this number of pixels to left
|
| right
|
Cuvi32u
|
Add this number of pixels to right
|
| stream
|
const CuviStream&
|
GPU stream ID for execution
|
|
Image Type Support
| Input
|
Output
|
| 8uC1
|
8uC1
|
| 8uC3
|
8uC3
|
Sample
Input
Result
Code Example
CuviStatus st = CUVI_SUCCESS;
CuviImage img;
st = img.create(ipath, CUVI_LOAD_IMAGE_COLOR);
if (CUVI_SUCCESS != st) { cout << "CUVI Error: " << st << endl; return; }
//Taper parameters
Cuvi32u taperLeft = 50, taperRight = 50, taperTop = 50, taperBottom = 50
CuviImage out;
//Perform function
st = cuvi::geometryTransforms::taper(img,out,taperLeft,taperRight, taperTop,taperBottom);
st = cuvi::io::saveImage(out, opath);
|