Skip to content

Test - Add unit tests for thresholding operators #141

@xxivani

Description

@xxivani

Is your feature request related to a problem?

The thresholding operators (ApplyThreshold, AdaptiveThreshold, OtsuThreshold) have no unit tests. This means regressions in their behaviour, such as incorrect default values, wrong output dtype, or broken grayscale/RGBA handling cannot be caught automatically.

Describe the solution you'd like

Add a unit test suite covering all three thresholding operators, including shape and dtype assertions, binary output verification, grayscale and RGBA input handling, default parameter behaviour, and the existing maxValue=0 bug in ApplyThreshold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions