Matlab image segmentation and smoothing for pies on a conveyor belt.