Utilizing Minkowski functionals for image analysis: a marching square algorithm | Synapse