Use plt.imsave
instead of toPilImage
This commit is contained in:
parent
d3af12ce3e
commit
4dd52aae90
@ -37,7 +37,7 @@ for subgroupIndex in range(NUMBER_OF_SUBGROUPS):
|
||||
# Not efficient mean computation.
|
||||
for numberOfImagesIndex, numberOfImages in enumerate(numberOfImagesThresholds):
|
||||
subgroupPrnuEstimateNpArray += [np.array(imagesPrnuEstimateNpArray[:numberOfImages]).mean(axis = 0)]
|
||||
toPilImage(subgroupPrnuEstimateNpArray[-1]).save('prnu.png')
|
||||
plt.imsave('prnu.png', subgroupPrnuEstimateNpArray[-1])
|
||||
subgroupsPrnuEstimatesNpArray += [subgroupPrnuEstimateNpArray]
|
||||
|
||||
rmss = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user