13 lines
543 B
Python
13 lines
543 B
Python
import mtf as mtf
|
|
from ROI import interface_roi
|
|
from line import interface_corr
|
|
if __name__ == '__main__':
|
|
ROI_path,image_high = interface_roi()# 注意选区修改
|
|
interface_corr(ROI_path)
|
|
imgArr = mtf.Helper.LoadImageAsArray(ROI_path)
|
|
# imgArr = mtf.Helper.LoadImageAsArray(image_path)
|
|
res = mtf.MTF.CalculateMtf(imgArr, image_high,# 可选: 'C/Mrad','LP/mm','L/mm','Cycles/mm','Cycles/pixel','LP/PH','LW/PH'
|
|
pixel_size_mm=0.002,x_range=None, x_unit='LW/PH',verbose=mtf.Verbosity.DETAIL)
|
|
|
|
|