The Library
Help/Info
Current Release









Last Modified:
Feb 10, 2011

Change Log

Revision: 4143
Date: Feb 10, 2011 (23:56:50 UTC)
Added a test for split()
Modified
/trunk/dlib/test/string.cpp

Revision: 4141
Date: Feb 09, 2011 (22:57:14 UTC)
Added a function for splitting up strings which contain a sequence
of delimited tokens.
Modified
/trunk/dlib/string/string.h
/trunk/dlib/string/string_abstract.h

Revision: 4139
Date: Feb 08, 2011 (23:37:54 UTC)
Added a unit test for the any_function.
Modified
/trunk/dlib/test/CMakeLists.txt
/trunk/dlib/test/makefile
Added
/trunk/dlib/test/any_function.cpp

Revision: 4138
Date: Feb 08, 2011 (23:37:29 UTC)
Fixed a bug in any_function which prevented the .get() function
from compiling.
Modified
/trunk/dlib/any/any_function_impl.h

Revision: 4137
Date: Feb 08, 2011 (23:36:42 UTC)
Made the is_function template work with functions of up to 10 arguments.
Previously it only worked up to 5 arguments.
Modified
/trunk/dlib/algs.h

Revision: 4135
Date: Feb 07, 2011 (23:32:28 UTC)
Fixed a typo in the spec.
Modified
/trunk/dlib/gui_widgets/fonts_abstract.h

Revision: 4134
Date: Feb 07, 2011 (02:36:58 UTC)
Added overloads of all the GUI event handlers so that now you can
use general functions as callbacks (via any_function).  This way, 
if you have a C++0x compiler, you can use lambda functions with the
event handlers.
Modified
/trunk/dlib/gui_widgets/base_widgets.h
/trunk/dlib/gui_widgets/base_widgets_abstract.h
/trunk/dlib/gui_widgets/widgets.h
/trunk/dlib/gui_widgets/widgets_abstract.h

Revision: 4133
Date: Feb 07, 2011 (00:58:02 UTC)
Switched the event handlers in the gui_widgets from member_function_pointers
to any_functions. 
Modified
/trunk/dlib/gui_widgets/base_widgets.h
/trunk/dlib/gui_widgets/widgets.cpp
/trunk/dlib/gui_widgets/widgets.h

Revision: 4132
Date: Feb 06, 2011 (21:31:53 UTC)
Fixed a typo in the spec for the is_empty() functions.  I also added an
is_set() to the any_function so that it's interface is similar to the
member_function_pointer.
Modified
/trunk/dlib/any/any_abstract.h
/trunk/dlib/any/any_decision_function_abstract.h
/trunk/dlib/any/any_function_abstract.h
/trunk/dlib/any/any_function_impl.h
/trunk/dlib/any/any_trainer_abstract.h

Revision: 4131
Date: Feb 06, 2011 (21:16:17 UTC)
Added a factory function to easily create temporary member function pointers.
Modified
/trunk/dlib/member_function_pointer.h
Added
/trunk/dlib/member_function_pointer/make_mfp.h
/trunk/dlib/member_function_pointer/make_mfp_abstract.h

Revision: 4130
Date: Feb 06, 2011 (21:04:20 UTC)
Added an any_function which supports the same functionality as std::function from the
upcoming C++0x standard.  I added this so dlib can be modified to easily support lambda 
functions while still being compilable on compilers which don't support the new 
std::function.
Modified
/trunk/dlib/any.h
Added
/trunk/dlib/any/any_function.h
/trunk/dlib/any/any_function_abstract.h
/trunk/dlib/any/any_function_impl.h
/trunk/dlib/any/any_function_impl2.h

Revision: 4129
Date: Feb 06, 2011 (15:03:07 UTC)
Added tests for the new features of the distance_function object.
Modified
/trunk/dlib/test/empirical_kernel_map.cpp

Revision: 4128
Date: Feb 06, 2011 (15:02:20 UTC)
Fixed a runtime bug in the distance_function's + and - operators which triggered when
distance_functions with no basis vectors in them were added or subtracted.
Modified
/trunk/dlib/svm/function.h

Revision: 4127
Date: Feb 05, 2011 (20:29:44 UTC)
Made the interface to the approximate_distance_function() a little cleaner and
improved its specification a bit.
Modified
/trunk/dlib/svm/reduced.h
/trunk/dlib/svm/reduced_abstract.h

Revision: 4125
Date: Feb 05, 2011 (18:29:57 UTC)
Refactored the code in the reduced_decision_function_trainer2.  Part of it has been turned into
a global function called approximate_distance_function() which performs the main optimization.  The
reduced_decision_function_trainer2 now depends on this global function.  This changes makes this 
function optimizer available for other purposes besides use in the reduced_decision_function_trainer2
object.
Modified
/trunk/dlib/svm/reduced.h
/trunk/dlib/svm/reduced_abstract.h

Revision: 4124
Date: Feb 05, 2011 (18:26:47 UTC)
Improved the distance_function object by turning it into a properly encapsulated class
rather than just a simple struct.  I also added overloaded +, -, *, and / operators
for this object so you can do the kind of arithmetic you would expect on an object
which represents a point in a vector space.  This breaks backwards compatibility 
with the previous interface though as the member variables are now private.
Modified
/trunk/dlib/svm/function.h
/trunk/dlib/svm/function_abstract.h
/trunk/dlib/svm/kcentroid_overloads.h
/trunk/dlib/svm/pegasos.h
/trunk/dlib/test/empirical_kernel_map.cpp

Revision: 4123
Date: Feb 04, 2011 (14:27:24 UTC)
Fixed a few more compile time errors when dlib is compiled with clang.
Modified
/trunk/dlib/cmd_line_parser/cmd_line_parser_check_1.h

Revision: 4122
Date: Feb 04, 2011 (14:21:48 UTC)
I made some minor changes in a few places so that dlib compiles with the
clang compiler.
Modified
/trunk/dlib/bayes_utils/bayes_utils.h
/trunk/dlib/binary_search_tree/binary_search_tree_kernel_c.h
/trunk/dlib/cmd_line_parser/cmd_line_parser_check_1.h
/trunk/dlib/hash_map/hash_map_kernel_c.h
/trunk/dlib/hash_set/hash_set_kernel_c.h
/trunk/dlib/hash_table/hash_table_kernel_c.h
/trunk/dlib/map/map_kernel_c.h
/trunk/dlib/matrix/matrix_la.h
/trunk/dlib/matrix/matrix_utilities.h
/trunk/dlib/set/set_kernel_c.h
/trunk/dlib/string/string.h
/trunk/dlib/svm/one_vs_all_decision_function.h
/trunk/dlib/svm/one_vs_one_decision_function.h
/trunk/dlib/svm/rbf_network.h
/trunk/dlib/test/matrix3.cpp

Revision: 4121
Date: Feb 04, 2011 (13:59:57 UTC)
The any unit test was broken in a way which prevented it from actually running.  
This has been fixed.
Modified
/trunk/dlib/test/any.cpp

Revision: 4120
Date: Feb 03, 2011 (22:45:24 UTC)
Applied a patch from Nils Labugt which fixes a bug in the gui_core component (Bug ID: 3171720).  
The bug details are below:
    dlib GUI applications don't work anymore after I upgraded to Ubuntu 10.10 (AMD64). They 
    consistently crash in base_window::set_title. XwcTextListToTextProperty returns 
    XLocaleNotSupported instead of initializing 'property', but dlib ignores the return value, 
    resulting in a crash in XLib when XSetWMName is called with garbage input or when 
    property.value is XFreed without having been allocated.

Modified
/trunk/dlib/gui_core/gui_core_kernel_2.cpp

Revision: 4119
Date: Feb 03, 2011 (00:23:04 UTC)
Fixed a bug in an assert
Modified
/trunk/dlib/image_transforms/spatial_filtering.h

Revision: 4118
Date: Jan 22, 2011 (22:49:08 UTC)
Fixed errors in the spec
Modified
/trunk/dlib/svm/rr_trainer_abstract.h

Revision: 4117
Date: Jan 22, 2011 (22:45:42 UTC)
Fixed some comments.
Modified
/trunk/dlib/svm/rr_trainer.h

Revision: 4115
Date: Jan 22, 2011 (21:19:27 UTC)
Fixed the typo in the last commit which prevented compilation when ENABLE_ASSERTS 
was defined.
Modified
/trunk/dlib/svm/krr_trainer.h

Revision: 4114
Date: Jan 22, 2011 (21:18:03 UTC)
Refactored the krr_trainer into two objects.  A rr_trainer which just does
linear ridge regression and the krr_trainer which uses the empirical_kernel_map
to do non-linear ridge regression.  No changes were made to the behavior of the
krr_trainer.  This update is just to allow the use of linear ridge regression
without a superfluous empirical_kernel_map running at the beginning of the training
process.
Modified
/trunk/dlib/svm/krr_trainer.h
/trunk/dlib/svm/rr_trainer.h
Added
/trunk/dlib/svm/rr_trainer_abstract.h

Revision: 4113
Date: Jan 22, 2011 (20:16:03 UTC)
Adding a copy of the krr_trainer that will be just for use with linear kernels.
Modified
/trunk/dlib/svm/krr_trainer.h
Added
/trunk/dlib/svm/rr_trainer.h

Revision: 4112
Date: Jan 22, 2011 (18:40:16 UTC)
Added an overloaded operator/ to allow you to say things like 3.0/my_matrix
Modified
/trunk/dlib/matrix/matrix.h
/trunk/dlib/matrix/matrix_abstract.h
/trunk/dlib/test/matrix4.cpp

Revision: 4111
Date: Jan 22, 2011 (18:17:09 UTC)
Removed the requirement that the lisf be non-empty when used to load an 
EKM.  Instead, the load() function now will accept non-empty lisf objects
and throw a non-fatal exception.  This behavior should be slightly less
surprising to users, especially since certain degenerate datasets can give 
rise to empty lisf objects when you might not expect it.
Modified
/trunk/dlib/svm/empirical_kernel_map.h
/trunk/dlib/svm/empirical_kernel_map_abstract.h

Revision: 4110
Date: Jan 22, 2011 (18:13:47 UTC)
Minor fix to avoid a compile time error when using the kernel_matrix() function.
Modified
/trunk/dlib/svm/kernel_matrix.h
/trunk/dlib/test/kernel_matrix.cpp

Revision: 4109
Date: Jan 18, 2011 (01:51:18 UTC)
Updated the image_display widget so that you can zoom in and out using the mouse wheel.
Modified
/trunk/dlib/gui_widgets/widgets.cpp
/trunk/dlib/gui_widgets/widgets.h
/trunk/dlib/gui_widgets/widgets_abstract.h

Revision: 4102
Date: Jan 04, 2011 (22:10:20 UTC)
Made test more robust
Modified
/trunk/dlib/test/matrix4.cpp


Old Change Logs