Bien le bonjour,
Je recherche une bibliothèque c/c++ pour manipuler, et faire évoluer des contours actifs sur une image.
Vous en connaissez ?
Version imprimable
Bien le bonjour,
Je recherche une bibliothèque c/c++ pour manipuler, et faire évoluer des contours actifs sur une image.
Vous en connaissez ?
Rien de bien original, OpenCV fournit une fonction SnakeImage. Jamais eu l'occasion de la tester, mais voici ce qu'en dit la doc :
SnakeImage
Changes contour position to minimize its energy
void cvSnakeImage( const IplImage* image, CvPoint* points, int length,
float* alpha, float* beta, float* gamma, int coeff_usage,
CvSize win, CvTermCriteria criteria, int calc_gradient=1 );
The function cvSnakeImage updates snake in order to minimize its total energy that is a sum of internal energy that depends on contour shape (the smoother contour is, the smaller internal energy is) and external energy that depends on the energy field and reaches minimum at the local energy extremums that correspond to the image edges in case of image gradient.