Machine vision algorithms and applications