Naive Methods
All crops are from the same panel. Mouse over the images to flip with our result.
MRF Optimization
Instead of hard thresholding we use the "signed distance" values from the previous naive test as soft dataterms and solve a MRF optimization problem. The results are smoother, but it is still not possible to find a single setting that works well across the whole image.
Input
Signed distance (scaled to [0,1] range)
Our result (not vectorized)
MRF solution with signed distance dataterm -0.15
MRF solution with signed distance dataterm -0.10
MRF solution with signed distance dataterm -0.05
MRF solution with signed distance dataterm +0.00
MRF solution with signed distance dataterm +0.05
MRF solution with signed distance dataterm +0.10