contour-creator/documentation/slides.md
2024-05-06 14:16:04 +02:00

838 B

title author
INF205: creating contours using the marching squares algorithm
Trygve og Esther

Output of our program:

Contour map of Ås

Marching squares

By Nicoguaro; Adroitwhiz - File:Marching_squares_algorithm.svg, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=143418710

The logical flow of our program

int main(int argc, const char* argv[])
{
    const char* filepath = argv[1];
    HeightMap map(filepath); 
    map.blur(0.8)
    auto lines = create_lines(&map, 5);
    write_output_file(cellmaps, "out.geojson", &map);
}

Performance

Time
12 threads 41s
1 thread 116s

Problems we encountered