Skip to content

File test_vegetation_polygon.cpp

FileList > lib > vegetation > tests > test_vegetation_polygon.cpp

Go to the source code of this file

  • #include <gtest/gtest.h>
  • #include <algorithm>
  • #include <cmath>
  • #include <map>
  • #include <set>
  • #include <vector>
  • #include "config_input/config_input.hpp"
  • #include "contour/contour.hpp"
  • #include "contour/contour_gen.hpp"
  • #include "geometry/polygon.hpp"
  • #include "grid/grid.hpp"
  • #include "utilities/progress_tracker.hpp"
  • #include "vegetation/vegetation_polygon.hpp"

Public Functions

Type Name
TEST (ExtractThresholdLayers, UsesDefaultLayerName)
TEST (ExtractThresholdLayers, SortedByThreshold)
TEST (ExtractThresholdLayers, EmptyConfig)
TEST (ContoursToPolygons, SingleThresholdNoHoles)
TEST (ContoursToPolygons, NestedContoursAreIndependent)
TEST (ContoursToPolygons, DetectsOuterRingVsHole)
TEST (ContoursToPolygons, CwOnlyRingProducesNoPolygon)
TEST (TrimVegePolygons, ClipsToExportExtent)
TEST (TrimVegePolygons, RemovesPolygonOutsideExtent)
TEST (ContoursToPolygons, DeepNestedPolygonInHoleInPolygon)
TEST (ContoursToPolygons, TwoSeparatePeaks)
TEST (ContoursToPolygons, LayerAssignmentFromThreshold)
TEST (FilterByMinArea, RemovesSmallPolygons)
TEST (FilterByMinArea, KeepsAllWhenNoThreshold)
TEST (FilterByMinArea, RespectsDifferentLimits)
TEST (FilterByMinArea, UsesNetAreaNotExterior)
TEST (FilterSmallHoles, RemovesTinyHoles)
TEST (FilterSmallHoles, NoFilterWhenZero)
TEST (FilterSmallHoles, DifferentPerLayer)
TEST (SubtractFromPolygon, PreservesLayerMetadata)
TEST (SubtractFromPolygon, GreenDonutLeavesForestRing)
TEST (SubtractFromPolygon, SmallHolesRemovedByPostSubtractFilter)
TEST (GenerateVegePolygons, RoughOpenLandHolesMatchRemainingForest)
TEST (GenerateVegePolygons, RoughOpenLandHasNoTinySpeckleHoles)
TEST (GenerateVegePolygons, GreenDonutCutLeavesForestRing)
TEST (ContoursToPolygons, NestedHoles)
TEST (ContoursToPolygons, BigGrid)
std::vector< VegePolygon > forest_contours_polygonize (const GeoGrid< float > & grid)

Public Functions Documentation

function TEST

TEST (
    ExtractThresholdLayers,
    UsesDefaultLayerName
) 

function TEST

TEST (
    ExtractThresholdLayers,
    SortedByThreshold
) 

function TEST

TEST (
    ExtractThresholdLayers,
    EmptyConfig
) 

function TEST

TEST (
    ContoursToPolygons,
    SingleThresholdNoHoles
) 

function TEST

TEST (
    ContoursToPolygons,
    NestedContoursAreIndependent
) 

function TEST

TEST (
    ContoursToPolygons,
    DetectsOuterRingVsHole
) 

function TEST

TEST (
    ContoursToPolygons,
    CwOnlyRingProducesNoPolygon
) 

function TEST

TEST (
    TrimVegePolygons,
    ClipsToExportExtent
) 

function TEST

TEST (
    TrimVegePolygons,
    RemovesPolygonOutsideExtent
) 

function TEST

TEST (
    ContoursToPolygons,
    DeepNestedPolygonInHoleInPolygon
) 

function TEST

TEST (
    ContoursToPolygons,
    TwoSeparatePeaks
) 

function TEST

TEST (
    ContoursToPolygons,
    LayerAssignmentFromThreshold
) 

function TEST

TEST (
    FilterByMinArea,
    RemovesSmallPolygons
) 

function TEST

TEST (
    FilterByMinArea,
    KeepsAllWhenNoThreshold
) 

function TEST

TEST (
    FilterByMinArea,
    RespectsDifferentLimits
) 

function TEST

TEST (
    FilterByMinArea,
    UsesNetAreaNotExterior
) 

function TEST

TEST (
    FilterSmallHoles,
    RemovesTinyHoles
) 

function TEST

TEST (
    FilterSmallHoles,
    NoFilterWhenZero
) 

function TEST

TEST (
    FilterSmallHoles,
    DifferentPerLayer
) 

function TEST

TEST (
    SubtractFromPolygon,
    PreservesLayerMetadata
) 

function TEST

TEST (
    SubtractFromPolygon,
    GreenDonutLeavesForestRing
) 

function TEST

TEST (
    SubtractFromPolygon,
    SmallHolesRemovedByPostSubtractFilter
) 

function TEST

TEST (
    GenerateVegePolygons,
    RoughOpenLandHolesMatchRemainingForest
) 

function TEST

TEST (
    GenerateVegePolygons,
    RoughOpenLandHasNoTinySpeckleHoles
) 

function TEST

TEST (
    GenerateVegePolygons,
    GreenDonutCutLeavesForestRing
) 

function TEST

TEST (
    ContoursToPolygons,
    NestedHoles
) 

function TEST

TEST (
    ContoursToPolygons,
    BigGrid
) 

function forest_contours_polygonize

std::vector< VegePolygon > forest_contours_polygonize (
    const GeoGrid < float > & grid
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/vegetation/tests/test_vegetation_polygon.cpp