19,468
社区成员
发帖
与我相关
我的任务
分享
lpSrc = (unsigned char *)m_lpDIBBits + lLineBytes * i + j;
m_lCount[*(lpSrc)]++;
public:
LONG m_lHeight; // DIB的高度
LONG m_lWidth; // DIB的宽度
char * m_lpDIBBits; // 指向当前DIB象素的指针
LONG m_Imagemat[m_lHeight][m_lWidth]; // 各个灰度值的计数
// 计算各个灰度值的计数
for (i = 0; i < m_lHeight; i ++)
{
for (j = 0; j < m_lWidth; j ++)
{
lpSrc = (unsigned char *)m_lpDIBBits + lLineBytes * i + j;
m_Imagemat[i][j]; [*(lpSrc)];
}
}