Overlay image of road bumps on the map

I get a video of bumps, convert everything to a picture, but I can't build a map with overlaid data. I have the path and polygon coordinates (shp file)
n = randi(2,5000,10000); % this is what my data looks like
The map shows a polygon highlighted in black, red dots are stops for charging the camera.
My main problem is that my picture is a rectangle. How I want my data to look
Is there any way to fix this? Thanks in advance

4 Comments

1: What is the map? Is it a plain raster image? Is it some sort of graphics object in a figure created by some sort of mapping tool that I don't know about?
2: What exactly do you mean by "overlay"? That might mean one of a few different things:
  • a binary masking operation -- would that make sense? it would obscure the red dots you mentioned. Is that the point?
  • opacity/alpha composition -- that would let the map features show through at least
  • any number of image blending methods such as things that are literally called "overlay"
3: I'm assuming that n is just placeholder data and that the actual data is not random. You also mention that the data is a rectangular image. So then the question is what actual transformations are necessary to make it fit the target region. It's unclear what features the actual data has and where they should correpond to the features in the map. All I can assume is that some roughly L-shaped part of the data is kept, some other parts are discarded, and the rest is transformed. Are rigid transformations sufficient?
1. The map is a picture from Google maps of a site in Turkey.
2. I will present the overlay as a separate image.
3. n values ​​are very similar to my data, so I provided them as an example
the image is very rough, but it shows how it will look when superimposed
If you can get both images into a format like geotiff that is supported by readgeoraster, then display using geoshow, that may be the easiest way to display lots of image combinations together. I am guessing your will have more than just this one example. Please post sample data for all images.
Here is a link to the examples included with the Mapping Toolbox:
I have only one example. I can only display the map of turkey using geotigg, but the data I'm converting to an image is a rectangular matrix.

Sign in to comment.

Answers (0)

Products

Release

R2021b

Asked:

on 7 Apr 2022

Commented:

on 7 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!