Using image processing for surface rughness measurment