The heart of the reduction in grating interferometry is to fit the sinusoid parameters. nGITool offers several estimators to perform this fitting task.
Least squares fit, traditional as published by
Best linear unbiased estimator, robust against outliers and better noise suppression.