64,654
社区成员
发帖
与我相关
我的任务
分享
template <typename T>
class StereoSGM {
private:
public:
// SGM
StereoSGM(int i_width, int i_height, int i_maxDisp, StereoSGMParams_t i_params);
~StereoSGM();
void process(uint16* dsi, T* img, float32* dispLeftImg, float32* dispRightImg);
};
template <typename T>
class StripedStereoSGM {
std::vector<StereoSGM<T>* > m_sgmVector;
std::vector<float32*> m_stripeDispImgVector;
std::vector<float32*> m_stripeDispImgRightVector;
public:
StripedStereoSGM(int i_width, int i_height, int i_maxDisp, int numStrips, const int border, StereoSGMParams_t i_params)
{
if (numStrips <= 1) {
m_sgmVector.push_back(new StereoSGM<T>(m_width, m_height, m_maxDisp, i_params));
}
StereoSGM<T>* p = new StereoSGM<T>(m_width, m_height, m_maxDisp, i_params);
m_sgmVector.push_back(p);