Commit Graph

2038 Commits

Author SHA1 Message Date
Davis King 5bdf93eff7 Switched the default hash function for std::strings (when used with hash tables)
to dlib::hash().
2011-05-28 19:55:06 -04:00
Davis King 6335f1104f minor cleanup 2011-05-28 19:46:48 -04:00
Davis King cd3819da20 Added another test 2011-05-28 19:36:18 -04:00
Davis King 40fd24b8d3 updated docs 2011-05-28 19:03:08 -04:00
Davis King 884fca7ac6 Improved hashing tests and clarified spec. 2011-05-28 18:42:57 -04:00
Davis King 5c94f1003d Clarified spec 2011-05-28 18:14:05 -04:00
Davis King 3785d3202d Added comments regarding endianness and hashing. 2011-05-28 18:06:32 -04:00
Davis King a68c27be8f Added a hash() for matrices. 2011-05-28 17:59:58 -04:00
Davis King f338f6b7ca Fixed a linker error that happens on gcc. 2011-05-28 17:59:15 -04:00
Davis King 2d0df035ea Added a unit test for the new hashing functions.
--HG--
rename : dlib/test/bridge.cpp => dlib/test/hash.cpp
2011-05-28 17:44:52 -04:00
Davis King ebbb1b68f1 Added Austin Appleby's excellent MurmurHash3 hashing code and setup some
additional convenience functions.
2011-05-28 17:33:07 -04:00
Davis King 4369c68376 updated docs 2011-05-28 17:24:30 -04:00
Davis King 5b2228e07c Changed comment so htmlify will put an anchor on it. 2011-05-28 17:23:09 -04:00
Davis King 2fcc1b30c7 Changed code to use the new DLIB_ASSERT_HAS_STANDARD_LAYOUT to check
if a type can be swapped rather than the explicit union trick.
2011-05-28 17:19:20 -04:00
Davis King 7257589a46 Moved DLIB_ASSERT_HAS_STANDARD_LAYOUT into assert.h. 2011-05-28 17:07:06 -04:00
Davis King 3b9fbda0e1 Added a macro to assert on a type being a POD or a standard layout type.
This way I can change just this one macro to use the better C++0x
method of doing this check once C++0x becomes available.
2011-05-28 17:00:56 -04:00
Davis King ecfa04941d updated docs 2011-05-28 15:52:27 -04:00
Davis King 715e19dd21 Added some unit tests for the save_png() and load_png() functions. 2011-05-28 12:00:57 -04:00
Davis King eaa0b45c15 Cleaned up this example a little. 2011-05-28 11:18:17 -04:00
Davis King a0e44acc17 Switched all the uses of array2d to not use the array2d<type>::kernel_1a
syntax but to use the array2d<type> syntax.
2011-05-28 11:10:50 -04:00
Davis King 8dfde0fe9e updated docs 2011-05-28 10:28:49 -04:00
Davis King 5e384614be Changed the array2d object so you don't have to say array2d<type>::kernel_1a
anymore to declare it.  Now you just say array2d<type>.
2011-05-28 10:26:29 -04:00
Davis King 35a6408f8e Simplified examples by using load_image() instead of load_bmp() 2011-05-28 09:52:27 -04:00
Davis King 739c68adf6 Removed debugging cout statement. 2011-05-28 09:44:52 -04:00
Davis King 959ac1fee7 Fixed incorrect exception being thrown. 2011-05-28 09:43:01 -04:00
Davis King 275410af43 updated docs 2011-05-28 09:38:29 -04:00
Davis King dc1cafe846 Fixed compile time test 2011-05-28 09:18:09 -04:00
Davis King d3a73bdbae Added the load_image() function which just looks at a file's extension and
then calls the appropriate image loading function.
2011-05-27 19:19:11 -04:00
Davis King beee293d2d Added a bunch of overloads for all the various save_*() and load_*() image
I/O options dlib supports.  Also added ones which can work directly with
a string file name.
2011-05-27 19:04:46 -04:00
Davis King 998c7b2f6b Fixed code so it throws the right type of exception. 2011-05-27 18:44:58 -04:00
Davis King ddac90f49a Added a function for saving to the PNG image format. 2011-05-27 18:38:33 -04:00
Davis King 6f4c65a6c5 updated png_loader so it can load 16bit data. 2011-05-27 16:54:00 -04:00
Davis King b81db5eb49 Made the png_loader::get_image() function a little faster. 2011-05-27 15:52:37 -04:00
Davis King 7b6de12578 Updated png_loaded so it can handle paletted images. 2011-05-27 15:40:23 -04:00
Davis King 62bf038408 setup proper error handling for libpng in the png_loader. Now if the PNG
file is corrupted in the middle it won't just print a message and abort
the program.
2011-05-27 15:18:21 -04:00
Davis King 12e01302fa Added missing requires clause to hysteresis_threshold() 2011-05-27 12:32:02 -04:00
Davis King a07b232314 fixed typo in spec 2011-05-27 12:18:11 -04:00
Davis King b1eb8aa175 Fixed a spelling error. 2011-05-26 16:52:55 -04:00
Davis King 9bb3b5e15a Fixed spelling error in a comment. 2011-05-25 18:00:29 -04:00
Davis King 62e2bf4958 updated docs 2011-05-23 21:35:33 -04:00
Davis King 643bd6ba9b Added a few more tests 2011-05-23 16:49:27 -04:00
Davis King 4ad6f5868f removed tabs 2011-05-23 16:46:46 -04:00
Davis King 61e1cee05a Created release v17.39 2011-05-22 12:29:57 -04:00
Davis King 4aa446650f Added tag v17.39 for changeset 7f7ffcda900a 2011-05-22 12:29:57 -04:00
Davis King 97ebb11c60 Updated stylesheet so it correctly puts Mercurial file removals into the HTML change log. 2011-05-22 12:28:02 -04:00
Davis King 0af07b8d49 I'm only going to actively test against versions of gcc >= 4.1 now. 2011-05-22 12:11:02 -04:00
Davis King 5c183bb499 Fixed a bug in makedocs 2011-05-22 11:33:55 -04:00
Davis King ef25a8e57b Made the old release notes page also display the current release date as
it's last modified time.
2011-05-22 11:26:28 -04:00
Davis King da9a228b46 Fixed bug in makedocs script 2011-05-22 11:18:15 -04:00
Davis King 5b4a43639e Cleaned up the doc generation and release scripts. I also changed the last modified
time on each page to be the last time the corresponding XML file was modified
rather than the overall project release date.
2011-05-22 11:05:12 -04:00