samedi 28 mars 2015

Local binary pattern in C++


Vote count:

0




I have a problem with this code:private: private: System::Void lBPToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { int ** YP;

Bitmap ^ bmpPictureLBP = gcnew Bitmap(W, H); int vn[2][8] = { { 0, 1, 1, 1, 0, -1, -1, -1 }, { 1, 1, 0, -1, -1, -1, 0, 1 } };



YP = new int*[W];
for (int i = 0; i < W; i++)
{
YP[i] = new int[H];
for (int j = 0; j < H; j++)
{

for (int k = 0; k < 8; k++)
for (int l = 0; k < 8; k++)

YP[i][j] = Y[i + vn[1][k]][j +vn[2][l]];


bmpPictureLBP->SetPixel(i, j, Color::FromArgb(YP[i][j], YP[i][j], YP[i][j]));
}
}
Is anyone who can help me?


Firtly dont appear errors, but after debugging they tell me that an " indication that order memory is corrupt", and in Autos window appear with red: + YP[i] 0x0669AFB0 int*.



asked 1 min ago







Local binary pattern in C++

Aucun commentaire:

Enregistrer un commentaire