Function:GenerateRandomImage

From CUVI Wiki
Jump to: navigation, search

Fills an image with random values.

Function

CuviStatus generateRandomImage(CuviImage& srcDst,
                               const CuviStream& stream = CuviStream());

Parameters

Name Type Description
srcDst CuviImage& Input/Output Image
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input/Output
32fC1


Example

//Initialize GPU images
CuviImage image(640, 480, CUVI_32FC1);
 
//Fill image with random value
cuvi::dataExchange::generateRandomImage(image);