How can I use the Mapping Toolbox 2.7.2 (R2009a) to

How can I use the Mapping Toolbox 2.7.2 (R2009a) to map a specific region of pixels to lat-lon coordinates?

I am using a GeoTIFF file, and I would like to know how to do the necessary projections to allow me to map pixels to latitude-longitude coordinates.

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

You can relate image rows and columns to latitude-longitude (if the GeoTIFF file is referenced to a geographic coordinate system) or to map X-Y coordinates (if the GeoTIFF is referenced to a projected coordinate system). First call GEOTIFFINFO and examine the INFO structure that it returns. Examine the ‘ModelType’ field to see what kind of system the image is in. Then you can use the 3-by-2 referencing matrix in the ‘RefMatrix’ field of the INFO structure to map X-Y or latitude-longitude limits to column and row limits. See functions MAP2PIX and LATLON2PIX.

If it turns out that the image is in a projected coordinate system but you have limits that are specified as a latitude-longitude quadrangle, you can pass the INFO structure to the PROJFWD function, along with latitudes and longitudes defining the corner points of the quadrangle. It will return those corner points in map X-Y, which you can pass on into MAP2PIX.

Note that MAP2PIX and LATLON2PIX may return row/column values that are less than 1 or that exceed the number or columns or rows in the image. In this case you can clamp them before calling IMREAD.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Cluster Governance — Policy Management

Building the all-new Toppr iOS apps - Part 2

Shell Scripts that’ll Automate Software Installation on Your Linux Server (Part I)

Hero Course by SubQuery

Flutter Design Patterns: 12 — Command

Vagrant Provisioning with Chef

Unity C# Basics — Tip Calculator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

ROI selection without overlap

Advance Analysis With Python

First Datapane Plot.

Do Left Handed People Really Die Young — Datacamp datasets