MCPcopy Create free account
hub / github.com/LAStools/LAStools / filter

Method filter

LASlib/src/lasfilter.cpp:832–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %f %f %f %f %f %f", name(), h_min, h_max, s_min, s_max, v_min, v_max); };
831 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_RGB; };
832 inline BOOL filter(const LASpoint* point)
833 {
834 point->get_hsl(hsl);
835 return (hsl[0] < h_min) || (hsl[0] > h_max) || (hsl[1] < s_min) || (hsl[1] > s_max) || (hsl[2] < v_min) || (hsl[2] > v_max);
836 };
837 LAScriterionKeepHSLA(F32 h_min, F32 h_max, F32 s_min, F32 s_max, F32 v_min, F32 v_max)
838 {
839 this->h_min = h_min;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected