Extracts edges from each patch of the given class. Edge width can specified by multiplying the cellsize.