SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Functions | Variables
SLAMflex.cpp File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <time.h>
#import "TooN.h"
#import "tracker.h"
#import "byte.h"
#include "System.h"
#include "globals.h"
#include <string.h>
#include "SendMessage.h"
#include "SLAMflex.h"

Go to the source code of this file.

Functions

void convertToBlackWhite (unsigned char *pixels)
 Convert Unity3D web texture image to black and white image. More...
 
void flip_vertically (unsigned char *pixels, const size_t width, const size_t height, const size_t bytes_per_pixel)
 Heleper function for pixel manipulation. More...
 
void rgba_to_bgra (unsigned char *pixels, int width, int height)
 Change image formats from RGBA to BGRA. More...
 
void _StartSlam (void *pointerString, void *pointerPose, void *pointerStringLog, void *pointerArrayOfPoints)
 Exported functions from libSlamflex library. More...
 
void _StartPlaneDetection ()
 Initiate plane detection. More...
 
const char * _SetNewFrame (void *pointer, int width, int height)
 Function called each frame with pointer to image and width, height of image. More...
 
void _StopSlam ()
 Stops slam plane detection. More...
 

Variables

System ptam
 PTAM system, whole plane detection is located here. More...
 
SendMessage SM
 used for communication between library and Unity3D More...
 
unsigned char * bwImage
 Black and white image. More...
 

Function Documentation

const char* _SetNewFrame ( void *  pointer,
int  width,
int  height 
)

Function called each frame with pointer to image and width, height of image.

Definition at line 91 of file SLAMflex.cpp.

void _StartPlaneDetection ( )

Initiate plane detection.

Definition at line 83 of file SLAMflex.cpp.

void _StartSlam ( void *  pointerString,
void *  pointerPose,
void *  pointerStringLog,
void *  pointerArrayOfPoints 
)

Exported functions from libSlamflex library.

Setup SLAMflex and connect to unity3D

Definition at line 72 of file SLAMflex.cpp.

void _StopSlam ( )

Stops slam plane detection.

Definition at line 114 of file SLAMflex.cpp.

void convertToBlackWhite ( unsigned char *  pixels)

Convert Unity3D web texture image to black and white image.

Definition at line 26 of file SLAMflex.cpp.

void flip_vertically ( unsigned char *  pixels,
const size_t  width,
const size_t  height,
const size_t  bytes_per_pixel 
)

Heleper function for pixel manipulation.

Definition at line 44 of file SLAMflex.cpp.

void rgba_to_bgra ( unsigned char *  pixels,
int  width,
int  height 
)

Change image formats from RGBA to BGRA.

Definition at line 60 of file SLAMflex.cpp.

Variable Documentation

unsigned char* bwImage

Black and white image.

Definition at line 22 of file SLAMflex.cpp.

System ptam

PTAM system, whole plane detection is located here.

Definition at line 17 of file SLAMflex.cpp.

used for communication between library and Unity3D

Definition at line 19 of file SLAMflex.cpp.