Switch to MarchingSquareAlg. Documentation.