Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
Histogram equalization VC++
no vote
Find histograms int i,j,k; int bits; int Hist[256]; for(i=0;i<256;i++) Hist[i]=0; for(i=0;i<lHeight;i++) for(j=0;j<lWidth;j++) { bits=lpDIBBits[j*lWidth+i]; Hist[bits]+=1; } The normalized double Hist2[256]; for(k=0;k<256;k++) Hist2[k]=(double)Hist[k]/(double)(lWidth*lHeight); The cumulative double Hist3[256]; for(k=0;k<256;k++) Hist3[k]=0.0; double temp; for(k=0;k<256;k++) { temp=0.0; for(i=0;i<=k;i++) temp+=Hist2[i]; Hist3[k]=255*temp; } Mapping for(i=0;i<lWidth;i++) for(j=0;j<lHeight;j++) { bits=lpDIBBits[j*lWidth+i]; lpDIBBits[j*lWidth+i]=(BYTE)(Hist3[bits]); }
renpeng
2016-08-23
0
1
Digital image processing source code VC++
4.0
Point operation is used to change the image of the image intensity distribution range point operation is the biggest characteristic of the output pixel value associated with current input pixel values only, this article focuses on using the histogram to view picture information, knowledge of the gray-scale transformation formula master intensity change method.
renpeng
2016-08-23
1
1
No more~