Research Article

Heterogeneous Computing for Vertebra Detection and Segmentation in X-Ray Images

Listing 1

Loading of input images with StarPU.
1 for ( 𝑖 = 0 ; 𝑖 < 𝑛 ; ++ 𝑖 ) {βˆ–βˆ– 𝑛 : number of images
2  img = cvLoadImage (Input_image } ;
3  starpu_data_handle img_handle;
4  starpu_vector_data_register(&img_handle);
5  queue = add(queue, img, img_handle);
6  }