tomwer.core.utils.image.scale_img2_to_img1#
- tomwer.core.utils.image.scale_img2_to_img1(img_1, img_2, method=ImageScaleMethod.MEAN)#
scale image2 relative to image 1 in such a way they have same min and max. Scale will be apply from and to ‘data’ / raw data
- Parameters:
img_1 (
array
) – reference imageimg_2 (
array
) – image to scalemethod (
ImageScaleMethod
) – method to apply scaling
- Returns: