Skip to content
Snippets Groups Projects
Commit 9684f72a authored by edona.edi's avatar edona.edi
Browse files

rendu presentation

parent 62df13fb
No related branches found
No related tags found
No related merge requests found
File added
This diff is collapsed.
...@@ -187,7 +187,7 @@ error_code pgm_rogner(int x,int y,pgm *orig,pgm *rogne){ ...@@ -187,7 +187,7 @@ error_code pgm_rogner(int x,int y,pgm *orig,pgm *rogne){
//// La transformation fonctionne lors le fichier est plus petit //// La transformation fonctionne lors le fichier est plus petit
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
/* ///Savoir si c'est une feuille ///Savoir si c'est une feuille
bool is_leaf(node *tree){ bool is_leaf(node *tree){
// printf("in is_leaf\n"); // printf("in is_leaf\n");
// verification si l'enfant[0] n'a pas d'enfant // verification si l'enfant[0] n'a pas d'enfant
...@@ -402,4 +402,4 @@ void print_tree(node * tree, int level){ ...@@ -402,4 +402,4 @@ void print_tree(node * tree, int level){
} }
if (has_child) printf(")"); if (has_child) printf(")");
} */ }
\ No newline at end of file
File added
...@@ -68,18 +68,21 @@ void interface_utilisateur(char *filename, pgm *orig,pgm* out){ ...@@ -68,18 +68,21 @@ void interface_utilisateur(char *filename, pgm *orig,pgm* out){
int main(){ int main(){
pgm p; pgm p;
pgm neg; pgm neg;
char *filename = "mandrill.pgm"; //char *filename = "mandrill.pgm";
interface_utilisateur(filename,&p,&neg); // interface_utilisateur(filename,&p,&neg);
//char *filename = "test.pgm"; char *filename = "test.pgm";
// node * arbre = newNode(); pgm_read_from_file(&p,filename);
// print_tree(arbre, 0); node *arbre = matrice_a_arbre(&p);
// node *arbre = matrice_a_arbre(&p); printf("\n\n\nTREEEEEEEEE\n\n");
// printf("\n\n\nTREEEEEEEEE\n\n"); print_tree(arbre, 1);
// print_tree(arbre, 1); // pgm_write_to_file(&neg, "image.pgm");
// node *arbre_rot = cycli_rotation_gauche(arbre);
// pgm *mat = arbre_a_matrice(arbre_rot,&p);
// affichage_image(&neg, mat); // affichage_image(&neg, mat);
//destroy(arbre); destroy(arbre);
// pgm_destroy(&p);
// pgm_destroy(&neg);
// node *arbre_rot = cycli_rotation_gauche(arbre);
// pgm *mat = arbre_a_matrice(arbre_rot,&p);
//destroy(arbre_rot); //destroy(arbre_rot);
//pgm_destroy(mat); //pgm_destroy(mat);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment