1. A method of performing multipoint tracking, the method comprising: receiving raw data of an image; calculating line average values for a plurality of lines of the raw data; filtering the raw data according to the line average values to generate filtered data; performing a dilation algorithm on the filtered data to generate dilated data; performing an erosion algorithm on the dilated data to generate eroded data; performing edge detection on the eroded data for identifying touch regions of the eroded data; performing a labeling algorithm on the touch regions; calculating centers of gravity for the touch regions; and generating a multipoint tracking result according to the centers of gravity.