Next Article in Journal
Semi-Blind Signal Extraction for Communication Signals by Combining Independent Component Analysis and Spatial Constraints
Previous Article in Journal
Analysis of Building Envelope Insulation Performance Utilizing Integrated Temperature and Humidity Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving the Calibration of Image Sensors Based on IOFBs, Using Differential Gray-Code Space Encoding

by
Pedro R. Fernández
1,*,
José Luis Lázaro Galilea
1,
Alfredo Gardel Vicente
1,
Ignacio Bravo Muñoz
1,
Ángel E. Cano García
2 and
Carlos Luna Vázquez
1
1
Electronics Department, University of Alcalá, Superior Polytechnic School, University Campus, Alcalá de Henares 28871, Madrid, Spain
2
Telecommunication Department, University of Oriente, Av. de las Américas, SN, Santiago de Cuba 90400, Cuba
*
Author to whom correspondence should be addressed.
Sensors 2012, 12(7), 9006-9023; https://doi.org/10.3390/s120709006
Submission received: 15 May 2012 / Revised: 15 June 2012 / Accepted: 28 June 2012 / Published: 2 July 2012
(This article belongs to the Section Physical Sensors)

Abstract

: This paper presents a fast calibration method to determine the transfer function for spatial correspondences in image transmission devices with Incoherent Optical Fiber Bundles (IOFBs), by performing a scan of the input, using differential patterns generated from a Gray code (Differential Gray-Code Space Encoding, DGSE). The results demonstrate that this technique provides a noticeable reduction in processing time and better quality of the reconstructed image compared to other, previously employed techniques, such as point or fringe scanning, or even other known space encoding techniques.

Graphical Abstract

1. Introduction

Visual inspection systems using electronic cameras can present limitations in certain scenarios where it is not possible or suitable to use electronic devices without adding a special sensor package or implementing considerable modifications to the system structure. Such scenarios include areas which are difficult to access (winding/narrow conduits), medical applications related to endoscopy and the inspection of harsh environments exposed to high temperatures, risk of explosion, corrosion, presence of radiation, etc.

For the transmission of images under these conditions, it is common to use coherent optical fiber bundles where the fibers retain the same spatial relationship (or position) between them. In this manner, optical fiber bundles can ensure high galvanic isolation with a flexible image acquisition structure. On the other hand, image transmission using coherent fiber bundles is only effective at close distances and entails a relatively high cost per meter of length. However, previous studies have shown that incoherent optical fiber bundles (IOFBs) may also be used for this purpose proving to be cheaper, with less inter-fiber crosstalk and capable of achieving longer working distances. From the manufacturing viewpoint, the cost of IOFBs is significantly lower because ordered distribution and fusion of the fibers are not required. The image obtained by an IOFB has an intrinsic encoding given by the random distribution of fibers. This means that for the reconstruction of IOFB images, it is necessary to perform a spatial calibration of the system for estimating the transfer function (typical of each bundle) for recovering or decoding the information captured by the sensor [14].

A typical calibration/transmission IOFB system is structured as shown in Figure 1 [14]. All control of both the sensor and calibration screen is performed from centralized processing hardware that is also involved in the capture process and formation of the final image. The system requires a sensor or adapted camera coupled to a processing unit that reconstructs the information received at the output of the fiber bundle.

IOFB calibration not only entails geometrical calibration, but also implies parameterization of the response to light of the fibers because this is affected by the transfer functions of each fiber (attenuation) and their optical coupling. Given a homogeneous input of light to the IOFB, the parameterization will provide a uniform gray level for all pixels in the image [5].

In [4], it was shown that the use of spatial encoding techniques provides greater computational speed during the calibration procedure. However, although they are valid, they do not surpass the quality and accuracy given by the Fringes Method described in [3]. In this method, the patterns consist of bright regions or fringes of variable width that are encoded using a predetermined function [1,4]. This paper presents a new calibration method that scans the spatial optical input of the bundle using image patterns that are projected from a monitor screen onto the entrance of the IOFB via an optical coupler, and the transfer function of the system is determined by sequentially verifying the response of each IOFB fiber for the whole set of images captured by the sensor. The calibration process gives a look-up table denoted as the Reconstruction Table (RT). This table is unique to each IOFB and has a fixed format, considering as many records as there are fibers in the image sensor.

Preliminary Work Issues Related to Spatial Calibration

Previous studies have reported the requirement to locate the fibers prior to spatial calibration in order to know in advance where to extract useful information from each image taken by the sensor coupled to the IOFB. The location of fibers can be obtained by a detection algorithm for circular patterns considering a single radius. This problem was easily solved in [5,6], and has a direct relationship to the procedures of image formation and correction regardless of the sweeping method used.

In [7], a methodology was presented for focusing the optical input and some simple metrics were proposed in order to correct blurring. The authors also indicated that the degree of focus in images projected onto the entrance, the resolution of the optics used in the input subsystem and lens aberrations could produce a blurring effect on images that would impact on the input and thus decisively affect the quality of the calibration since it causes a dispersion of the incident energy. For these reasons, this focusing technique will be used as part of our proposal.

Several calibration techniques have been reported in the literature. The main difference among them is the type of light scanning used, but they have several intermediate steps in common and, in many cases, the optical setup. Scanning can be performed of square regions, fringes, or light beams using spatial coding techniques generally based on binary codes [14].

In [4], a calibration method was reported for spatial encoding based on a Differential Binary Spatial Encoding (DBSE), using a reduced set of differential images (paired) and a correction procedure for the results which enhances the quality of the calibration and reconstructed images. These patterns are generated according to a weighted binary code and it is an efficient way to scan the input bundle because the number of images to use is considerably reduced, as is memory use. When the behavior of each fiber at the output for each pattern image is known, the corresponding positions at the entrance can be calculated. The results of this analysis of all the pattern images form the RT. The importance of this method is that the input-output relationship is obtained with a significant reduction in the number of the images required for decoding the system compared to the method described in [2], and therefore, less time is required for analysis and memory requirements are lower as regards 2D scanning techniques using square regions, fringes or space encoding. Furthermore, the use of differential images facilitates and ensures better decoding results compared to the results obtained with [2].

The use of differential images provides greater certainty about the state of a particular fiber for each pattern. Furthermore, this paper introduces a method for analyzing the initial results of the RT to correct redundant data and discard outliers. This RT optimization gives a better quality of calibration and enhances final images. However, although DBSE can achieve an outstanding calibration, it is very sensitive to the degree of image focusing and the intrinsic quality of the input optical subsystem. To minimize this problem, image patterns are subdivided into images with fewer lighting changes.

The present study describes a new proposal for IOFB calibration which is based on image pattern scanning using Differential Gray-Code Spatial Encoding (DGSE), in order to improve on the results obtained with DBSE while maintaining its best features, and to achieve a fast and efficient method providing high quality final images. In Section 2 below, some preliminary considerations in IOFB calibration are discussed.

2. Image Scanning and Reconstruction Table Models. Primitive Image

The scanning space for the system input may be seen as an imaginary grid composed of uniformly sized square cells with a surface area similar to the one occupied by an IOFB standard fiber. Thus, each side (l) of a square cell has a length equivalent to the average diameter of IOFB fibers dfib (3/4dfibldfib). Each image pattern is completely projected from the calibration screen onto this input plane. Each square cell may be seen as an area where each image pattern impacts with a lighting value, forming a unique sequence of changes in intensity for the whole set of patterns projected, which makes it distinguishable from any other cell in this 2D scanning range [4]. Thus, the algorithm should find the output fiber which follows a predefined sequence of changes in the corresponding input, considering that the whole set of patterns is projected sequentially. Then, the geometrical position of an input cell will be paired with a fiber position in the output image captured by the sensor. This pixel coordinate corresponds to the fiber that best follows the changes of light generated in a given input cell. It also implies that for each pattern image, two cell position codes should be obtained referring to a pair of horizontal and vertical coordinates.

Given this association model (“one fiber–one cell”), the RT will have a total number of records which depends on the number of detectable fibers in the image captured by the sensor. Each row in the RT represents a localized fiber centroid that is associated with a position in the input cell as well as an equalization factor that corrects attenuation in each fiber. The centroid i of each fiber refers to the 2D coordinate system of the camera (r(i), c(i)). The corresponding input cell represents the discrete position (R(i), C(i)) to which the information extracted from the central region of a determined fiber should be transferred. Thus, the general structure for the RT shown in Table 1 is similar to those given in [36].

The first two elements of the RT, r(i) and c(i), are obtained by the FDDT (Fiber Detection using Distance Transform) method for locating fibers given in [5,6]. The FDDT method requires that the calibration screen project a bright, uniformly illuminated image without presence of saturation effects in the image output. The results of this scanning are the first data to be included in the RT, together with the equalization factor α(i). In order to clarify the contribution of our paper, a single equalization factor will be considered for grayscale images. To calculate the equalization parameter, the simple and fast method described in [3] is applied. Values R(i) and C(i) are obtained from subsequent processing of all images captured by the sensor during the scanning procedure. The status of all fibers in each image pattern captured by the camera must be verified and analyzed following the order of appearance during the sequential sweep. The generated image patterns are composed of multiple black and white fringes. The status of each fiber against a specific image pattern is determined by taking into account the behavior for both differential images.

The distribution of the fibers of an IOFB is unknown, thus the dimensions of scanning space should be estimated according to the maximum theoretical number of cells that might exist. In order to determine this theoretical maximum number of fibers (nfibmax), it is assumed that all fibers are perfectly aligned in a square grid and have a uniform diameter. This value also determines the maximum number of cells (nceld) for each side of the square, giving a final image size of nceld × nceld. To determine the integer value of nceld, the following equation is used:

n celd = nfi b max B diam F diam
where Bdiam is the IOFB diameter and Fdiam is the nominal fiber diameter. A fiber will be considered as illuminated when at least more than 50% of its area is covered by one white stripe from the image pattern projected on the IOFB. This percentage ensures that the response of any illuminated fiber can be distinguished with respect to an unlit state. The primitive image (Ip) (Figure 2) is obtained by applying the RT table and reordering the information contributed by the fiber illumination.

This primitive image presents a certain number of empty regions which correspond to regions without fibers in the input of the IOFB, due to interstitial gaps and also possible calibration errors in fiber location.

From [36], it is known that the Ip image has a size of nceld × nceld points, and three different types of regions can be extracted. The first type of region corresponds to the set of pixels E located outside the contour of the bundle (a circular IOFB in our case), with an intensity value of 0. The second type of region corresponds to the set of locations I where the RT table has given an illuminated value. And finally, the third region consists of those interstitial gaps where the intensity values are not yet known. According to the above classification of regions, Ip image values may be obtained using the following equation:

I p ( R ( i ) , C ( i ) ) = med ( I d ( N 9 { r ( i ) , c ( i ) } ) ) α ( i ) i = 1 n celd I

From the cluttered image (Id), the median of the neighborhood intensities contained in a 3 × 3 pixel window (neighborhood N9) is calculated for each fiber position, and that value is multiplied by the equalization factor αi which has been previously calculated and stored in the RT. This result is transferred to the input grid position Ip(R(i), C(i)) as stored on the RT. The remaining positions (EU) give the following values:

I p ( R , C ) = { 0 ( R , C ) E NaN ( R , C ) U
where (R′, C′) represent the Ip coordinates that are not included in the RT. The NaN (not-a-number) may help to identify unknown regions for future image inpainting procedures [8].

3. Experimental Section

3.1. Decoding the DGSE Technique

This paper proposes a calibration methodology to obtain the RT using an image scanning method based on Gray code. The method emerges as an alternative to other spatial encoding methods for minimizing errors that can occur when estimating the state of fibers during the IOFB input scan. These errors have a direct relationship to the degree of focus and resolution of the optical subsystem. In this sense, any blurring effect caused by the degradation of these factors will produce energy dispersion in the captured images and impact negatively on both the quality of the calibration and the final image result [4]. DGSE establishes differential processing of the captured images without an excessive increase in the number of images necessary. Differential processing of image patterns involves the generation of another, complementary image for each base pattern image.

It is well known that the Gray code is a binary, non-weighted numerical system where two consecutive values only differ by one bit. This feature makes it relatively easy to minimize the occurrence of duplicated records in the RT because transitions from 1 to 0 and 0 to 1 (especially in the least significant bit) occur with a lower frequency than that experienced with the weighted binary code used in DBSE. It also avoids the need to subdivide the images corresponding to the least significant digit in order to better differentiate the states of the fibers [4]. Figure 3 shows the images necessary, considering a scanning space of 16 × 16 cells (nbits = 4 bits) for comparison of the DBSE and DGSE methods. As in DBSE, differential processing should be applied to the captured images during the scanning task. For this reason, the analysis of the images to obtain the RT will be similar to [4], but will consider the different encoding method used.

The use of differential images is based on the principle that a fiber is considered optimally illuminated by a base image pattern if it is unlit when its corresponding complementary image pattern is projected. If an excited fiber remains slightly illuminated for both differential patterns, it is considered unlit, because it has not undergone a significant change in its status and the condition analyzed is not conclusive. In this case, the fiber is considered neither illuminated optimally nor sufficiently unlit (remaining in an undetermined state), and for this reason, it should be considered unlit.

Taking a scanning space of 256 × 256 cells as an example, the DBSE method analyzed [4] required about 36 images for both dimensions. Under the same physical conditions, the DGSE method needs to generate only 32 images, including 16 differential pairs for each dimension (16 + 16 = 32 images). The number of images is much lower than that required to scan the IOFB using the Fringes Method (see [3]), which would require 512 images (2 × 256) with high resolution to ensure proper decoding.

Described below are the procedures for calculating the RT parameters. Note that in order to determine the status of each fiber during scanning, it is essential to know in advance the centroids of the fibers and the equalization factors αi. The procedure used to determine these initial values was the FDDT technique described in [5,6], assuming that all the fibers have a similar diameter (nominal diameter).

3.2. RT Generation

Below, the necessary procedures proposed for calculating the rest of the parameters included in the RT are described. The RT generation process is similar to the method described in [4], maintaining the same RT structure. The captured images are initially loaded into memory during the scanning process, preserving the sequence of appearance, and a subtraction is performed between each differential pair of images, according to the following operation:

I R n = { I P n I P n D , I P n > I PnD O , I P n < I PnD }
where IRn is the image resulting from the subtraction of the complementary images with subscript “n” captured by the camera. The next step is to check the status of each fiber (lit or unlit) for each pair of differential images for a given orientation (vertical or horizontal) of the scanning range. The subtraction operation enables us to reject the fibers that, in response to a differential pair of images, present an “indeterminate” response because they are physically located in the middle of a light-dark transition border or vice versa. According to the sequence of states that occur in the fibers during the scan, a pair of “position codes” (row and column) are generated and stored in memory. From these codes, an approximate cell location is determined and stored in the RT by converting these Gray codes into numeric values. Each position code bit is associated with an image pattern number and its value will be related to the state of the fiber at that sweeping instant.

To determine the fiber status in each IRn, the median gray level IMED around the centroid (uci, vci) of the fiber analyzed is calculated, taking into account a neighborhood window of nine pixels (N9 → 3 × 3 pixels) such that:

{ I MED ( N 9 ( u c i , v c i ) ) = Med ( I R n ( u , v ) ) ( u , v ) : { u c i 1 u u c i + 1 , v c i 1 v v c i + 1 }

If the median gray level exceeded a threshold value δGL, the fiber is considered “lit” and is associated with the logical value “1” in the bit position code corresponding to the image pattern. The position of the corrected bit will also correspond to the order of appearance of the image analyzed. If it did not exceed the threshold mentioned, the fiber is considered “unlit” and is associated with the logical value “0” in the bit corresponding to the position code, as expressed in the following formula:

{ I MED > δ G L " 1 " " lit " I MED < δ G L " 0 " " unlit "

Due to the differential processing of the images involved in this analysis, the δGL values should be very close to 0, as shown in [4]. An Intensity value IMED > 0 indicates that a fringe is covering the fiber core, at least, a 50% of his area. In that case, the fiber is receiving enough energy and can be consider it as lit. After completing this analysis, the final result is a preliminary RT generated in a very short time, even less than with DBSE, since it analyzes a smaller number of images. Note that the number of images to be stored for later analysis can be reduced by half due to the implicit subtraction operation described in Equation (4).

3.3. RT Refining

Once the preliminary RT has been obtained, it must be optimized to verify the possible existence of records that are considered outliers, duplicates or simply empty. The method followed is similar to that used in [4], but employs encoding based on a Gray code. Each pixel that makes up the original image must fulfill a physical model that is consistent with reality. Thus, no fiber must be found outside the physical limit imposed by the circular shape of the bundle, nor can cells be associated with more than one fiber position. By ensuring a suitable focus and a correct projection of the image onto the bundle, the number of outliers remains low. Any entry that does not fulfill this physical model should be corrected or removed from the preliminary RT.

After this first step in RT optimization, the analysis continues to identify those groups of cells whose positions are redundant. These records violate the correspondence between fiber and cell position under the system model. In each group, the best matching record should be detected. To simplify the process, the RT is ordered by cell positions. Thus, those redundant records that dispute over the same cell will be grouped consecutively, facilitating their identification and correction.

Each group of records is analyzed separately, looking for the “best entry” of a current cell position. The “best entry” from a group disputing over the same cell is the one closest to an ideal condition (described below) and it will remain unchanged in the RT. The rest should be relocated to neighboring empty cells (if any) that were not considered in the RT. If a record cannot be reallocated, it is removed from the RT.

We considered that ideal fiber excitation (or an ideal condition) existed when each time the fiber was illuminated from the input, it attained its maximum level of light transfer and, on the other hand, when it was unlit it reached the minimum degree of intensity at the output. If these ideal conditions always occurred in the fiber, this would indicate that each fringe excitation produced the maximum superimposition on its nucleus at the input, and, in contrast, when it was unlit it would indicate that it was not receiving any influence.

Normally, this does not always occur; a fiber is more or less illuminated depending on the degree of the fringe superimposition on its nucleus. However, bearing in mind the sequence of gray levels that should be obtained under ideal conditions and comparing this with the real sequence, an idea is obtained of the extent to which the result obtained resembles that sought. In other words, the ideal condition serves as a reference for comparing the different entries of a group in dispute and defining which is the best candidate for that cell.

When the maximum gray level ( g max i ) reached by each fiber during the scan is known, a pattern values vector (or pattern chain) can be constructed from n bits by means of:

C p [ b n 1 g i max , b 2 g i max , b 1 g i max , b 0 g i max ]
where bk is the weight {∀k = 0, 1, …, n} which has the value of 1 for the “illuminated” fiber and 0 for the “unlit” fiber, and g max i is the maximum level of gray that has been registered for the fiber i by the sensor. This representation is analogous for rows and columns, and thus each fiber will have its own pair of ideal sequences. Similarly, considering g k i as the average real level of gray reached by the fiber i in the image p = {0, 1, 2, n − 1}, then, for each redundant entry we obtain the vector:
C r [ b n 1 g i n 1 , b 2 g i 2 , b 1 g i 1 , b 0 g i 0 ]

To analyze the degree of similarity between the pattern and redundant chains, the following metric based on the root mean square error is used:

RMSE = p = 0 p = n 1 ( b p g i max b p g p ) 2 n

The combination giving the least error out of the redundant cell combinations (best entry) is chosen and remains in the RT. The rest of the redundant entries are relocated toward the positions of neighboring cells not registered in the RT, where errors between pattern chains Cp (row and column) and Cr are also minimized. These values are temporarily stored and verified again to check whether new redundancies appear when all entries are verified again. If any cases remain unresolved after a specific number of iterations, these are definitively eliminated from the RT since they may be associated with false fiber detection, and where they arise, their number is very low compared to the remainder of validated entries. It is worth noting that the number of records removed is very low compared to the number of records validated, as will be discussed in the results section.

3.4. Experimental Setup

The results presented in this paper were obtained with the same instrumentation and laboratory equipment as used in [4] (see Figure 1). The instrumentation is controlled through a Matlab graphical interface containing all the operations necessary to perform the spatial calibration of the system and to assess multiple calibration methods (Figure 4). All algorithms were implemented on a PC based on a 3 Ghz Pentium Core 2 Duo with 4 GB of RAM.

The camera used to capture images through the IOFB was a monochrome C-CAM camera BCi4-6600 with a 6.6 Megapixel CMOS sensor and 2,208 × 3,000 pixels of resolution coupled to the bundle through a lens specifically designed to ensure that the image of the bundle matched the sensor size in the smallest dimension (vertical). The camera resolution was chosen assuming that each fiber has an effective area of about 7 × 7 pixels in order to ensure an adequate location of the fibers in the output image through the FDDT method.

The input of the IOFB was coupled with a 19–35 mm optical zoom. Both the sensor and screen were isolated by a black box (not shown in Figure 4), to avoid the influence of any external sunlight, artificial illumination changes and reflections on the calibration screen. The calibration screen was a typical 17″ desktop monitor (AOC LM725) with 1,280 × 1,024 pixels, a pitch of 2.64 μm, and brightness up to 250 cd/m2. All experiments were performed with a 2.8 m long fiber bundle containing about 50,000 fibers with a nominal diameter of 50 microns [9,10]. Given these characteristics, nfibmax is approximately 256 fibers in both dimensions.

To improve the light transfer and remove some epoxy blobs on the surface of the IOFB, both sides (input/output) were polished (Figure 5). According to the installation geometry, an active area on the calibration screen of 768 × 768 pixels was chosen empirically.

3.5. General Calibration Procedure for DBSE and DGSE

This study inherits from [35,7], respectively, the methods for fast detection of fibers (FDDT), focusing based on the fvar metric and scanning methods based on Fringes and DBSE techniques. The procedures described below are common to both DBSE and DGSE techniques and must be carried out in the order given (see Figure 6):

  • Focus the optical input of the bundle using the fvar metric given in [7] and adjust the position of the input of the bundle so that it completely captures the active area of pattern images in order to optimize the scanning space.

  • Locate all the fiber positions in an image captured by the camera. This is carried out by means of a FDDT algorithm applied onto an image of the bundle illuminated homogeneously, which enables rapid location of the fiber centroids.

  • Calculate the equalization factors αi which will compensate the response of the fibers. These equalization parameters are also entered into the preliminary RT.

  • Once the entire system has been adjusted, perform sequential scanning of the IOFB input with the projection of differential image patterns, correctly synchronized with image shutter acquisition from the camera. The images IRn are stored for further analysis in files named according to their numerical position in the Gray encoding used while sweeping along each dimension.

  • For each resultant image IRn, the fibers previously located using FDDT and showing high levels of excitation will be stored in a table. This operation makes it possible to generate a binary position code for each fiber position along horizontal and vertical dimensions. These Gray codes are converted to corresponding binary numbers and stored in the preliminary RT.

  • Once the preliminary RT has been generated, RT refinement is carried out by removing the outliers and the redundant coordinates. Once the system has been calibrated and the RT refined, it is necessary to verify that calibration is correct.

4. Results and Discussion

Table 2 shows a comparison of different calibration methods comprising scanning methods such as Fringes, DBSE and DGSE. These results were obtained under the same working conditions: camera configuration, optical couplings, hardware, controlled external lighting, etc. The comparison reveals that the Fringes Method is the most time consuming during scanning and processing tasks, as well as requiring most memory. This is mainly due to the need to process a greater number of high-resolution images than with DBSE and DGSE. Despite these drawbacks, the technique achieves very good results, and a high calibration quality with few records to be corrected in the preliminary RT compared to DBSE.

In the Fringes method, the maximum error calculated for any cell position is in the range of ±1 cell position along each dimension, because the patterns are not generated using a base code. In contrast, in the DBSE method, if an error occurs in the status estimation of a fiber during scanning, it could generate a large error in the position code of the fiber, depending on the weight of the affected bit.

Methods based on spatial encoding quantitatively outperform the fringes technique in terms of fast processing speed and low memory requirements. However, it is known from [4] that DBSE is very sensitive to both focus and optical input resolution. This is because the spatial frequency of the fringes increases gradually during the sweeping. The results presented in Table 2 show that the number of records removed from the RT reaches 13%. This value is higher than with the Fringes or DGSE methods (5.4% and 4.65% respectively).

The DGSE method is an evolution of the DBSE technique, exploiting the same differential processing of the captured images while reducing its weaknesses. Although RT generation speed is not the most critical factor in the calibration process, rapid generation is nevertheless a desirable feature. In this sense, the DGSE method obtains the best scanning and processing times. However, its most remarkable feature is that it provides the largest number of valid records in the final RT, over 95% of initial entries. Another advantage that is inherited from DBSE is that the optimal threshold in DGSE, used as a reference for the current state of the fiber, has a value close to zero, thus avoiding the need for any optimization process. This is a disadvantage present in the Fringes Method, where this threshold must be calculated using an iterative optimization procedure which increases the calibration time.

To obtain results similar to those of DGSE with Dujon or DBSE techniques [1,4], it would be necessary to use higher resolution optics or a larger scanning space. Otherwise, the number of outliers and errors in the estimated position codes could rise significantly. Increasing the resolution of the spatial scanning has the disadvantage of causing greater dispersion of the pixels in the final image. For example, one extra bit in the base code used in image patterns increases the scanning space from 256 × 256 to 512 × 512 cells, which in turn would increase the sizes of the interstitial regions, which is not suitable for the reconstruction of the final image.

To focus the analysis on the effect of redundancies correction on the RT, a Redundancies Accumulation Mapping (RAM) will be used. Figure 7(a) shows the RAM for the initial RT (with a larger number of redundancies). RAM values accumulate the number of assignments for any particular pixel which can be related to one or more records from the preliminary RT. The value of each pixel corresponds to the number of occurrences for that coordinate cell in the RT. Figure 7(b) shows the final mapping without any redundancies, optimized by the DGSE method.

If the RT has no redundancies, then the RAM image is binary and is equivalent to an original image of a white projected image (Figure 7(b)). It can be seen that within the outline of the bundle, a number of small interstitial regions remain. These uncertainties in the reconstructed image are mainly due to irregular distribution of the fibers and the quality of bundle packing. These regions will be reconstructed using the information in neighboring pixels in order to enhance the quality of the final image.

Figure 8 shows the evolution of iterative RAMs when applying the correction of redundancies to the methods discussed in Table 2. From Table 2, it can be seen that the DBSE method has more redundancies and leaves more interstitial gaps, whereas the DGSE results are slightly better than the Fringes method. A coverage ratio of the original image area (Ac) has been estimated, indicating how efficiently the primitive image covers the contour of the bundle. The figure also presents the similarity between the primitive and the bundle contour (white circle) through a correlation coefficient (CC) which shows that the DGSE and Fringes methods provide the best results, far exceeding those of the DBSE method.

The inpainting algorithm for undetermined regions is an essential procedure in order to achieve an adequate reconstruction of the final image which is consistent with its original structure. For this purpose, different techniques are commonly used based on variational calculus, partial differential equations, convolution masks, etc. Although it was not the aim of this study to make a contribution in this area, it is interesting to show the general characteristics of undetermined regions to be regenerated. To understand the problem, let us define the Primitive Neighborhood Maps (PNM). These maps have the same size as the primitive image and represent, for each undetermined pixel labeled with a NaN value (see the Equations (2) and (3)), the number of neighboring pixels that are known. All known pixels have a neighborhood value equal to 0 (N0), to be differentiated from the undetermined pixels. The rest of the pixels have a value between 1 and 8 (N1, N2, …, N8), according to the number of known neighboring pixels.

Figure 9 shows the PNMs for the examples given in Figure 8, as well as the corresponding neighborhood histograms. It can be seen that the DBSE method has more unknown positions than the DGSE and Fringes methods. In the histograms, N0 values were omitted from the accumulation register in order to focus attention on the unknown positions and their characteristics.

The histograms show that most of the unknown pixel bins are concentrated in N8 and N6. This fact could facilitate the inpainting process due to the high amount of information available around many unknown cells, and therefore an inpainting technique based on masks, such as the one from Oliveira in [8], could be applied.

Figure 10(b) shows an example where a primitive image has been fully reconstructed using the fast inpainting technique of Oliveira designed to reconstruct small unknown regions. It can be seen that the images have a large contrast ratio, and current spatial resolution is 254 × 254 pixels according to the IOFB system under test. The level of similarity expressed through the correlation coefficient is high (0.911).

Comparing the results of this example with those shown in [4] for the same image, it can be seen that although DGSE performs better than DBSE, the results of the reconstructed images are very similar (0.911 vs. 0.909 respectively). This is because of the improvement achieved in the end image by means of the inpainting procedure.

5. Conclusions

This paper presents a new technique for the calibration of image transmission systems based on IOFBs, and demonstrates that these systems are a viable alternative to those based on coherent fiber bundles. The DGSE method presented is based on a spatial encoding technique using differential fringe patterns generated from a Gray code.

For benchmark comparison, the scanning techniques based on the Fringes and DBSE methods were used to validate the calibration model proposed. Experiments show that all the proposed methodology is valid and capable of providing good image transmission results, although it is necessary to highlight the need to ensure that certain conditions are met:

  • Good fiber location. This issue was solved efficiently by the FDDT technique described in [5,6].

  • Correct focus of the optical input, which can be solved using the fvar metric described in [7].

From the results of the experiments presented in this paper, the following can be concluded:

  • The DGSE method is a valid proposal because it achieves good image quality and performs better in all aspects compared to the DBSE and Fringes methods. It also achieves better results in terms of the number of generated outliers and redundant entries.

  • The results given in Table 2 show a validation for DGSE of over 95% of the RT records considering the initial number of records obtained by FDDT. This ensures the best quality in the formation of primitive and final images of all the methods discussed. Less than 4.5% of the initial information is discarded.

  • The redundant coordinate correction procedure permits most of the ambiguous cases to be reordered to other optimal positions, providing an outstanding improvement in the active pixel area of the formed image.

  • From the techniques referenced in this paper, the DBSE technique presents the worst results in terms of reconstruction quality, discrimination of the state of the fibers and outlier generation. It also has a tendency to generate large errors in the event of poor focus and requires better quality optics.

  • The Fringes method is comparable to DGSE as regards the number of validated records: therefore, both methods guarantee a very similar quality of calibration. However, the Fringes method is inferior to DGSE in terms of processing speed, memory requirements and storage operations.

  • DGSE recovers changes in the state (lit/unlit) of fibers during the sweep more efficiently. Thus, the threshold level used is zero, thereby rendering it unnecessary to optimize this parameter.

Once the system has been calibrated, future work will address how to use the RT with a lower resolution sensor system (at least nfibmax × nfibmax pixels), implementation on embedded hardware for image transmission and definition of a faster inpainting algorithm to reconstruct small areas of the image.

Acknowledgments

This research was supported by the Spanish Research Program (Programa Nacional de Diseño y Producción Industrial, Ministerio de Ciencia y Tecnología), through the project ESPIRA (ref. DPI2009-10143).

References

  1. Dujon, G.; Parker, A.; Andrew, T. Visual Image Transmission by Fiber Optic Cable. U.S. Patent 5,327,514, July 1994. [Google Scholar]
  2. Roberts, H. Robust Incoherent Fiber Optic Bundle Decoder. U.S. Patent 6,587,189, July 2003. [Google Scholar]
  3. Lázaro, J.L.; Fernández, P.R.; Gardel, A.; Cano, A.E.; Luna, C.A. Sensor calibration based on incoherent optical fiber bundles (IOFB) used for remote image transmission. Sensors 2009, 9, 8215–8229. [Google Scholar]
  4. Fernández, P.R.; Lázaro, J.L.; Gardel, A.; Espinosa, F.; Bravo, I.; Cano, Á. Differential binary encoding method for calibrating image sensors based on IOFBs. Sensors 2012, 12, 4133–4155. [Google Scholar]
  5. Fernández, P.R.; Lázaro, J.L.; Gardel, A.; Esteban, O.; Cano, A.E.; Revenga, P.A. Location of optical fibers for the calibration of incoherent optical fiber bundles for image transmission. IEEE Trans. Instrum. Measur. 2009, 58, 2996–3003. [Google Scholar]
  6. Fernández, P.R.; Lázaro, J.L.; Gardel, A.; Esteban, O.; Cano, A.E. Calibration of incoherent optical fiber bundles for image transmission. Fibers detection process. Proceedings of the IEEE International Symposium on Intelligent Signal Processing (WISP 07), Alcalá de Henares, Spain, 3–5 October 2007.
  7. Fernández, P.R.; Lázaro, J.L.; Gardel, A.; Cano, Á.E.; Bravo, I. A Focusing method in the calibration process of image sensors based on IOFBs. Sensors 2010, 10, 47–60. [Google Scholar]
  8. Oliveira, M.M.; Bowen, B.; McKenna, R.; Chang, Y.-S. Fast digital image inpainting. Proceedings of the International Conference on Visualization, Imaging and Image Processing (VIP 2001), Marbella, Spain, 3–5 September 2001.
  9. Optics and Optical Instruments Catalogue. Available online: http://www.edmundoptics.com (accessed on 15 May 2012).
  10. Schott Ibérica, S.A. Lighting and Imaging. Available online: http://www.schott.com/lightingimaging/english/index.html (accessed on 15 May 2012).
Figure 1. Structure of a typical calibration/transmission IOFB system.
Figure 1. Structure of a typical calibration/transmission IOFB system.
Sensors 12 09006f1 1024
Figure 2. An example of an image captured by the sensor (a) cluttered image Id (b) primitive image Ip obtained through RT application.
Figure 2. An example of an image captured by the sensor (a) cluttered image Id (b) primitive image Ip obtained through RT application.
Sensors 12 09006f2 1024
Figure 3. (a) DBSE and (b) DGSE scanning image patterns with a number of bits (nbits = 4 bits). Note the lower spatial frequency of DGSE with respect to DBSE.
Figure 3. (a) DBSE and (b) DGSE scanning image patterns with a number of bits (nbits = 4 bits). Note the lower spatial frequency of DGSE with respect to DBSE.
Sensors 12 09006f3 1024
Figure 4. Graphical interface for calibration.
Figure 4. Graphical interface for calibration.
Sensors 12 09006f4 1024
Figure 5. Polished IOFB containing approximately 50,000 fibers.
Figure 5. Polished IOFB containing approximately 50,000 fibers.
Sensors 12 09006f5 1024
Figure 6. General procedure for DGSE.
Figure 6. General procedure for DGSE.
Sensors 12 09006f6 1024
Figure 7. DGSE RAMs. (a) RAM for the initial RT; (b) Final RAM (binary values).
Figure 7. DGSE RAMs. (a) RAM for the initial RT; (b) Final RAM (binary values).
Sensors 12 09006f7 1024
Figure 8. RAMs and Primitive Images for different methods.
Figure 8. RAMs and Primitive Images for different methods.
Sensors 12 09006f8 1024
Figure 9. PNMs and histograms for the calibration methods discussed in Figure 8.
Figure 9. PNMs and histograms for the calibration methods discussed in Figure 8.
Sensors 12 09006f9 1024
Figure 10. Image reconstruction and correlation result. (a) Original image (b) Inpainted image using the Oliveira method.
Figure 10. Image reconstruction and correlation result. (a) Original image (b) Inpainted image using the Oliveira method.
Sensors 12 09006f10 1024
Table 1. RT structure.
Table 1. RT structure.
r(i)c(i)αiR(i)C(i)
where:
(r(i), c(i))→Coordinate pairs of the fibers located in the sensor.
αiEqualization factors due to attenuation.
(R(i), C(i))→Position of the cell that excites the fiber most (r(i), c(i)).
Table 2. Comparison between different calibration techniques analyzed.
Table 2. Comparison between different calibration techniques analyzed.
ParametersMethod

FringesDBSE (8 bits)DGSE (8 bits)

Number of fibers located. Initial RT entries49,12749,12749,127
Final validated entries46,454 (94.5%)42,711 (86.9%)46,839 (95.3%)
Corrected entries (redundant)3,2705,8673,799
Removed entries2,672 (5.4%)6,416 (13%)2,288 (4.65%)
Mean scantime7.91 min5.54 min4.92 min
Mean RT calculation time38.94 min2.20 min2.08 min
Mean analysis time of redundancies and outliers13.98 min5.36 min0.63 min
Number of images used/stored52236/1832/16
Final image size [pixels]261 × 261 *254 × 254254 × 254

*A scan space of 261 × 261 images in each dimension was considered. This inflated size of the grid is subsequently corrected in the RT so that the size of the image is not greater than nfibmax = 256 in each dimension, eliminating those cell positions that do not have an appreciable influence on the fibers.

Share and Cite

MDPI and ACS Style

Fernández, P.R.; Lázaro Galilea, J.L.; Gardel Vicente, A.; Bravo Muñoz, I.; Cano García, Á.E.; Luna Vázquez, C. Improving the Calibration of Image Sensors Based on IOFBs, Using Differential Gray-Code Space Encoding. Sensors 2012, 12, 9006-9023. https://doi.org/10.3390/s120709006

AMA Style

Fernández PR, Lázaro Galilea JL, Gardel Vicente A, Bravo Muñoz I, Cano García ÁE, Luna Vázquez C. Improving the Calibration of Image Sensors Based on IOFBs, Using Differential Gray-Code Space Encoding. Sensors. 2012; 12(7):9006-9023. https://doi.org/10.3390/s120709006

Chicago/Turabian Style

Fernández, Pedro R., José Luis Lázaro Galilea, Alfredo Gardel Vicente, Ignacio Bravo Muñoz, Ángel E. Cano García, and Carlos Luna Vázquez. 2012. "Improving the Calibration of Image Sensors Based on IOFBs, Using Differential Gray-Code Space Encoding" Sensors 12, no. 7: 9006-9023. https://doi.org/10.3390/s120709006

APA Style

Fernández, P. R., Lázaro Galilea, J. L., Gardel Vicente, A., Bravo Muñoz, I., Cano García, Á. E., & Luna Vázquez, C. (2012). Improving the Calibration of Image Sensors Based on IOFBs, Using Differential Gray-Code Space Encoding. Sensors, 12(7), 9006-9023. https://doi.org/10.3390/s120709006

Article Metrics

Back to TopTop