Coder Social home page Coder Social logo

ta---cartografia's Introduction

Street Segmentation from QGis rasters

How to interact

  • W: Move up on the raster
  • A: Move left on the raster
  • S: Move down on the raster
  • D: Move right on the raster
  • +: Increase the zoom (reduce the scale)
  • -: Decrease the zoom (increase the scale)
  • Q: Quit program

How to run the program

  • The images from the diferent sensores should be in a forlder named R10m. The images can be obtained here and the files are located at GRANULE/L2A_T29TNF_A005497_20180326T112919/IMG_DATA/R10m;

  • Simply run Street_seg.py and two windows will be displayed.

  • The left one shows the original satellite raster preview

  • The right one displays the results obtained after segmentation.

Main considerations of the algorithm

  • Some visual results are presented at Resultados folder.

  • Only the TCI raster is used since it is an RGB image built from the B02 (Blue), B03 (Green), and B04 (Red) Bands. Therefore there's no need of reading the images of the 3 individual sensors.

  • Because the input is based on a truly HDR image, every time the zoom (scale) of the windows are changed, the displayed portion of the raster is normalized for an RGB scale between [0,255]. This is done by taking into account the maximum value of the pixels of the displayed portion, allowing a dynamic adjustment based on the light intensity of that portion.

  • For higher values of zoom, the original raster presents already some blur. In these scenarios, applying a gaussian blur filter to reduced soft edges before canny is irrelevant and not useful to the final result.

  • An adaptive cauny method is used to detect the edges of the raster. The lower and upper limits are estimated based on the median of the image as seen here.

  • After applying the canny filters, the green (chlorophyll) zones are "cleaned" from the result. This is made base on an analysis of the pixel colour in the HSV space and allows to remove edges encounter in places like rivers surrounded by green zones or edges between field crops.

Team

  • Miguel Miranda

Tecnologias e Aplicação de CG - Cartografia

Mestrado Integrado em Engenharia Informática

Departamento de Informática

Universidade do Minho - 2018

ta---cartografia's People

Contributors

mikedm16 avatar

Watchers

 avatar

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.