Commit Graph

4370 Commits

Author SHA1 Message Date
Davis King ee94add57e Added more tests for DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST and also fixed unit
tests so they work on older versions of visual studio.
2013-09-21 20:59:18 -04:00
Davis King 282db2404b Added versions of find_min_box_constrained() and find_max_box_constrained()
that allow you to easily set uniform upper and lower bounds.
2013-09-21 19:43:12 -04:00
Davis King 00ac94ff40 added more tests for find_min_box_constrained() 2013-09-21 19:26:18 -04:00
Davis King 309902b81a clarified specs 2013-09-21 15:18:29 -04:00
Davis King b70308383a clarified spec 2013-09-21 15:12:36 -04:00
Davis King 9dd7488b5b clarified spec 2013-09-21 15:04:28 -04:00
Davis King fdd035f451 Removed a bunch of checks that prevented users from using references to
functions with the optimization code and forced the use of function pointers.
This was to avoid triggering a bug in gcc 4.0.  Since that compiler is no
longer officially supported by dlib I've removed these checks to increase
usability.
2013-09-21 14:37:54 -04:00
Davis King 583110af28 updated docs 2013-09-21 14:02:01 -04:00
Davis King 2d8dcd427d clarified spec 2013-09-21 14:01:54 -04:00
Davis King b566d9a44e Made tests more robust 2013-09-21 13:48:34 -04:00
Davis King 10bd680fce updated docs 2013-09-21 13:45:09 -04:00
Davis King 103884fc58 Added find_max_box_constrained() 2013-09-21 13:31:06 -04:00
Davis King 5494e540af Added find_min_box_constrained() 2013-09-21 13:11:50 -04:00
Davis King ef46311296 Added clamp_function() and backtracking_line_search() 2013-09-21 10:58:06 -04:00
Davis King fa543c0583 Added an overload of clamp() that lets you use matrix valued lower/upper
bounds.
2013-09-14 23:48:13 -04:00
Davis King 12138269ca updated docs 2013-09-14 16:47:13 -04:00
Davis King c75bbc7dda Added a version of poly_min_extrap() that uses a 2nd degree model. 2013-09-14 16:42:14 -04:00
Davis King aaeb52ba2d Updated the interface to allow the user to set different loss values for
false alarming vs getting a correct detection.
2013-09-13 22:41:53 -04:00
Davis King 1de36ea271 updated piwik tracker code 2013-09-12 18:33:40 -04:00
Davis King 47dbb7b8cd removed unneeded #includes 2013-09-10 19:35:55 -04:00
Davis King 2f8a06d531 Made HTTP server parsing work when a query like "GET /" comes in that
is missing the HTTP/1.1 version field.
2013-09-09 17:47:50 -04:00
Davis King f67cc88394 Made the structural svm solver use its cache elements to try and mitigate the
errors made by an approximate separation oracle.  In particular, the solver
will now check the output of the separation oracle against the cache and if the
cache gives a better value, even when we would otherwise not use the cache, the
cache value is used.  Similarly, we can output the truth psi vector to avoid
outputting a psi with a negative risk.  All this stuff only happens when the
cache is enabled, if its disabled then the outputs of the separation oracle are
used without any kind of modification.
2013-09-08 17:57:29 -04:00
Davis King 0a28845626 Cleaned up the scan_image_pyramid code a little and also made its estimation of
which detection template generated a detection slightly more accurate.
2013-09-08 16:52:00 -04:00
Davis King e0b47315e7 Minor code cleanup and error message improvement. 2013-09-06 11:06:00 -04:00
Davis King e5752c34fd Slightly changed make_potts_grid_problem() so that it allows the user to give
two images with different pixel types rather than requiring the images to have
the same pixel types.
2013-09-06 09:53:25 -04:00
Davis King 8fb7aa5ce8 Improved determine_object_boxes(). It will now avoid selecting object boxes
that redundant with detection templates already in a scanner object.
2013-09-05 16:23:41 -04:00
Davis King 8e7133d6db Removed old and unneeded ::kernel_2a typedef references. 2013-09-05 15:49:34 -04:00
Davis King 82188a3d7e Tweaked the cutting plane cache threshold test slightly. This method
reduces the separation oracle calls by about 10%.
2013-09-01 21:47:28 -04:00
Davis King 377f330907 Removed cmake statement that is no longer needed. 2013-09-01 13:17:45 -04:00
Davis King 6fc0d8f608 Moved python C++ utility headers into dlib/python and updated
#include statements to reflect this move.

--HG--
rename : tools/python/src/boost_python_utils.h => dlib/python/boost_python_utils.h
rename : tools/python/src/pyassert.h => dlib/python/pyassert.h
rename : tools/python/src/serialize_pickle.h => dlib/python/serialize_pickle.h
2013-09-01 13:15:04 -04:00
Davis King 0eb8296872 Added missing #include and inclusion guard 2013-09-01 13:05:29 -04:00
Davis King 8da213ccc2 Made len() work on dlib.range objects. 2013-09-01 13:03:33 -04:00
Davis King 10caab26a3 Updated projection_hash creation functions to allow user to supply
the random number generator that gets used.
2013-09-01 12:55:12 -04:00
Davis King 97d6125f0b Made the PNG loader able to load in grayscale images with an alpha channel. 2013-09-01 12:42:19 -04:00
Davis King f2a52a47e0 Changed structural SVM solver to only disable the cache after two successive
iterations of apparent convergence since this results in fewer separation
oracle calls overall.
2013-08-24 08:21:56 -04:00
Davis King 78050870ca updated docs 2013-08-23 09:53:38 -04:00
Davis King cab12bb195 Added add_image_left_right_flips() 2013-08-23 09:36:28 -04:00
Davis King dc907c334c updated docs 2013-08-23 07:16:31 -04:00
Davis King 138be05dda Added split_array() 2013-08-23 07:11:09 -04:00
Davis King 98d7a8bf06 Changed python cmake file to work with older versions of boost. 2013-08-20 19:57:12 -04:00
Davis King 95324c12fa Minor code cleanup 2013-08-18 16:36:38 -04:00
Davis King 2f6419cd59 Added remove_unobtainable_rectangles() for the scan_image_custom scanner. 2013-08-18 15:37:05 -04:00
Davis King 7da29fb98b updated docs 2013-08-17 22:17:15 -04:00
Davis King 09b4ec67eb Added scan_image_custom 2013-08-17 22:02:13 -04:00
Davis King cf7e70769a clarified specs 2013-08-17 22:00:42 -04:00
Davis King a63e76d718 Fixed typos in some error message strings. 2013-08-17 19:31:22 -04:00
Davis King ff8191f38e Slightly relaxed the tolerance on the test that the user supplied
feature extraction is correctly programmed to avoid false alarms.
2013-08-17 17:09:41 -04:00
Davis King 013eb467d1 Changed macro so it can be placed inside a class as well as at global scope
and in headers.
2013-08-17 16:42:53 -04:00
Davis King c1545996b3 updated docs 2013-08-17 16:30:39 -04:00
Davis King 8b65624019 Added the DLIB_MAKE_HAS_MEMBER_FUNCTION_TEST() macro and switched some
code over to use it.
2013-08-17 16:26:22 -04:00