images color

how to apply a particular color(e.g., green) in particular area.

Respuestas (2)

Stefan
Stefan el 10 de Mayo de 2012

0 votos

is the area under a curve or between two curves?
otherwise, do you have a mask, in which every point which shall be green =1 and ever other =0?
then apply:
rgb=size(mask);
rgb(:,:,1)=0;
rgb(:,:,2)=mask;
rgb(:,:,3)=0;
imhsow(rgb);
if you do not have a mask, you have to create one... hope i could help you

4 comentarios

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 10 de Mayo de 2012
Hi stefan,
Thanks for replying. Please mail me a format for mask also. Because i can follow your style of code entirely.
Image Analyst
Image Analyst el 10 de Mayo de 2012
For example, you could get the mask by thresholding:
mask = grayImage < someThresholdValue;
rgb(:,:,2) = 255 * uint8(mask);
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 10 de Mayo de 2012
Hi Image Analyst,
Thanks for writing. now the problem has been solved from the guidance of your reply, which you gave in the link http://www.mathworks.in/matlabcentral/answers/34880-images.
Thank you
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 10 de Mayo de 2012
Hi Image Analyst,
Thanks for writing. now the problem has been solved from the guidance of your reply, which you gave in the link http://www.mathworks.in/matlabcentral/answers/34880-images.
Thank you
Stefan
Stefan el 10 de Mayo de 2012

0 votos

look at this example, i think its the easiest way to get a mask
consider if the output values are correct. extraction of concrete pattern can be quite difficult and is an issue in many segmentation research studies...

1 comentario

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 10 de Mayo de 2012
Thanks stefan. I found the right code for my project now. thanks for your support.

La pregunta está cerrada.

Etiquetas

Preguntada:

el 10 de Mayo de 2012

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by