How to display only red parts of an image?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Harshan Desu
am 8 Apr. 2020
Kommentiert: Harshan Desu
am 16 Apr. 2020
The Image above is an output from using the savitky_golay_filter made by Image Analyst. I am working on taking edges out of an image. I need only the red edges I produced from the image, curve fit and find Trajectory.
This is a college project Im working. Would be great if someone could guide me as deadlines shortcoming.
Attached is the image below of how I want my output to be:
I am stuck at part (c). Outline.
Thanks in advace,
~Harshan Desu
0 Kommentare
Akzeptierte Antwort
Mehmed Saad
am 8 Apr. 2020
Bearbeitet: Mehmed Saad
am 8 Apr. 2020
You have to get R component which means you have to find out value of R greater than both G and B in RGB data. (May be some threshold like 2 times G or B etc)
suppose the variable rgbtest has the data of pciture you've posted
then
red_comp = rbgtest(:,:,1)>rbgtest(:,:,2) & rbgtest(:,:,1)>rbgtest(:,:,3);
imshow(red_comp)
5 Kommentare
Mehmed Saad
am 8 Apr. 2020
Bearbeitet: Mehmed Saad
am 8 Apr. 2020
I think you should spend some time on it. Also try playing with the conditions which differs red from other colors
red_comp = rbgtest(:,:,1)>rbgtest(:,:,2) & rbgtest(:,:,1)>rbgtest(:,:,3);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!