Algorithme vers code

aymreality Messages postés 1 Date d'inscription mardi 20 mai 2008 Statut Membre Dernière intervention 3 avril 2013 - 3 avril 2013 à 12:35
BunoCS Messages postés 15472 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 25 mars 2024 - 3 avril 2013 à 12:43
Bonjour tout le monde,
je travaille avec matlab sur la segmentation d'image, mais je suis encore débutant en matlab. j'ai un algorithme que je dois le coder en matlab mais j'ai pas pu le faire . voila l'algorithme :
Fix the number of clusters C, the degree of fuzziness m > 1, parameters in table 1, initialize randomly position (c(0) ij ) and velocity of each particle.
1: Calculate the filtered image ¯ X of the image X
2: Calculate the membership degrees (u(0) ij ) by equation (9) using the Euclidian distance.
3: for k = 1 to nbmaxiter do
4: for each particle do
5: Calculate the Mahalanobis distance using U(k−1) in equation (10), (11) and (12)
6: Calculate U(k) using equation (9)
7: Calculate the fitness function based on the Mahalanobis distance, using equation (7) 8: Update the individual best solution pbest and find the global best solution gbest
9: Calculate the velocity and position of particle using equations (3) and (4)
10: end for
11: if condition (5) then
12: Go to 15
13: end if
14: end for
15: return ci the centers of clusters (positions of particles) and the membership degrees uij

Les équations sont à coder aussi. En fait j'aimerais juste comment commencer et
merci bien pour toute sorte d'aide.

1 réponse

BunoCS Messages postés 15472 Date d'inscription lundi 11 juillet 2005 Statut Modérateur Dernière intervention 25 mars 2024 103
3 avril 2013 à 12:43
Hello,
[...]En fait j'aimerais juste comment commencer [...]

Et bien...qu'est-ce qui t'en empêche? Si tu avais fait un minimum de recherche sur le site, tu aurais vu que généralement, la réponse donnée pour ce genre de demande est la suivante:
Il n'y a pas de section Matlab sur CodeS-SourceS. Par contre, une requête sur ton moteur de recherche favori devrait te rediriger sans problème.

Bonne continuation.

@+
Buno, Admin CS
L'urgent est fait, l'impossible est en cours. Pour les miracles, prévoir un délai...
0
Rejoignez-nous