Stefan van der Walt
73332f9959
Merge pull request #239 from ahojnnes/texture
...
ENH: Add local binary patterns for texture characterization.
Conflicts:
CONTRIBUTORS.txt
2012-08-20 14:37:30 -07:00
pcampr and Stefan van der Walt
673d4ec212
several fixes and 3 new tests for Histograms of Oriented Gradients
2012-08-20 14:29:01 -07:00
pcampr and Stefan van der Walt
6761f131ad
fixed imports
2012-08-20 14:29:01 -07:00
pcampr and Stefan van der Walt
298c1f1890
fixing multiple bugs in hog.py, adding two tests to test_hog.py
2012-08-20 14:29:01 -07:00
Pavel Campr and Stefan van der Walt
25d94b36c6
fix hog.py - orientation and visualization
2012-08-20 14:29:01 -07:00
Johannes Schönberger
014b490578
Fix import bug due to rebase
2012-08-20 22:50:35 +02:00
Johannes Schönberger
321e3aefa8
Add doc string to Cython version of LBP
2012-08-20 22:48:35 +02:00
Johannes Schönberger
2b7cb5f630
Make different methods of LBP more readable in Cython code
2012-08-20 22:48:35 +02:00
Johannes Schönberger
36b22d7819
Use numpy dtype objects instead of strings
2012-08-20 22:48:35 +02:00
Johannes Schönberger
37f5ab47a6
Fix typo in doc string
2012-08-20 22:48:35 +02:00
Johannes Schönberger
f11b76e709
Add full-stop at end of short doc string description
2012-08-20 22:48:35 +02:00
Johannes Schönberger
70b7745a34
Use shared bilinear interpolation function and improve performance.
2012-08-20 22:48:35 +02:00
Johannes Schönberger
0fbbed525f
improve doc string of local_binary_pattern function
2012-08-20 22:48:34 +02:00
Johannes Schönberger
55c3ec84e5
fix test cases for local binary pattern
...
test results changed because border handling of bilinear interpolation changed
2012-08-20 22:48:34 +02:00
Johannes Schönberger
bfa5578979
fix bilinear interpolation when position outside of image
2012-08-20 22:48:34 +02:00
Johannes Schönberger
a6bdda8291
rewrite local binary pattern in Cython for performance reasons
2012-08-20 22:48:34 +02:00
Johannes Schönberger
fa352bacd4
fix typos in doc string and comment
2012-08-20 22:46:57 +02:00
Johannes Schönberger
82868dd41b
apply PEP8 guidelines
2012-08-20 22:46:57 +02:00
Johannes Schönberger
d9444e7612
add local binary pattern texture analysis
2012-08-20 22:46:57 +02:00
Stefan van der Walt
90e61e22ae
Merge pull request #240 from tonysyu/rename-duplicates
...
BUG: Rename modules with duplicate function names.
2012-08-16 23:01:48 -07:00
Tony S Yu
1ea41173b8
BUG: Rename files with similar function, python module, and cython extension names.
2012-08-16 22:42:27 -04:00
Johannes Schönberger
bb27e37710
extend test cases for num_peaks parameter of peak_local_max
2012-08-14 07:59:54 +02:00
Johannes Schönberger
a87779b650
fix num_peaks parameter bug in peak_local_max
2012-08-10 20:45:50 +02:00
Tony S Yu
8a340cc47d
BUG: more module renaming to prevent duplicates.
2012-08-02 23:08:19 -04:00
Brian Holt
f3024fc4cd
simplified hog code + extra unit test
2012-07-24 10:52:55 +01:00
Andreas Mueller
f7c56202d0
COSMIT no spaces around power `**`. Fun: https://gist.github.com/1671995
2012-06-29 11:27:23 +02:00
Andreas Mueller
f7b3d8062c
COSMIT pep8
2012-06-29 11:27:23 +02:00
tangofoxtrotmike
4d999c313f
feature.hog(): use y,x coords consistently, now works on non-square images
2012-05-22 17:35:11 +10:00
Stefan van der Walt
fc676d6ae0
BUG: Correctly import _feature in Python 3.
2012-05-09 15:42:04 -07:00
Tony S Yu
7326b1949f
BUG: fix test images (float images between 0 and 1).
2012-05-09 18:35:38 -04:00
Stefan van der Walt
d19d45850f
BUG: Fix internal import in template matching.
2012-05-09 12:53:29 -07:00
Tony S Yu
06bd3ebd6f
Add doctest example to match_template.
2012-05-08 21:32:09 -04:00
Tony S Yu
a2f91585ef
Add test for pad_input = True.
2012-05-08 21:32:08 -04:00
Tony S Yu
193d5abd3c
Rename pad_output parameter to pad_input.
2012-05-08 21:32:08 -04:00
Tony S Yu
383ca6220a
Set match_template to default to no padding and fix test.
2012-05-08 21:32:08 -04:00
Tony S Yu
ad99285bc0
Prevent match_template from returning NaNs.
2012-05-08 21:32:08 -04:00
Tony S Yu
0c1e3541b3
Check that image is larger than template.
2012-05-08 21:32:08 -04:00
Tony S Yu
b2006da346
Change flipud/fliplr to array indexing.
2012-05-08 21:32:08 -04:00
Tony S Yu
43ed4b9fb7
Pad input image instead of output.
2012-05-08 21:32:08 -04:00
Tony S Yu
5d79537566
Fix convolution input to get correlation results.
2012-05-08 21:32:07 -04:00
Tony S Yu
7caf85a5c1
Renaming for clarity.
2012-05-08 21:32:07 -04:00
Tony S Yu
f21f032bfe
Add normalization test and remove unnecessary clipping.
2012-05-08 21:32:07 -04:00
Tony S Yu
5682d27eb0
Rewrite normalization algorithm.
...
This is a major revision that removes the `method` parameter of `match_template` and uses a new normalization method.
Note that the example result is different with this new normalization.
2012-05-08 21:32:07 -04:00
Tony S Yu
753e999a7a
Minor cleanup
...
* Rename some variables.
* Delete some old comments.
* Move some variable initializations to the top of the function.
2012-05-08 21:32:07 -04:00
Tony S Yu
883dd24cdb
Fix bug when indexing into summed-area table.
2012-05-08 21:32:07 -04:00
Tony S Yu
2e8fcef89b
Simply equation in docstring of match_docstring.
2012-05-08 21:32:06 -04:00
Tony S Yu
cbdea0d36e
Add pad_output argmument to match_template.
2012-05-08 21:32:06 -04:00
Tony S Yu
3c7ae849b9
Remove unnecessary truncation at boundary.
2012-05-08 21:32:06 -04:00
Tony S Yu
545bdab985
Refactor template matching.
...
* Change Cython function to take names of correlation method instead of numbers representing the methods.
* Use alternate formula for `template_norm` of 'norm-corr' method, but note that both formulas need to be checked for correctness.
* Add note that `match_template` output has a different shape than the input image. This needs to be fixed before merging.
* Change 'Sigma' to 'Sum' in docstring to avoid confusion with standard deviation.
* Other minor changes for readability.
2012-05-08 21:32:06 -04:00
Tony S Yu
8c816109c9
Remove OpenCV version of match_template
2012-05-08 21:32:06 -04:00