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

Method filter

LASlib/src/lasfilter.cpp:942–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 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); };
941 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_RGB; };
942 inline BOOL filter(const LASpoint* point)
943 {
944 point->get_hsv(hsv);
945 return (hsv[0] < h_min) || (hsv[0] > h_max) || (hsv[1] < s_min) || (hsv[1] > s_max) || (hsv[2] < v_min) || (hsv[2] > v_max);
946 };
947 LAScriterionKeepHSVA(F32 h_min, F32 h_max, F32 s_min, F32 s_max, F32 v_min, F32 v_max)
948 {
949 this->h_min = h_min;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected