Mapping a generic quadrilateral onto a rectangle (in 2 dimensions)

Click For Summary
SUMMARY

The discussion centers on mapping a generic quadrilateral, derived from an aviation chart, onto a rectangle using known latitude and longitude coordinates. The user, Henry Hallam, seeks a method to convert GPS coordinates into pixel coordinates on the image and vice versa, despite the unknown projection type of the chart. The solution involves determining a transformation matrix that can accommodate various projections, utilizing matrix algebra to achieve the desired mapping.

PREREQUISITES
  • Understanding of matrix algebra
  • Familiarity with coordinate systems
  • Knowledge of geographic coordinate systems (latitude and longitude)
  • Experience with image processing concepts
NEXT STEPS
  • Research how to derive transformation matrices for quadrilaterals
  • Learn about different types of geometric transformations (e.g., scaling, rotation)
  • Explore methods for handling various map projections
  • Investigate tools for image processing, such as OpenCV for Python
USEFUL FOR

Geospatial analysts, software developers working with mapping applications, and anyone involved in image processing and transformation of geographic data.

HenryHallam
Messages
4
Reaction score
0
Problem:
I have a computer image of a grid "square" from an aviation chart. The "square" is actually approximately rectangular, but the left and right sides aren't quite parallel and the top and bottom sides are parallel but very slightly curved.
I will assume/pretend that the top and bottom sides are not curved but that they may not necessarily be horizontal w.r.t. the computer image.

The corners of the "square" have known latitude and longtitude. i.e. top left corner has (lat,long) (a,c), top right has (a,d), bottom left has (b,c), bottom right has (b,d) so if you drew their latitudes and longtitudes as cartesian co-ordinates on a plane they would form a rectangle.

I wish to convert a given latitude and longtitude (from a GPS receiver) to a set of pixel co-ordinates on the image, and also vice versa.

The type of projection used by the chart is unknown, and even if I were to work it out I would like to be able to use the same technique for different charts which use different projections.

So what I think I am looking for basically is a way to determine the transformation that maps a generic quadrilateral onto a rectangle, given the co-ordinates of all four corners in both planes.

Is this what I need? How would I go about doing this? I understand the basics of matrix algebra.

Thanks very much for your time!

Henry Hallam
 
Physics news on Phys.org
I would start to draw a picture and then think which transformation I want to perform. Then I'd drew a coordinate system and determine the transformation matrix. This can be repeated until the final rectangle is achieved. We can have stretchings with respect to a certain straight, and rotations.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
7K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K