dendrograms/dendro-core — pull request #10 by astrofrog (2012-10-31 07:52:36+00:00)
Title: Example custom merge test function

This is an example implementation of what I was suggesting in #7.

The default:

```
d = Dendrogram.compute(image)
```

is equivalent to

```
d = Dendrogram.compute(image, merge_test_function=lambda n, c, i: False)
```

and another extreme example is:

```
d = Dendrogram.compute(image, merge_test_function=lambda n, c, i: True)
```

which will create a tree with a single structure (i.e. 'always merge'). If we decide to go ahead with this, I will add tests.