alka
-
Modifié par BunoCS le 2/06/2016 à 09:17
nagaD.scar
Messages postés4271Date d'inscriptionsamedi 8 septembre 2007StatutMembreDernière intervention 4 janvier 2023
-
3 juin 2016 à 16:06
Bonjour, cher communauté programmeur j'ai besoin votre coup de main afin quemon programme puisse marché achaque execution il m'envoie l'erreur suivante
" error C3867: 'cv::Mat::at': function call missing argument list; use '&cv::Mat::at' to create a pointer to member "
voici mon code
void produit_convolution(Mat im, int tab[3][3])
{
uchar **Imdest;
int x1, y1;
for (int i = 1; i <= im.rows; i++)
{
for (int j = 1; j <= im.cols; j++)
{
Imdest = NULL;
for (int x = 1; x <= 3; x++)
{
for (int y = 1; y <= 3; y++)
{
if (x == 1) x1 = i - 1;
if (x == 2) x1 = i;
if (x == 3) x1 = i + 1;
if (y == 1) y1 = j - 1;
if (y == 2) y1 = j;
if (y == 3) y1 = j + 1;
Imdest[i][j] = Imdest + (int)im.at<uchar>[x1][y1] * tab[x][y];//erreur ici
}
}
}
}
//return Imdest;
}
EDIT : Ajout des balises de code (la coloration syntaxique).
Explications disponibles ICI