scan.cc: extract_depth: use correct dimension type