The method of edge detection based on the sharpen control filter to the maximum marginal curve's inclination has been developed. The mode of operation of the proposed method has been described, examples of processing medical images, including X-ray images and images obtained by capillaroscopy have been provided; a comparative analysis of the treatment effect has been made.