Discussion:
ANN: Mahotas 1.1
Luis Pedro Coelho
2014-02-12 15:44:44 UTC
Permalink
Hello list participants,

I just released mahotas 1.1

Summary of Changes
------------------

It adds the functions resize_to and resize_rgb_to, which can be used like::

import mahotas as mh
lena = mh.demos.load('lena')
big = mh.resize.resize_rgb_to(lena, [1024, 1024])

As well as remove_regions_where, which is useful for handling labeled
images::

import mahotas as mh
nuclear = mh.demos.load('nuclear')
nuclear = mh.gaussian_filter(nuclear, 2)
labeled,_ = mh.label(nuclear > nuclear.mean())

# Ok, now remove small regions:

sizes = mh.labeled.labeled_size(labeled)

labeled = mh.labeled.remove_regions_where(
labeled, sizes < 100)

Moments computation can now be done in a normalized mode, which is
robust against scale changes::

import mahotas as mh
lena = mh.demos.load('lena', as_grey=1)
print mh.features.moments.moments(lena, 1, 2, normalize=1)
print mh.features.moments.moments(lena[::2], 1, 2, normalize=1)
print mh.features.moments.moments(lena[::2,::3], 1, 2, normalize=1)

prints
126.609789161
126.618233592
126.640228523

You can even spell the keyword argument "normalise"!

print mh.features.moments.moments(lena[::2,::3], 1, 2, normalise=1)

This release also contains some bugfixes to SLIC superpixels and to
convolutions of very small images.



Use "pip install mahotas --upgrade" to upgrade.


Mahotas
-------

Mahotas is a computer vision library. Algorithms operate on numpy
arrays, but are implemented in C++ for speed (efficiency is a major
concern of mahotas).

It includes algorithms such as watershed, morphological operations,
feature computation (Haralick features, Zernike moments, and SURF), and
other tidbits.

License: MIT

Citation

**Luis Pedro Coelho** Mahotas: Open source software for scriptable
computer vision in Journal of Open Research Software, 2013.
DOI: http://dx.doi.org/10.5334/jors.ac


Release: http://pypi.python.org/pypi/mahotas
Repository: http://github.com/luispedro/mahotas
API Docs: https://mahotas.readthedocs.org/en/latest/
Mailing List: http://groups.google.com/group/pythonvision
General webpage: http://luispedro.org/software/mahotas

Thanks
--
Luis Pedro Coelho | EMBL | http://luispedro.org

Recent stuff:
http://doi.org/10.1002/bies.201300143
http://dx.doi.org/10.1038/nm.3424
http://dx.doi.org/10.1038/nmeth.2693
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...