choosing locations in an image to take pixels
2 views (last 30 days)
Show older comments
Hello,
If I take an image and I want to do an average of the pixels across the entire image, how do I do that? Right now when I do imshow(image) then it gives me locations where I click on the image. I just want to do the entire image.
Thanks
0 Comments
Accepted Answer
Image Analyst
on 26 Jul 2014
meanGrayLevel = mean(grayImage(:)); % Take mean of entire image.
3 Comments
Image Analyst
on 26 Jul 2014
meanh = mean2(hsv_image(:,:,1));
means = mean2(hsv_image(:,:,2));
meanv = mean2(hsv_image(:,:,3));
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!