A handle for creating a new Trackable from an image file in a DataSet.
The RuntimeImageSource class is used to add a Trackable object to a DataSet instance from existing data. Either images loaded from files or raw data created by other sources are supported.
Public Member Functions | |
virtual bool | setImage (void *pixels, PIXEL_FORMAT format, Vec2I size, float targetWidthMeters, const char *targetName)=0 |
Set the RuntimeImageSource from raw image data. More... | |
virtual bool | setFile (const char *path, STORAGE_TYPE storageType, float targetWidthMeters, const char *targetName)=0 |
Set the RuntimeImageSource from file. More... | |
|
pure virtual |
Set the RuntimeImageSource from raw image data.
Set the RuntimeImageSource to raw image data loaded by functions independent from Vuforia.
pixels | the pointer to the raw pixel data |
format | the pixel format used by the raw data. Currently supported formats are Vuforia::GRAYSCALE, Vuforia::RGB888 and Vuforia::RGBA8888 |
size | the size of the image in pixel (width, height) |
targetWidthMeters | the real world size of the target |
targetName | the name of the resulting trackable |
|
pure virtual |
Set the RuntimeImageSource from file.
Set the RuntimeImageSource to the image found at the path provided.
path | the location of the image to be used as target |
storageType | the type of the path provided |
targetWidthMeters | the real world size of the target. |
targetName | the name of the resulting trackable |