Image example#
What it does#
This example demonstrates how to create image in GPU memory. Required:
-
GPU device in your system
-
Versions of CUDA drivers you can find in FaceEngine Handbook - Chapter_9_System_Requirements - Requirements for GPU acceleration.
Prerequisites#
This example assumes that you have already read the FaceEngine Handbook (or at least have it somewhere nearby for reference) and know some core concepts, like memory management, object ownership, and life-time control. This sample will not explain these aspects in detail.
Example walkthrough#
To get familiar with FSDK usage and common practices, please go through example_extraction first.
How to run#
Run the command from ”FSDK_ROOT”.
<install_prefix>/example_image <some_image.ppm>
Image paths must be absolute or relative to the working directory.
Example output#
Image: testData/image1.ppm was loaded!
Example 1: Image in gpu memory was created!
Example 2: Image in gpu memory was created!
Example 3: Image in gpu memory was created!
Example 4: Image in gpu memory was created!
Example 5: Image in gpu memory was created!