Incorporate weighted color (tiagos changes) and filter rois that are close than 40cm