Measurement of yarn hairiness by digital image processing