These 4 lines are the same for all functions we implemented so far?

Create a utility function in skimage.feature.util, e.g. image = _prepare_grayscale_input_2D(image)