Skip to content

Commit

Permalink
Merge pull request #56 from fogg-lab/wigginno-patch-1
Browse files Browse the repository at this point in the history
Specify out_range for intensity rescaling  in data_prep.py
  • Loading branch information
wigginno authored May 30, 2024
2 parents 916a486 + 6107424 commit bf12962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fl_tissue_model_tools/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def load_inv_depth_img(path: str, img_hw: Tuple[int, int]) -> npt.NDArray:
"""
img = cv2.imread(path, cv2.IMREAD_ANYDEPTH)
img = cv2.resize(img, img_hw, cv2.INTER_LANCZOS4)
img = rescale_intensity(img)
img = rescale_intensity(img, out_range=(0, 255))
img = np.repeat(img[:, :, np.newaxis], 3, axis=2)
return img

Expand Down

0 comments on commit bf12962

Please sign in to comment.