def set_default_order(kwargs):
    """
    Set order parameter in kwargs for scikit-image functions.

    Default order is 1, which performs a linear interpolation of pixel values
    when images are rotated, resized and sheared. This is fine for images
    but causes unwanted pixel values in masks. This function set the default
    order to 0, which disables the interpolation.

    :param kwargs kwargs: Dictionary with keyword arguments.
    """
    if 'order' not in kwargs:
        kwargs['order'] = 0
