/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P R O D U I T   G E N E R A L I S E   D E   T R O I S   I M A G E S   F L O T T A N T E S  :                               */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Definition :                                                                                                               */
/*                                                                                                                                   */
/*                    Cette commande genere une image                                                                                */
/*                  dont le nom est le premier argument                                                                              */
/*                  d'appel ; elle est le resultat du                                                                                */
/*                  produit generalise des trois images                                                                              */
/*                  Arguments a l'aide d'une table de                                                                                */
/*                  multiplication generalisee extraite                                                                              */
/*                  d'une quatrieme image Argument.                                                                                  */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xci/multi_03.04$K' :                                                                                           */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20050606082354).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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  :                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

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

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P A R A M E T R E S  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#include  xci/sequence.01.I"
                                        /* ATTENTION, on definit ainsi le symbole 'DERNIERE_IMAGE' qui ne sert a rien ici, puisque   */
                                        /* c'est en effet 'Zmax' qui joue ce role...                                                 */

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P R O D U I T   G E N E R A L I S E   D E   T R O I S   I M A G E S   F L O T T A N T E S  :                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA1),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA2),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA3),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_albumT),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_postfixe),NOM_UNDEF_VIDE));
                                        /* Nom d'un eventuel postfixe a placer derriere <nom_albumT><numero> (par exemple '$ROUGE'). */
     DEFV(Int,INIT(premiere_image,PREMIERE_IMAGE));
                                        /* Numero de la premiere image,                                                              */
     DEFV(Int,INIT(pas_des_images,PAS_DES_IMAGES));
                                        /* Pas de passage d'un numero d'image a une autre.                                           */
     DEFV(Int,INIT(nombre_de_chiffres,NOMBRE_DE_CHIFFRES));
                                        /* Nombre de chiffres codant le numero des images de la serie...                             */
     /*..............................................................................................................................*/
     BSaveModifyVariable(Logical,S_ACCELERATEUR__ALOAD_POINT_COORDONNEES_01_____utiliser_l_accelerateur,FAUX);
                                        /* Introduit le 20120620092312...                                                            */

     GET_ARGUMENTSi(nombre_d_arguments
                   ,BLOC(GET_ARGUMENT_C("imageA1=""A1=",nom_imageA1);
                         GET_ARGUMENT_C("imageA2=""A2=",nom_imageA2);
                         GET_ARGUMENT_C("imageA3=""A3=",nom_imageA3);
                         GET_ARGUMENT_C("imageTM=""imageT=""imageA4=""TM=""T=""A4=",nom_albumT);
                         GET_ARGUMENT_C("postfixe=",nom_postfixe);
                         GET_ARGUMENT_I("premiere=",premiere_image);
                         GET_ARGUMENT_I("pas=",pas_des_images);
                         GET_ARGUMENT_I("chiffres=",nombre_de_chiffres);
                         GET_ARGUMENT_C("imageR=""R=",nom_imageR);

                         GET_ARGUMENT_L("drenormaliser=""dr="
                                       ,IFAproduit_generalise_____faire_IFnormalisation_automatique_des_operandes
                                        );

                         GET_ARGUMENT_F("fx=""fX=",IFAproduit_generalise_____facteur_des_coordonnees_X);
                         GET_ARGUMENT_I("trx=""trX=",IFAproduit_generalise_____translateur_des_coordonnees_X);
                         GET_ARGUMENT_F("fy=""fY=",IFAproduit_generalise_____facteur_des_coordonnees_Y);
                         GET_ARGUMENT_I("try=""trY=",IFAproduit_generalise_____translateur_des_coordonnees_Y);
                         GET_ARGUMENT_F("fz=""fZ=",IFAproduit_generalise_____facteur_des_coordonnees_Z);
                         GET_ARGUMENT_I("trz=""trZ=",IFAproduit_generalise_____translateur_des_coordonnees_Z);

                         GET_ARGUMENT_F("pxn=""pXn=",IFAproduit_generalise_____ponderation_des_coordonnees_X_n);
                         GET_ARGUMENT_F("pxx=""pXX=",IFAproduit_generalise_____ponderation_des_coordonnees_X_X);
                         GET_ARGUMENT_F("pxy=""pXY=",IFAproduit_generalise_____ponderation_des_coordonnees_X_Y);
                         GET_ARGUMENT_F("pyn=""pYn=",IFAproduit_generalise_____ponderation_des_coordonnees_Y_n);
                         GET_ARGUMENT_F("pyx=""pYX=",IFAproduit_generalise_____ponderation_des_coordonnees_Y_X);
                         GET_ARGUMENT_F("pyy=""pYY=",IFAproduit_generalise_____ponderation_des_coordonnees_Y_Y);
                         GET_ARGUMENT_F("pzn=""pZn=",IFAproduit_generalise_____ponderation_des_coordonnees_Z_n);
                         GET_ARGUMENT_F("pzx=""pZX=",IFAproduit_generalise_____ponderation_des_coordonnees_Z_X);
                         GET_ARGUMENT_F("pzy=""pZY=",IFAproduit_generalise_____ponderation_des_coordonnees_Z_Y);

                         GET_ARGUMENT_L("AccelerateurALoadPoint=""AccALP="
                                       ,S_ACCELERATEUR__ALOAD_POINT_COORDONNEES_01_____utiliser_l_accelerateur
                                        );
                                        /* Arguments introduits le 20120312132817...                                                 */

                         GET_ARGUMENT_L("appliquer_une_matrice_de_transformation=""matrice=""transformation="
                                       ,FFAload_point_coordonnees_01_____appliquer_une_matrice_de_transformation
                                        );
                         GET_ARGUMENT_F("mxx=""mtxx=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cx,cx));
                         GET_ARGUMENT_F("mxy=""mtxy=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cx,cy));
                         GET_ARGUMENT_F("mxz=""mtxz=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cx,cz));
                         GET_ARGUMENT_F("myx=""mtyx=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cy,cx));
                         GET_ARGUMENT_F("myy=""mtyy=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cy,cy));
                         GET_ARGUMENT_F("myz=""mtyz=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cy,cz));
                         GET_ARGUMENT_F("mzx=""mtzx=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cz,cx));
                         GET_ARGUMENT_F("mzy=""mtzy=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cz,cy));
                         GET_ARGUMENT_F("mzz=""mtzz=",ASD2(FFAload_point_coordonnees_01_____matrice_de_transformation,cz,cz));
                                        /* Les parametres de transformation matricielle furent introduits le 20080802122419...       */
                         GET_ARGUMENT_F("pre_atrx=",FFAload_point_coordonnees_01_____PreAntiTranslation_Xf);
                         GET_ARGUMENT_F("post_trx=",FFAload_point_coordonnees_01_____Post___Translation_Xf);
                         GET_ARGUMENT_F("pre_atry=",FFAload_point_coordonnees_01_____PreAntiTranslation_Yf);
                         GET_ARGUMENT_F("post_try=",FFAload_point_coordonnees_01_____Post___Translation_Yf);
                         GET_ARGUMENT_F("pre_atrz=",FFAload_point_coordonnees_01_____PreAntiTranslation_Zf);
                         GET_ARGUMENT_F("post_trz=",FFAload_point_coordonnees_01_____Post___Translation_Zf);
                                        /* Les parametres de "pre" et "post" translations furent introduits le 20080803094617...     */

                         GET_ARGUMENT_L("periodiser_X=""periodX=",IFAproduit_generalise_____periodiser_X);
                         GET_ARGUMENT_L("periodiser_Y=""periodY=",IFAproduit_generalise_____periodiser_Y);
                         GET_ARGUMENT_L("periodiser_Z=""periodZ=",IFAproduit_generalise_____periodiser_Z);
                         GET_ARGUMENT_L("symetriser_X=""symetrX=",IFAproduit_generalise_____symetriser_X);
                         GET_ARGUMENT_L("symetriser_Y=""symetrY=",IFAproduit_generalise_____symetriser_Y);
                         GET_ARGUMENT_L("symetriser_Z=""symetrZ=",IFAproduit_generalise_____symetriser_Z);
                         GET_ARGUMENT_L("prolonger_X=""prolX=",IFAproduit_generalise_____prolonger_X);
                         GET_ARGUMENT_L("prolonger_Y=""prolY=",IFAproduit_generalise_____prolonger_Y);
                         GET_ARGUMENT_L("prolonger_Z=""prolZ=",IFAproduit_generalise_____prolonger_Z);
                         GET_ARGUMENT_F("niveau_hors_album=""niveau=",IFAproduit_generalise_____niveau_hors_album);
                         )
                    );

     CALi(IFinitialisation(IFmageR,FZERO));
                                        /* Initialisation de l'image Resultat.                                                       */

     Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(IFmageA1,nom_imageA1))))
          Bblock
                                        /* Chargement de la premiere image Argument.                                                 */
          Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(IFmageA2,nom_imageA2))))
               Bblock
                                        /* Chargement de la deuxieme image Argument.                                                 */
               Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(IFmageA3,nom_imageA3))))
                    Bblock
                                        /* Chargement de la troisieme image Argument.                                                */
                    begin_nouveau_block
                         Bblock
                         BDEFV(albumF,table_de_multiplication);
                                        /* Definition de l'album d'images contenant la definition de la table de multiplication.     */

                         CALi(dAloadF_album(table_de_multiplication
                                           ,nom_albumT
                                           ,nom_postfixe
                                           ,premiere_image
                                           ,pas_des_images
                                           ,nombre_de_chiffres
                                           ,FAUX
                                           ,UNDEF
                                           ,FAUX
                                            )
                              );
                                        /* Chargement de la quatrieme image Argument.                                                */
                                        /*                                                                                           */
                                        /* L'argument 'Inv' (='FAUX') a ete introduit le 20091125134116...                           */

                         CALS(IFAproduit_generalise(IFmageR
                                                   ,IFmageA1
                                                   ,IFmageA2
                                                   ,IFmageA3
                                                   ,table_de_multiplication
                                                    )
                              );
                                        /* Produit des trois images arguments 'ImageA1', 'ImageA2' et 'ImageA3 via la table de       */
                                        /* multiplication 'table_de_multiplication'.                                                 */

                         CALi(IupdateF_image(nom_imageR,IFmageR));

                         EDEFV(albumF,table_de_multiplication);
                                        /* Definition de l'album d'images contenant la definition de la table de multiplication.     */
                         Eblock
                    end_nouveau_block
                    Eblock
               ATes
                    Bblock
                    Test__CODE_ERREUR__ERREUR07;
                    Eblock
               ETes
               Eblock
          ATes
               Bblock
               Test__CODE_ERREUR__ERREUR07;
               Eblock
          ETes
          Eblock
     ATes
          Bblock
          Test__CODE_ERREUR__ERREUR07;
          Eblock
     ETes

     ESaveModifyVariable(Logical,S_ACCELERATEUR__ALOAD_POINT_COORDONNEES_01_____utiliser_l_accelerateur);

     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.