putting colour onto map

4 views (last 30 days)
lala land
lala land on 16 May 2022
Commented: Tantalic Oak on 20 May 2022
I imported a world map picture(bmp) using imread and show it using imshow. The map picture is currently black(value of black is zero). After I imported this, there is a uint8 file in the workspace that shows different numbers. for example, asia is 1, africa is 2 and so on and background is 0. I have the colorbar from 0 to 255 (black to white). I am supposed to put different shade of the colour bar onto the map from ascending order. For example, asia has the largest population so the colour is 255 for asia region. As the population decreases, the shade also decreases from 255 to 0 for different regions.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!