Fusion of spatially constrained attributes with kernelized ranking for person re-identification