No, I’d recommend the rasterized approach. I’d assume that would work pretty well when smoothed out over a relatively fine grid. This would be fairly similar to the loss function used for segmentation I think.