Flow chart of the two-stage algorithm automatically recognizing ROI and L
areas. At the first stage skin area affected by the treatment procedure is segmented (ROI). At the second stage, individual L
areas are segmented and their position is approximated by a square area. In consequence, percentage values of areas non-covered by laser treatment and areas with overlapping irradiation dose can be calculated.