@@ -19,7 +19,7 @@ namespace dlib
1919 - void set_image_size( image_type& img, long rows, long cols)
2020 - void* image_data ( image_type& img)
2121 - const void* image_data (const image_type& img)
22- - long width_step (const image_type& img)
22+ - size_t width_step (const image_type& img)
2323 - void swap ( image_type& a, image_type& b)
2424 And also provides a specialization of the image_traits template that looks like:
2525 namespace dlib
@@ -98,7 +98,7 @@ namespace dlib
9898 width_step(img).
9999 *!/
100100
101- long width_step(
101+ size_t width_step(
102102 const image_type& img
103103 );
104104 /!*
@@ -345,12 +345,12 @@ namespace dlib
345345 - sets the image to have 0 pixels in it.
346346 !*/
347347
348- long get_width_step () const { return _width_step; }
348+ size_t get_width_step () const { return _width_step; }
349349
350350 private:
351351
352352 char * _data;
353- long _width_step;
353+ size_t _width_step;
354354 long _nr;
355355 long _nc;
356356 image_type* _img;
@@ -416,11 +416,11 @@ namespace dlib
416416 }
417417#endif
418418
419- long get_width_step () const { return _width_step; }
419+ size_t get_width_step () const { return _width_step; }
420420
421421 private:
422422 const char * _data;
423- long _width_step;
423+ size_t _width_step;
424424 long _nr;
425425 long _nc;
426426 };
@@ -555,7 +555,7 @@ namespace dlib
555555 }
556556
557557 template <typename T>
558- inline long width_step ( const image_view<T>& img) { return img.get_width_step (); }
558+ inline size_t width_step ( const image_view<T>& img) { return img.get_width_step (); }
559559
560560// ----------------------------------------------------------------------------------------
561561
@@ -582,7 +582,7 @@ namespace dlib
582582 }
583583
584584 template <typename T>
585- inline long width_step ( const const_image_view<T>& img) { return img.get_width_step (); }
585+ inline size_t width_step ( const const_image_view<T>& img) { return img.get_width_step (); }
586586
587587// ----------------------------------------------------------------------------------------
588588
0 commit comments