Almar Klein
fc90a164fe
update-mcp: improvements to docstrings.
2013-12-15 12:44:53 +01:00
Almar Klein
789ade3ca2
update-mcp: added tests for newly added features.
...
Also fix in existing test related to how the traceback arrays is initialized:
first it was initialized with all -1, now with -2, and -1 at the seed points.
2013-12-15 00:37:27 +01:00
Almar Klein
fdd880aa7f
update-mcp: add new MCP classes to skimage.graph namespace
2013-12-14 23:58:45 +01:00
Almar Klein
2ebeee2df4
update-mcp: Change when examine_neighbors is called.
...
Also renamed Mcp_Connect to MCP_Connect.
Makes more sense to call it when the neighbor is frozen. In that
way the method is called exactly once for each pair of neighbours.
Plus the costs and paths are known and fixed.
2013-12-14 23:55:48 +01:00
Almar Klein
f7416507fa
update-mcp: Small fix.
...
Need _start and _end attributes for the MCP class.
It worked for my own tests because I overloaded the MCP class.
2013-12-13 16:37:36 +01:00
Almar Klein
32c4a80b32
update-mcp: Add MCP_Flexible subclass.
...
This class adds a public def-method for the private cdef-method hooks.
This allows users to influence the behavior of the MCP algorithm by
subclassing it in pure Python.
2013-12-13 15:13:24 +01:00
Almar Klein
8fe7416d41
update-mcp: Add MCP_Connect class
...
This class finds the connections between the given seed points. This is
a bit similar to finding connections between start and end points, except
now start- and endpoints are the same.
2013-12-13 15:13:24 +01:00
Almar Klein
798bea7251
update-mcp: Refactor MCP algorithm in prep for MCP subclasses
...
Installed a few hooks to allow more flexibility in subclasses, refactored
traceback() to allow obtaining tracebacks fast during front evolution, and
moved some initializations to reset().
Full list:
* integer division in calculating indices
* traceback_offsets use -2 for uninitialized, -1 for seed point. In that
we we can distinguish between these two cases in traceback()
* Clearing of traceback_offset, cumulative_costs, pushing start positions
into the heap, are now all done in reset()
* Reset is called every time that find_cost is called.
* Add hook _goal_reached()
* Add hook _examine_neighbor()
* Add hook _update_node()
* Replace while loop with a for-loop to prevent infinite looping in case of a bug.
* Split traceback() in two functions to allow getting a flat traceback fast.
traceback() calles these two private functions and behaves as just before.
2013-12-13 15:13:24 +01:00
Almar Klein
280fadff39
MCP: refactored to use typed memoryviews
...
The arrays are stored on the mcp object, so that they can
be used in methods as well. Will use that to make MCP more
flexibel.
2013-12-13 15:13:24 +01:00
Almar Klein
d1329488e6
MCP: add sampling attribute: deal with anisotropic data.
2013-12-13 15:13:24 +01:00
Almar Klein
f5c675b8c6
MCP: turn while loop into for loop to prevent infinite looping.
...
A nice feature during development :)
2013-12-13 15:13:24 +01:00
Almar Klein
8d09300155
Improve speed of MPC by about 30%
...
Dear diary, I spend a whole day searching for why this implementation
of the MPC was slower then my own implementation. I checked *everything*.
I rewrote the front evolution to match with mine almost exactly. I was
about to give up. And then I saw this... Arg!
2013-12-13 15:13:24 +01:00
Almar Klein
4b2136bc7d
Make mcp evolution algorithm a bit more readable.
...
In particular, distinguish between cost and cumcost, the same
variable name was used for this.
2013-12-13 15:13:24 +01:00
Stefan van der Walt
0d5b822110
Merge pull request #848 from ahojnnes/warps
...
Speed up warps by inlining interpolation functions
2013-12-08 19:03:16 -08:00
Johannes Schönberger
688778b572
Move inlined function definitions to header for actual inlining
2013-12-09 00:57:07 +01:00
Stefan van der Walt
cff007827c
Merge pull request #825 from ahojnnes/coverage
...
MRG: Increase test coverage
2013-12-03 00:29:15 -08:00
Tony S Yu
46cdc17771
Merge pull request #838 from ahojnnes/gallery
...
Gallery improvements
2013-12-01 18:37:55 -08:00
Johannes Schönberger
5abd6e3904
Add missing plot directive
2013-12-02 01:13:36 +01:00
Juan Nunez-Iglesias
689b59a457
Merge pull request #839 from rtack/match_template_DOC
...
Change docstring to make clear that only 2-D images are currently supported.
2013-12-01 14:56:24 -08:00
Raphael Ackermann
0c81e14bfa
changing docstring to make clear that only 2-D images are currently supported
2013-12-01 23:11:33 +01:00
Johannes Schönberger
1720629670
Improve ssim example
2013-11-30 19:39:39 +01:00
Johannes Schönberger
64b9c1847b
Show hidden text
2013-11-30 19:37:55 +01:00
Johannes Schönberger
1869ea9147
Fix overlapping xtick labels
2013-11-30 19:35:06 +01:00
Johannes Schönberger
dcbbd55b52
Improve local otsu example script
2013-11-30 19:32:37 +01:00
Johannes Schönberger
444d574efa
Fix overlapping text
2013-11-30 19:15:00 +01:00
Johannes Schönberger
7e45baa3e2
Fix overlapping text
2013-11-30 19:06:20 +01:00
Johannes Schönberger
76e0f7a047
Fix and improve circular hough hough transform example script
2013-11-30 19:01:18 +01:00
Johannes Schönberger
c0af3aaae6
Improve layout of gabor example plot
2013-11-30 18:54:29 +01:00
Johannes Schönberger
86c90a336f
Merge pull request #821 from JDWarner/add_conditional_doctest_decorator
...
ENH: Add `doctest_skip_parser` allowing conditional skipping of doctests
2013-11-25 13:54:29 -08:00
Johannes Schönberger
caf183af2b
Merge pull request #827 from stefanv/coveralls_nomain
...
Ignore main sections of library code when checking coverage
2013-11-22 05:04:21 -08:00
Stefan van der Walt
a9534f48b4
Merge pull request #644 from josteinbf/phase-unwrap
...
Add phase unwrapping
2013-11-22 04:47:01 -08:00
Stefan van der Walt
8d04052065
Ignore main sections of library code
2013-11-22 14:40:26 +02:00
Johannes Schönberger
4d6308c810
Fix error in line model test
2013-11-22 13:28:53 +01:00
Jostein Bø Fløystad
7afae271dd
Add contributors for phase unwrapping.
2013-11-22 12:59:35 +01:00
Johannes Schönberger
43f6ae9a2c
Add test case for explicit use of radii and sigmas parameters
2013-11-22 12:46:41 +01:00
Johannes Schönberger
5b3c21a4d4
Add test for neggative gamma parameter
2013-11-22 12:33:21 +01:00
Johannes Schönberger
0a2ed35253
Add test for negative input image
2013-11-22 12:30:49 +01:00
Jostein Bø Fløystad
51f94d83a9
Less verbose entry in CONTRIBUTORS.
2013-11-22 12:29:31 +01:00
Johannes Schönberger
8c734eaccb
Add missing removal of deprecated function to todo
2013-11-22 12:28:31 +01:00
Johannes Schönberger
e904454c2e
Add test for mask output of corner_peaks
2013-11-22 12:26:41 +01:00
Johannes Schönberger
335a74e11f
Add test case for eps corner_harris method
2013-11-22 12:25:06 +01:00
Johannes Schönberger
4033566ae6
Add test for invalid parameter combination
2013-11-22 12:22:10 +01:00
Johannes Schönberger
6e6505ecb6
Increase test coverage of regionprops
2013-11-22 12:16:44 +01:00
Johannes Schönberger
2e8a36a283
Rename test to enable hidden line model test
2013-11-22 12:11:47 +01:00
Johannes Schönberger
c53e98a3c6
Fix bug in inverse warping and add test case
2013-11-22 12:07:36 +01:00
Johannes Schönberger
396b686bab
Add test case for invalid image dimensions
2013-11-22 11:59:07 +01:00
Johannes Schönberger
d659cdc6b0
Deprecate reverse_map parameter and add to future removal list
2013-11-22 11:55:18 +01:00
Johannes Schönberger
da42c46ab4
Add matrix_transform function to namespace
2013-11-22 11:51:15 +01:00
Johannes Schönberger
e159fa0e9d
Add test case for estimate_transform
2013-11-22 11:48:32 +01:00
Johannes Schönberger
62f51e35a1
Add missing test coverage of polynomial tform
2013-11-22 11:45:51 +01:00