/*************************************************************************************************************************************/ /* */ /* C O N V E R S I O N D ' U N C O U P L E D ' I M A G E S ( X , Y ) */ /* E N U N E I M A G E ( RHO ) : */ /* */ /* */ /* Definition : */ /* */ /* Cette commande genere une image */ /* qui represente la coordonnee */ /* polaire 'RHO' du couple d'images */ /* Argument considere comme {X,Y}. */ /* */ /* */ /* Author of '$xci/XY_R$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 20080821112524). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ #define imageR \ IFmageR #define imageX \ IFmageA1 #define imageY \ IFmageA2 /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* C O N V E R S I O N D ' U N C O U P L E D ' I M A G E S ( X , Y ) */ /* E N U N E I M A G E ( RHO ) : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageAX),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageAY),NOM_PIPE)); /*..............................................................................................................................*/ GET_ARGUMENTSi(nombre_d_arguments ,BLOC(GET_ARGUMENT_C("imageAX=""AX=",nom_imageAX); GET_ARGUMENT_C("imageAY=""AY=",nom_imageAY); GET_ARGUMENT_C("imageR=""R=",nom_imageR); GET_ARGUMENT_F("trx=",IFconversion_XY_R_____PreAntiTranslation_X); GET_ARGUMENT_F("try=",IFconversion_XY_R_____PreAntiTranslation_Y); ) ); CALi(IFinitialisation(imageR,FZERO)); /* Initialisation de l'image Resultat. */ Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(imageX,nom_imageAX)))) Bblock /* Chargement de la premiere image Argument ('X'). */ Test(PAS_D_ERREUR(CODE_ERROR(IloadF_image(imageY,nom_imageAY)))) Bblock /* Chargement de la deuxieme image Argument ('Y'). */ CALS(IFconversion_XY_R(imageR,imageX,imageY)); CALi(IupdateF_image(nom_imageR,imageR)); Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes RETU_Commande; Eblock ECommande