Point space:

Dilated:

I used dilation (morphological process) but this is not the result i expected. I want more smooth regions, not squares. How to define contours and fill in them? Maybe i can use k-means like algorithms to het regions from points. Help please.