'**SUMMARY**
Returns a set of pixels where the line intersects with the binary image.
**RETURNS**
list of points.
**EXAMPLE**
>>> img = Image("lenna")
>>> l = img.findLines()
>>> c = l[0].imgIntersections(img.binarize())'

def imgIntersections(self, img):

    pixels = []
    if (self.slope == float('inf')):
        for y in range(self.end_points[0][1], (self.end_points[1][1] + 1)):
            pixels.append((self.end_points[0][0], y))
    else:
        for x in range(self.end_points[0][0], (self.end_points[1][0] + 1)):
            pixels.append((x, int((self.end_points[1][1] + (self.slope * (x - self.end_points[1][0]))))))
        for y in range(self.end_points[0][1], (self.end_points[1][1] + 1)):
            pixels.append((int((((y - self.end_points[1][1]) / self.slope) + self.end_points[1][0])), y))
    pixels = list(set(pixels))
    matched_pixels = []
    for pixel in pixels:
        if (img[(pixel[0], pixel[1])] == (255.0, 255.0, 255.0)):
            matched_pixels.append(pixel)
    matched_pixels.sort()
    return matched_pixels
