[Numpy-discussion] Shape detection

2022-01-23 Thread pawel . darlak
Hello, I am not sure that this is correct group for my problem but I hope someone can help me :) I try to analyze picture with porous material (https://python.neocast.eu/disc.png). I calculate a total quantity of each pores but I would like also calculate a porosity. To make I need a size of

[Numpy-discussion] Re: Shape detection

2022-01-23 Thread Stefan van der Walt
Hi Pawel, I would recommend scikit-image for these types of analysis. Here's a start: --- from skimage import io, measure import numpy as np image = io.imread('disc.png') thresholded = image > 10 labels = measure.label(image) regions = measure.regionprops(labels) regions_small = [r for r in reg

[Numpy-discussion] Re: Proposal for new function to determine if a float contains an integer

2022-01-23 Thread Brock Mendel
Have any of the numpy devs weighed in on this? If an efficient version of this were available in numpy there is a lot of pandas code I would enjoy ripping out. On Sun, Jan 2, 2022 at 11:16 AM Joseph Fox-Rabinovitz < jfoxrabinov...@gmail.com> wrote: > Is there a guide on how to pacakage non-ufunc

[Numpy-discussion] Upcoming: 2nd edition of "Machine learning with scikit-learn MOOC"

2022-01-23 Thread Gael Varoquaux
Hi everyone, The team at Inria, with the help of the Inria learning lab, will soon be opening the 2nd edition of the "Machine Learning with scikit-learn" MOOC: https://www.fun-mooc.fr/en/courses/machine-learning-python-scikit-learn/ The content of the MOOC is visible here (we are still polishing

[Numpy-discussion] Re: Performance mystery

2022-01-23 Thread Warren Weckesser
On 1/20/22, Francesc Alted wrote: > On Wed, Jan 19, 2022 at 7:48 PM Francesc Alted wrote: > >> On Wed, Jan 19, 2022 at 6:58 PM Stanley Seibert >> wrote: >> >>> Given that this seems to be Linux only, is this related to how glibc >>> does >>> large allocations (>128kB) using mmap()? >>> >>> https