Question
Let's say I have a function:
int foo(int a, int b, int c = 5, int d = 10){
return a + b + c + d;
}
How can I call it providing a
, b
and d
but not c
?
Concrete example
I want to use cv::erode
documented here
void cv::erode ( InputArray src,
OutputArray dst,
InputArray kernel,
Point anchor = Point(-1,-1),
int iterations = 1,
int borderType = BORDER_CONSTANT,
const Scalar & borderValue = morphologyDefaultBorderValue()
)
and provide (except of required arguments) only iterations
, but use default value for anchor
. Apparently, pythonic approach does not work cv::erode(img, out, kernel, iterations=radius);
:(