Add and use getImageFilePath
This commit is contained in:
parent
514413e1dd
commit
790c0d6da4
@ -46,13 +46,17 @@ if type_ is not None:
|
||||
minColor = None
|
||||
maxColor = None
|
||||
|
||||
def getImageNpArray(imageFileName, computeExtremes, color):
|
||||
global minColor, maxColor
|
||||
def getImageFilePath(imageFileName):
|
||||
if raiseNotFlatFields:
|
||||
imageFileName = imageFileName.replace('.png', '.NEF')
|
||||
imageFilePath = f'{imagesFolderPath}/nef/{imageFileName}'
|
||||
else:
|
||||
imageFilePath = f'{imagesFolderPath}/{imageFileName}'
|
||||
return imageFilePath
|
||||
|
||||
def getImageNpArray(imageFileName, computeExtremes, color):
|
||||
global minColor, maxColor
|
||||
imageFilePath = getImageFilePath(imageFileName)
|
||||
imageNpArray = getColorChannel(imageFilePath, color)
|
||||
|
||||
if computeExtremes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user