A method and system for measuring motion of a user's body part for motor rehabilitation after impairment. The system utilizes a two-dimensional optical acquisition system for detecting three-dimensional motions of at least one body part of a user for motor rehabilitation after impairment.