I want to convert images of GoL configurations into binary matrices to run in Mathematica's CellularAutomaton
. I know that there's a collection of GoL patterns in http://conwaylife.com and other sites, but I want to do this from images, as sometimes the same pattern is named differently by different people.
Other than using Binarize
or MorphologicalBinarize
, I don't know which image processing functions of Mathematica would be helpful.
So far I've got:
Manipulate[
bin = MorphologicalBinarize[imag, {t1, t2}], {t1, 0, 1, 0.1}, {t2,
0, 1, 0.1}] (* find the appropriate thresholds for the image *)
MorphologicalComponents @ bin // ArrayPlot
and I'm thinking about doing some clustering and deletion of duplicates.