Segmentation Update

Indeed the third segmentation method described in the previous post is working well enough for now. It does appear to be very stable over time. Early indications are that for two perceptually identical frames, one with 183 and the other with 192 patches, using simply the distance between patch centres, 183 of the patches will be merged. These results are slightly suspect though, as the code used to actually merge percepts has some bugs and requires a rewrite. Still, over 20 frames, the top-left (first) patch was very stable across all these frames. Following is a sample reconstruction. In order to remove edge effects (resulting from morphology), the images are cropped, which seems to have thus far solved the patch-the-size-of-the-whole-frame-problem described earlier.