dilate/erodeをseparateRGBAとcombineRGBAで挟むとか?
あれ単体だと色情報は渡してくれないのかな?
https://docs.blender.org/manual/en/dev/compositing/types/filter/dilate_erode.html