This removes smaller, dark features:
Dilation of a binary image:
Dilation can be used to perform a min 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 dilation operation:
This gets the memory back to the CPU: