Crates.io | ndarray-ndimage |
lib.rs | ndarray-ndimage |
version | 0.4.0 |
source | src |
created_at | 2021-10-13 14:56:14.101478 |
updated_at | 2023-08-31 14:46:13.815117 |
description | Multidimensional image processing for ArrayBase, the n-dimensional array data structure provided by ndarray. |
homepage | |
repository | https://github.com/imeka/ndarray-ndimage |
max_upload_size | |
id | 464546 |
size | 194,720 |
This crate provides multidimensional image processing for ndarray
's ArrayBase
type. It is mainly focussed on 3D arrays/images for now, but some functions are available on on n-d arrays.
It aims to:
scipy.ndimage
with some other tools like numpy.pad
and anything else relevant to image processing. We do not want all options and arguments offered by scipy.ndimage
because some of them are incompatible with Rust. We hope to offer the most used ones.scipy.ndimage
. Most of it is cythonized so it's not as easy as it seems. In fact, I'm usually unable to be faster than SciPy but it does happen on some functions.unsafe
. This is not an unbreakable rule. Its usage will be evaluated and dicussed in the pull requests.Currently available routines include:
rustfft
crateThis crate is a work-in-progress. Only a subset of the scipy.ndimage
functions are provided and most of them offer less options than SciPy. Some are offered only in 3D, with less boundary modes, with only 2 types of structuring element, only for binary data, only for f64, etc.
[dependencies]
ndarray = "0.15"
ndarray-ndimage = "0.2"
ndarray-ndimage
needs your help to grow. Please feel free to create issues and submit PRs. Since it is based on scipy.ndimage
, it is easy to port new functions and tests. Reading Cython code is highly unpleasant; the joy comes from porting it to Rust!
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.