Comment checkOriginalPoint

This commit is contained in:
Benjamin Loison 2024-06-11 17:52:50 +02:00
parent 2bfedf54ad
commit aa5c210539
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -29,12 +29,12 @@ for y in tqdm(range(SHAPE[0])):
def checkOriginalPoint(point):
print(f'distance = {getDistance(*point)} intensity = {image[tuple(point)]}')
for point in [CENTER, [0, 0], [CENTER[0], int(CENTER[1] + getDistance(0, 0) / 2)]]:
checkOriginalPoint(point)
#for point in [CENTER, [0, 0], [CENTER[0], int(CENTER[1] + getDistance(0, 0) / 2)]]:
# checkOriginalPoint(point)
pad = (SHAPE[1] - SHAPE[0]) // 2
cropImage = image[:, pad:-pad]
#plt.imshow(image, cmap = 'grey')
plt.imsave('vignetting.png', image * 2.55, cmap = 'grey', vmin = 0, vmax = 255)
plt.imsave('vignetting_odd.png', image * 2.55, cmap = 'grey', vmin = 0, vmax = 255)
plt.show()