mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Changed code to avoid compiler warnings.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403055
This commit is contained in:
parent
116ac765b3
commit
1d3b6b1f09
@ -43,7 +43,7 @@ namespace dlib
|
||||
|
||||
// compute the first row of the integral image
|
||||
unsigned long temp = 0;
|
||||
for (unsigned long c = 0; c < img.nc(); ++c)
|
||||
for (long c = 0; c < img.nc(); ++c)
|
||||
{
|
||||
assign_pixel(pixel, img[0][c]);
|
||||
temp += pixel;
|
||||
@ -51,10 +51,10 @@ namespace dlib
|
||||
}
|
||||
|
||||
// now compute the rest of the integral image
|
||||
for (unsigned long r = 1; r < img.nr(); ++r)
|
||||
for (long r = 1; r < img.nr(); ++r)
|
||||
{
|
||||
temp = 0;
|
||||
for (unsigned long c = 0; c < img.nc(); ++c)
|
||||
for (long c = 0; c < img.nc(); ++c)
|
||||
{
|
||||
assign_pixel(pixel, img[r][c]);
|
||||
temp += pixel;
|
||||
|
Loading…
Reference in New Issue
Block a user