module image.detection_segment.random_image#

Short summary#

module mlstatpy.image.detection_segment.random_image

Génère des images aléatoires.

source on GitHub

Functions#

function

truncated documentation

random_noise_image

Construit une image blanche de taille size, noircit aléatoirement ratio x nb pixels pixels.

random_segment_image

Ajoute un segment aléatoire à une image. Génère des points le long d’un segment aléatoire.

Documentation#

Génère des images aléatoires.

source on GitHub

mlstatpy.image.detection_segment.random_image.random_noise_image(size, ratio=0.1)#

Construit une image blanche de taille size, noircit aléatoirement ratio x nb pixels pixels.

Paramètres:
  • size – taille de l’image

  • ratio – proportion de pixels à noircir

Renvoie:

numpy.array

source on GitHub

mlstatpy.image.detection_segment.random_image.random_segment_image(image, lmin=0.1, lmax=1.0, noise=0.01, density=1.0)#

Ajoute un segment aléatoire à une image. Génère des points le long d’un segment aléatoire.

Paramètres:
  • imagenumpy.array (modifié par la fonction)

  • lmin – taille minimal du segment

  • lmax – taille maximam du segment

  • density – nombre de pixel à tirer le long de l’axe

  • noise – bruit

Renvoie:

dictionary with size, angle, x1, y1, x2, y2, nbpoints

source on GitHub