Skip to content

Make dilate and erode accept floats #133

@ErichZimmer

Description

@ErichZimmer

Hi all,

I was using this library as a lightweight alternative to scipy, but I ran into a few inconveniences. I usually work with 2D images that are 32 bit floats and normalized to [0..1]. However, it seems some functions, notably erode and dilate, do not accept floating point arrays. Is there a particular reason to why erode and dilate only accepts integer data types? If so, it is no biggie as I can simply emulate floating point arithmetics with 32 bit integers.

Kind regards,
Erich

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions