Image analysis automation of spheroidal cast iron