A study of the application of the method of magnetic resonance imaging in stroke to determine the damaged areas of the vessels in the left hemisphere of the brain. Automated algorithm for segmentation of lesions and correction of existing health data.