[SciPy-user] ndimage zero-ignorant filters, or other ways to fill holes
Carlos da Silva Santos
Wed Nov 26 13:34:38 CST 2008
On Tue, Nov 25, 2008 at 7:13 AM, Sebastian Haase <firstname.lastname@example.org> wrote:
> On Mon, Nov 24, 2008 at 10:48 PM, Carlos da Silva Santos
> <email@example.com> wrote:
>> On Mon, Nov 24, 2008 at 1:03 PM, Vincent Schut <firstname.lastname@example.org> wrote:
>>> If someone comes up with another brillant idea to fill the zero-gaps in
>>> my images with values that are in reasonable range of the gap's
>>> surroundings, I'd also be very grateful. Keep in mind that the images
>>> typically are pretty large, though. 7000x7000 pixels is no exception.
>> Maybe you could use ndimage.morphology.grey_closing, I cant find a
>> code example using it, but the idea is similar to the examples
>> featured in this page:
>> The "close hole" operator is probably closer to what you intended:
>> I am not sure whether this operator is implemented in the free version
>> of pymorph, maybe you should give it a try:
>> Hope this helps.
> Hi Carlos,
> the links you provided look very interesting !
Morphology is a quite nice tool, indeed.
> Would you be able to answer some further questions ?
> the original pymorph (http://www.mmorph.com/pymorph) appears to have a
> BSD license, did this change for the
> luispedro.org pymorph ?
According to Luis Pedro, the license is the same:
"The license stays BSD..."
> Is pymorph all 2D (only) ?
> What data data-types does pymorph support ? float32 ?
Actually, I never used pymorph. But quoting from the docs:
"The Morphology Toolbox mainly supports four types of images according
to their pixel datatypes : binary, unsigned gray scale uint8 and
uint16, and signed gray scale int32. Most functions work for 1D, 2D
and 3D images."
I believe the morphological operators available in ndimage.morphology
work with floating point, can anyone confirm this? But pymorph has
much more operators than ndimage.morphology.
In my experience, it is not that common to use floating point images
in applications involving morphology. Do you have anything specific in
Hope this helps,
> Sebastian Haase
> SciPy-user mailing list
More information about the SciPy-user