added matlab code for babara image calculation