- d_snake[id_nx].posi = d_liste_points[8*id_nx + pos_optim].x ;
- d_snake[id_nx].posj = d_liste_points[8*id_nx + pos_optim].y ;
- //nb pixels segment precedent
- d_snake[id_nprec].nb_pixels = d_liste_points[8*id_nx + pos_optim].z ;
- //nb pixels segment suivant
- d_snake[id_nx].nb_pixels = d_liste_points[8*id_nx + pos_optim].w ;
- //contribs segment precedent
- d_snake[id_nprec].sum_1 = d_contribs[3*(16*interval + pos_optim)] ;
- d_snake[id_nprec].sum_x = d_contribs[3*(16*interval + pos_optim) + 1] ;
- d_snake[id_nprec].sum_x2 = d_contribs[3*(16*interval + pos_optim) + 2] ;
- //contribs segment suivant
- d_snake[id_nx].sum_1 = d_contribs[3*(16*interval + pos_optim + 8)] ;
- d_snake[id_nx].sum_x = d_contribs[3*(16*interval + pos_optim + 8) + 1] ;
- d_snake[id_nx].sum_x2 = d_contribs[3*(16*interval + pos_optim + 8) + 2] ;
- //freemans segment precedent
- d_snake[id_nprec].freeman_out = d_freemans[16*interval + pos_optim].z ;
- d_snake[id_nprec].freeman_in = d_freemans[16*interval + pos_optim].w ;
- //freemans segment suivant
- d_snake[id_nx].freeman_out = d_freemans[16*interval + pos_optim + 8].z ;
- d_snake[id_nx].freeman_in = d_freemans[16*interval + pos_optim + 8].w ;
- //codes segment precedent
- d_snake[id_nprec].code_segment = code_segment[16*interval + pos_optim] ;
- //code segment suivant
- d_snake[id_nx].code_segment = code_segment[16*interval + pos_optim + 8] ;
- //centre segment precedent
- d_snake[id_nprec].centre_i = d_freemans[16*interval + pos_optim ].x ;
- d_snake[id_nprec].centre_j = d_freemans[16*interval + pos_optim ].y ;
- //centre segment suivant
- d_snake[id_nx].centre_i = d_freemans[16*interval + pos_optim + 8].x ;
- d_snake[id_nx].centre_j = d_freemans[16*interval + pos_optim + 8].y ;