Skip to content
Snippets Groups Projects
Commit 60fced69 authored by sgegito's avatar sgegito
Browse files

TP terminé, il ne reste QUE le rapport à faire

parent 70d727f6
No related branches found
No related tags found
No related merge requests found
......@@ -58,9 +58,16 @@ for line_ab in ab:
ab_l.append(float(line_ab))
gug(ca_x, ca_y, cb_x, cb_y, cc_x, cc_y, ab_l[0], ab_l[1], ab_l[2], ab_l[3], "G1 U G2 et test sur G3")
#gug(ca_x, ca_y, cc_x, cc_y, cb_x, cb_y, ab_l[4], ab_l[5], ab_l[6], ab_l[7],"G1 U G2 et test sur G3")
#gug(cb_x, cb_y, cc_x, cc_y, ca_x, ca_y, ab_l[8], ab_l[9], ab_l[10], ab_l[11],"G1 U G2 et test sur G3")
# Uncomment the line if you want to display it :D
#G1 U G2 et test sur G3
gug(ca_x, ca_y, cb_x, cb_y, cc_x, cc_y, ab_l[0], ab_l[1], ab_l[2], ab_l[3], "G1 U G2 et test sur G3")
#G1 U G3 et test sur G2
#gug(ca_x, ca_y, cc_x, cc_y, cb_x, cb_y, ab_l[4], ab_l[5], ab_l[6], ab_l[7],"G1 U G3 et test sur G2")
#G2 U G3 et test sur G1
#gug(cb_x, cb_y, cc_x, cc_y, ca_x, ca_y, ab_l[8], ab_l[9], ab_l[10], ab_l[11],"G2 U G3 et test sur G1")
ca.close()
cb.close()
cc.close()
#include "opti.h"
int CLOUD_POINTS = 1000;
// You can change all the numbers for different results
int CLOUD_POINTS = 100;
double RANDOMNESS = 0.2;
double MY_RAND_MAX = 1.0;
double MY_RAND_MIN = 0.0;
......@@ -263,11 +264,10 @@ void cross_validation(Point* cloud0, Point* cloud1, Point* cloud2, double* a, do
FILE *ab;
ab = fopen ("ab.lines", "w+");
fprintf(ab, "%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f",*a,*b,*c,*d,*e,*f,*g,*h,*k,*l,*m,*n);
fclose (ab);
fclose(ab);
free(merged_1);
free(merged_2);
free(merged_3);
free(merged_1);free(merged_2);free(merged_3);
free(c);free(d);free(e);free(f);free(g);free(h);free(k);free(l);free(m);free(n);
}
int main (void){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment