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.
Problem:
Padding does not work when
fillis a scalar, but the image is RGB.What happens:
Using a scalar for
fillin combination with an RGB image crashes.cvfunctional.pad()assumes afillof length 3 for an RGB image, but the default value ofcvtransforms.Pad()is 0 (length 1).What should happen:
If
fillis a scaler, it should be used for all 3 channels.