A minor change to avoid compiler warnings.

This commit is contained in:
Davis King 2013-04-22 08:23:24 -04:00
parent c756dfc7bd
commit f12921390a
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ void initialize_object_properties()
// So here is our function that samples a detection from our simulated sensor. You tell it
// what object you want to sample a detection from and it returns a detection from that
// object.
detection sample_detection_from_sensor(unsigned long object_id)
detection sample_detection_from_sensor(long object_id)
{
DLIB_CASSERT(object_id < num_objects,
"You can't ask to sample a detection from an object that doesn't exist.");
@ -230,7 +230,7 @@ track_history make_random_tracking_data_for_training()
// ----------------------------------------------------------------------------------------
std::vector<detection> make_random_detections(unsigned long num_dets)
std::vector<detection> make_random_detections(long num_dets)
{
/*
Finally, when we test the tracker we learned we will need to sample regular old

View File

@ -222,7 +222,7 @@ int main()
// the algorithms have identified the sinc() curve. The hotter the pixel looks, the
// larger the value coming out of the decision function and therefore the more "normal"
// it is according to the classifier.
const double size = 500;
const long size = 500;
array2d<double> img1(size,size);
array2d<double> img2(size,size);
for (long r = 0; r < img1.nr(); ++r)