Optical transmission measuring device and method of measurement