LocalizeImage
function returns -1
if localization failed, and an integer map ID if it succeeded.Immersal.AR.ARLocalizer
in the Samples/Scripts/AR
folder as an example of how to get the pixel buffer data and intrinsics for the image in an AR Foundation application. Samples/Scenes/SampleScene
utilizes this class and can be used for quickly testing of your mappings.CaptureImage
function returns an icvCaptureInfo
struct with the number of bytes captured (the PNG file size), and information whether the image was connected to a previous image in the map.channels
can be 1
or 3
, resulting in an 8-bit grayscale or a 24-bit RGB PNG, respectively.Immersal.Samples.Mapping.Mapper
class and Samples/Scenes/MappingApp
as an example.GetPointCloud
function returns the number of points in the cloud.Immersal.AR.ARMap
in the Samples/Scripts/AR
folder as an example.LoadMap
function returns an integer map ID.FreeMap
function returns 1
if succeeded, 0
otherwise.LocalizationMaxPixels
, is supported. This will effectively downsample any image data to a maximum resolution, which will speed up processing and use less memory -- but might affect localization results. So, experimenting with the values is advised. Setting the value to 0
means "no limit", and is the default setting.SetInteger
function returns 1
if succeeded, -1
otherwise. The GetInteger
function returns the integer value of the parameter, or -1
if not set.