//Coordonées du point a colorier dans l'espace de Hough
//Espace de Hough :
//Origine en bas a gauche
//Rho horizontal vers la droite de 0 a imageDiag
//Theta vertical vers le haut de -90 a 180
intjDisplayRho=round(rho/rhoStep);
intiDisplayTheta=round((180-te)/angleStep);
resImg->pixelAt(jDisplayRho,iDisplayTheta,c)++;
//Origine au centre
//Rho vertical vers la droite de -imageDiag a imageDiag
//Theta horizontale vers le haut de -90 à 90
doubletheta=te;
if(te>90){
theta=theta-180;
rho=-rho;
}
intjDisplayRho=round((rho+imageDiag)/rhoStep);
intiDisplayTheta=round((theta+90)/angleStep);
resImg->pixelAt(iDisplayTheta,jDisplayRho,c)++;
}
}
}
}
}
}
returnresImg;
}
// //Exemple d'affichage de texte dans la fentre "texte"
// char buffer[455];
// sprintf( buffer, "Lecture du rsultat :\nLigne du haut : angle=0\nLigne du bas : angle=+180\nColonne de gauche : distance=0\nColonne de droite : distance max (diagonale de l'image)\nPoint de rfrence pour les distances : coin en haut gauche\nDroite de rfrence pour les angles : axe VERTICAL\nAngles positifs dans le sens trigonomtrique indirect");