| 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; }; }; |
| 1092 | private: |
| 1093 | F32 below_NDVI, above_NDVI; |
nothing calls this directly
no outgoing calls
no test coverage detected