def hsv_value(image_filter, image, *args, **kwargs):
 hsv = color.rgb2hsv(image[:, :, :3])
 value = hsv[:, :, 2].copy()
 value = image_filter(value, *args, **kwargs)
 hsv[:, :, 2] = convert(value, hsv.dtype)
 return color.hsv2rgb(hsv)

def hsv_value ( image_filter , image , * args , ** kwargs ) : hsv = color . rgb2hsv ( image [ : , : , : 3 ] ) value = hsv [ : , : , 2 ] . copy ( ) value = image_filter ( value , * args , ** kwargs ) hsv [ : , : , 2 ] = convert ( value , hsv . dtype ) return color . hsv2rgb ( hsv )
return color image by applying image_filter on hsv-value of image .