Generate labels either as boundary/not-boundary or as affinity graph
Crop raw images before applying filters