/*************************************************************************************************************************************/ /* */ /* M O D U L O D E S N I V E A U X D ' U N E I M A G E : */ /* */ /* */ /* Author of '$xci/modulo$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 20061128120152). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* 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 SEUIL_INFERIEUR \ SUCC(SUCC(NOIR)) #define SEUIL_SUPERIEUR \ PRED(PRED(BLANC)) /* Definition des seuils (en mode "standard"). */ #define F_SEUIL_INFERIEUR \ FZERO #define F_SEUIL_SUPERIEUR \ FU /* Definition des seuils (en mode "non standard"). */ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M O D U L O D E S N I V E A U X 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(genere_p,INIT(seuil_inferieur,SEUIL_INFERIEUR)); DEFV(genere_p,INIT(seuil_superieur,SEUIL_SUPERIEUR)); /* Definition des seuils (en mode "standard"). */ DEFV(genere_Float,INIT(F_seuil_inferieur,F_SEUIL_INFERIEUR)); DEFV(genere_Float,INIT(F_seuil_superieur,F_SEUIL_SUPERIEUR)); /* Definition des seuils (en mode "non standard"). */ /*..............................................................................................................................*/ GET_ARGUMENTSi(nombre_d_arguments ,BLOC(GET_ARGUMENT_C("imageA=""A=",nom_imageA); GET_ARGUMENT_C("imageR=""R=",nom_imageR); GET_ARGUMENT_L("standard=",les_images_sont_standards); GET_ARGUMENT_P("seuil_inferieur=""inf=",seuil_inferieur); GET_ARGUMENT_P("sup=""seuil_superieur=",seuil_superieur); GET_ARGUMENT_F("Fseuil_inferieur=""Finf=",F_seuil_inferieur); GET_ARGUMENT_F("Fsup=""Fseuil_superieur=",F_seuil_superieur); ) ); 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(gImodulo(les_images_sont_standards ,ImageR,IFmageR ,ImageA,IFmageA ,seuil_inferieur,F_seuil_inferieur ,seuil_superieur,F_seuil_superieur ) ); /* Modulo 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