I would like to have something like the following function:
calc_map(img_in, img_height, img_width, mapping = np.zeros((image_height, image_width)))
[function body]
apparently it is not possible that the default argument of mapping is depending on other arguments in that function. Is there another way around that without using image_height and image_width as global?
I would imagine to put this in my function:
calc_map(img_in, img_height, img_width)
mapping = np.zeros((image_height, image_width))
[function body]
but I also need to put an already existing mapping into the function and not having overwritten it..
appreciate any help, regards, eli