ReadImageAsWeightFunction(str,t):: String, Int --> RegCWComplex, Function

Reads an image file identified by a string str such as "file.bmp", "file.eps", "file.jpg", "path/file.png" etc., together with an integer t. It constructs a 2-dimensional regular CW-complex Y from the image, together with a weight function w\colon Y\rightarrow \mathbb Z corresponding to a filtration on Y of filtration length t. The pair [Y,w] is returned.