How can a radial ramp test center-to-edge response?
radial_gradient generates a test pattern with intensities increasing outward from its center.
Pixel experiment and interpretation
Center and corner make easy probe locations. When testing the sign of a vignetting correction, distinguish this synthetic fixture from a measured calibration frame.
from PIL import Image
im=Image.radial_gradient('L')
im.getpixel((128,128))<im.getpixel((0,0))Result True
中文
如何用径向渐变检查中心与角落的响应?
radial_gradient 创建强度从中心向外围增加的测试图。
像素实验与适用边界
中心和角落是两个容易定位的采样点。用它检查暗角校正的方向时,区分合成测试图与相机实际标定图。
from PIL import Image
im=Image.radial_gradient('L')
im.getpixel((128,128))<im.getpixel((0,0))结果 True