how can I build a function that gives me the average RGB values of a selected region of an image.
1 view (last 30 days)
Show older comments
0 Comments
Answers (1)
Image Analyst
on 8 Oct 2014
Try impixelinfo() to get a live, interactive readout of pixel values. Otherwise, try imfreehand() to draw regions and check out the demos I've attached. If you still can't figure it out, let me know.
6 Comments
Image Analyst
on 10 Oct 2014
Well you're going to have to put work into educating yourself. No 5 line program that's trivial to understand will do the job properly. Color difference is called delta E and is the Euclidean distance between two colors in CIE LAB color space (like my icon to the left). I attach two delta E demos.
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!