On Mon, Jun 13, 2011 at 5:03 PM, Gael Varoquaux <gael.varoqu...@normalesup.org> wrote: > Hi, > > You can probably find some inspiration from > https://github.com/scikit-learn/scikit-learn/blob/master/scikits/learn/feature_extraction/image.py > > Gaël
Hi Gaël, I don't know if I understand. The idea is to use _make_edges_3d to give me the connectivity, isn't it? Like for example, a 3x3 image: 0, 1, 2 3, 4, 5 6, 7, 8 If I use _make_edges_3d(3, 3) I get: array([[0, 1, 3, 4, 6, 7, 0, 1, 2, 3, 4, 5], [1, 2, 4, 5, 7, 8, 3, 4, 5, 6, 7, 8]]) So, for example, the pixel 4 is connected with 3, 5, 7 and 1 (connectivity 4). Is it? The problem is I need to work with connectivity 26 in 3D images, or 8 in 2D images. I'm not able to understand the code so well to apply to those connectivity I said (8 and 26). Do you think it is possible? Thanks Gaël, > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion