75 #define GRID_MAX_HEIGHT 2000 // 2m 76 #define GRID_MIN_HEIGHT -1000 // -1m 78 #define MAX_CLASS_NUM_IN_GRID 5 83 #define QUAD_LATERAL_BB 0 411 int16_t * maxObjXGridYPos;
414 int16_t * minObjXGridYPos;
417 int16_t * maxObjYGridXPos;
420 int16_t * minObjYGridXPos;
909 #endif // #ifndef _CREATE_OG_H PTK_Alg_StereoOG_Object * curObject
Definition: create_og.h:507
float cosPitch
Definition: create_og.h:240
float pr1x
Definition: create_og.h:144
uint8_t * visible
Definition: create_og.h:441
int16_t * count
Definition: create_og.h:345
int16_t cNeighNum
Definition: create_og.h:303
int16_t * maxHeight
Definition: create_og.h:336
float topLeftGridY
Definition: create_og.h:168
int16_t * width
Definition: create_og.h:424
int16_t * minObjYGrid
Definition: create_og.h:404
int16_t * height
Definition: create_og.h:427
uint8_t * merged
Definition: create_og.h:407
float camYaw
Definition: create_og.h:234
int16_t getNeighbor24Idx(PTK_Alg_StereoOG_CreateOGParams *ogParams, PTK_Alg_StereoOG_OGConn *ogConn, int32_t idx, int32_t xIdx, int32_t yIdx)
Find 24 neighboring grids.
int32_t * neighborIndex
Definition: create_og.h:477
float * centerY
Definition: create_og.h:433
float pf1y
Definition: create_og.h:127
int16_t * minHeight
Definition: create_og.h:362
Stereo OG Map creation process - OG Parameters.
Definition: create_og.h:267
int16_t * maxObjYGrid
Definition: create_og.h:401
int16_t * minHeight
Definition: create_og.h:392
int16_t * minObjXGrid
Definition: create_og.h:398
int16_t thCnt
Definition: create_og.h:294
float camRoll
Definition: create_og.h:228
float pr2y
Definition: create_og.h:150
uint8_t classId
Definition: create_og.h:120
void PTK_Alg_StereoOG_copyObjectInfo(PTK_Alg_StereoOG_Object *srcObj, PTK_Alg_StereoOG_Object *dstObj, int16_t srcIdx, int16_t dstIdx)
Merge neighboring objects.
Stereo algorithm - OG Map creation context.
Definition: create_og.h:486
float dcx
Definition: create_og.h:246
Definition of a 3x3 matrix.
Definition: matrix.h:119
float pr2x
Definition: create_og.h:148
uint8_t * classId
Definition: create_og.h:342
float pr4y
Definition: create_og.h:158
int32_t PTK_Alg_StereoOG_CreateOGGetMem(PTK_Alg_StereoOG_CreateOGObj *cntxt, uint8_t *memPtr)
Get memory size.
int8_t * occupied
Definition: create_og.h:356
int16_t maxNumObject
Definition: create_og.h:300
void PTK_Alg_StereoOG_resetOG(PTK_Alg_StereoOG_CreateOGObj *cntxt)
Reset OG.
int16_t * minHeight
Definition: create_og.h:339
float pf1x
Definition: create_og.h:125
Stereo OG Map creation process - Grid Property struct.
Definition: create_og.h:330
PTK_Alg_StereoOG_CreateOGConfigParams cfgParams
Definition: create_og.h:315
Stereo OG Map creation process - 3D bounding boxes.
Definition: create_og.h:181
int16_t * count
Definition: create_og.h:386
float pr3x
Definition: create_og.h:152
void PTK_Alg_StereoOG_mergeObjectsTemporal(PTK_Alg_StereoOG_CreateOGObj *cntxt, int8_t direction)
Merge the current (or previous) frame's object, which does not have correspondences in the prvious ...
void PTK_Alg_StereoOG_addPoints(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_Point *points, int32_t numPoints)
Add point clouds to OG map.
int16_t * age
Definition: create_og.h:438
float frontDepth
Definition: create_og.h:161
float pf2y
Definition: create_og.h:131
void * PTK_AlgHandle
Algorithm Handle.
Definition: alg_common.h:79
uint8_t * classId
Definition: create_og.h:383
OBJECT_CORRESPONDENCE
Definition: create_og.h:100
int32_t PTK_Alg_StereoOG_CreateOGConfig(PTK_Alg_StereoOG_CreateOGAllParams *params, PTK_Api_MemoryReq *memReq)
Computes the memory requirements based on the given algorithm configuration parameters.
Definition: pointCloud.h:129
int16_t height
Definition: create_og.h:199
float * dx
Definition: create_og.h:452
int32_t xMaxRange
Definition: create_og.h:279
float * centerX
Definition: create_og.h:430
int32_t PTK_Alg_StereoOG_getOGMem(PTK_Alg_StereoOG_CreateOGObj *cntxt, uint8_t *memPtr)
Get memory size for OG map.
int16_t numObject
Definition: create_og.h:380
int32_t numGridInQueue
Definition: create_og.h:468
int16_t * count
Definition: create_og.h:368
uint8_t enableTemporalObjMerge
Definition: create_og.h:205
PTK_Alg_StereoOG_obs3DBox * PTK_Alg_StereoOG_initObsBB(uint8_t *memPtr)
Initialize bouning box structure using the given chunk of memory.
void PTK_Alg_StereoOG_CreateOGSetParams(PTK_Alg_StereoOG_CreateOGAllParams *params, PTK_Alg_StereoOG_CreateOGObj *cntxt)
Initialize OG Map creation parameters.
OBJECT_SEARCH_DIRECTION
Definition: create_og.h:90
int32_t PTK_Alg_StereoOG_getObjMem(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_Alg_StereoOG_Object *obj, uint8_t *memPtr)
Get memory size for OG objects.
int16_t * maxHeight
Definition: create_og.h:359
uint8_t enableSpatialObjMerge
Definition: create_og.h:202
int32_t yMinRange
Definition: create_og.h:282
int16_t numObject
Definition: create_og.h:183
int32_t yMaxRange
Definition: create_og.h:285
int16_t * maxObjXGrid
Definition: create_og.h:395
void PTK_Alg_StereoOG_createBB(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_Alg_StereoOG_Object *object, PTK_Alg_StereoOG_obs3DBox *obsBB)
Create 3D bounding boxes for detected objects.
float dcy
Definition: create_og.h:249
float bottomRightGridX
Definition: create_og.h:170
void PTK_Alg_StereoOG_resetTemporalReference(PTK_Alg_StereoOG_CreateOGObj *cntxt)
Reset temporal object reference.
int16_t * correspondence
Definition: create_og.h:449
PTK_Alg_StereoOG_CreateOGAllParams params
Definition: create_og.h:489
void PTK_Alg_StereoOG_findCorrespondence(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_Alg_StereoOG_Object *srcObj, PTK_Alg_StereoOG_Object *refObj, uint8_t direction)
Find corresponding objects in two frames.
Stereo OG Map creation process - 3D bounding box property.
Definition: create_og.h:118
PTK_Alg_StereoOG_OccupancyGrid og
Definition: create_og.h:495
void PTK_Alg_StereoOG_applyTemporalFilter(PTK_Alg_StereoOG_CreateOGObj *cntxt)
Apply temporal filtering of objects.
void PTK_Alg_StereoOG_mergeObjects(PTK_Alg_StereoOG_CreateOGObj *cntxt)
Merge neighboring objects.
PTK_Alg_StereoOG_OGConn ogConn
Definition: create_og.h:516
float pr1y
Definition: create_og.h:146
PTK_Alg_StereoOG_Object object2
Definition: create_og.h:501
int32_t xGridNum
Definition: create_og.h:288
PTK_AlgHandle PTK_Alg_StereoOG_CreateOGInit(PTK_Alg_StereoOG_CreateOGAllParams *params, const PTK_Api_MemoryRsp *memRsp)
Initializes the library based on the given algorithm configuration parameters and allocated memory bl...
PTK_Alg_StereoOG_GridProp gridProp
Definition: create_og.h:492
PTK_Alg_StereoOG_CreateOGCamParams camParams
Definition: create_og.h:318
PTK_Alg_StereoOG_BoxProp * PTK_Alg_StereOG_get3DBB(PTK_Alg_StereoOG_obs3DBox *obsBB)
Get bounding box pointer.
Declarations for PTK_Matrix struct+functions.
float PTK_Alg_StereoOG_computeDistanceObjects(uint8_t mode, PTK_Alg_StereoOG_Object *obj1, PTK_Alg_StereoOG_Object *obj2, int16_t idx1, int16_t idx2)
Merge neighboring objects.
float rearDepth
Definition: create_og.h:163
int32_t PTK_Alg_StereoOG_getGridPropMem(PTK_Alg_StereoOG_CreateOGObj *cntxt, uint8_t *memPtr)
Get memory size for GridProp mem.
int32_t xGridSize
Definition: create_og.h:270
int32_t baseline
Definition: create_og.h:243
Stereo OG Map creation process - Object struct.
Definition: create_og.h:377
Definition of a point.
Definition: point.h:136
uint32_t bbOffset
Definition: create_og.h:186
int8_t * numClass
Definition: create_og.h:333
PTK_3D_Matrix K
Definition: create_og.h:255
int16_t thObjCnt
Definition: create_og.h:297
Definition: create_og.h:103
PTK_Alg_StereoOG_CreateOGParams ogParams
Definition: create_og.h:321
PTK_3D_Matrix invK
Definition: create_og.h:258
float pf4x
Definition: create_og.h:137
Stereo OG Map creation process - OGConn struct.
Definition: create_og.h:463
void PTK_Alg_StereoOG_associateCorrespondence(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_Alg_StereoOG_Object *curObj, PTK_Alg_StereoOG_Object *prevObj)
Associate the objects in the current frame to the previous frame's object. The assocaited objects shu...
API memory allocation response.
Definition: api_memory_if.h:158
int32_t xMinRange
Definition: create_og.h:276
int8_t * visited
Definition: create_og.h:471
int16_t * maxHeight
Definition: create_og.h:389
int32_t yGridNum
Definition: create_og.h:291
Definition: create_og.h:102
uint8_t enableTemporalObjSmoothing
Definition: create_og.h:208
void PTK_Alg_StereoOG_createOG(PTK_Alg_StereoOG_CreateOGObj *cntxt, PTK_PointCloud *pc, PTK_Alg_StereoOG_obs3DBox *obsBB)
Root function to create OG map from point clouds.
float * dy
Definition: create_og.h:455
int32_t PTK_Alg_StereoOG_getOGConnMem(PTK_Alg_StereoOG_CreateOGObj *cntxt, uint8_t *memPtr)
Get memory size for connected component analysis.
int32_t camHeight
Definition: create_og.h:225
float pf4y
Definition: create_og.h:139
float pr4x
Definition: create_og.h:156
int16_t width
Definition: create_og.h:196
float pf3y
Definition: create_og.h:135
PTK_Alg_StereoOG_Object object1
Definition: create_og.h:498
PTK_Alg_StereoOG_Object * auxObject
Definition: create_og.h:510
uint8_t * classId
Definition: create_og.h:365
int32_t * neighborQueue
Definition: create_og.h:474
API memory allocation request.
Definition: api_memory_if.h:125
uint8_t objectDistanceMode
Definition: create_og.h:214
float pf3x
Definition: create_og.h:133
float pf2x
Definition: create_og.h:129
PTK_Alg_StereoOG_Object * prevObject
Definition: create_og.h:513
PTK_Alg_StereoOG_Object object3
Definition: create_og.h:504
int16_t getNeighbor8Idx(PTK_Alg_StereoOG_CreateOGParams *ogParams, PTK_Alg_StereoOG_OGConn *ogConn, int32_t idx, int32_t xIdx, int32_t yIdx)
Find 8 neighboring grids.
bool PTK_Alg_StereoOG_mergeTwoObjects(PTK_Alg_StereoOG_Object *curObj, PTK_Alg_StereoOG_Object *newObj, int32_t gridSize, int16_t index)
Merge neighboring objects.
Stereo OG Map creation process - All algorithm Parameters.
Definition: create_og.h:312
float f
Definition: create_og.h:252
Stereo algorithm - camera Parameters.
Definition: create_og.h:222
void PTK_Alg_StereoOG_CCA(PTK_Alg_StereoOG_CreateOGObj *cntxt)
Connected component analysis.
Definition: create_og.h:92
Definition: create_og.h:93
float pr3y
Definition: create_og.h:154
float topLeftGridX
Definition: create_og.h:166
uint32_t PTK_Alg_StereoOG_getObsBBSize(const PTK_Alg_StereoOG_CreateOGParams *ogParams)
Get memory size for object 3D bounding box on image without allocating memory.
float sinPitch
Definition: create_og.h:237
uint8_t * invisibleSpan
Definition: create_og.h:446
float camPitch
Definition: create_og.h:231
Stereo OG Map creation process - config Parameters.
Definition: create_og.h:193
Stereo OG Map creation process - OG struct.
Definition: create_og.h:353
int32_t yGridSize
Definition: create_og.h:273
float bottomRightGridY
Definition: create_og.h:172