def get_radiance_for(self, mean=None, exposure=None): """Radiance to achieve saturation. Calls the :func:`~emva1288.camera.routines.get_radiance` function to get the radiance for saturation. Parameters ---------- mean : float, optional The saturation value of the camera. If None, this value is set to the :attr:`img_max` attribute. exposure : float, optional The camera's exposure time at which the radiance for saturation value will be computed. If None, the exposure time taken will be the camera's actual exposure time. Returns ------- float : The radiance at which, for the given saturation value and the given exposure time, the camera saturates. """ if not mean: mean = self.img_max if not exposure: exposure = self.exposure ud = self._u_therm() ue = (mean / self.K) - ud up = ue / self._qe radiance = routines.get_radiance(exposure, self.environment['wavelength'], up, self.pixel_area, self.environment['f_number']) return radiance
def get_radiance_for(self, mean=None, exposure=None): """Radiance to achieve saturation""" if not mean: mean = self.img_max if not exposure: exposure = self.exposure ud = self._u_d() ue = (mean / self.K) - ud up = ue / self._qe radiance = routines.get_radiance(exposure, self._wavelength, up, self._pixel_area, self._f_number) return radiance
def get_radiance_for(self, mean=None, exposure=None): """Radiance to achieve saturation. Calls the :func:`~emva1288.camera.routines.get_radiance` function to get the radiance for saturation. Parameters ---------- mean : float, optional The saturation value of the camera. If None, this value is set to the :attr:`img_max` attribute. exposure : float, optional The camera's exposure time at which the radiance for saturation value will be computed. If None, the exposure time taken will be the camera's actual exposure time. Returns ------- float : The radiance at which, for the given saturation value and the given exposure time, the camera saturates. """ if not mean: mean = self.img_max if not exposure: exposure = self.exposure ud = self._u_therm() ue = ((mean / self.K) - ud)/len(self._qe.w) ue *= np.ones(len(self._qe.w)) up = np.zeros((self.height, self.width, len(self._qe.w))) up[:, :] = ue / self._qe.qe.mean() radiance = routines.get_radiance(exposure, up, self.pixel_area, self.environment['f_number'], self._qe.w) return radiance
def get_radiance_for(self, mean=None, exposure=None): """Radiance to achieve saturation. Calls the :func:`~emva1288.camera.routines.get_radiance` function to get the radiance for saturation. Parameters ---------- mean : float, optional The saturation value of the camera. If None, this value is set to the :attr:`img_max` attribute. exposure : float, optional The camera's exposure time at which the radiance for saturation value will be computed. If None, the exposure time taken will be the camera's actual exposure time. Returns ------- float : The radiance at which, for the given saturation value and the given exposure time, the camera saturates. """ if not mean: mean = self.img_max if not exposure: exposure = self.exposure ud = self._u_d() ue = (mean / self.K) - ud up = ue / self._qe radiance = routines.get_radiance(exposure, self._wavelength, up, self.pixel_area, self._f_number) return radiance