Disabling BORDER_CONSTANT for pyramid functions

Added assert to check for borderType is not BORDER_CONSTANT, since this mode doesn't make sense for these functions and works incorrect.