Browse Source

modification des images de rejet et modifications finales du PMC

dev
Felix Maurin 6 years ago
parent
commit
3a5c3c1b23
  1. 61
      learning/code/learning.m
  2. BIN
      learning/images/rejet/faux_0.jpg
  3. BIN
      learning/images/rejet/faux_1.jpg
  4. BIN
      learning/images/rejet/faux_10.jpg
  5. BIN
      learning/images/rejet/faux_100.jpg
  6. BIN
      learning/images/rejet/faux_101.jpg
  7. BIN
      learning/images/rejet/faux_102.jpg
  8. BIN
      learning/images/rejet/faux_103.jpg
  9. BIN
      learning/images/rejet/faux_104.jpg
  10. BIN
      learning/images/rejet/faux_105.jpg
  11. BIN
      learning/images/rejet/faux_106.jpg
  12. BIN
      learning/images/rejet/faux_107.jpg
  13. BIN
      learning/images/rejet/faux_108.jpg
  14. BIN
      learning/images/rejet/faux_109.jpg
  15. BIN
      learning/images/rejet/faux_11.jpg
  16. BIN
      learning/images/rejet/faux_110.jpg
  17. BIN
      learning/images/rejet/faux_111.jpg
  18. BIN
      learning/images/rejet/faux_112.jpg
  19. BIN
      learning/images/rejet/faux_113.jpg
  20. BIN
      learning/images/rejet/faux_114.jpg
  21. BIN
      learning/images/rejet/faux_115.jpg
  22. BIN
      learning/images/rejet/faux_116.jpg
  23. BIN
      learning/images/rejet/faux_117.jpg
  24. BIN
      learning/images/rejet/faux_118.jpg
  25. BIN
      learning/images/rejet/faux_119.jpg
  26. BIN
      learning/images/rejet/faux_12.jpg
  27. BIN
      learning/images/rejet/faux_120.jpg
  28. BIN
      learning/images/rejet/faux_121.jpg
  29. BIN
      learning/images/rejet/faux_122.jpg
  30. BIN
      learning/images/rejet/faux_123.jpg
  31. BIN
      learning/images/rejet/faux_124.jpg
  32. BIN
      learning/images/rejet/faux_125.jpg
  33. BIN
      learning/images/rejet/faux_126.jpg
  34. BIN
      learning/images/rejet/faux_127.jpg
  35. BIN
      learning/images/rejet/faux_128.jpg
  36. BIN
      learning/images/rejet/faux_129.jpg
  37. BIN
      learning/images/rejet/faux_13.jpg
  38. BIN
      learning/images/rejet/faux_130.jpg
  39. BIN
      learning/images/rejet/faux_131.jpg
  40. BIN
      learning/images/rejet/faux_132.jpg
  41. BIN
      learning/images/rejet/faux_133.jpg
  42. BIN
      learning/images/rejet/faux_134.jpg
  43. BIN
      learning/images/rejet/faux_135.jpg
  44. BIN
      learning/images/rejet/faux_136.jpg
  45. BIN
      learning/images/rejet/faux_137.jpg
  46. BIN
      learning/images/rejet/faux_138.jpg
  47. BIN
      learning/images/rejet/faux_139.jpg
  48. BIN
      learning/images/rejet/faux_14.jpg
  49. BIN
      learning/images/rejet/faux_140.jpg
  50. BIN
      learning/images/rejet/faux_141.jpg
  51. BIN
      learning/images/rejet/faux_142.jpg
  52. BIN
      learning/images/rejet/faux_143.jpg
  53. BIN
      learning/images/rejet/faux_144.jpg
  54. BIN
      learning/images/rejet/faux_145.jpg
  55. BIN
      learning/images/rejet/faux_146.jpg
  56. BIN
      learning/images/rejet/faux_147.jpg
  57. BIN
      learning/images/rejet/faux_148.jpg
  58. BIN
      learning/images/rejet/faux_149.jpg
  59. BIN
      learning/images/rejet/faux_15.jpg
  60. BIN
      learning/images/rejet/faux_150.jpg
  61. BIN
      learning/images/rejet/faux_151.jpg
  62. BIN
      learning/images/rejet/faux_152.jpg
  63. BIN
      learning/images/rejet/faux_153.jpg
  64. BIN
      learning/images/rejet/faux_154.jpg
  65. BIN
      learning/images/rejet/faux_155.jpg
  66. BIN
      learning/images/rejet/faux_156.jpg
  67. BIN
      learning/images/rejet/faux_157.jpg
  68. BIN
      learning/images/rejet/faux_158.jpg
  69. BIN
      learning/images/rejet/faux_159.jpg
  70. BIN
      learning/images/rejet/faux_16.jpg
  71. BIN
      learning/images/rejet/faux_160.jpg
  72. BIN
      learning/images/rejet/faux_161.jpg
  73. BIN
      learning/images/rejet/faux_162.jpg
  74. BIN
      learning/images/rejet/faux_163.jpg
  75. BIN
      learning/images/rejet/faux_164.jpg
  76. BIN
      learning/images/rejet/faux_165.jpg
  77. BIN
      learning/images/rejet/faux_166.jpg
  78. BIN
      learning/images/rejet/faux_167.jpg
  79. BIN
      learning/images/rejet/faux_168.jpg
  80. BIN
      learning/images/rejet/faux_169.jpg
  81. BIN
      learning/images/rejet/faux_17.jpg
  82. BIN
      learning/images/rejet/faux_170.jpg
  83. BIN
      learning/images/rejet/faux_171.jpg
  84. BIN
      learning/images/rejet/faux_172.jpg
  85. BIN
      learning/images/rejet/faux_173.jpg
  86. BIN
      learning/images/rejet/faux_174.jpg
  87. BIN
      learning/images/rejet/faux_175.jpg
  88. BIN
      learning/images/rejet/faux_176.jpg
  89. BIN
      learning/images/rejet/faux_177.jpg
  90. BIN
      learning/images/rejet/faux_178.jpg
  91. BIN
      learning/images/rejet/faux_179.jpg
  92. BIN
      learning/images/rejet/faux_18.jpg
  93. BIN
      learning/images/rejet/faux_180.jpg
  94. BIN
      learning/images/rejet/faux_181.jpg
  95. BIN
      learning/images/rejet/faux_182.jpg
  96. BIN
      learning/images/rejet/faux_183.jpg
  97. BIN
      learning/images/rejet/faux_184.jpg
  98. BIN
      learning/images/rejet/faux_185.jpg
  99. BIN
      learning/images/rejet/faux_186.jpg
  100. BIN
      learning/images/rejet/faux_187.jpg

61
learning/code/learning.m

@ -18,7 +18,8 @@ classes = []; %colonne [avance; arret; gauche; droite; rejet]
% c'est lent
% s'assurer que l'on choisit toutes les images
%
for n=1:dataset_size
n=1;
while n<dataset_size+1
% choix d'une image aleatoire
choix = 1 + floor(dataset_size*rand(dataset_size, 1));
% extraction de l'image du dataset
@ -29,29 +30,39 @@ for n=1:dataset_size
binary = rgb_filter(img, threshold);
% determination du contour
c = contourc(binary);
% Determination du contour de taille max
cont = max_contour(c);
% transformation en signal complexe
z = cont(:,1) + 1i*cont(:,2);
% calcul des descripteurs de Fourier
[coeff,ncoeff]=descripteurfouriernorm(z,cmax);
% Extraction des composantes
vecteurs(:,n)=[real(coeff);imag(coeff)];
% Ajout de la classe correspondante
deb = dataset(choix(1)).name(1:2);
if deb == 'av'
classes = [classes , [1;0;0;0;0]];
elseif deb == 'ar'
classes = [classes , [0;1;0;0;0]];
elseif deb == 'ga'
classes = [classes , [0;0;1;0;0]];
elseif deb == 'dr'
classes = [classes , [0;0;0;1;0]];
elseif deb == 're'
classes = [classes , [0;0;0;0;1]];
end
% affichage de l'avancement
disp(n/dataset_size);
if size(c,2)~=0
% Determination du contour de taille max
cont = max_contour(c);
% transformation en signal complexe
z = cont(:,1) + 1i*cont(:,2);
if length(z)>11
% calcul des descripteurs de Fourier
[coeff,ncoeff]=descripteurfouriernorm(z,cmax);
% Extraction des composantes
vecteurs(:,n)=[real(coeff);imag(coeff)];
% Ajout de la classe correspondante
deb = dataset(choix(1)).name(1:2);
if deb == 'av'
classes = [classes , [1;0;0;0;0]];
elseif deb == 'ar'
classes = [classes , [0;1;0;0;0]];
elseif deb == 'ga'
classes = [classes , [0;0;1;0;0]];
elseif deb == 'dr'
classes = [classes , [0;0;0;1;0]];
else
classes = [classes , [0;0;0;0;1]];
end
% affichage de l'avancement
disp(n/dataset_size);
n = n+1;
end
end
end
% utilisation de l'algorithme des kmeans
@ -74,7 +85,7 @@ end
% utilisation de l'algorithme du perceptron multicouches
[net, resultats_test] = PMC_training(vecteurs, classes, 10, 800);
[net, resultats_test] = PMC_training(vecteurs, classes, 10, 1100);
%faire une prediction : y = net(x)

BIN
learning/images/rejet/faux_0.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_10.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_100.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
learning/images/rejet/faux_101.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_102.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_103.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
learning/images/rejet/faux_104.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_105.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_106.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_107.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_108.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_109.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_11.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_110.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_111.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_112.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_113.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_114.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_115.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_116.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_117.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_118.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_119.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_12.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_120.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_121.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_122.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_123.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_124.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_125.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
learning/images/rejet/faux_126.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
learning/images/rejet/faux_127.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
learning/images/rejet/faux_128.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_129.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_13.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_130.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_131.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_132.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_133.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_134.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_135.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_136.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_137.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_138.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_139.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_14.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_140.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_141.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_142.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_143.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_144.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_145.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
learning/images/rejet/faux_146.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
learning/images/rejet/faux_147.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
learning/images/rejet/faux_148.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_149.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_15.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_150.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_151.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_152.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_153.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_154.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_155.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_156.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_157.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_158.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_159.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_16.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_160.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_161.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_162.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_163.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_164.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_165.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_166.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_167.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_168.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_169.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_17.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_170.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_171.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_172.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_173.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_174.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_175.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_176.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_177.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_178.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_179.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_18.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_180.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_181.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_182.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_183.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
learning/images/rejet/faux_184.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_185.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_186.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
learning/images/rejet/faux_187.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save