Coder Social home page Coder Social logo

gdal2opencv's Introduction

GDAL tiff to OpenCV Mat

使用GDAL库对遥感影像进行读取显示等操作,并将格式转为OpenCV的Mat,这样就可以使用OpenCV的算法: 使用gdal,直接GDAL读取分波段到内存直接OpenCV显示,之后出现纯黑需要进行归一化。需要先统计图像的值,然后选择一种方式进行拉伸,拉伸算法最后用的是envi的2%-98%的最小最大值线性拉伸。。。然后对拉伸处理后的数据导出成Mat

GDAL library is used to read and display remote sensing images, and the format is converted to OpenCV Mat. In this way, OpenCV algorithm can be used: using gdal, direct GDAL reads bands into memory for direct OpenCV display, and then pure black needs to be normalized. We need to count the image value first, then choose a way to stretch. The stretching algorithm uses the minimum maximum linear stretching of envi of 2%-98%. Then the data after stretching is deduced into Mat format.

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.