Method for correcting residual optical defects
The method uses first and second calibration tables with adaptation factors to address residual optical defects in infrared camera images, ensuring consistent image quality across varying focal lengths and temperatures, improving visibility and reducing noise.
Patent Information
- Application Number
- FR2023010711
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-10-06
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-10-06
AI Technical Summary
Existing methods for correcting optical defects in infrared camera images fail to address residual defects that occur after one-point calibration, particularly when the camera's focal length or field of view changes, leading to non-uniformities and visible defects.
A method involving first and second calibration tables, along with adaptation factors, is used to correct residual optical defects by accounting for variations in focal length, integration time, and internal camera temperature, ensuring consistent image quality across different fields of view.
The method effectively corrects residual optical defects, enhancing image quality by homogenizing the acquired image, making distant targets more visible and eliminating spatial additive noise without altering the image's integrity.
Smart Images

Figure 00000025_0000 
Figure 00000025_0001 
Figure 00000025_0002
Abstract
Description
Title of the invention: Method for correcting residual optical defects TECHNICAL FIELD OF THE INVENTION
[0001] The technical field of the invention is that of correcting optical defects in an image acquired by an IR camera having a cooled detector.
[0002] The present invention relates to a method for correcting residual optical defects in an image acquired by a cooled and previously calibrated IR camera. TECHNOLOGICAL BACKGROUND OF THE INVENTION
[0003] In an infrared camera, each optical element generates a parasitic and spatially homogeneous thermal flux. In theory, the parasitic flux emitted by the cryogenic detector of the camera can be imaged very diffusely by the detector or is not imaged at all.
[0004] Thus, the parasitic thermal flux of the camera can be modeled as a spatially homogeneous background noise and directly linked to the ambient temperature of the optical elements of the camera, excluding the detector. This phenomenon is due to a radiative transfer between the internal optical elements of the camera up to its detector. [Fig.l] thus shows a graph of the temperature T of the parasitic flux received by the detector on the central line of the detector (and therefore on the central line of the image it produces), the abscissas corresponding to the pixels Pi_c of the central line. The graph is constant due to the homogeneity of the background noise and is equal to an observed temperature Te.
[0005] However, in some cases, the optical configuration of the infrared camera is the cause of reflections of thermal flux emitted by the cryogenic detector of the camera which receives and images its own cold thermal flux. A thermal flux being all the greater as the temperature of a thermal source to be imaged by the camera is high, the cold flux of the cryogenic detector acts as a jump in the thermal flux received by the camera, the flux of the detector being colder than the flux of the thermal camera.
[0006] As a result, the thermal transfer emitted by a source to be imaged is altered and the flux received by the detector is composed of two fluxes: the thermal flux from the camera and the cold flux from the detector. The cold flux coming from the detector thus replaces the homogeneous parasitic hot flux coming from inside the camera.
[0007] This results in a temperature gradient on the detector, resulting in a gradient in “gray levels” and therefore a non-uniformity of parasitic noise on the image. The shape of the non-uniformity depends on the shape of the detector and the optical configuration of the camera. The intensity of the non-uniformity depends on the different temperatures in the camera, for example the detector temperature and the ambient temperature, as well as the integration time for example. [Fig.2] is a graph representing the temperature of the flux received by the detector, at the pixels Pi_c of the central line of the detector. In particular, [Fig.2] is a graph representing the temperature T of the flux received by the central line of the detector, part of which has a temperature corresponding to the temperature Te of the flux received by the camera, and part of which has a parasitic temperature Tp depending on the temperature Td of the flux emitted by the detector and the temperature Te. In particular, the temperature Tp can be equal to: Tp = ¢1 - Q)*Tc + Q*Td> with corresponding to the proportion of parasitic flux from the camera replaced by the parasitic flux from the detector. The higher the reflection from the detector, the higher G.
[0008] When using a cooled infrared camera, it is possible to correct the non-uniform detector noises mentioned above by a one-point calibration process for example.
[0009] The one-point calibration of a cooled infrared camera consists of an adjustment of a gain table G and an offset table O (from the English "offset"), the adjustment being carried out from a defocused image or from a diaphragm (from the English "shutter") used to obtain an image assumed to be uniform on the sensor.
[0010] In particular, the response of a pixel to a flux can be modeled by a linear function characterized by a direction coefficient which represents a gain and an ordinate at the origin which represents an offset (commonly called offset). Each pixel has its own gain and its own offset. Consequently, upon receipt of a uniform luminous flux, the gray levels generated by the pixels differ, which results in the appearance of non-uniformities on the image generated by the camera.
[0011] [Fig.3] shows an example of the response of a PI pixel and the response of a pixel P2 distinct from PI, the response of a pixel corresponding to gray level values N as a function of the luminance L which depends on the temperature T of the received flux. Thus, in [Fig.3], each pixel response has a different steering coefficient - and therefore a different gain, and a different ordinate at the origin - and therefore a different offset.
[0012] In order to eliminate pixel non-uniformities, it is necessary that the pixels have the same gain and the same offset. A correction is carried out by applying the one-point calibration method, from a gain table G and an offset table O, which each have the same dimensions as the detector matrix.
[0013] The gain table G is expressed in the form of a table of coefficients, each coefficient being multiplied to a pixel of the same position. The gain table G is determined in the factory before the camera is put into service, for example. After its application, all the pixels have the same response to a given flux variation and their characteristic functions therefore have the same slope coefficient. The gain table can be determined by performing the first-order partial derivative of two images taken at two different scene temperatures. In particular, the partial derivative is performed with respect to the luminance parameter which depends on the temperature.
[0014] The offset table O is additive relative to the flow received by each of the pixels, and is therefore expressed in the form of a table of factors applied to each of the pixels, determined during operation of the camera.
[0015] A shift table O is obtained from the image of a scene acquired in front of a diaphragm and noted diaphragm, multiplied by the gain table G. In particular, the shift table O is obtained from the following formula:
[0016] O = Idiaphragm*G - AveragefdiaphragmM' Each Pixel of Average(ldiaphragmM includes the average of all pixels in the matrix Idiaphrasm*Gr. After its application, all pixels will have the same response to a given flux in the configuration where the calibration was carried out.
[0017] [Fig.4] is a block diagram of a one-point calibration method 100, based on a gain table G determined according to the method described previously. The method 100 includes a step 101 of shuttering the camera. In particular, the optical defects seen and corrected by the camera are not the same depending on the shuttering method chosen, the shuttering being able to be carried out by defocusing, or by placing the diaphragm of the camera in front of the entire optical path or in front of the sensor.
[0018] The method further comprises a step 102 of calculating and applying an integration time. The method then comprises a step 103 of acquiring an image of the diaphragm Idiaphragm then a step 104 of constructing the offset table O determined according to the preceding formula. Steps 101 to 104 correspond to the camera calibration phase.
[0019] Furthermore, the method 100 comprises a step 105 of acquiring any image Im by an operator with the integration time, then a step 106 of multiplying the acquired image by the gain table G and finally a step 107 of subtracting the shift table O, which makes it possible to obtain in theory a final image Imf free from intrinsic defects of the detector and parasitic fluxes due to the camera.
[0020] In particular, if step 101 of the calibration method is carried out with a diaphragm in front of a specific optical field, all defects of the “optical reflection” type will be perfectly corrected. However, if there is a change in the camera field, the offset table O is no longer valid, i.e. it does not correct plus "optical reflection" type defects because optical defects vary with the field. In the case of known cameras, calibration by the O offset table is carried out in a specific optical configuration called the calibration field during which the flux coming from the scene is averaged on the sensor. Thus, the O offset table corrects the defects seen only in this specific optical configuration. Non-uniformity or offset defects (differences between the ordinates at the origin of the pixel responses) in the usual fields are not corrected because it is currently not known how to calculate an offset table in real time on the usual fields, at the risk of embedding the visible scene in the offset table. In particular, if a defect appears locally in a field where the O offset table has not been made, it is not corrected.This phenomenon is even more visible if the camera has a continuous zoom and can image multiple fields.
[0021] If step 101 of the calibration method is carried out by “defocusing”, i.e. if the optics are moved to defocus the image to the extreme (calibration field), the optical reflection defects – if there are any – are no longer present. Thus, when the offset table O is produced in this case, the “optical reflection” type defects are not taken into account and only the intrinsic defects of the detector are corrected. When the camera “refocuses” the image, the image is calibrated but the reflection defects are still visible because they were not present, i.e. not visible, when the offset table O was generated.
[0022] As a result, non-uniformities or residual optical defects, caused by parasitic fluxes internal to the camera, may remain present on the image despite a one-point calibration as described previously.
[0023] There is therefore a need to correct residual optical defects in an acquired and calibrated image. Summary of the invention
[0024] The invention provides a solution to the problems mentioned above, by making it possible to determine the residual optical defects of an image acquired at a given and calibrated focal length. The residual optical defects of the image are determined from at least one calibration table comprising amplitude values of the residual defect for the given focal length and an adaptation factor making it possible to take into account the differences in acquisition conditions between the calibration table and the acquired image to correct the residual optical defects.
[0025] One aspect of the invention relates to a computer-implemented method of correcting residual optical defects in an image acquired by a camera with a given focal length, the acquired image being calibrated, the residual optical defects being relative to the given focal length, the method comprising: • Obtain a correction of residual optical defects in the acquired image, the correction depending on: • a first calibration table corresponding to an amplitude of the residual optical defects at the given focal length and; • a first adaptation factor between the first calibration table and the acquired image, • Obtain a second image corrected for residual optical defects from the acquired calibrated image and the correction, by subtracting the correction from the acquired image.
[0026] The term "the acquired image being calibrated" means an image on which a calibration method of the one-point calibration type, for example, is applied. Thus, on a calibrated image, the defects intrinsic to the camera detector are corrected. In particular, if the shift table (or offset) of the calibration method was obtained from a diaphragm in front of a specific optical field, all the defects of the "optical reflection" or "parasitic defects" type are also corrected in the calibration field only and not in other fields. If the shift table is obtained by defocusing, the defects of the "optical reflection" or "parasitic defects" type are not corrected in any field. Thus, the optical reflection defects or parasitic optical defects are called residual optical defects in the following.
[0027] In particular, defects of the “optical reflection” or “parasitic defects” type are Narcissus defects, due to non-uniformities created from parasitic thermal fluxes emitted by the camera detector, which are reflected on at least one optic of the camera and are imaged on the detector. The residual optical defects depend on the field (or equivalently the focal length) of the camera. The residual optical defects are distinct from the intrinsic defects of the camera detector and are modeled as spatial additive noise. Thus, residual optical defects are present in the acquired image after its calibration.
[0028] In particular, a given field of observation of the camera corresponds to a given focal length F'd of the camera lens. The given field of observation is defined by an angle called field angle ad expressed according to the following formula: ad = 2*arctan( ....4......), with d the length of an edge or a diagonal of an image acquired by the 2*F'd camera.
[0029] Thanks to the invention, the residual optical defects of an acquired and calibrated image are corrected from the first calibration table associated with the same field (or equivalently with the same focal length) as that of the image acquired and calibrated in the factory for example. In particular, the adaptation factor makes it possible to adjust the amplitude of the first calibration table in order to bring the residual optical defects of the image closer to the original image. acquired with residual optical defects calibrated in the factory. The first adaptation factor can take into account the integration time of the camera during the acquisition of the image to be corrected and that used in the factory for the calibration table, the amplitude of the residual optical defects depending on the integration time for example. Thus, the invention allows an increase in the quality of restitution of the information of the acquired image by homogenizing the acquired image, unlike the state of the art in which only the defects due to the pixels of the detector are corrected. The reading of the acquired image by a user is improved and details are more visible when it is necessary to observe a distant target for example. Advantageously, the invention makes it possible to eliminate any optical defect modeled as spatial additive noise in the field considered, regardless of its shape or geometry, without altering the acquired image.
[0030] In addition to the characteristics which have just been mentioned in the preceding paragraph, the method according to one aspect of the invention may have one or more complementary characteristics among the following, considered individually or according to all technically possible combinations.
[0031] According to one embodiment, the correction comprises a product of the first adaptation factor and the first calibration table.
[0032] According to one embodiment, the residual optical defects are parasitic thermal flux defects associated with the given focal length and are modeled by spatial additive noise. Advantageously, any optical defect relating to a given focal length and modelable by spatial additive noise can be corrected by the invention.
[0033] According to one embodiment: • the first calibration table is associated with a camera calibration integration time and an internal camera calibration temperature and, • the image is acquired for a given integration time of the camera and for a given internal temperature of the camera and the first adaptation factor is determined from the calibration integration time, the given integration time, the calibration internal temperature and the given internal temperature of the camera, the first adaptation factor being determined from the calibration integration time, the given integration time, the internal calibration temperature and the given internal temperature. Advantageously, the first adaptation factor makes it possible to take into account the different acquisition conditions of the image to be corrected and of the calibration table. In particular, the first adaptation factor takes into account the integration time of the camera on which the amplitude of the residual optical defects depends. Thus, the first adaptation factor varies when the integration time varies.
[0034] According to one embodiment, the first adaptation factor is defined as a product: • A ratio of the given integration time and the calibration integration time, and • A ratio of the given internal temperature and the calibration internal temperature.
[0035] According to one embodiment, the first adaptation factor is defined as a product: • A ratio of the given integration time and the calibration integration time, and • A ratio of a luminance obtained from the given internal temperature and a luminance obtained from the internal calibration temperature.
[0036] According to one embodiment, the correction further depends on: • a second calibration table corresponding to a variation in the amplitude of the residual optical defects as a function of a variation in the internal temperature of the camera for the given focal length, and • a second adaptation factor between the second calibration table and the acquired image.
[0037] According to one embodiment, the first calibration table is associated with a calibration integration time of the camera and with an internal calibration temperature of the camera, and the image is acquired for a given integration time of the camera and a given internal temperature of the camera and according to which: • the first adaptation factor is determined from the calibration integration time and the given integration time, • the second adaptation factor is determined from the first adaptation factor, the given internal temperature and the calibration internal temperature.
[0038] According to one embodiment, the first calibration table is associated with a calibration integration time of the camera and an internal calibration temperature of the camera, and the image is acquired for a given integration time of the camera and a given internal temperature of the camera and: • the first adaptation factor is determined from the calibration integration time and the given integration time, • the second adaptation factor is determined from the first factor, a luminance obtained from the given internal temperature and a luminance obtained from the internal calibration temperature.
[0039] According to one embodiment, the first adaptation factor and the second adaptation factor are respectively equal to a first initial value and a second initial value and obtaining the correction comprises: • Obtain an intermediate image by subtracting an intermediate correction from the acquired image, the intermediate correction being determined from the first adaptation factor equal to the first initial value, the first calibration table, the second adaptation factor equal to the second initial value and the second calibration table, • Optimization of a criterion relating to the intermediate image, by obtaining a first optimal adaptation factor and a second optimal adaptation factor, the correction of residual optical defects being determined from the first optimal adaptation factor and the second optimal adaptation factor.
[0040] According to one embodiment, the residual optical defects are modeled as a radial geometry defect and the optimization of the criterion comprises a step of applying a filter adapted to the radial geometry of the defect to the intermediate image to obtain a filtered intermediate image and the criterion corresponds to a variance of the filtered intermediate image. For example, the filter adapted to the radial geometry is a gradient filter or a Laplacian filter.
[0041] Another aspect of the invention relates to a computer program product comprising instructions which, when the program is executed by a computer, cause the latter to implement the method according to the invention.
[0042] Another aspect of the invention relates to a computer-readable medium comprising instructions which, when executed by a computer, cause the latter to implement the method according to the invention.
[0043] The invention and its various applications will be better understood upon reading the following description and examining the accompanying figures. BRIEF DESCRIPTION OF THE FIGURES
[0044] The figures are presented for information purposes only and in no way limit the invention.
[0045] [Fig. 1] is a uniform graph of the temperature T of the parasitic flux received by the detector on the pixels Pi_c of the central line of the detector in the prior art.
[0046] [Fig.2] is a non-uniform graph of the temperature T of the parasitic flux received by the detector on the pixels Pi_c of the central line of the detector in the prior art.
[0047] [Fig. 3] represents the responses of two pixels to a luminance originating from a thermal flux, corresponding to graphs of the gray levels at each pixel as a function of the luminance received by the pixel in the prior art.
[0048] [Fig.4] is a block diagram representing a state-of-the-art method of correcting non-uniform defects on an image, corresponding in particular to detector defects.
[0049] [Fig.5] is a block diagram showing the steps of a method for determining the first calibration table.
[0050] [Fig.6] is a block diagram showing the steps of a method for determining the second calibration table.
[0051] [Fig.7] is a block diagram representing the steps of a correction method according to the invention.
[0052] [Fig.8] is a block diagram representing the sub-steps of a step of determining a correction of residual optical defects of the correction method according to the invention.
[0053] [Fig.9] represents three graphs corresponding to an amplitude of optical defects on the central line of an image.
[0054] [Fig. 10] is a diagram showing a device configured to implement the method according to the invention. DETAILED DESCRIPTION
[0055] The invention relates to a method for correcting residual optical defects in an image acquired by an infrared camera, preferably the infrared camera having a detector cooled to a constant temperature.
[0056] The camera is located for example in an aircraft or in an observation viewfinder located in a land vehicle and acquires for example images which can be displayed in real time or later to a user of the aircraft or the land vehicle for example.
[0057] "Infrared camera" means a camera configured to measure and record heat waves and infrared radiation emitted by a body or object, in order to generate so-called infrared image sequences. The camera is, for example, a Short-Wave Infrared (SWIR), Long-Wave Infrared (LWIR) or Midwave Infrared (MWIR) type camera.
[0058] In particular, the camera comprises a zoom, that is to say a lens with a variable focal length that can be adjusted by a user. In the following, "focal length" and "focal length" will be confused. As described above, the field of observation of the camera is inversely proportional to the focal length.
[0059] In particular, the infrared camera comprises an infrared detector, formed for example from a matrix of FPA (Focal Plane Array) type detectors.
[0060] In particular, the images acquired by the camera may be grayscale images.
[0061] When an image of a scene is acquired by the camera, it includes parasitic optical defects or reflection defects resulting from the detector, the defects depending on the field of view of the camera. In particular, the lens of the camera comprises a front lens on which parasitic optical thermal fluxes coming from the cooled detector of the camera are reflected and imaged on said detector. When the configuration of the lens is modified to change the focal length of the lens and therefore the field of view of the camera, the optical path of the parasitic fluxes is modified, which modifies their impact on the image acquired by the camera. In other words, the optical defects resulting from parasitic thermal fluxes depend on the focal length of the camera and therefore vary when the focal length varies. These optical defects are called parasitic optical defects or internal reflection optical defects and can be of any geometry, for example a radial or square geometry.In particular, the geometry of parasitic optical defects has rotational symmetry.
[0062] For example, when the camera is calibrated using method 100, the steps of which are shown in [Fig. 4] and have been described previously, the optical defects of internal reflection (due to the detector) are corrected for a given field if the shuttering is carried out by a diaphragm, or are not corrected (because they are not visible) if the shuttering is carried out by defocusing. Thus, as described previously, optical defects of internal reflection depend on the field of the camera, the one-point calibration method described in method 100 does not allow them to be eliminated if the shift table (or offset) was obtained for a different field or was obtained by defocusing (and not by the use of a physical diaphragm).
[0063] The offset table used in the one-point calibration method and the image acquired in real time are each obtained for a camera integration time and an internal temperature of the camera which may be equal to or different respectively from the internal temperatures and integration time of the camera during the acquisition of an image in real time.
[0064] In particular, the amplitudes of the optical defects of internal reflection of the detector vary according to the internal temperature and the integration time of the camera.
[0065] "Internal temperature of the camera" means the temperature acquired near the optics of the camera lens and in particular near the front lens of the lens for example. In the following, any internal temperature value of the camera is included for example in the interval [-20; +70] °C.
[0066] In the remainder of the writing, the optical reflection defects present in an image after calibration, in particular after the application of a one-point calibration method, are called residual optical defects. The correction method according to the invention thus aims to correct the residual optical defects, for each given focal length F'd and each temperature and integration time, without having to redo a one-point calibration method (method 100). According to the invention, the correction of these defects is carried out from a first calibration table Old and a second calibration table O2d, each calibration table being associated with the given focal length F'd.
[0067] The first calibration table Old associated with the given focal length F'd has the same size as the size of a matrix of the camera detector, and therefore the same size as the image to be corrected, and corresponds to a matrix of amplitudes of the residual optical defects for the given focal length F'd. In particular, each coefficient of the first calibration table corresponds to an amplitude of the residual optical defects for a given position of a pixel of the camera detector.
[0068] The second calibration table O2d has the same size as the size of the matrix of the camera detector, and therefore the same size as the image to be corrected, and corresponds to a matrix modeling variations in the amplitudes of the residual optics as a function of the variations in the internal temperatures of the camera for the given focal length F'd. In particular, each coefficient of the second calibration table corresponds to a value of variation in the amplitude of the residual optical defects for a given position of a pixel of the camera detector.
[0069] Examples of determining the first and second calibration tables are described in the rest of the writing.
[0070] In particular, for each focal length F'i, the first calibration table O h associated with the focal length F'i can be determined according to a method for determining the first calibration table. [Fig.5] presents a block diagram of the steps of the method 200 for determining the first calibration table Ol; associated with the focal length F'; . In particular, each calibration table Ol; is associated with the camera's internal calibration temperature and the camera's calibration integration time.
[0071] The method 200 comprises a step 201 of acquisition by the camera of an image Isj of a thermal flux emitted by a homogeneous and isotropic source, for the focal length F'i of the camera, the internal calibration temperature Té calibration of the camera and the calibration integration time Té calibration of the camera which are stored by a user in a memory external to the camera for example.
[0072] The term "homogeneous and isotropic source" means a source emitting, for example, a thermal flux (or thermal radiation) similar to the thermal fluxes emitted by a black body, i.e. a homogeneous and isotropic thermal flux, the radiation of which depends only on the temperature and not on the directions in space, for example. Advantageously, the use of a source emitting radiation isotropic allows for a homogeneous scene and only the optical defects of the camera to be observed.
[0073] In practice, the source may be a heating plate covered entirely with black paint, and having a uniform, constant temperature that can be adjusted by a user. Thus, the source may be likened to a black body.
[0074] The thermal flux emitted by the source covers the entire pupil of the camera lens.
[0075] The method 200 comprises a step 202 of calibrating the image Isj according to the method 100 of one-point calibration of the camera in which the shuttering step corresponds to a defocusing. This makes it possible to correct the intrinsic defects of the detector but does not correct the reflection defects of the latter. The one-point calibration is carried out from the gain table G and the offset table O described previously. After the calibration step, an image of the calibrated source Is 2 j is obtained from the image of the source Isj, such that: Iszj = G*ISJ-0
[0076] The image Is 2 held corresponds to the image of the source Is j corrected for the defects of the detector and includes residual optical defects as mentioned previously, that is to say residual optical defects corresponding to parasitic thermal fluxes of the camera lens relative to the focal length F';.
[0077] The method 200 further comprises a step 203 of obtaining a third image IS3 j resulting from the subtraction of an average image of the image Is 2 j, denoted Average(IS2 j), from the calibrated image IS2 j. In particular, Average(IS2 j) corresponds to an image of the same size as IS2 j and each coefficient of which corresponds to the average of all the pixel values of IS2 j.
[0078] Thus, jS3J = I$2J _ Average^)-
[0079] According to a first embodiment, the first calibration table Coassociated with the focal length F'i corresponds to Is 3 and can therefore be noted: Olj = IS3 i.
[0080] Thus, the first calibration table OL can be obtained at the end of step 203.
[0081] According to a second embodiment, the method 200 comprises a step 204 optional spatial filtering of the third image Is 3j to obtain a filtered image F(Is 3_i).
[0082] The filtering may for example correspond to a spatial filtering of the image Is 3J in the case where intrinsic defects of the detector remain even after the calibration step 201, for example because of one or more defective pixels of the detector. In this second embodiment, the first calibration table Ol; may be equal to F(Is 3_i).
[0083] According to a third embodiment, the first calibration table O h is obtained at the end of optional steps not shown in the method 200, described below.
[0084] The method 200 may comprise a first optional step of carrying out steps 201, 202 and 203 at several different times t and obtaining a plurality of images (IS3_it)t>o
[0085] The method 200 may comprise a second optional step of averaging the images IS3i_t to obtain an average image Average(Is3it)t>o- In particular, the averaging step 206 corresponds to an averaging of each pixel value of each image IS3_it having the same position in the image. In other words, each coefficient at a given position of the image Average(Is 3jt)t >o corresponds to an average of the values of the pixels of the same position of each image Is 3_it.
[0086] The method 200 may comprise a third optional step of obtaining the first calibration table O h by subtracting the image Average(IS3_it) from the image IS3jt. Thus, oi. _ Average(lS3_it}
[0087] In particular, the third embodiment advantageously makes it possible to eliminate temporal noise present in the image Is3j, the temporal noise degrading the quality of the image by giving it a granular appearance.
[0088] According to an embodiment not shown, the optional steps are applied to the image F(IS3_i) following step 204.
[0089] The method 200 for obtaining the first calibration table Coassociated with the focal length F'i can be carried out for a plurality of M focal lengths / p> j , which makes it possible to obtain M first calibration tables Zq । \ each associated with a focal length K: <M different F'i, the index i being a natural integer. In particular, each first calibration table among the first M calibration tables is obtained for a different focal length but with the same internal calibration temperature and the same calibration integration time.
[0090] In particular, each first calibration table may be compressed before being saved in a memory for use. The compression method must be adapted to the spatial morphology of the residual optical defects represented by each first calibration table, in order to avoid any degradation of the quality of the first calibration table.
[0091] Concerning the second calibration table O2;, for each focal length F';, the second calibration table O2; associated with the focal length F'i can be determined according to a method for determining the second calibration table. [Fig.6] presents a block diagram of the steps of the method 300 for determining the second calibration table O2i associated with the focal length F';. In particular, each calibration table O2; is associated with the calibration integration time of the camera.
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098] The method 300 comprises a step 301 of acquisition by the camera of a first image IlSj of a thermal flux emitted by the source defined in the method of determining the first calibration table. In particular, the acquisition step 301 is carried out for the focal length F'i of the camera, at an internal calibration temperature Tletaionnage of the camera and with the calibration integration time Tletaionnage of the camera which are stored by a user in a memory external to the camera for example or in a memory of the camera. The method 300 further comprises a step 302 identical to step 202, the step 302 being applied to the image Ilsj and making it possible to obtain the calibrated image Ils 2 j. The calibrated image Ils 2 j corresponds to the image Ilsj corrected for the defects of the detector and comprising residual optical defects as described previously. The residual optical defects correspond to parasitic thermal fluxes of the camera lens for the focal length F';. The method 300 further comprises a step 303 of obtaining an image I1S3 j resulting from the subtraction of an average image of the image Ils 2 j, denoted Average(Il S2 j) from the calibrated image I1S2 j. In particular, Average(I1S2 j) corresponds to an image of the same size as I1S2 j and each coefficient of which corresponds to the average of all the pixel values of I1S2 j. Thus, Ils 3_i=HS2 j -Average(lls2 i} The method 300 further comprises a step 304 of varying the internal temperature of the camera, to obtain an internal temperature T2calibration of the camera different from T1 calibration- The variation of the internal temperature of the camera can be achieved by placing the camera in a temperature-adjustable oven for example. The method 300 comprises a step 305 of acquisition by the camera of a second image I2SJ of the thermal flux source defined in the method 200, for the focal length F'i of the camera, the internal calibration temperature T2etaiOnnage of the camera and the calibration integration time tetaiOnnage of the camera. The method 300 further comprises a step 306 identical to step 202, the step 306 being applied to the image I2Sj and making it possible to obtain the calibrated image I2S 2 j. The calibrated image I2S 2 j corresponds to the image I2s_i corrected for the detector defects and comprising residual optical defects as mentioned previously. The method 300 further comprises a step 307 of obtaining an image rS3 j resulting from the subtraction of an average image of the image I2S 2 j, denoted Average(I2 S2 j) from the calibrated image I2S2 j. In particular, Average(I2S2 j) corresponds to an image of the same size as I2S2 j and each coefficient of which corresponds to the average of all the pixel values of I2S2 j. Thus, I2s3J = I2S2 j - Average(l2S2j)-
[0099]
[0100]
[0101]
[0102] The method 300 comprises a step 308 of obtaining the second calibration table O2; from the image Ils 3J, the calibration temperature Tletaionnage, the image I2S 3J and the calibration temperature T2etaionnage- In particular, the second calibration table O2; makes it possible to estimate the variation of the residual optical defects as a function of the variation in internal temperature. An interpolation is carried out between the variation of the residual optical defects and the variation in internal temperature, the interpolation order being chosen according to predetermined criteria. Indeed, the higher the interpolation order, the more the quality of the images to be corrected for residual optical defects is improved because the relationship between the variation of the residual optical defects and the variation in internal temperature is more precise. However, the higher the interpolation order, the more complex the method 300 is to implement because a plurality of blackbody image acquisitions are required. In particular, the variation of residual optical defects can depend linearly and indirectly on the variation of luminance due to the variation of temperature. Indeed, the variation of residual optical defects depends linearly on the variation of luminance which depends on the temperature. Thus, the second O2 calibration table is obtained according to the following formula: 02: = — UT1 nS3J-i2s. [ l-LCP calibration / ■“calibration? , with L(T1 calibration) the integrated luminance generated by the
[0103]
[0104]
[0105]
[0106] temperature Tletation and L(T2etation) the integrated luminance generated by the temperature T9 A -^calibration* Thus, the integrated luminance is linked to the internal temperature T that the camera integrates (captures). The gray level captured by the camera depends on a multitude of sources. For the purposes of interpolation, a simulation of the variation of gray levels captured by the detector as a function of the internal temperature variation is carried out. The determination of the luminance as a function of the temperature (denoted L(T1) and L(T2)) is for example obtained via an infrared camera simulation method. In particular, the integrated luminance takes into account a fixed temperature T of a scene integrated by the camera and passing through the optics, the internal luminance of the camera (i.e., the photons leaving the camera and reaching the detector), and the dark current of the camera detector. When the infrared camera is placed in front of a scene of fixed temperature T, the internal temperature of the camera is varied in order to observe the evolution of the gray level variation as a function of the variation of the internal luminance of the camera. The integrated luminances are obtained from a resolution of the Planck equations in a context applied to the camera, that is to say by taking into account the variation of gray level depending on the variation of the internal luminance of the camera.
[0107]
[0108] Using luminance values as a function of temperature is advantageous because the luminance of a pixel in an image is modeled linearly as a function of its gray level, for any temperature. Thus, since luminance is linear with gray levels, the simulation is valid for all temperatures. The method 300 for obtaining the second calibration table O2; associated with the focal length F'i can be carried out for a plurality of M focal lengths j, which makes it possible to obtain M second calibration tables / q2 j each associated with a focal length '■ l <i<M different F';. In particular, each first calibration table among the first M calibration tables are obtained for a different focal length but with the same camera calibration integration time.
[0109] Thus, the method 200 represented in [Fig.5] and the method 300 represented in [Fig.6] respectively make it possible to obtain first and second calibration tables used in the method 400 for correcting residual optical defects according to the invention, the steps of which are represented in [Fig.7].
[0110] [Fig.7] in fact presents a block diagram of the method 400 for correcting residual optical defects according to the invention. In particular, the method 400 aims to correct the residual optical defects of an image Imd acquired for a given focal length F'd, by the camera described previously, and corrected for the defects of the detector thanks to the one-point calibration method for example.
[0111] The image hnd to be corrected for residual optical defects is acquired by the camera for an integration time td and an internal temperature Td, stored in a memory of the camera or a memory external to the camera for example.
[0112] In particular, in order to correct these residual optical defects, the first calibration table Old associated with the given focal length F'd is used in method 400.
[0113] Further, the second calibration table O2d associated with the given focal length F'd is used in method 400.
[0114] The correction method 400 comprises a step 401 of obtaining a correction Corrd of the residual optical defects of the image Imd, from the first calibration table O ld and the second calibration table O2d. The correction Corrd is an image of the same size as the image to be corrected, determined from the first calibration table Old, a first adaptation factor Kld relating to the first calibration table Old, the second calibration table O2d and a second adaptation factor K2d relating to the second calibration table O2d.
[0115] In particular, the first adaptation factor Kld makes it possible to adjust the amplitude of the first calibration table Old to the image to be corrected, the first calibration table Old and the image Imd to be corrected each comprising the amplitude of the residual optical defects for the focal length F'd but for different acquisition conditions. The first adaptation factor Kld is a real strictly greater than 0.
[0116] In particular, the second adaptation factor K2d makes it possible to adjust the amplitude of the second calibration table O2d to the image to be corrected, in order to take into account the effects of the internal temperature variations of the camera on the amplitude of the residual optical defects. The second adaptation factor K2d is a real strictly greater than 0.
[0117] For example, the correction Corrd is equal to Kld* Old+ K2d* O2d, in the case of an interpolation of order 1
[0118] In particular, the first adaptation factor Kld and the second adaptation factor K2d can be obtained according to several embodiments described below.
[0119] In a first embodiment for obtaining the Corrd correction, the variation in the amplitude of the residual optical defects of the internal temperature of the camera is modeled as uniform over the entire image to be corrected and all the coefficients of the second calibration table O2d are thus equal to 1. In this embodiment, the second adaptation factor K2d is zero.
[0120] Thus, Corrd=Kld* Old. In this first embodiment, the optical defects to be corrected in the image have a deterministic formula to calculate their amplitude which corresponds to the reflection of the detector on the optics (commonly called the Narcissus effect). The deterministic formulas are based on the physical nature of the residual optical defects.
[0121] In this first embodiment, the first calibration table Olda was obtained for the integration time and the internal temperature of the camera. The first adaptation factor Kld depends on the temperature, the temperature, the integration time td of the camera during the acquisition of the image to be corrected, the internal temperature Td of the camera during the acquisition of the image to be corrected
[0122] In particular, we consider the following quantities: L(Tetration), the luminance integrated by the camera for an object having a temperature Tetration and L(Td) the luminance integrated by the camera for an object having a temperature Td. Kld can be equal to i / tJ td t / rp 1 ^etration euknmage /
[0123] In particular, as previously specified, for any temperature T, the luminance L as a function of the temperature T is obtained according to the Planck formula.
[0124] In particular, in this first embodiment, Kld may be equal to a function or a polynomial of the parameter Td for example, the polynomial preferably being 1 calibration of order m greater than or equal to 2.
[0125] In a second embodiment of obtaining the Corrd correction, the variation in the amplitude of the residual optical defects of the internal temperature of the camera is modeled as non-uniform over the entire image to be corrected. Thus, the first adaptation factor Kld and the second adaptation factor K2d are unaffected, and the second calibration table O2d includes coefficients not necessarily equal to 1. In this second embodiment, the optical defects to be corrected in the image have a deterministic formula for calculating their amplitude which corresponds to the reflection of the detector on the optics (corresponding to the Narcissus effect). The deterministic formulas are based on the physical nature of the residual optical defects.
[0126] In this second embodiment, Kld is for example equal to and K2dest tetraioning for example equal to td = L(Td) Kld t / y Y ^calibration LfT, , ) *-*■ * calibration / 1 calibration /
[0127] In a third embodiment, step 401 of obtaining the correction Corrd comprises sub-steps 4011 and 4012 shown in [Fig.8]. In this embodiment, the factors Kld and K2 respectively have an initial value Kld O and K2d of any value, for example equal to 0. This embodiment makes it possible to correct optical defects which do not admit formulas making it possible to calculate their amplitudes, for example the vignetting defect typically. This embodiment can also be used for the Narcissus effect.
[0128] Sub-step 4011 is a step of obtaining an intermediate image Im(interm)d ' = Imd - Corrd_interm, with Corrd_interm an intermediate correction equal to (Kld*Old + K2d * O2d), with the factors Kld and K2 equal to their respective initial values Kld 0 and K2d_0.
[0129] Sub-step 4012 is a step of optimizing the first factor Kld and the second factor K2d in order to reduce a criterion on the image Im(interm)d'. In particular, sub-step 4012 makes it possible to find optimal values respectively for Kld and K2d, also noted Kld opt and K2d, while the criterion on the image Im(interm)d' is respected.
[0130] For example, if the residual optical defects are modeled as low-frequency additive spatial noise, the image Im(interm)d' is filtered to eliminate high frequencies and the criterion to be reduced or even minimized is a variance of the filtered image Im(interm)d', which makes it possible to minimize the effects of the residual optical defects.
[0131] In particular, the image Im(interm)d is spatially filtered so as to eliminate any defects that may be present other than optical reflection defects. It is necessary that the filtering does not alter said optical reflection defects.
[0132] Optical reflection defects can be of a spatial high-frequency (HF) nature, of a spatial low-frequency (LF) nature or for example a mixture of the two natures. Therefore, in the classic cases encountered, a classic high-frequency or low-frequency filtering via a convolution matrix for example is not optimal.
[0133] In particular, optical reflection defects are defects having a symmetry of revolution. If the optical reflection defects have a radial geometry with symmetry of revolution, an example of a spatial filter is a radial filter which will retain only the spatial frequencies having symmetry of revolution.
[0134] In particular, the optimization is carried out for example using the gradient descent algorithm.
[0135] Thus, at the end of step 4012, optimal values are obtained for the first factor Kld and for the second factor K2d, such that the condition on the criterion of the image Im(interm)d' is respected.
[0136] Referring again to [Fig.7], the method 400 comprises a step 402 of correcting residual optical defects in the acquired hnd image.
[0137] The correction step 402 is carried out by subtracting the correction Corrd from the image hnd , to obtain an image Imd' corrected for residual optical defects. Thus, Imd' is equal to hnd - Corrd.
[0138] Thus, the user observes the Im / image of better quality than the Imd image and free from residual optical defects.
[0139] [Fig.9] represents three amplitude graphs of the defects present in a line central line of an image. The y-axis thus represents the amplitude of defects in an image and the x-axis represents the pixels Pi_c of the central line of the image.
[0140] In particular, a first graph represents the amplitude of the defects in a central line of an IM image acquired by the camera, without any correction. This includes defects due to the detector and optical defects due to the parasitic fluxes of the camera optics.
[0141] A second graph represents the amplitude of the defects of an IM image, obtained from a one-point calibration method applied to the IM image. Thus, the amplitude of the defects has decreased compared to the first graph, the defects due to the detector having been eliminated. However, residual optical defects as described previously remain.
[0142] A third graph represents the amplitude of the defects of an IM image obtained after the application of the method for correcting residual optical defects according to the invention. Thus, the amplitude of the optical defects is uniform and approaches a zero value unlike the other graphs. Thus, the correction method according to the invention makes it possible to reduce or even eliminate the residual optical defects of the acquired images.
[0143] Another aspect of the invention relates to a device configured to implement the method of correcting residual optical defects of an image according to the invention.
[0144] [Fig. 10] represents the device according to the invention, according to one or more modes of realization of the invention.
[0145] In these embodiments, the device comprises a computer 500, comprising a memory 501 for storing instructions which, when implemented by a processor of the computer, cause the processor and therefore the computer to implement the correction method.
[0146] The computer 500 further comprises a circuit 502. This circuit may be, for example, a processor capable of interpreting instructions in the form of a computer program, an electronic card whose steps of the method of the invention are described in silicon, or even a programmable electronic chip such as an FPGA chip (for “Field-Programmable Gate Array” in English).
[0147] The computer 500 comprises an input interface 503 for receiving the image acquired by the camera, for example, and corrected for the defects of the detector, and an output interface 504 for providing the image corrected for the residual optical defects, for example. Finally, the computer may comprise, to allow easy interaction with a user, a screen 505 and a keyboard 506. Of course, the keyboard is optional, in particular in the context of a computer having the form of a touch pad, for example.
[0148] Of course, the present invention is not limited to the embodiments described above as examples; it extends to other variants.
Claims
Claims
1. A computer-implemented method (400) for correcting residual optical defects in an image (Imd) acquired by a camera with a given focal length (F'd), the acquired image (ImJ being calibrated, the residual optical defects being relative to the given focal length (F'd), the method (400) comprising: - Obtaining (401) a correction (Corrd) of the residual optical defects in the acquired image (Imd), the correction (Corrd) comprising a product of: • a first calibration table (Old) corresponding to an amplitude of the residual optical defects at the given focal length (F'd) and; • a first adaptation factor (Kld) between the first calibration table (Old) and the acquired image (Imd), - Obtaining (402) a second corrected image (Im'd) of the residual optical defects from the calibrated acquired image (Imd) and the correction (Corrd), by subtracting the correction (Corrd) from the acquired image (Imd).
2. Method (400) according to the preceding claim according to which the residual optical defects are parasitic thermal flux defects associated with the given focal length and are modeled by spatial additive noise.
3. Method (400) according to any one of the preceding claims according to which: - the first calibration table (Old) is associated with a calibration integration time (Tetaionnage) of the camera and with an internal calibration temperature (Tetaionnage) of the camera and, - the image (Imd) is acquired for a given integration time (td) of the camera and for a given internal temperature (Td ) of the camera, and according to which the first adaptation factor (Kld) is determined from the calibration integration time (teatoning), the time given integration temperature (td), internal calibration temperature (Tetaionnage) and the given internal temperature (Td) of the camera.
4. Method (400) according to the preceding claim according to which the first adaptation factor (Kld) is defined as a product: - Of a ratio of the given integration time (td) and the calibration integration time (Tannage), and - Of a ratio of the given internal temperature (Td) of the camera and the internal temperature (Tannage) of calibration.
5. Method (400) according to claim 3 according to which the first adaptation factor (Kld) is defined as a product: - Of a ratio of the given integration time (td) and the calibration integration time (Tetration), and - Of a ratio of a luminance (L(Td)) obtained from the given internal temperature (Td) of the camera and of a luminance (L(Tetration)) obtained from the calibration internal temperature (Tetration).
6. Method according to any one of claims 1 or 2 according to which the correction (Corrd) further depends on: - a second calibration table (O2d) corresponding to a variation in the amplitude of the residual optical defects as a function of a variation in the internal temperature of the camera for the given focal length F'd and; - a second adaptation factor (K2d) between the second calibration table (O2d) and the acquired image (Imd).
7. Method (400) according to the preceding claim according to which the first calibration table (Old) is associated with a calibration integration time (calibration) of the camera and with an internal calibration temperature (Tetration) of the camera, and the image (Imd) is acquired for a given integration time (td) of the camera and a given internal temperature (Td) of the camera and according to which: - the first adaptation factor (Kld) is determined from the calibration integration time and the given integration time, - the second adaptation factor (K2d) is determined from the first adaptation factor (Kld), from the given internal temperature (Td) and the calibration internal temperature (Test).
8. Method (400) according to claim 6 according to which the first calibration table (Old) is associated with a calibration integration time (Tetration) of the camera and with an internal calibration temperature (Tetration) of the camera, and the image (Imd) is acquired for a given integration time (td) of the camera and a given internal temperature (Td) of the camera and according to which: - the first adaptation factor (Kld) is determined from the calibration integration time and the given integration time, - the second adaptation factor (K2d) is determined from the first adaptation factor (Kld), a luminance (L(Td)) obtained from the given internal temperature (Td) and a luminance (L(Tetration)) obtained from the internal calibration temperature (Tanning).
9. Method (400) according to claim 6 according to which the first adaptation factor (Kld) and the second adaptation factor (K2d) are respectively equal to a first initial value (Kld 0) and a second initial value (K2d 0) and according to which the obtaining (401) of the correction comprises: - Obtain (4011) an intermediate image Im(interm)d' by subtracting an intermediate correction (Corrd interm) from the acquired image, the intermediate correction (Corrd interm) being determined from the first adaptation factor (Kld) equal to the first initial value (Kld 0), the first calibration table (Old), the second adaptation factor (K2d) equal to the second initial value (K2d 0) and the second calibration table (O2d), - Optimization (4012) of a criterion relating to the intermediate image Im(interm)d', by obtaining a first optimal adaptation factor (Kld opt) and a second optimal adaptation factor (K2d opt), the correction of residual optical defects being determined from the first optimal adaptation factor (Kld _opt) and the second optimal adaptation factor (Kld _opt).
10. Method (400) according to the preceding claim according to which the residual optical defects are modeled as a radial geometry defect and the optimization of the criterion comprises a step of applying a filter adapted to the radial geometry of the defect to the intermediate image to obtain a filtered intermediate image and the criterion corresponds to a variance of the filtered intermediate image.
11. A computer program product comprising instructions which, when the program is executed by a computer, cause the latter to implement the method according to one of claims 1 to 10.
12. A computer-readable medium comprising instructions which, when executed by a computer, cause the computer to implement the method of one of claims 1 to 10.