Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How coloring some region of Image regarding its value?

1 visualizzazione (ultimi 30 giorni)
fateme
fateme il 7 Apr 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I'm going to write a code that its final result become an image described below: a circle which there are 4 hollow circles inside of it in a specified location in it and I want to fill small circles with a color corresponding to specified value assigned to every one and have a colorbar as a legend for color in every circle to know its value. THX

Risposte (1)

Image Analyst
Image Analyst il 7 Apr 2014
Sounds too much like a homework problem (even though you didn't tag it as homework). Is it? I'm going to assume it is so I'll just give you a demo I already have where I put small circles into a big circle. All you have to do is to tell it to do 4 instead of lots of them, and assign each one a particular gray value. Then call the colormap(lines(5)) and colorbar() functions. You should be able to easily do that.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by