How to get high & low pixel intensity value from a image?

1 次查看(过去 30 天)
How to get high & low pixel intensity value from a image ? Can any one share ideas ?

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-7-19
编辑:KALYAN ACHARJYA 2019-7-19
Considering gray Image, say image_gray
high_pixel=max(image_gray(:));
low_pixel=min(image_gray(:));
  3 个评论
KALYAN ACHARJYA
KALYAN ACHARJYA 2019-7-19
编辑:KALYAN ACHARJYA 2019-7-19
May be both intensities are present in your image.
To ensure, please check with other images (Which dont have larger pixels, like dark image)
See I have test with black image-
high_pixel =
uint8
22
low_pixel =
uint8
8
Let me know!
Image Analyst
Image Analyst 2019-7-19
What's your definition of "extract"? Do you just want a list of N elements, all having the same values? Seems useless? Do you want a binary image mapping out where those values occur in the image?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by