Overlay image of road bumps on the map
Show older comments
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
DGM
on 7 Apr 2022
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?
Lev Mihailov
on 7 Apr 2022
Benjamin Thompson
on 7 Apr 2022
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:
Lev Mihailov
on 7 Apr 2022
Answers (0)
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!