Re: Implement sobel filter
Claudio <[email protected]> Thu, 1 Sep 2011 14:59:49 +0200
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <CADDB2t5PMckQ=9Bdfo2UWTF6YV1dqGa-vB1K_hzjNPftZcnqJw@mail.gmail.com> |
2011/8/31 Guilherme Polo <[email protected]>: > > Now I see that I'm very naive with PIL, I don't know how to achieve > exactly the same result using only PIL. Hello Guilherme, thanks for your help. I appreciate your implementation using scipy and I also implement a "discrete" version using raw data from load method. Googling a bit I found a gaussian filter http://rcjp.wordpress.com/2008/04/02/gaussian-pil-image-filter/ implemented using a matrix and ereditate function from ImageFilter class. Now probabily this is another way to apply a matrix to each point of an image in PIL but there are difference between that way and my initial implementation with ImageFilter.Kernel: ximg = img.filter(ImageFilter.Kernel((3,3), dx, None, 0)) There is some PIL developer that can answer my question here? -- Claudio pub 1024D/0DFD7CBB C94D 759A 2EF0 172F 9673 65E4 C4C1 8627 0DFD 7CBB _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig