/*************************************************************************************************************************************/
/* */
/* E T U D E D E L A C O M P L E X I T E S T R U C T U R E L L E */
/* D E D R O I T E S V E R T I C A L E S D E N I V E A U X A L E A T O I R E S : */
/* */
/* */
/* Author of '$xrC/ObjetComplexe.H32__1$vv$c' : */
/* */
/* Jean-Francois Colonna (LACTAMME, 20150904100009). */
/* */
/*************************************************************************************************************************************/
#ifdef COMMENTS
# undef COMMENTS
#else
#endif
#define COMMENTS "Droites verticales de niveaux aleatoires (format octet) -luminance-"
#include "images_1octet.01.vv.I"
#ifndef BORNE_SUPERIEURE
# define BORNE_SUPERIEURE \
COULEURS
#else
#endif
double borne_superieure=BORNE_SUPERIEURE;
MAIN(
{
long int m=0x0000ffffffffffff;
long int a=0x5DEECE66D;
long int c=0xB;
long int Xi=1;
/* Les valeurs des parametres {m,a,c} sont ceux de la fonction 'drand48(...)'. */
for (x=Xmin ; x <= Xmax ; x=ADD2(x,1))
{
Xi = ETLO(ADD2(MUL2(a,Xi),c),m);
for (y=Ymin ; y <= Ymax ; y=ADD2(y,1))
{
STORE_IMAGE_PLAN(x,y,(TypeImage)MUL2f(DIVIf(((double)Xi),((double)m)),borne_superieure));
}
}
SORTIE_DU_FICHIER_IMAGE;
EDITER_LES_COMPTEURS_DES_FONCTIONS;
}
)
Copyright © Jean-François Colonna, 2015-2021.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / Ecole Polytechnique, 2015-2021.