/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        " S H U F F L I N G "   D ' U N E   I M A G E  :                                                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Definition :                                                                                                               */
/*                                                                                                                                   */
/*                    Cette commande "shufflise"                                                                                     */
/*                  l'image argument.                                                                                                */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xci/shuffling.02$K' :                                                                                          */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20160127095401).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        I N T E R F A C E   ' listG '  :                                                                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        :Debut_listG:                                                                                                              */
/*        :Fin_listG:                                                                                                                */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        D I R E C T I V E S   S P E C I F I Q U E S   D E   C O M P I L A T I O N  :                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#define   CONTROLE_DE_L_ADAPTATION_A_UNE_LOI_DE_DISTRIBUTION_QUELCONQUE__ARGUMENT_substitution__PAS_s

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        F I C H I E R S   D ' I N C L U D E S  :                                                                                   */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  INCLUDES_BASE
#include  image_image_ALEATOIRES_1_EXT

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P A R A M E T R E S  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  xci/substitue.01.I"

#define   GRAINE                                                                                                                        \
                    DEUX                                                                                                                \
                                        /* Graine initiale.                                                                          */
#define   SEUIL_DE_GENERATION                                                                                                           \
                    FDU                                                                                                                 \
                                        /* Seuil implicite de generation des points.                                                 */

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  xci/substitue.02.I"

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        " S H U F F L I N G "   D ' U N E   I M A G E  :                                                                           */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE));

     DEFV(Int,INIT(graine,GRAINE));
                                        /* Graine du generateur aleatoire...                                                         */
     DEFV(Float,INIT(seuil_de_generation,SEUIL_DE_GENERATION));
                                        /* Seuil de generation implicite des points.                                                 */

#include  xci/substitue.03.I"
     /*..............................................................................................................................*/
     GET_ARGUMENTSi(nombre_d_arguments
                   ,BLOC(GET_ARGUMENT_L("Irandom_shuffling_____compatibilite_20160201=""compatibilite_20160201="
                                       ,Irandom_shuffling_____compatibilite_20160201
                                        );
                                        /* Argument introduit le 20160201125153...                                                   */

                         GET_ARGUMENT_C("imageA=""A=",nom_imageA);
                         GET_ARGUMENT_C("imageR=""R=",nom_imageR);
                         GET_ARGUMENT_I("methode=",gen_ft_____methode_standard);
                         GET_ARGUMENT_I("graine=",graine);
                         GET_ARGUMENT_L("affiner_rdn=",rdnIFnD_____affiner_la_generation);
                         GET_ARGUMENT_L("iterer_rdn=",rdnIFnD_____iterer_la_generation);

                         GET_ARGUMENT_I("increment_1_X=""i1X=""i1x=",Irandom_shuffling_____increment_1_coordonnee_X);
                         GET_ARGUMENT_I("increment_1_Y=""i1Y=""i1y=",Irandom_shuffling_____increment_1_coordonnee_Y);
                         GET_ARGUMENT_I("increment_2_X=""i2X=""i2x=",Irandom_shuffling_____increment_2_coordonnee_X);
                         GET_ARGUMENT_I("increment_2_Y=""i2Y=""i2y=",Irandom_shuffling_____increment_2_coordonnee_Y);

                         GET_ARGUMENT_I("nombre_maximal_collisions=""nmc=",Irandom_shuffling_____nombre_maximal_de_collisions);
                         GET_ARGUMENT_I("limite_detecteur_collisions=""ldc=",Irandom_shuffling_____limite_du_detecteur_de_collisions);
                                        /* Parametres introduits le 20160201105829...                                                */

                         GET_ARGUMENT_F("PrdnI2D_NEUT=""NEUT=",rdnI2D_____ponderation_NEUT);
                         GET_ARGUMENT_F("PrdnI2D_GAUS=""GAUS=",rdnI2D_____ponderation_GAUS);
                         GET_ARGUMENT_F("PrdnI2D_GAUS_esperance=""GAUS_esperance=",rdnI2D_____ponderation_GAUS_esperance_);
                         GET_ARGUMENT_F("PrdnI2D_GAUS_ecart_type=""GAUS_ecart_type=",rdnI2D_____ponderation_GAUS_ecart_type);

                         CONTROLE_DE_L_ADAPTATION_A_UNE_LOI_DE_DISTRIBUTION_QUELCONQUE;

                         GET_ARGUMENT_F("seuil=""s=",seuil_de_generation);
                         )
                    );

#include  xci/substitue.05.I"

     CALi(Inoir(ImageR));
                                        /* Initialisation de l'image Resultat.                                                       */

     Test(PAS_D_ERREUR(CODE_ERROR(Iload_image(ImageA,nom_imageA))))
          Bblock
                                        /* Chargement de la premiere image Argument.                                                 */
          CALS(Irandom_shuffling(ImageR,ImageA,graine,seuil_de_generation));
                                        /* Shuffling de l'image Argument.                                                            */

          CALi(Iupdate_image(nom_imageR,ImageR));
          Eblock
     ATes
          Bblock
          Test__CODE_ERREUR__ERREUR07;
          Eblock
     ETes

     RETU_Commande;
     Eblock
ECommande



Copyright © Jean-François COLONNA, 2019-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2024.