Skip to content

padding: channel of image is 3 but length of fill is 1 #3

@Domibor

Description

@Domibor

Problem:
Padding does not work when fill is a scalar, but the image is RGB.

What happens:
Using a scalar for fill in combination with an RGB image crashes.
cvfunctional.pad() assumes a fill of length 3 for an RGB image, but the default value of cvtransforms.Pad() is 0 (length 1).

What should happen:
If fill is a scaler, it should be used for all 3 channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions