Functions
Floorplan generation.

APIs for generating floorplans. More...

Functions

void Tango3DR_destroyLevels (Tango3DR_FloorplanLevelArray *levels)
 
Tango3DR_Status Tango3DR_extractFloorplanImageSegment (const Tango3DR_ReconstructionContext context, const Tango3DR_GridIndex2D grid_index, Tango3DR_FloorplanLayer layer, Tango3DR_ImageBuffer *image)
 
Tango3DR_Status Tango3DR_extractFloorplanSegment (const Tango3DR_ReconstructionContext context, const Tango3DR_GridIndex2D grid_index, Tango3DR_PolygonArray *graphics)
 
Tango3DR_Status Tango3DR_extractFullFloorplan (const Tango3DR_ReconstructionContext context, Tango3DR_PolygonArray *graphics)
 
Tango3DR_Status Tango3DR_extractFullFloorplanImage (const Tango3DR_ReconstructionContext context, Tango3DR_FloorplanLayer layer, Tango3DR_Vector2 *origin, Tango3DR_ImageBuffer *image)
 
Tango3DR_Status Tango3DR_extractLevels (const Tango3DR_ReconstructionContext context, Tango3DR_FloorplanLevelArray *levels)
 
Tango3DR_Status Tango3DR_resetLevelsEstimator (const Tango3DR_ReconstructionContext context)
 
Tango3DR_Status Tango3DR_selectLevel (const Tango3DR_ReconstructionContext context, const Tango3DR_FloorplanLevel *level)
 
Tango3DR_Status Tango3DR_updateFloorplan (const Tango3DR_ReconstructionContext context, const Tango3DR_GridIndexArray *grid_index_array)
 
Tango3DR_Status Tango3DR_updateFullFloorplan (const Tango3DR_ReconstructionContext context)
 
void Tango3DR_VectorGraphics_destroy (Tango3DR_PolygonArray *graphics)
 

Detailed Description

APIs for generating floorplans.

Function Documentation

void Tango3DR_destroyLevels ( Tango3DR_FloorplanLevelArray levels)

Destroy a previously created Tango3DR_Levels object.

Parameters
configPointer to a previously created vector graphics object.
Tango3DR_Status Tango3DR_extractFloorplanImageSegment ( const Tango3DR_ReconstructionContext  context,
const Tango3DR_GridIndex2D  grid_index,
Tango3DR_FloorplanLayer  layer,
Tango3DR_ImageBuffer image 
)

Extract a floor plan layer image segment for the specified grid cell from an existing 3D reconstruction context.

Parameters
contextHandle to a previously created context.
grid_indexIndex for the grid cell to extract.
layerFloor plan layer to extract.
imageOn successful return, this will be filled with a pointer to a freshly allocated Tango3DR_ImageBuffer object containing a floor plan layer image. Note that the image uses a coordinate system with (x: right, y: down). After use, free this by calling Tango3DR_ImageBuffer_destroy().
Returns
TANGO_3DR_SUCCESS on successfully extracting the floor plan. Returns TANGO_3DR_INVALID if context or image is NULL.
Tango3DR_Status Tango3DR_extractFloorplanSegment ( const Tango3DR_ReconstructionContext  context,
const Tango3DR_GridIndex2D  grid_index,
Tango3DR_PolygonArray graphics 
)

Extract a floor plan segment from an existing 3D reconstruction context. Note that this function takes only a 2D grid index (x,y) instead of a 3D grid index (x,y,z).

Parameters
contextHandle to a previously created context.
grid_indexIndex for the grid cell to extract.
graphicsOn successful return, this will be filled with a pointer to a freshly allocated Tango3DR_Graphics object containing a vector graphics object. After use, free this by calling Tango3DR_destroyGraphics().
Returns
TANGO_3DR_SUCCESS on successfully extracting the floor plan. Returns TANGO_3DR_INVALID if context or graphics is NULL.
Tango3DR_Status Tango3DR_extractFullFloorplan ( const Tango3DR_ReconstructionContext  context,
Tango3DR_PolygonArray graphics 
)

Extract a floor plan from an existing 3D reconstruction context.

Parameters
contextHandle to a previously created context.
graphicsOn successful return, this will be filled with a pointer to a freshly allocated Tango3DR_Graphics object containing a vector graphics object. The polygons are sorted by decreasing surface area, so that it is safe to render them directly using the provided ordering. Note that polygons with negative surface area indicate holes that need to be rendered in the background color. After use, free this by calling Tango3DR_destroyGraphics().
Returns
TANGO_3DR_SUCCESS on successfully extracting the floor plan. Returns TANGO_3DR_INVALID if context or graphics is NULL.
Tango3DR_Status Tango3DR_extractFullFloorplanImage ( const Tango3DR_ReconstructionContext  context,
Tango3DR_FloorplanLayer  layer,
Tango3DR_Vector2 origin,
Tango3DR_ImageBuffer image 
)

Extract a floor plan layer image from an existing 3D reconstruction context.

Parameters
contextHandle to a previously created context.
layerFloor plan layer to extract.
originOn successful return, position of the top left pixel in world coordinates (x: right, y: up).
imageOn successful return, this will be filled with a pointer to a freshly allocated Tango3DR_ImageBuffer object containing a floor plan layer image. Note that the image uses a coordinate system with (x: right, y: down). After use, free the image by calling Tango3DR_ImageBuffer_destroy().
Returns
TANGO_3DR_SUCCESS on successfully extracting the floor plan. Returns TANGO_3DR_INVALID if context or image is NULL.
Tango3DR_Status Tango3DR_extractLevels ( const Tango3DR_ReconstructionContext  context,
Tango3DR_FloorplanLevelArray levels 
)

Detect and extract (vertical) building levels. Currently, we only support single story buildings, so levels->num_levels will always equal 1.

Parameters
contextHandle to a previously created context.
graphicsOn successful return, this will be filled with a pointer to a freshly allocated Tango3DR_Levels object containing the levels of the building. After use, free this by calling Tango3DR_destroyGraphics().
Returns
TANGO_3DR_SUCCESS on successfully destroying the vector graphics. Returns TANGO_3DR_INVALID if context or graphics is NULL.
Tango3DR_Status Tango3DR_resetLevelsEstimator ( const Tango3DR_ReconstructionContext  context)

Reset and enable automatic building level estimator. To disable the automatic estimator and to specify the building level manually instead, call Tango3DR_selectLevel.

Parameters
contextHandle to a previously created context.
Returns
TANGO_3DR_SUCCESS on successfully resetting the building level estimator. Returns TANGO_3DR_INVALID if context is NULL.
Tango3DR_Status Tango3DR_selectLevel ( const Tango3DR_ReconstructionContext  context,
const Tango3DR_FloorplanLevel level 
)

Manually select building level. This disables the automatic building level estimator. To re-enable the automatic estimator, call Tango3DR_resetLevelsEstimator.

Parameters
contextHandle to a previously created context.
min_zFloor height, in meters.
max_zCeiling height, in meters.
Returns
TANGO_3DR_SUCCESS on successfully destroying the vector graphics. Returns TANGO_3DR_INVALID if context is NULL.
Tango3DR_Status Tango3DR_updateFloorplan ( const Tango3DR_ReconstructionContext  context,
const Tango3DR_GridIndexArray grid_index_array 
)

Update a floor plan in an existing 3D reconstruction context. You need to call this function or Tango3DR_updateFullFloorplan() prior to extracting a floor plan using Tango3DR_extractFullFloorplan() or Tango3DR_extractFloorplanSegment().

Parameters
contextHandle to a previously created context.
grid_index_arrayGrid cells that need to be updated.
Returns
TANGO_3DR_SUCCESS on successfully updating the floor plan. Returns TANGO_3DR_INVALID if context is NULL.
Tango3DR_Status Tango3DR_updateFullFloorplan ( const Tango3DR_ReconstructionContext  context)

Update a floor plan in an existing 3D reconstruction context. You need to call this function or Tango3DR_updateFloorplan() prior to extracting a floor plan using Tango3DR_extractFullFloorplan() or Tango3DR_extractFloorplanSegment().

Parameters
contextHandle to a previously created context.
Returns
TANGO_3DR_SUCCESS on successfully updating the floor plan. Returns TANGO_3DR_INVALID if context is NULL.
void Tango3DR_VectorGraphics_destroy ( Tango3DR_PolygonArray graphics)

Destroy a previously created vector graphics object.

Parameters
configPointer to a previously created vector graphics object.


tango_3d_reconstruction
Author(s):
autogenerated on Mon Jun 10 2019 15:37:45