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

Method filter

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

Source from the content-addressed store, hash-verified

1084 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %g %g ", name(), below_NDVI, above_NDVI); };
1085 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_RGB | LASZIP_DECOMPRESS_SELECTIVE_INTENSITY; };
1086 inline BOOL filter(const LASpoint* point)
1087 {
1088 F32 NDVI = ((F32)(point->get_intensity() - point->get_R())) / ((F32)(point->get_intensity() + point->get_R()));
1089 return (NDVI < below_NDVI) || (above_NDVI < NDVI);
1090 };
1091 LAScriterionKeepNDVIintensityIsNIR(F32 below_NDVI, F32 above_NDVI) { if (above_NDVI < below_NDVI) { this->below_NDVI = above_NDVI; this->above_NDVI = below_NDVI; } else { this->below_NDVI = below_NDVI; this->above_NDVI = above_NDVI; }; };
1092private:
1093 F32 below_NDVI, above_NDVI;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected