Added local minimum detection + incomplete (mean) color model.