Read brightness level of the video

조회 수: 5 (최근 30일)
Ayesha
Ayesha 2014년 2월 27일
댓글: Ayesha 2014년 2월 28일
Hello,
I have been wondering about it and tried searching for software that could basically give me the maximum brightness value of the video. The video duration is 20 seconds and I just want to know the maximum brightness value. Could this value be obtained using matlab? If so, how would it be?

답변 (1개)

Walter Roberson
Walter Roberson 2014년 2월 27일
rgb2gray() gives you the brightness values of each pixel. Then you can max() that to get the maximum for the frame.
  댓글 수: 3
Walter Roberson
Walter Roberson 2014년 2월 27일
You do each frame in turn. If you store the maximum intensity for each frame into a vector, then the maximum intensity for the video as a whole would be max() of that vector.
Ayesha
Ayesha 2014년 2월 28일
I've been using this code to find the maximum brightness within the image which is basically the summed up bright of RGB components. It works, however, I would like to find the one brightest pixel from the entire image which this code does not really give. What do you suggest?
I = 'myImage.jpg';
S = sum(I,3) ;
[rows columns] = find(S == max(S(:)))

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by