Skip to content

Image Thresholding #1840

Closed
Closed
@imgifty

Description

@imgifty

Hello,
I'm working on gigantic '.png' files with dimensions of 100'000x180'000 pixels, which I'd like to process. I would like to threshold the image according to a pixels color value. Is there a better way at doing this, than converting the image to a numpy array and doing the thresholding logic and converting it back into vips format?
The numpy conversion is taking an insane amount of time and memory and I would rather do it only in pyvips.

Is there any other way, I could speed up the whole process by converting all images into a pyramidic file format?

Thanks a lot for the answer and also for the great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions