Skip to content

Commit 80e652c

Browse files
committed
Merge branch 'master' of https://github.com/davisking/dlib
2 parents b7d7d70 + 3cb1f35 commit 80e652c

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

dlib/array2d/array2d_generic_image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace dlib
5454
}
5555

5656
template <typename T, typename mm>
57-
inline long width_step(
57+
inline size_t width_step(
5858
const array2d<T,mm>& img
5959
)
6060
{

dlib/array2d/array2d_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ namespace dlib
320320
size_t size (
321321
) const { return static_cast<size_t>(nc_) * static_cast<size_t>(nr_); }
322322

323-
long width_step (
323+
size_t width_step (
324324
) const
325325
{
326326
return nc_*sizeof(T);

dlib/array2d/array2d_kernel_abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ namespace dlib
242242
- returns #*this
243243
!*/
244244

245-
long width_step (
245+
size_t width_step (
246246
) const;
247247
/*!
248248
ensures

dlib/image_processing/generic_image.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

dlib/image_transforms/interpolation.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace dlib
4242
}
4343

4444
void* _data = 0;
45-
long _width_step = 0;
45+
size_t _width_step = 0;
4646
long _nr = 0;
4747
long _nc = 0;
4848
};
@@ -67,7 +67,7 @@ namespace dlib
6767
}
6868

6969
const void* _data = 0;
70-
long _width_step = 0;
70+
size_t _width_step = 0;
7171
long _nr = 0;
7272
long _nc = 0;
7373
};
@@ -121,12 +121,12 @@ namespace dlib
121121
}
122122

123123
template <typename T>
124-
inline long width_step(
124+
inline size_t width_step(
125125
const sub_image_proxy<T>& img
126126
) { return img._width_step; }
127127

128128
template <typename T>
129-
inline long width_step(
129+
inline size_t width_step(
130130
const const_sub_image_proxy<T>& img
131131
) { return img._width_step; }
132132

dlib/matrix/matrix_generic_image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace dlib
9696
long NC,
9797
typename MM
9898
>
99-
inline long width_step(
99+
inline size_t width_step(
100100
const matrix<T,NR,NC,MM>& img
101101
)
102102
{

dlib/opencv/cv_image.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace dlib
117117

118118
long nr() const { return _nr; }
119119
long nc() const { return _nc; }
120-
long width_step() const { return _widthStep; }
120+
size_t width_step() const { return _widthStep; }
121121

122122
private:
123123

@@ -191,7 +191,7 @@ namespace dlib
191191
}
192192

193193
template <typename T>
194-
inline long width_step(
194+
inline size_t width_step(
195195
const cv_image<T>& img
196196
)
197197
{

dlib/opencv/cv_image_abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ namespace dlib
181181
of this image
182182
!*/
183183

184-
long width_step (
184+
size_t width_step (
185185
) const;
186186
/*!
187187
ensures

dlib/python/numpy_image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ namespace dlib
319319
}
320320

321321
template <typename pixel_type>
322-
long width_step (const numpy_image<pixel_type>& img)
322+
size_t width_step (const numpy_image<pixel_type>& img)
323323
{
324324
if (img.size()==0)
325325
return 0;

0 commit comments

Comments
 (0)