Messing around with structure tensor