LimHyungTae/patchwork

prabally code error

HMX2013 opened this issue · 4 comments

It seems that line 186 "concentric_idx_tmp++; " should be put behind line 187.

Could you please why? I don't think so, because it's the index for rings from the central to far part (maybe I have to change it to more appropriate names)

Because the value of "num_rings_each_zone" may be bigger than 1. Therefore the ring index may be different from the zone index. For example, in variables flatness_thr_[concentric_idx], concentric_idx may be greater than 3. I think concentric_idx should be the zone index, not the ring index.

Well, the flatness term is only applied to the closest rings, not the zone. Because we cannot discern between flat but steep slope and just non-ground, flat objects when the distance from the origin becomes large. That's why elevation and flatness are applied to the closest rings.

Thanks.