Skip to content

add specific error code when cvtColor is used on an image with an invalid number of channels #25971

@FlorianPix

Description

@FlorianPix

Describe the feature and motivation

When I (on accident) use cvtColor twice to convert a grayscale image to RGB than at the moment only a generic error code (-2 / cv.Error.StsError) is raised. Could we instead use a more specific error code like e.g. (cv.Error.BadNumChannels/ -15).

Additional context

No response

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