-
Notifications
You must be signed in to change notification settings - Fork 75
/
StixelSegmenation.h
60 lines (45 loc) · 2.12 KB
/
StixelSegmenation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
@file StixelSegmentation.h
@date 2017/09/03
@author tkwoo(wtk1101@gmail.com)
@brief stixel segmentation(objectness)
*/
#pragma once
// #include <opencv2\opencv.hpp>
#include <iostream>
#include <map>
#include "./include/DefStruct.h"
#include "StixelEstimation.h"
using namespace std;
using namespace cv;
typedef enum Seg_error { GOOD, SIZ_ERR } SEG_ERROR;
/**
@class CStixelSegmentation
@brief stixel Segmentation�� ���� class
*/
class CStixelSegmentation{
private:
//----------------input--------------------
vector<stixel_t> m_vecobjStixels;
//----------------param--------------------
StereoCamParam_t m_objStereoParam;
//-------------member image----------------
Mat m_imgDebug;
//---------------function------------------
//============processing part==============
//old version
//SEG_ERROR StixelZClustering(vector<stixel_t>& objStixels, vector<boundingbox_t>& objBBcandidate); ///< Z ���� Distance ��� �з�, Stixel -> BB candidate
//SEG_ERROR StixelXClustering(vector<boundingbox_t>& objBBinput, vector<boundingbox_t>& objBBOutput); ///< X ���� Distance ��� �з�, BB candidate -> BB result
//SEG_ERROR StixelBBboxOptimization(vector<boundingbox_t>& objBBinput, vector<boundingbox_t>& objBBOutput); ///< bounding box ����ȭ
SEG_ERROR StixelZClustering(vector<stixel_t>& objStixels, vector<Object_t>& objBBcandidate); ///< Z ���� Distance ��� �з�, Stixel -> BB candidate
SEG_ERROR StixelXClustering(vector<Object_t>& objBBinput, vector<Object_t>& objBBOutput); ///< X ���� Distance ��� �з�, BB candidate -> BB result
SEG_ERROR StixelBBboxOptimization(vector<Object_t>& objBBinput, vector<Object_t>& objBBOutput); ///< bounding box ����ȭ
public:
//----------------output-------------------
vector<Object_t> m_vecobjBB;
//---------------function------------------
CStixelSegmentation(StereoCamParam_t objStereoParam);
void SetDebugImg(Mat imgTemp);
//wrapping function
SEG_ERROR SegmentStixel(vector<stixel_t>& objStixels); ///< Stixel �з��۾�
};