-1if localization failed, and an integer map ID if it succeeded.
Samples/Scripts/ARfolder as an example of how to get the pixel buffer data and intrinsics for the image in an AR Foundation application.
Samples/Scenes/SampleSceneutilizes this class and can be used for quickly testing of your mappings.
CaptureImagefunction returns an
icvCaptureInfostruct with the number of bytes captured (the PNG file size), and information whether the image was connected to a previous image in the map.
3, resulting in an 8-bit grayscale or a 24-bit RGB PNG, respectively.
Samples/Scenes/MappingAppas an example.
GetPointCloudfunction returns the number of points in the cloud.
Samples/Scripts/ARfolder as an example.
LoadMapfunction returns an integer map ID.
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
0means "no limit", and is the default setting.
GetIntegerfunction returns the integer value of the parameter, or
-1if not set.