Skip to content

is the "IsBinary" funtion return wrong value? #103

Open
@zzb-client

Description

in thresholder.h line 75

/// Returns true if the source image is binary.
bool IsBinary() const {
return pix_channels_ == 0;
}

is it should be "return pix_channels_ == 1;" for binary images?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions