Skip to content

Commit d02423d

Browse files
committed
update:注释
1 parent b7e5afa commit d02423d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎object_tracking/src/groundremove/ground_removal.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ void groundRemove(PointCloud<pcl::PointXYZ>::Ptr cloud, // 初始点云
178178
cout << "初始点云 size: "<<cloud->size() << endl;
179179
cout << "高点 size: "<<elevatedCloud->size() << endl;
180180
cout << "地面点 size: "<<groundCloud->size() << endl;
181-
for (int channel = 0; channel < polarData.size(); channel++){
181+
for (int channel = 0; channel < polarData.size(); channel++){ // channel: polarData的点数
182182
for (int bin = 0; bin < polarData[0].size(); bin ++){
183183
float zi = polarData[channel][bin].getMinZ();
184-
if(zi > tHmin && zi < tHmax){polarData[channel][bin].updataHeight(zi);}
184+
if(zi > tHmin && zi < tHmax){polarData[channel][bin].updataHeight(zi);} // 判断什么?
185185
else if(zi > tHmax){polarData[channel][bin].updataHeight(hSeonsor);}
186186
else {polarData[channel][bin].updataHeight(tHmin);}
187187
}
188188
//could replace gauss with gradient
189189
// computeGradientAdjacentCell(polarData[channel]);
190-
gaussSmoothen(polarData[channel], 1, 3);
191-
// std::cout << " finished smoothing at channel "<< channel << std::endl;
192-
computeHDiffAdjacentCell(polarData[channel]);
190+
gaussSmoothen(polarData[channel], 1, 3); // 高斯平滑 来自 src/groundremove/gaus_blur.cpp
191+
std::cout << " finished smoothing at channel "<< channel << std::endl;
192+
computeHDiffAdjacentCell(polarData[channel]); // 什么意思??
193193

194194
for (int bin = 0; bin < polarData[0].size(); bin ++){
195195
if(polarData[channel][bin].getSmoothed() < tHmax &&

0 commit comments

Comments
 (0)