1.在写局部一致性时,在DepthEstimator类中新定义了一个float成员变量delta_c2pmax
float delta_c2pmax; //点到平面差值的最大值,用于归一化
2.相应构造函数,拷贝自_depthData0,同时_depthData0为引用构造
delta_c2pmax(_depthData0.delta_c2pmax),
DepthData& _depthData0
我本来是想着在邻域传播时候找到delta_c2p的最大值,赋予到delta_c2pmax中,因为_depthData0为引用构造,就以为改变了DepthEstimator中的delta_c2pmax的值就能改变depthData中的delta_c2pmax的值。
后来发现没有改变
原因:这只是单纯的从_depthData0中拷贝_depthData0.delta_c2pmax的值,并不是引用到_depthData0.delta_c2pmax,虽然_depthData0为引用构造,但是事实上改变DepthEstimator中的delta_c2pmax的值并没能相应改变了depthData中的delta_c2pmax的值。估计要改变arrDepthData0中的delta_c2pmax值才能真正改变depthData中的delta_c2pmax的值。