Optimal column density measurements from multiband near-infrared observations