diff --git a/CGAL_ImageIO/include/CGAL/ImageIO.h b/CGAL_ImageIO/include/CGAL/ImageIO.h index 0ae846c772f..50b64465135 100644 --- a/CGAL_ImageIO/include/CGAL/ImageIO.h +++ b/CGAL_ImageIO/include/CGAL/ImageIO.h @@ -211,13 +211,13 @@ typedef struct imformat { /** Image descriptor */ typedef struct point_image { /** Image x dimension (number of columns) */ - unsigned int xdim; + std::size_t xdim; /** Image y dimension (number of rows) */ - unsigned int ydim; + std::size_t ydim; /** Image z dimension (number of planes) */ - unsigned int zdim; + std::size_t zdim; /** Image vectorial dimension */ - unsigned int vdim; + std::size_t vdim; /** Image voxel size in x dimension */ double vx; @@ -599,13 +599,13 @@ struct Word_type_generator typedef boost::uint32_t type; }; -template +template inline typename Word_type_generator::type static_evaluate(const _image* image, - const unsigned int i, - const unsigned int j, - const unsigned int k) + const std::size_t i, + const std::size_t j, + const std::size_t k) { typedef typename Word_type_generator::type Word; @@ -616,9 +616,9 @@ template inline Word static_evaluate(const _image* image, - const unsigned int i, - const unsigned int j, - const unsigned int k) + const std::size_t i, + const std::size_t j, + const std::size_t k) { return ((Word*)image->data)[(k * image->ydim + j) * image->xdim + i]; } @@ -693,7 +693,7 @@ static_evaluate(const _image* image, break; \ } -CGAL_IMAGEIO_EXPORT float evaluate(const _image* image,const unsigned int i,const unsigned int j,const unsigned int k); +CGAL_IMAGEIO_EXPORT float evaluate(const _image* image,const std::size_t i,const std::size_t j,const std::size_t k); /** convert the data of the image to float