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

Click For Summary
To map a generic quadrilateral onto a rectangle, one must determine the transformation matrix based on the known coordinates of the quadrilateral's corners in both the latitude-longitude and pixel coordinate systems. The process involves visualizing the transformation, drawing a coordinate system, and iteratively adjusting the matrix through stretching and rotation until the desired rectangle is formed. Understanding matrix algebra is essential for this transformation, as it allows for precise manipulation of the coordinates. The unknown projection type of the chart complicates the process, but the same transformation technique can be applied across different charts with varying projections. This approach provides a systematic way to convert GPS coordinates to pixel coordinates and vice versa.
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
 
Mathematics 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 19 ·
Replies
19
Views
27K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 24 ·
Replies
24
Views
8K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
3
Views
3K