Comment checkOriginalPoint
This commit is contained in:
parent
2bfedf54ad
commit
aa5c210539
@ -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()
|
Loading…
Reference in New Issue
Block a user