Computes matrix inverse of a square image using LU factorization.
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
Example
//Creating GPU images
CuviImage gimg = cuvi:io::loadImage(path), gout;
gimg.convertTo(gimg, CUVI_32FC1);
//Calculate the inverse
cuvi::arithmeticLogical::invert(gimg,gout);
|