Use an intermediary variable in getImageColorChannel
This commit is contained in:
parent
0c7108b3ec
commit
a9861a761f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user