We present a general construction of functions whose moments serve to locate and parametrize step edges within an image. Previous use of moments to locate edges was limited to functions supported on a circular region, but our method allows the use of "custom-designed" functions supported on circles, rectangles, or any desired shape, and with graphs whose shape may be chosen with great freedom. We present analyses of the sensitivity of our method to pixelization errors or discrepancy between the image and an idealized edge model. The parametric edge description yielded by our method makes it especially suitable as a component of wedgelet image coding.