histogram equalization transformation function

조회 수: 4 (최근 30일)
pandu hanifa
pandu hanifa 2018년 12월 8일
댓글: CANDY 2022년 10월 4일
Suppose that a given 3-bit image(L=8) of size 64*64 pixels (M*N=4096) has the intensity distribution shown as below. How to obtain histogram equalization transformation function and then compute the equalized histogram of the image?
Rk nk
0 800
1 520
2 970
3 660
4 330
5 450
6 260
7 106
  댓글 수: 2
Saiteja B
Saiteja B 2019년 11월 22일
Did u get the code for histeq without matlab tool or code for your mentioned problem,if yes please post here? Thank u.!!
CANDY
CANDY 2022년 10월 4일
hi dear were you able to get the answer to this work ?
if yes , can you show me the codes ?

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

답변 (1개)

Image Analyst
Image Analyst 2018년 12월 9일
Call histeq() followed by imhist().
  댓글 수: 2
pandu hanifa
pandu hanifa 2018년 12월 9일
편집: pandu hanifa 2018년 12월 9일
if equation i know how to finish it,, i want to know the code( without in-built function matlab), and if its c++ i aldy try and can,, but in matlab the code i write keep eror idk why
rk nk c sk = c/MN (L-1)sk rounded value
0 800 800 0.195 1.365 1
1 520 1320 0.322 2.254 2
2 970 2290 0.559 3.913 4
3 660 2950 0.720 5.04 5
4 330 3280 0.801 5.601 6
5 450 3730 0.911 6.377 6
6 260 3990 0.974 6.818 7
7 106 4096 1.000 7.0 7
Image Analyst
Image Analyst 2018년 12월 9일
Why without built-in functions???
Why would you want to compute the histogram, then the cdf, then invert it, and use intlut() when you can just do it in one line of code?

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

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by