/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        R O T A T I O N   D ' U N E   I M A G E   D E   P L U S   O U   M O I N S   P I   S U R   2  :                             */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xci/rotate_pis2$K' :                                                                                           */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20000607103914).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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  :                                                                                                     */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#define   SENS_TRIGONOMETRIQUE                                                                                                          \
                    VRAI                                                                                                                \
                                        /* Indicateur selectionnant +pi/2 ('VRAI') ou -pi/2 ('FAUX').                                */

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

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        R O T A T I O N   D ' U N E   I M A G E   D E   P L U S   O U   M O I N S   P I   S U R   2  :                             */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE));

     DEFV(Logical,INIT(sens_trigonometrique,SENS_TRIGONOMETRIQUE));
                                        /* Indicateur selectionnant +pi/2 ('VRAI') ou -pi/2 ('FAUX').                                */
     /*..............................................................................................................................*/
     GET_ARGUMENTSi(nombre_d_arguments
                   ,BLOC(GET_ARGUMENT_L("ROTATION_DE_PLUS_OU_MOINS_PI_SUR_2_____compatibilite_20160205=""compatibilite_20160205="
                                       ,NOUVELLES_COORDONNEES_ROTATION_DE_PLUS_OU_MOINS_PI_SUR_2_____compatibilite_20160205
                                        );
                                        /* Parametre introduit le 20160205100920...                                                  */

                         GET_ARGUMENT_C("imageA=""A=",nom_imageA);
                         GET_ARGUMENT_C("imageR=""R=",nom_imageR);
                         GET_ARGUMENT_L("standard=",les_images_sont_standards);
                         GET_ARGUMENT_L("trigonometrique=""trigo=",sens_trigonometrique);

                         GET_ARGUMENTS2_F("angle_positif=""ap="
                                         ,Irotation_de_plus_ou_moins_pi_sur_2_____angle_positif
                                         ,IFrotation_de_plus_ou_moins_pi_sur_2_____angle_positif
                                          );
                         GET_ARGUMENTS2_F("angle_negatif=""an="
                                         ,Irotation_de_plus_ou_moins_pi_sur_2_____angle_negatif
                                         ,IFrotation_de_plus_ou_moins_pi_sur_2_____angle_negatif
                                          );
                                        /* Arguments introduits le 20160205094111...                                                 */
                         )
                    );

     CALi(gInettoyage(les_images_sont_standards,ImageR,IFmageR));
                                        /* Initialisation de l'image Resultat.                                                       */

     Test(PAS_D_ERREUR(CODE_ERROR(gIload_image(les_images_sont_standards,ImageA,IFmageA,nom_imageA))))
          Bblock
          CALS(gIrotation_de_plus_ou_moins_pi_sur_2(les_images_sont_standards,ImageR,IFmageR,ImageA,IFmageA,sens_trigonometrique));
                                        /* Et rotation de plus ou moins pi sur 2 de l'image Argument.                                */

          CALi(gIupdate_image(les_images_sont_standards,nom_imageR,ImageR,IFmageR));
          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.