class DiskMatrix(_ImageBuiltin):
def apply(self, r, evaluation):
"DiskMatrix[r_?RealNumberQ]"
return from_python(skimage.morphology.disk(r).tolist())
class DiamondMatrix(_ImageBuiltin):
def apply(self, r, evaluation):
After Change
for y in range(-s, s + 1):
yield [m[int((x) * (x) + (y) * (y) <= r_sqr)] for x in range(-s, s + 1)]
return _matrix(rows())
class DiamondMatrix(_ImageBuiltin):
def apply(self, r, evaluation):