How to apply Cumulative Density Function Formula?

조회 수: 1 (최근 30일)
Mustafa Uysal
Mustafa Uysal 2019년 10월 30일
댓글: Mustafa Uysal 2019년 11월 1일
Hi,
I am trying to implement a research paper using MATLAB. i have to to apply this three formula, respectively.
son.pngPDa = zeros(1,256);
for i=1:256
PDa(i) = hCL(i) / (width*height); % width*height = total number of pixels
end
CDa = zeros(1,256); %create CDa in formula
CDa(1) = PDa(1) ;
for i=2:256
CDa(i) = PDa(i) + CDa(i-1);
end
value_after_enhancement = zeros(1,256);
for i=1:256
value_after_enhancement(i) = 255 * CDa(i);
end
But maximum value of CDa is 0.109. So, i see a dark image (maximum pixel value is 3) as a result. I couldn't understand where the problem is in my code. Can you help me, please?
  댓글 수: 4
Jeff Miller
Jeff Miller 2019년 11월 1일
Sorry, I cannot understand what you are trying to compute.
Mustafa Uysal
Mustafa Uysal 2019년 11월 1일
Thank you for reply.
I am trying to implement an contrast enhancement algorithm using this paper: Research Paper

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by