A method and apparatus for measuring current by a single sensor for two motor phases driven by first and second set of switches to drive respective first and second phases of a motor under control of PWM signals. In accordance with the method, a first substrate is provided which has a patterned surface. Then, the image data of the frame in the plurality of frames is corrected with the gamma tables.