Function:Invert

From CUVI Wiki
Revision as of 20:32, 12 June 2014 by Ghazanfar (talk | contribs) (Created page with "__NOTOC__ Computes matrix inverse of a square image. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus invert(const CuviImage& src, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Computes matrix inverse of a square image.

Function

CuviStatus invert(const CuviImage& src,
                  CuviImage& dst,
                  const CuviStream& stream = CuviStream());

Parameters

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

Image Type Support

Input Output
32fC1 32fC1


Example

//Creating GPU images
CuviImage gimg = cuvi:io::loadImage(path), gout;

gimg.convertTo(gimg, CUVI_32FC1);

	
//Calculate the inverse
cuvi::arithmeticLogical::invert(gimg,gout);