Image analysis dedicated to polymer injection molding