From a9861a761f5f376be9abb569f73205fb8f720463 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Tue, 11 Jun 2024 17:35:26 +0200 Subject: [PATCH] Use an intermediary variable in `getImageColorChannel` --- datasets/raise/extract_4_color_channel_images_from_raw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datasets/raise/extract_4_color_channel_images_from_raw.py b/datasets/raise/extract_4_color_channel_images_from_raw.py index 0799695..2528b4d 100644 --- a/datasets/raise/extract_4_color_channel_images_from_raw.py +++ b/datasets/raise/extract_4_color_channel_images_from_raw.py @@ -15,7 +15,8 @@ def getImageFilePath(imageIndex): def getImageColorChannel(imageIndex, color): imageFilePath = getImageFilePath(imageIndex) - return getColorChannel(imageFilePath, color) + colorChannel = getColorChannel(imageFilePath, color) + return colorChannel def crop(image, interestingPosition, yRange, xRange): return image[interestingPosition[0] - yRange: interestingPosition[0] + yRange, interestingPosition[1] - xRange: interestingPosition[1] + xRange]