/*************************************************************************************************************************************/
/* */
/* S E P A R A T I O N " P O I D S F A I B L E S " / " P O I D S F O R T S " : */
/* */
/* */
/* Author of '$xci/PoidsFaibles_PoidsForts$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 20171129110313). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* 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
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* P A R A M E T R E S : */
/* */
/*************************************************************************************************************************************/
#define PONDERATION_POIDS_FAIBLES \
FZERO
#define PONDERATION_POIDS_FORTS__ \
FU
/* Ponderations de selection... */
/* */
/* On notera le 20171129172958 que faire : */
/* */
/* ponderation_poids_faibles = ponderation_poids_forts__ = 1 */
/* */
/* donne une 'imageR' identique a 'imageA'... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* M A C R O S U T I L E S : */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* S E P A R A T I O N " P O I D S F A I B L E S " / " P O I D S F O R T S " : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE));
DEFV(Float,INIT(ponderation_poids_faibles,PONDERATION_POIDS_FAIBLES));
DEFV(Float,INIT(ponderation_poids_forts__,PONDERATION_POIDS_FORTS__));
/* Ponderations de selection... */
/* */
/* On notera le 20171129172958 que faire : */
/* */
/* ponderation_poids_faibles = ponderation_poids_forts__ = 1 */
/* */
/* donne une 'imageR' identique a 'imageA'... */
/*..............................................................................................................................*/
GET_ARGUMENTSi(nombre_d_arguments
,BLOC(GET_ARGUMENT_C("imageA=""A=",nom_imageA);
GET_ARGUMENT_C("imageR=""R=",nom_imageR);
GET_ARGUMENT_F("poids_faibles=""faibles=""pfa=",ponderation_poids_faibles);
GET_ARGUMENT_F("poids_forts=""forts=""pfo=",ponderation_poids_forts__);
GET_ARGUMENT_I("Alog=""Al=",Iseparation_poids_faibles_poids_forts_____facteur_____du_logarithme_base_2);
GET_ARGUMENT_I("Blog=""Bl=",Iseparation_poids_faibles_poids_forts_____translation_du_logarithme_base_2);
)
);
CALi(Inoir(ImageR));
/* Initialisation de l'image Resultat. */
Test(PAS_D_ERREUR(CODE_ERROR(Iload_image(ImageA,nom_imageA))))
Bblock
/* Chargement de la premiere image Argument. */
CALS(Iseparation_poids_faibles_poids_forts(ImageR,ImageA,ponderation_poids_faibles,ponderation_poids_forts__));
/* Extraction des poids faibles et des poids forts... */
CALi(Iupdate_image(nom_imageR,ImageR));
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.