Difference between revisions of "Function:LogTransform"

From CUVI Wiki
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
|}
|}


===Parameters===
====Parameters====
 
{|
|style="font-size:75%;"|
{|class="wikitable"
{|class="wikitable"
|-
|-
Line 35: Line 36:
| const CuviStream&
| const CuviStream&
| GPU stream ID for execution
| GPU stream ID for execution
 
|}
|}
|}


===Image Type Support===
====Image Type Support====
 
{|
|style="font-size:75%;"|
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 53: Line 55:
| 32f
| 32f
| 32f
| 32f
|}
|}
|}


 
====Example====
===Example===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">



Latest revision as of 13:06, 18 October 2022

Applies log transformation to pixel values.

Function

CuviStatus logTransform(const CuviImage& src,
                        CuviImage& dst,
                        const Cuvi32f c = 1.0f,
                        const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input Image
dst CuviImage& Destination Image
c const Cuvi32f Scaling value
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
8u 32f
16u 32f
32f 32f

Example

//Creating input images
CuviImage input = cuvi:io::loadImage(path), output;

const Cuvi32f c = 1.5f;

cuvi::colorOperations::logTransform(input,output,c);