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

Method filter

LASlib/src/lasfilter.cpp:967–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965 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); };
966 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_RGB; };
967 inline BOOL filter(const LASpoint* point)
968 {
969 point->get_hsv(hsv);
970 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);
971 };
972 LAScriterionDropHSVA(F32 h_min, F32 h_max, F32 s_min, F32 s_max, F32 v_min, F32 v_max)
973 {
974 this->h_min = h_min;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected