5 #ifndef RADARELAB_ALGO_TOP_H
6 #define RADARELAB_ALGO_TOP_H
14 void compute_top(
const Volume<T>& volume, T threshold, Matrix2D<unsigned char>& top)
18 for (
unsigned l=0; l < volume.size(); ++l)
20 const auto& scan = volume[l];
21 for (
unsigned i = 0; i < scan.beam_count; ++i)
23 const double elevaz = scan.elevations_real(i);
24 for (
unsigned k = 0; k < scan.beam_size; ++k)
25 if (scan.get(i, k) > threshold)
28 elevaz, (k + 0.5) * scan.cell_size) / 100.);
Definisce le principali strutture che contengono i dati.
double sample_height(unsigned cell_idx) const
Return the height (in meters) of the sample at the given cell indexa.