40 Commits

Author SHA1 Message Date
Vighnesh Birodkar b3f6b545cb Added example for region boundary merging 2016-04-27 01:03:09 -04:00
Vighnesh Birodkar 2a87c07800 midway thru changes 2016-04-26 14:23:32 -04:00
Vighnesh Birodkar a406e270b1 Improved drawing in plot_rag_draw.py example (#1872)
Improved drawing in draw_rag example; changed draw_rag to show_rag, made it return ScalarMappable to draw colorbars; added magma colormap
2016-04-24 09:28:24 +03:00
Steven Silvester b710bd21d2 Use a stacklevel of 2 by default for all warnings 2016-01-30 08:57:46 -06:00
Himanshu Mishra b9199fe765 DOC : Add comment for the use of strided output array for generic_filter in RAG 2016-01-25 12:50:45 +05:30
Vighnesh Birodkar 22bf68d9b4 removed failing doctest line 2016-01-08 21:49:01 -05:00
Vighnesh Birodkar 753c8caf4e correct variable name mistake 2016-01-08 14:11:56 -05:00
Juan Nunez-Iglesias 802214d5ac Hold pixel count in mean boundary RAG edges
This value is needed to combine edges when merging nodes.
2016-01-08 22:11:31 +11:00
Juan Nunez-Iglesias 30145ab7f4 Use function to update graph edges from CSR 2016-01-08 22:10:20 +11:00
Juan Nunez-Iglesias f9dfa1d81d Make mean boundary RAG testing more robust 2016-01-08 17:25:10 +11:00
Vighnesh Birodkar ea18fcb99b use as strided 2016-01-06 16:23:43 -05:00
Vighnesh Birodkar a5f6db59cb doc example 2016-01-06 15:42:10 -05:00
Vighnesh Birodkar 422dfc6c22 cleanup 2016-01-06 15:17:48 -05:00
Vighnesh Birodkar e8f2805d64 changed to eosion/dilation logic 2016-01-06 15:07:35 -05:00
Vighnesh Birodkar a95c0bdddc passing selem argument 2016-01-06 15:07:35 -05:00
Vighnesh Birodkar 4c05e65670 changed logic to use erosion/dilation 2016-01-06 15:07:35 -05:00
Vighnesh Birodkar caba3041d1 indentation correction 2016-01-06 15:06:18 -05:00
Vighnesh Birodkar 1769cdddcf added boundary rag construction 2016-01-06 15:06:18 -05:00
Juan Nunez-Iglesias 06186710d5 Update outdated docstring of _add_edge_filter 2015-12-16 08:31:30 +11:00
Juan Nunez-Iglesias 5c03f2aff5 Bug: not all edges found by asymmetric footprint
If we have a label image:

[[1, 2],
 [3, 4]]

Then the footprint:

 [[0, 0, 0],
  [0, 1, 1],
  [0, 1, 1]]

will not discover the edge (2, 3), even though that edge should be
present when `connectivity=2`.

This commit fixes the bug by using a complete footprint, without the
top/left surfaces zeroed out.

See also:
https://github.com/scikit-image/scikit-image/pull/1826#issuecomment-164597442
2015-12-15 10:56:04 +11:00
Juan Nunez-Iglesias 4deeb1f802 Move max_id logic to top of RAG constructor
max_id is used during RAG building iteration, resulting in an error if
it is not defined ahead of the generic_filter stage.
2015-12-14 19:06:43 +11:00
Juan Nunez-Iglesias 53d3154f09 Use a strided 1-element array as dummy filter out
When using generic_filter to build a graph, the numerical filter
output is actually ignored. Building a full array, even of the
smallest dtype, was wasteful. Using stride_tricks solves this by
creating a single-element buffer into which all output is fed.
2015-12-14 18:57:29 +11:00
Juan Nunez-Iglesias 49aa7cf999 Fix typo in variable name 2015-12-14 18:42:25 +11:00
Juan Nunez-Iglesias d5819f664a Add tests for generic RAG construction 2015-12-14 17:12:11 +11:00
Juan Nunez-Iglesias e9c4c87519 Make RAG generic, requiring only label_image 2015-12-14 17:12:11 +11:00
Juan Nunez-Iglesias c3d52d602c Simplify reference to generate_binary_structure 2015-12-14 17:12:11 +11:00
Juan Nunez-Iglesias 97f3ad1a6b NetworkX is required so remove optional import 2015-12-14 17:12:11 +11:00
Juan Nunez-Iglesias 0d134987f9 Harmonize all ndimage usage across the library
Only two forms remain in use:

- `from scipy import ndimage as ndi`
- `from scipy.ndimage import function`
2015-06-09 15:18:37 +10:00
Vighnesh Birodkar cacd214d68 Corrected Typo 2015-06-06 21:36:00 +05:30
Vighnesh Birodkar 8a78ad87ed skip loop when min and max are equal 2015-06-06 00:51:30 +05:30
Vighnesh Birodkar 18b1906607 removed debug statements 2015-06-03 22:03:34 +05:30
Vighnesh Birodkar 23c6111ad3 Fixing error in ncut when subgraph as all equal weights (#1538) 2015-06-03 21:58:26 +05:30
Steven Silvester 09876408fc Fix some sphinx warnings and add to build
Fix some sphinx warnings

Add documentation build to test

Add documentation build to test

Remove change in numpydoc

Remove change in apigen

Add makefile target for html and add to travis script

Add a makefile target for html and add to travis script

Fix more sphinx warnings
2015-02-07 16:40:26 -06:00
Juan Nunez-Iglesias 0d1a2ef1fa Import graph into future parent package 2015-02-04 00:37:48 +11:00
Juan Nunez-Iglesias e5fe82d6f3 Fix even more tests still importing skimage.graph 2015-02-03 16:20:15 +11:00
Juan Nunez-Iglesias 9cbeeca0df Update RAG doctest to use future 2015-02-03 15:52:26 +11:00
Juan Nunez-Iglesias 008775853f Fix setup.py cascade 2015-02-03 15:34:56 +11:00
Juan Nunez-Iglesias d2d50e9391 Add package docstring for skimage.future 2015-02-03 15:20:57 +11:00
Juan Nunez-Iglesias 1b748668ee Move package to skimage.future.graph 2015-02-03 15:06:27 +11:00
Juan Nunez-Iglesias 605f05942f Move RAG files to skimage.future 2015-02-03 14:58:57 +11:00