A machine vision system for in-situ quality inspection in metal powder-bed additive manufacturing