Davis King
a6d5626599
Fixed compiler warning from gcc
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403198
2009-09-09 00:37:00 +00:00
Davis King
369f67c659
Added a missing #include.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403197
2009-09-09 00:31:57 +00:00
Davis King
384060690e
Changed the code a little in an attempt to make it more robust against Windows header
...
files that try and #define the words "min" and "max"
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403196
2009-09-09 00:29:48 +00:00
Davis King
15f5889e11
Fixed typo in spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403195
2009-09-07 17:37:25 +00:00
Davis King
98cab583b2
Added comments regarding the paired calling order of functions and their
...
derivatives.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403194
2009-09-07 16:11:20 +00:00
Davis King
880f532c3d
Fixed spelling and grammar.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403193
2009-09-07 15:52:00 +00:00
Davis King
5df855d798
Refined the spec for some functions and also added some missing asserts.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403192
2009-09-07 15:23:19 +00:00
Davis King
ea35161a94
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403191
2009-09-07 04:09:51 +00:00
Davis King
9fb35897b7
Split the code up into multiple files and setup the abstracts for each of them.
...
--HG--
rename : dlib/optimization/optimization.h => dlib/optimization/optimization_line_search.h
rename : dlib/optimization/optimization_abstract.h => dlib/optimization/optimization_line_search_abstract.h
rename : dlib/optimization/optimization.h => dlib/optimization/optimization_search_strategies.h
rename : dlib/optimization/optimization_abstract.h => dlib/optimization/optimization_search_strategies_abstract.h
rename : dlib/optimization/optimization.h => dlib/optimization/optimization_stop_strategies.h
rename : dlib/optimization/optimization_abstract.h => dlib/optimization/optimization_stop_strategies_abstract.h
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403190
2009-09-07 02:37:28 +00:00
Davis King
75b3839a71
Changed comment because I think it is easier to read this way.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403189
2009-09-06 21:44:58 +00:00
Davis King
50fd0ec14d
Updated the optimization example to take account of the recent changes
...
to the optimization routines.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403188
2009-09-06 20:41:49 +00:00
Davis King
bbeabe4599
Removed the old find_min* functions, updated the regression tests, and
...
modified any code that used the old functions.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403187
2009-09-06 19:58:16 +00:00
Davis King
5cf9b7e184
Added negate_function and find_max versions of the find_min functions.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403186
2009-09-06 18:10:00 +00:00
Davis King
0e63193eb7
Added the objective_delta_stop_strategy and generally cleaned up the code more.
...
Also optimized the derivative() function a bit.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403185
2009-09-06 03:55:41 +00:00
Davis King
7d63029ae5
Added an L-BFGS search strategy.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403184
2009-09-06 02:43:08 +00:00
Davis King
c3a3dd8b26
Changed code slightly to avoid a warning from gcc.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403183
2009-09-06 02:41:33 +00:00
Davis King
7831ae0221
This is the first checkin of a bunch of code refactoring I have been doing to this component.
...
Most of these changes are just rearrangements of the old code. However, I also changed
the starting value of a line search and also removed some unneeded calls to the objective
function and its derivative in the course of doing the refactoring. This has all resulted
in a significant reduction in calls to the objective function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403182
2009-09-05 20:21:06 +00:00
Davis King
46401b0641
Changed the image_window so that it doesn't resize itself if you keep
...
giving it images that are the same size. This way if you are sending
video data to it will allow the user to change the size of the window
without having it snap right back.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403181
2009-09-03 21:29:40 +00:00
Davis King
49f2050c9a
Fixed grammar
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403180
2009-09-01 00:22:04 +00:00
Davis King
8df2338af5
Fixed a bug in the get_filesystem_roots() roots function that
...
prevented it from compiling.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403179
2009-08-31 22:23:29 +00:00
Davis King
97905301cb
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403178
2009-08-30 18:49:33 +00:00
Davis King
c21adb981f
Made a release
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403176
2009-08-30 18:33:03 +00:00
Davis King
ed82f0ac50
updated docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403175
2009-08-30 14:26:02 +00:00
Davis King
e1fef7b968
Fixed typo in comment.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403174
2009-08-30 14:10:42 +00:00
Davis King
3b7a193425
Changed code to avoid compiler warning.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403173
2009-08-29 23:26:46 +00:00
Davis King
17e5172d53
Changed the display size of the boxes in this example so that each
...
box is the same size as the SURF window. I thought the smaller boxes
were easier on the eyes but not using the SURF window size is probably
confusing.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403172
2009-08-29 23:26:24 +00:00
Davis King
e60bfc7bde
Minor changes to avoid compiler warnings in mingw.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403171
2009-08-29 18:00:06 +00:00
Davis King
867756ca17
In addition to minor code cleanup I also changed the following:
...
- The zoomable_region widget now uses exponential rather than linear
zoom scaling since this is much more pleasing to use. There is now
a new requirement on the zoom increment that it must be between 0
and 1.
- I added a few missing requires clauses.
- I changed the set_zoom_scale() function so that it actually changes
the zoom scale even if the user requests a zoom value outside the
allowed range. It just uses the max or min allowed value rather than
doing nothing.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403170
2009-08-29 15:01:58 +00:00
Davis King
d511810723
Added a check to the deserialization code for vector_normalizer objects that
...
will detect if the user is trying to deserialize a vector_normalizer_pca object
into a vector_normalizer. If so it throws serialization_error.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403169
2009-08-29 14:21:56 +00:00
Davis King
12599d072f
Added a get_rect() for array2d objects.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403168
2009-08-29 14:20:26 +00:00
Davis King
c00e52255d
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403167
2009-08-29 13:40:30 +00:00
Davis King
0d4281087b
Added the bgr_pixel and cv_image objects.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403166
2009-08-29 13:24:29 +00:00
Davis King
6db661300f
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403165
2009-08-29 12:16:39 +00:00
Davis King
41687ecb51
Added some typedefs for signed fixed width integers.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403164
2009-08-29 12:07:08 +00:00
Davis King
bb75e2daed
Switched the batch mode kernel cache to use whatever floating point
...
type the rest of the code is using because otherwise it can negatively
impact the results of training.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403163
2009-08-24 22:59:50 +00:00
Davis King
388441ee75
Added a version of clamp that can take runtime determined values.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403162
2009-08-22 00:48:14 +00:00
Davis King
2d900ec714
Fixed broken link
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403161
2009-08-21 13:37:35 +00:00
Davis King
7ecde3b814
Fixed a minor bug in the zoomable_region::set_min_zoom_scale() function.
...
It didn't always end up zooming in a smooth sensible manner after this
function was called.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403160
2009-08-18 22:33:39 +00:00
Davis King
276599fe1a
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403159
2009-08-14 16:58:11 +00:00
Davis King
2f257cb00e
Added a dot() function for matrix objects.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403158
2009-08-14 16:54:52 +00:00
Davis King
36a8b0dcfd
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403157
2009-08-14 14:19:56 +00:00
Davis King
b08282e268
Added the reciprocal_max() function.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403156
2009-08-14 14:16:48 +00:00
Davis King
ac5b18a49e
updated the docs
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403155
2009-08-12 00:49:44 +00:00
Davis King
4370a5f7ef
Split the vector_normalizer into a normal normalizer and a pca normalizer
...
version. I did this mostly so that the normal version can return
matrix_type objects and thus avoid any reallocation of matrix objects
in client code.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403154
2009-08-12 00:45:21 +00:00
Davis King
23243adfce
Fixed incorrect comments.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403153
2009-08-11 22:26:29 +00:00
Davis King
213cd1d2ea
Fixed the serialization functions for the normalized_function object. They will
...
now work with custom normalizer function objects.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403152
2009-08-11 22:08:08 +00:00
Davis King
958b9b5b91
Fixed an inclusion order bug between the shared_ptr_thread_safe and thread_pool files.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403151
2009-08-06 15:26:59 +00:00
Davis King
e421c1fc0c
Removed cruft from spec.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403150
2009-08-05 01:19:55 +00:00
Davis King
f8534f9988
Modified the svm_pegasos class so that the user can set independent lambda
...
parameters for each class. This also breaks backwards compatibility with
the previous interface slightly and changes the serialization format
of this class.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403149
2009-08-05 01:13:34 +00:00
Davis King
3b6f3f2014
Upped the number of sample vectors to 10000.
...
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403148
2009-08-05 00:11:50 +00:00