Homogenize euqlize_adapthist output independent of input dim