Open jni opened 9 years ago
Currently, build_neighbors_array creates an array of shape (volume.size, n_neighbors). This is very wasteful, and scikit-image's view_as_windows function uses numpy stride tricks to provide a much more compact view.
(volume.size, n_neighbors)
view_as_windows
Currently, build_neighbors_array creates an array of shape
(volume.size, n_neighbors)
. This is very wasteful, and scikit-image'sview_as_windows
function uses numpy stride tricks to provide a much more compact view.