The purpose of any line filter algorithm is to generate a line that is similar to the input line, but with fewer points. This can save storage space and speed up processing.