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

Method filter

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

Source from the content-addressed store, hash-verified

791 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %d %d ", name(), below_RGB, above_RGB); };
792 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_RGB; };
793 inline BOOL filter(const LASpoint* point) { I32 greenness = 2 * point->get_G() - point->get_R() - point->get_B(); return ((greenness < below_RGB) || (above_RGB < greenness)); };
794 LAScriterionKeepRGBgreenness(I32 below_RGB, I32 above_RGB) { if (above_RGB < below_RGB) { this->below_RGB = above_RGB; this->above_RGB = below_RGB; } else { this->below_RGB = below_RGB; this->above_RGB = above_RGB; }; };
795private:
796 I32 below_RGB, above_RGB;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected