New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concatenate image collection #223

merged 3 commits into from Jul 20, 2012


None yet
2 participants

jni commented Jul 20, 2012

In a few contexts (stacks of microscopy images, video frames) it is desirable to operate on a numpy.ndarray containing all images in a collection. The new function converts a collection to such an ndarray.

This operation only makes sense when all images have the same shape, so the function raises a ValueError when this is not the case (and np.concatenate fails with such a ValueError).

jni added some commits Jul 20, 2012

Add function 'concatenate' to ImageCollection
Many algorithms work on 3D stacks rather than images. It is convenient
to provide automatic conversion from an ImageCollection to an nD-stack.
Add concatenate() support for MultiImage
Previously we added the ImageCollection.concatenate function. This
updates MultiImage to have the same functionality, and moves the grunt
work to an outside function to avoid repetition.

stefanv added a commit that referenced this pull request Jul 20, 2012

@stefanv stefanv merged commit 37e0ce0 into scikit-image:master Jul 20, 2012


This comment has been minimized.


stefanv commented Jul 20, 2012

Thanks, @jni!

@jni jni deleted the jni:jni-concatenate-image-collection branch Jan 16, 2014

@jni jni referenced this pull request Jul 19, 2017


added rect function to draw module #2719

0 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment