/*************************************************************************************************************************************/ /* */ /* 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 ( M O D U L E , P H A S E ) */ /* E N U N C O U P L E D ' I M A G E S ( X , Y ) : */ /* */ /* */ /* Definition : */ /* */ /* Cette commande genere deux images */ /* qui representent les coordonnees */ /* cartesiennes du couple d'images */ /* Argument considere comme {rho,theta}. */ /* */ /* */ /* Author of '$xci/RT_XY$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 1993??????????). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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_QUAD_IMAGE_EXT /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* P A R A M E T R E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 ( M O D U L E , P H A S E ) */ /* E N U N C O U P L E D ' I M A G E S ( X , Y ) : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(CHAR,INIC(POINTERc(nom_imageRX),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageRY),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageAR),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageAT),NOM_PIPE)); /*..............................................................................................................................*/ GET_ARGUMENTSi(nombre_d_arguments ,BLOC(GET_ARGUMENT_C("imageAR=""imageAM=""AR=""AM=",nom_imageAR); GET_ARGUMENT_C("imageAT=""imageAP=""AT=""AP=",nom_imageAT); GET_ARGUMENT_C("imageRX=""RX=",nom_imageRX); GET_ARGUMENT_C("imageRY=""RY=",nom_imageRY); ) ); CALi(Inoir(ImageA3)); CALi(Inoir(ImageA4)); /* Initialisation des images Resultats. */ Test(PAS_D_ERREUR(CODE_ERROR(Iload_image(ImageA1,nom_imageAR)))) Bblock /* Chargement de la premiere image Argument ('rho'). */ Test(PAS_D_ERREUR(CODE_ERROR(Iload_image(ImageA2,nom_imageAT)))) Bblock /* Chargement de la deuxieme image Argument ('theta'). */ BDEFV(imageF,image_rho); BDEFV(imageF,image_theta); /* Definition des matrices (rho.theta) en flottant. */ BDEFV(imageF,image_coordonnee_X); BDEFV(imageF,image_coordonnee_Y); /* Definition des matrices {X,Y} en flottant. */ CALS(Istd_float(image_rho,______________NOIR_NORMALISE,______________BLANC_NORMALISE,ImageA1)); CALS(Istd_float(image_theta,FZERO,CERCLE_TRIGONOMETRIQUE,ImageA2)); /* Conversion des images Argument (rho.theta) en flottant. */ CALS(Iconversion_RT_XY(image_coordonnee_X,image_coordonnee_Y,image_rho,image_theta)); /* Et conversion en {X,Y}. */ CALS(Ifloat_std_avec_renormalisation(ImageA3,image_coordonnee_X)); CALS(Ifloat_std_avec_renormalisation(ImageA4,image_coordonnee_Y)); /* Et enfin, conversion en image 'Std'... */ CALi(Iupdate_image(nom_imageRX,ImageA3)); CALi(Iupdate_image(nom_imageRY,ImageA4)); EDEFV(imageF,image_coordonnee_Y); EDEFV(imageF,image_coordonnee_X); /* Definition des matrices {X,Y} en flottant. */ EDEFV(imageF,image_theta); EDEFV(imageF,image_rho); /* Definition des matrices (rho.theta) en flottant. */ Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes RETU_Commande; Eblock ECommande