images color
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
how to apply a particular color(e.g., green) in particular area.
Antworten (2)
Stefan
am 10 Mai 2012
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 Kommentare
Sivakumaran Chandrasekaran
am 10 Mai 2012
Image Analyst
am 10 Mai 2012
For example, you could get the mask by thresholding:
mask = grayImage < someThresholdValue;
rgb(:,:,2) = 255 * uint8(mask);
Sivakumaran Chandrasekaran
am 10 Mai 2012
Sivakumaran Chandrasekaran
am 10 Mai 2012
Stefan
am 10 Mai 2012
0 Stimmen
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 Kommentar
Sivakumaran Chandrasekaran
am 10 Mai 2012
Diese Frage ist geschlossen.
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!