this is an implementation of Kevin Chen's bilateral grid filter on the IOS