- image_s = pcf.hough(size, image.tostring(), initial_angle, dt)
- image_t = Image.fromstring('L', size, image_s)
- return cls(size, dt, initial_angle, image_t)
+ return cls(size, dt, initial_angle)
+
+ def transform(self, image):
+ image_s = pcf.hough(self.size, image.tostring(), self.initial_angle,
+ self.dt)
+ image_t = Image.fromstring('L', self.size, image_s)
+ return image_t