How to find percentages of red, yellow, orange and green in an image?
Show older comments
I am doing image analysis on a few images of stained slides. I was hoping to find the percentage of the vessel that is red, green, yellow and orange. Any ideas on how to go about this? Thanks in advance for your help. As per a request, here's a link to the kind of picture I am dealing with. It is a picture of one of my stained slides.: http://tinypic.com/r/2mwi995/5 EDIT: for those that are interested, the differentiation of color allows us to determine the thickness of the collagen fibers. Each respective thickness has a different color. Any help would be appreciated
5 Comments
Matt Kindig
on 18 Jun 2013
Could you upload a sample image? That would help us more than anything.
Siddharth
on 18 Jun 2013
Matt Kindig
on 19 Jun 2013
I meant, could you upload one of your slide images? You can upload an image to tinypic.com or similar, and edit your question to include the link. A solution that works for this image in Nature might not be appropriate for your slides, and if we could look at one of yours it would be better.
Matt Kindig
on 19 Jun 2013
For a first step, I would take a look at the demos that Image Analyst has posted to File Exchange. That should get you familiar with the basic functions of interest.
Siddharth
on 19 Jun 2013
Answers (1)
random09983492
on 18 Jun 2013
0 votes
Hi Siddharth,
I would take a look at the imread function build into Matlab. For an RGB image of size M-by-N, it will import the image as an M-by-N-by-3 Matrix, where red, green, and, and blue are separated into each Z dimension of the imported image.
1 Comment
Siddharth
on 18 Jun 2013
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!