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 – reference image
img_2 (numpy.array) – image to scale
method – method to apply scaling
- Type:
numpy.array
- Type:
numpy.array
- Type:
- Returns: