Skip to content

Uniform empty image handling #8300

@StevenPuttemans

Description

@StevenPuttemans

Vote: Please use GitHub emoji/reaction for next two comments below to provide your opinion.

As suggested by @sovrasov in PR #8288 we definitely need to unify the way that empty images are handled inside the imgproc module.

  • 1️⃣ OPTION 1: generate an assertion (exception) from the moment an empty input is given
  • 2️⃣ OPTION 2: do not fail, just silently copy with empty data and make output also empty

The second option will require the user to do all the checking on data validity himself.


Update 2020-03-01: option 1 - 15, option 2 - 5
Update 2020-04-30: option 1 - 16, option 2 - 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    futureThis issue can't be fixed during restrictions of the compatibility requirementsvote

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions