GithubHelp home page GithubHelp logo

konradzaba / cudaslope Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 143.19 MB

Sample app using Alea GPU library for calculating terrain slope with CUDA

License: GNU General Public License v3.0

C# 100.00%
alea-gpu-library cuda slope heightmap gis parallel-processing

cudaslope's Introduction

CudaSlope

Sample app using Alea GPU library for calculating terrain slope with CUDA.

The main idea behind the application is to show viability of using Alea GPU library for GPGPU computations. Thus, it is not a complete solution - the result itself is not georeferenced etc. Theoreotically, calculating the slope in angles does not add anything to the final gradient product - percentage would work just as well. I did it only to show the performance benefits when calculating the angles themselves.

A few things that can be improved:

  • the data portions for GPU slope are calculated basing on only on image width. Ideally it, should take into account the larger of two components. The data portions should be created in such a way to ensure that inner Gpu.Parallel.For has more iterations than outer for.
  • perhaps it would be even better to get rid of matrix and store everything in simple arrays
  • the input file should really not be read in a single shot. We might be missing not only on VRAM, but also simply RAM.

Input heightmap (DEM): heightmap

Output slope gradient: slope gradient

cudaslope's People

Contributors

konradzaba avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

lazicsasalaki

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.