Add and use getImageColorChannel
This commit is contained in:
parent
3c983b0690
commit
cc05f5c210
@ -11,8 +11,11 @@ INTERESTING_POSITION = np.array(ORIGINAL_INTERESTING_POSITION) // 2
|
||||
def getImageFilePath(imageIndex):
|
||||
return f'../rafael/240424/photos/DSC0{imageIndex}.ARW'
|
||||
|
||||
imageFilePath = getImageFilePath(IMAGE_INDEX)
|
||||
colorChannel = getColorChannel(imageFilePath, Color.RED)
|
||||
def getImageColorChannel(imageIndex, color):
|
||||
imageFilePath = getImageFilePath(imageIndex)
|
||||
return getColorChannel(imageFilePath, Color.RED)
|
||||
|
||||
colorChannel = getImageColorChannel(IMAGE_INDEX, Color.RED)
|
||||
print(colorChannel.shape)
|
||||
|
||||
def crop(image, interestingPosition, yRange, xRange):
|
||||
|
Loading…
x
Reference in New Issue
Block a user