Erosion reduces smaller, light features:
Erosion of a grayscale image:
Erosion operates on each color channel independently:
Erosion can be used to perform a max filter on an input list:

works with graphics objects:
Using
CUDAMemory, one can speed up computation by reducing the amount of memory operations. This loads memory onto the CPU:
This performs the erosion operation:
This gets the memory back to the CPU: