Image Scaling
- hugheslab.im_tools.log_scale_image(img, min_val=None)
Generates a log-scaled image, adjusted for good visual appearance, particularly for OCT images.
- Arguments:
- imgndarray
image as 2D numpy array
- Optional Keyword Arguments:
- min_valfloat
if specified, 0 in image will correspond to this value in log scaled image before windowing
- Returns:
- ndarray, log-scaled image (8 bit)
.
- hugheslab.im_tools.log_scale_min(img)
Calculates minimum display value for a log-scaled image so that it does no appear overly noisy.
- Arguments:
- imgndarray
image as 2D numpy array
- Returns:
- float, minimum value
.