Application of Clique-Top library to the images.
The "image_processing.m" file contains script to load an image (one of the two present in the repo), convert it to grayscale, reduce the image size 6 times (arbitrarly chosen number). Then thresholding and binarization is applied to the image- pixels which values are within the thresholds are converted to max grayscale values, other pixels are converted to minimal values. The maximal-value pixels are treated then as set of point cloud and the Euclidean distance between them is evaluated. After that, betti curves are computed for symetric matrix (which is result of distance computation) using the cliquetop library. This procedure is based on the [1].
This script loads symetric matrices of random, geometric and shuffeled form, and then betti curves are computed.
[1] T. Kaczynski, K. Mischaikow, and M. Mrozek, Computational homology. Pages:268-269
[2] C. Giusti, V. Itskov, C. Curto, CliqueTop library. Address: https://github.com/nebneuron/clique-top
[3] Matt J., mat2tiles library. Address: https://uk.mathworks.com/matlabcentral/fileexchange/35085-mat2tiles-divide-array-into-equal-sized-sub-arrays