Home > Back-end >  MFC display problems
MFC display problems

Time:03-02

HisogramThis - & gt; M_XS. The Format (_T (" pixel values: % d ", XSZ)); XSZ is a non-zero value, in the process of debugging, m_XS can read data, but is not displayed, showing only 0, pImage is the image data pointer passed, pointing to the image first address, here is the whole piece of program
: the for (int I=0; i <256; I++)
IValueHisogram [I]=0;

Int iHDZ=0;
Double dSumHDZ=0.00;

Int XSZ=image. Image height *. Width;

for(int i=0; i {
IHDZ=int (* (pImage + I));
DSumHDZ +=iHDZ;
If (iHDZ & gt;=0 & amp; & IHDZ & lt;
=255)IValueHisogram [iHDZ] + +;
}

HisogramThis - & gt; M_XS. The Format (_T (" pixel values: % d ", XSZ));

Double dtempPJHD=0.00;

DtempPJHD=dSumHDZ/XSZ;

HisogramThis - & gt; M_JZ. The Format (_T (average: % 2 f, dtempPJHD));

If (HisogramThis - & gt; DoModal ()==IDOK)
{

}

CodePudding user response:

Don't display is what mean? Not be output to debug box?

CodePudding user response:

If is XSZ type int o type double
  • Related