How to find the maximum pixel intensity values for given colour image ,,,please give the code???,,

3 ビュー (過去 30 日間)
please help me

回答 (3 件)

Image Analyst
Image Analyst 2015 年 6 月 10 日
A color image has three color channels: red, green, and blue. How are you defining the intensity? Of a grayscale (weighted average) version of them? Or of each by itself.
What does "find" mean to you? Do you want a list of the rows and columns where the max value lives? Or do you want a binary image where it's white/1/true at the max and black/0/false elsewhere? Or something else?

fizzah khalid
fizzah khalid 2016 年 6 月 20 日
plz tell the code to find the intensity at which maximum pixel count lies in histogram or channels of three colors rgbimage
  2 件のコメント
Image Analyst
Image Analyst 2016 年 6 月 26 日
If you have your histogram counts in an array "counts", which is for a gray image or a single color channel of a color/multispectral image, then just use find():
[counts, grayLevels] = imhist(yourImage);
lastIndex = find(counts > 0, 1, 'last')
highestGrayLevel = grayLevels(lastIndex)
Walter Roberson
Walter Roberson 2016 年 6 月 26 日
That will not find the location of the maximum pixel count. The maximum would be at
[~, lastIdx] = max(counts);

サインインしてコメントする。


swetha Derangula
swetha Derangula 2017 年 8 月 5 日
how can I identify the different wavelenghts image intensity,i shared sample picture ,please give me suggestions .
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 8 月 5 日
It is not possible to measure the different wavelengths image intensity from a RGB image.
RGB cameras have three color sensors per pixel that operate most efficiently at different frequencies. However, there is a lot of overlap between the operation ranges. The individual color sensors do not record frequency directly: they record total energy received over a range that happens to peak at a particular frequency. Because of this, the sensors are completely unable to tell the difference between a particular intensity at one frequency compared to twice the intensity at a different frequency that is converted half as efficiently. The readings are always ambiguous.
There are some circumstances under which a meaningful measurement can be taken; they involve knowing several different parameters including the "color temperature" of the illuminating light.
swetha Derangula
swetha Derangula 2017 年 8 月 8 日
THANK YOU, VERY MUCH SIR

サインインしてコメントする。

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by