[go: up one dir, main page]

CN1916750A - Digital Imaging Autofocus Method Based on Contourlet Transform - Google Patents

Digital Imaging Autofocus Method Based on Contourlet Transform Download PDF

Info

Publication number
CN1916750A
CN1916750A CN200610053118.6A CN200610053118A CN1916750A CN 1916750 A CN1916750 A CN 1916750A CN 200610053118 A CN200610053118 A CN 200610053118A CN 1916750 A CN1916750 A CN 1916750A
Authority
CN
China
Prior art keywords
image
evaluation function
significant
focus evaluation
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200610053118.6A
Other languages
Chinese (zh)
Other versions
CN100451808C (en
Inventor
蒋刚毅
易文娟
郁梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo University
Original Assignee
Ningbo University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo University filed Critical Ningbo University
Priority to CNB2006100531186A priority Critical patent/CN100451808C/en
Publication of CN1916750A publication Critical patent/CN1916750A/en
Application granted granted Critical
Publication of CN100451808C publication Critical patent/CN100451808C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a digital imaging automatic focusing method based on Contourlet transformation, which utilizes the multi-resolution and multi-direction characteristics of Contourlet transformation, selects important coefficients of Contourlet domain which can represent the outline sharpness and the detail richness of an image to calculate a focusing evaluation function so as to determine the accurate focusing position of a digital imaging system, and can better utilize the direction information of the image by utilizing the dominant direction of a texture edge to determine a dominant direction sub-band of the Contourlet domain for the image containing a large number of textures with consistent trend, thereby improving the focusing sensitivity and reducing the calculation complexity.

Description

基于Contourlet变换的数码成像自动对焦方法Digital Imaging Autofocus Method Based on Contourlet Transform

技术领域technical field

本发明涉及数码成像自动对焦方法,尤其是涉及一种基于Contourlet变换的数码成像自动对焦方法。The invention relates to a digital imaging automatic focusing method, in particular to a digital imaging automatic focusing method based on Contourlet transformation.

背景技术Background technique

在成像系统中,镜头对物体成像有一个最佳像面位置,偏离这个位置将导致图像模糊,成像质量下降;因此,能否精确对焦对一个成像系统是十分重要的。基于数字图像的成像系统采用自动对焦方法,其关键在于对焦评价函数。理想的对焦评价函数曲线表现为类抛物线形状,其峰值对应于最佳成像位置,当离开最佳点时函数值降低。因此自动对焦的过程实质上是求取对焦评价函数最大值的过程。In an imaging system, the lens has an optimal image plane position for imaging an object. Deviation from this position will result in blurred images and reduced imaging quality; therefore, it is very important for an imaging system to be able to focus accurately. The imaging system based on the digital image adopts the automatic focus method, and its key lies in the focus evaluation function. The ideal focus evaluation function curve shows a parabolic shape, its peak value corresponds to the best imaging position, and the function value decreases when leaving the best point. Therefore, the process of autofocus is essentially a process of finding the maximum value of the focus evaluation function.

通常,图像的能量大部分集中在频域的低频和中频段,但图像轮廓的锐度和细节的丰富度则取决于图像的高频成份。当图像清晰时,细节丰富,在空域上表现为相邻像素的特征值(如灰度、颜色等)变化较大,在频域则表现为频谱的高频分量多。常用的对焦评价函数分为两种:空域的和频域的。常用的几种空域对焦评价函数包括laplacian算子、sobel算子、prewitt算子以及能量方差算子等。基于空域的对焦评价方法所需的运算量相对较小,但其缺点是受噪声的影响比较大,即抗噪性较差。频域对焦评价方法则利用了图像的整体特性,抗噪性相对较好,但这种方法通常需要先对图像进行傅立叶变换或其它变换,再根据变换系数来评价图像的清晰度。Usually, most of the energy of an image is concentrated in the low-frequency and middle-frequency bands of the frequency domain, but the sharpness of the image outline and the richness of details depend on the high-frequency components of the image. When the image is clear and rich in details, it shows that the eigenvalues (such as grayscale, color, etc.) of adjacent pixels change greatly in the spatial domain, and it shows that there are many high-frequency components in the frequency spectrum in the frequency domain. Commonly used focus evaluation functions are divided into two types: spatial domain and frequency domain. Several commonly used spatial focus evaluation functions include laplacian operator, sobel operator, prewitt operator, and energy variance operator. The amount of calculation required for the focus evaluation method based on space is relatively small, but its disadvantage is that it is greatly affected by noise, that is, the noise immunity is poor. The frequency-domain focusing evaluation method utilizes the overall characteristics of the image, and its noise resistance is relatively good, but this method usually needs to perform Fourier transform or other transformations on the image first, and then evaluate the sharpness of the image based on the transform coefficients.

Contourlet变换的多方向多尺度特性使其可以很好地捕捉自然图像中的纹理、细节及边缘信息,而数字图像的自动对焦的过程正是对纹理细节等信息的清晰度进行评价并求极值点的过程,因此,Contourlet变换是一种适合进行自动对焦评价的工具。数字Contourlet变换分为两个步骤,首先使用拉普拉斯塔式滤波器组(Laplacian Pyramid,LP)对图像进行多分辨率分解来捕捉奇异点,然后使用二维方向滤波器组(Directional FilterBank,DFB)将位置相近的奇异点根据其不同的方向特性汇集成轮廓段。每一级的Contourlet系数有多个方向子带,这些子带即为含有高频分量的边缘图像。在对图像进行一级Contourlet分解后,即能得到相应的边缘特征图像。如图1(b)即为图1(a)进行2级Contourlet变换后的Contourlet变换系数图。但是对成像系统而言,这只是得到了一个离散的边缘特征图像序列,要实现精确对焦,还必须建立一个目标函数,对离散图像给出统计特性,用来判断最佳的对焦位置。对焦的过程是一个图像能量变化的过程,一般精确对焦的图像具有最大的能量。The multi-directional and multi-scale characteristics of the Contourlet transform enable it to capture the texture, details and edge information in natural images well, and the process of auto-focusing in digital images is to evaluate the clarity of information such as texture details and find the extreme value. Therefore, the Contourlet transform is a suitable tool for autofocus evaluation. The digital Contourlet transform is divided into two steps. First, the Laplacian Pyramid (LP) is used to perform multi-resolution decomposition of the image to capture singular points, and then the two-dimensional directional filter bank (Directional FilterBank, DFB) gathers the singular points with similar positions into contour segments according to their different orientation characteristics. The Contourlet coefficients of each level have multiple direction subbands, and these subbands are edge images containing high frequency components. After the first-level Contourlet decomposition of the image, the corresponding edge feature image can be obtained. Figure 1(b) is the Contourlet transform coefficient map after the 2-level Contourlet transform in Figure 1(a). But for the imaging system, this is only a discrete edge feature image sequence. To achieve accurate focusing, an objective function must be established to give statistical properties to the discrete image to judge the best focusing position. The process of focusing is a process of image energy change, and generally the image with precise focus has the largest energy.

发明内容Contents of the invention

本发明所要解决的技术问题是提供一种准确有效的基于Contourlet变换的数码成像自动对焦方法。The technical problem to be solved by the present invention is to provide an accurate and effective digital imaging autofocus method based on Contourlet transformation.

本发明解决上述技术问题所采用的技术方案为:一种基于Contourlet变换的数码成像自动对焦方法,它包括以下步骤:①对于数码显微成像系统,连续调焦以获得清晰度各不相同的图像的输入信号;②对每幅图像的二维输入信号f进行多级Contourlet变换,获得Contourlet变换系数集合{Cj,k},这里Cj,k表示Contourelet域第j层(j=1,...,J,J为分辨率最高的层)第k个子带的系数矩阵;③定义对焦评价函数: F = Σ j Σ k | | E j , k significant | | 2 , 其中,‖Ej,k significant2表示Contourelet域第j层第k个子带中重要系数的能量总和,即 | | E j , k significant | | 2 = Σ i = 1 N ( C j , k , i significant ) 2 , Cj,k,i significant为Contourelet域第j层第k个子带中的重要系数,即 C j , k , i significant ∈ C j , k , N为该子带中选取的重要系数的个数,对每幅图像的输入信号计算其对焦评价函数F的值;④当连续调焦后对焦评价函数F值的变化趋势变化时,回调焦距直至对应于对焦评价函数F极大值的图像输入信号出现,然后结束调焦过程;⑤取对应于输入信号的对焦评价函数F极大值的图像即获得正确对焦的清晰度最佳的图像。The technical solution adopted by the present invention to solve the above-mentioned technical problems is: a digital imaging autofocus method based on Contourlet transformation, which includes the following steps: ① For the digital microscopic imaging system, continuously adjust the focus to obtain images with different resolutions The input signal of ; ② Perform multi-level Contourlet transformation on the two-dimensional input signal f of each image to obtain the set of Contourlet transformation coefficients {C j, k }, where C j, k represents the jth layer of the Contourelet domain (j=1,. .., J, J is the highest resolution layer) coefficient matrix of the kth sub-band; ③Define the focus evaluation function: f = Σ j Σ k | | E. j , k significant | | 2 , Among them, ‖E j,k significant2 represents the energy sum of important coefficients in the kth subband of the jth layer of the Contourelet domain, namely | | E. j , k significant | | 2 = Σ i = 1 N ( C j , k , i significant ) 2 , C j, k, i significant is the important coefficient in the kth subband of the jth layer of the Contourelet domain, namely C j , k , i significant ∈ C j , k , N is the number of important coefficients selected in the sub-band, and the value of the focus evaluation function F is calculated for the input signal of each image; ④ When the change trend of the focus evaluation function F value changes after continuous focusing, the focal length is called back until The image input signal corresponding to the maximum value of the focus evaluation function F appears, and then the focusing process ends; ⑤ Take the image corresponding to the maximum value of the focus evaluation function F of the input signal to obtain the image with the best definition and correct focus.

为了降低计算复杂度,达到快速对焦的目的,上述对焦评价函数F中的‖Ej,k sgnificant2也可以定义为 | | E j , k significant | | 2 = Σ i = 1 N | C j , k , i significant | . In order to reduce the computational complexity and achieve the purpose of fast focusing, the ‖E j,k sgnificant ‖2 in the above-mentioned focusing evaluation function F can also be defined as | | E. j , k significant | | 2 = Σ i = 1 N | C j , k , i significant | .

上述方法中的二维输入信号f可以是数码显微成像图像的全部区域或局部区域或局部区域的组合或下采样信号。The two-dimensional input signal f in the above method may be the whole area or a partial area or a combination of local areas or a down-sampled signal of the digital microscopic imaging image.

在参与计算对焦评价函数的方向子带的选取上,可以根据各方向子带的能量大小分析确定需对焦的图像的几个重要方向,使得包含重要方向信息的子带在对焦评价函数中占主导成分,包含方向信息较少的方向子带则给予较少的份额,而这种不同方向子带的不同重要性通过加权方式来实现,即对焦评价函数也可以定义为:In the selection of the direction sub-bands involved in the calculation of the focus evaluation function, several important directions of the image to be focused can be determined according to the energy of each direction sub-band, so that the sub-bands containing important direction information are dominant in the focus evaluation function Components, the direction sub-bands containing less direction information are given less shares, and the different importance of different direction sub-bands is achieved by weighting, that is, the focus evaluation function can also be defined as:

F = Σ j Σ k = 1 K j w j , k × | | E j , k significant | | 2 , 其中Kj为第j层的子带数,wj,k为权值。 f = Σ j Σ k = 1 K j w j , k × | | E. j , k significant | | 2 , Among them, K j is the number of sub-bands in the jth layer, and w j, k are the weights.

在参与计算对焦评价函数的方向子带的选取上,也可以根据各方向子带的能量大小分析确定需对焦的图像的主导方向,仅采用主导方向所确定的若干子带的重要系数来进行对焦评价函数的计算。In the selection of the direction sub-bands involved in the calculation of the focus evaluation function, the dominant direction of the image to be focused can also be determined according to the energy of each direction sub-band, and only the important coefficients of several sub-bands determined by the dominant direction are used for focusing. Computation of the evaluation function.

与现有的经典对焦评价方法相比,本发明的基于Contourlet变换的数码成像自动对焦方法很好地利用了Contourlet变换的对图像方向信息捕捉和可能的方向数目的灵活性,可以有效地提取图像的高频信息,判断图像序列中具有最大能量的图像,从而确定数码成像系统的精确对焦位置。Compared with the existing classical focus evaluation method, the digital imaging autofocus method based on Contourlet transform of the present invention makes good use of the flexibility of Contourlet transform to capture image direction information and possible direction numbers, and can effectively extract image The high-frequency information of the image can be used to determine the image with the largest energy in the image sequence, so as to determine the precise focus position of the digital imaging system.

附图说明Description of drawings

图1(a)为peppers原图像;Figure 1(a) is the original image of peppers;

图1(b)为peppers的2级Contourlet变换域系数图;Figure 1(b) is a 2-level Contourlet transform domain coefficient map of peppers;

图2(a)为对焦模糊的纤毛上皮细胞切片的显微镜图片;Figure 2(a) is a microscope picture of a section of ciliated epithelial cells with blurred focus;

图2(b)为对焦清晰的纤毛上皮细胞切片的显微镜图片;Fig. 2 (b) is a microscope image of a clearly focused ciliated epithelial cell section;

图3为2级Contourlet变换的分辨率最高层的各方向子带的编号图;Fig. 3 is the numbering figure of each direction sub-band of the resolution highest level of the 2-level Contourlet transform;

图4为选用不同子带系数的基于Contourlet变换的自动对焦方法的对比;Figure 4 is a comparison of the autofocus methods based on Contourlet transform with different subband coefficients;

图5为基于Contourlet变换的自动对焦方法与经典对焦方法的对比。Figure 5 is a comparison between the auto-focus method based on Contourlet transform and the classic focus method.

具体实施方式Detailed ways

以下结合附图实施例对本发明作进一步详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

一种基于Contourlet变换的数码成像自动对焦方法,它包括以下步骤:①对于数码显微成像系统,连续调焦以获得清晰度各不相同的图像的输入信号;②对每幅图像的二维输入信号f进行多级Contourlet变换,获得Contourlet变换系数集合{Cj,k},这里Cj,k表示Contourelet域第j层(j=1,...,J,J为分辨率最高的层)第k个子带的系数矩阵;③Contourlet变换具有稀疏性,即仅用少量的变换域系数进行反变换就可以有效地逼近原始图像。就Contourlet变换高频系数而言,其幅值绝大多数都聚集在零附近,仅有极少量系数的幅值较大,这部分幅值较大的系数称之为“重要系数”(significant),描述了图像的细节纹理信息。因此,可以在不同分辨率下的不同方向子带中选取一定数量的重要系数进行对焦评价,即定义对焦评价函数: F = Σ j Σ k | | E j , k significant | | 2 , 其中,‖Ej,k significant2表示Contourelet域第j层第k个子带中重要系数的能量总和,即 | | E j , k significant | | 2 = Σ i = 1 N ( C j , k , i significant ) 2 , Cj,k,i significant为Contourelet域第j层第k个子带中的重要系数,即 C j , k , i significant ∈ C j , k , N为该子带中选取的重要系数的个数,对每幅图像的输入信号计算其对焦评价函数F的值;④当连续调焦后对焦评价函数F值的变化趋势变化(由递增变为递减或由递减变为递增)时,回调焦距直至对应于对焦评价函数F极大值的图像输入信号出现,然后结束调焦过程;⑤取对应于输入信号的对焦评价函数F极大值的图像即获得正确对焦的清晰度最佳的图像。A digital imaging autofocus method based on Contourlet transform, which includes the following steps: ①For a digital microscopic imaging system, continuously adjust the focus to obtain input signals of images with different resolutions; ②Two-dimensional input for each image The signal f is subjected to multi-level Contourlet transformation to obtain a set of Contourlet transformation coefficients {C j, k }, where C j, k represents the jth layer of the Contourelet domain (j=1,..., J, J is the layer with the highest resolution) The coefficient matrix of the k-th subband; ③Contourlet transform is sparse, that is, only a small number of transform domain coefficients can be used for inverse transformation to effectively approximate the original image. As far as the high-frequency coefficients of Contourlet transform are concerned, most of their amplitudes are gathered around zero, and only a small number of coefficients have large amplitudes. These coefficients with large amplitudes are called "significant coefficients" (significant) , which describes the detailed texture information of the image. Therefore, a certain number of important coefficients can be selected for focus evaluation in different direction subbands at different resolutions, that is, the focus evaluation function is defined: f = Σ j Σ k | | E. j , k significant | | 2 , Among them, ‖E j,k significant2 represents the energy sum of important coefficients in the kth subband of the jth layer of the Contourelet domain, namely | | E. j , k significant | | 2 = Σ i = 1 N ( C j , k , i significant ) 2 , C j, k, i significant is the important coefficient in the kth subband of the jth layer of the Contourelet domain, namely C j , k , i significant ∈ C j , k , N is the number of important coefficients selected in the sub-band, and the value of the focus evaluation function F is calculated for the input signal of each image; ④ when the focus is continuously adjusted, the change trend of the value of the focus evaluation function F (from increasing to (decrease or change from decrease to increase), call back the focal length until the image input signal corresponding to the maximum value of the focus evaluation function F appears, and then end the focusing process; ⑤ take the image corresponding to the maximum value of the focus evaluation function F of the input signal That is, the sharpest image with the correct focus is obtained.

为了降低计算复杂度,达到快速对焦的目的,上述对焦评价函数F中的‖Ej,k significant2也可以定义为 | | E j , k significant | | 2 = Σ i = 1 N | C j , k , i significant | . In order to reduce the computational complexity and achieve the purpose of fast focusing, the ‖E j,k significant ‖2 in the above-mentioned focus evaluation function F can also be defined as | | E. j , k significant | | 2 = Σ i = 1 N | C j , k , i significant | .

上述方法中的二维输入信号f可以是数码显微成像图像的全部区域或局部区域或局部区域的组合或下采样信号。The two-dimensional input signal f in the above method may be the whole area or a partial area or a combination of local areas or a down-sampled signal of the digital microscopic imaging image.

与小波变换、傅立叶变换等频域评价方法相比,Contourlet变换的最大优点在于对图像的方向信息的捕捉和可能的方向数目的灵活性。小波变换的方向子带数目恒定,只有水平、垂直和对角方向三个方向。在Contourlet变换域内,方向子带的数目更多了,方向信息的捕捉也更加灵活。为了更好地利用Contourlet变换的这种多方向特性,可以根据各方向子带的能量大小分析确定需对焦的图像的几个重要方向,使得包含重要方向信息的子带在对焦评价函数中占主导成分,包含方向信息较少的方向子带则给予较少的份额,这种不同方向子带的不同重要性可以通过加权方式来实现。另外,由于Contourlet变换的稀疏性,上述方向子带能量的衡量可以通过仅选取部分“重要”的系数来实现。即对焦评价函数也可以定义为: F = Σ j Σ k = 1 K j w j , k × | | E j , k significant | | 2 , 其中Kj为第j层的子带数,wj,k为权值。Compared with frequency domain evaluation methods such as wavelet transform and Fourier transform, the biggest advantage of Contourlet transform lies in the flexibility of capturing the direction information of the image and the number of possible directions. The number of direction subbands of wavelet transform is constant, and there are only three directions: horizontal, vertical and diagonal. In the Contourlet transform domain, the number of direction sub-bands is more, and the capture of direction information is more flexible. In order to make better use of the multi-directional characteristics of the Contourlet transform, several important directions of the image to be focused can be determined according to the energy size analysis of the sub-bands in each direction, so that the sub-bands containing important direction information are dominant in the focus evaluation function Components, the direction sub-bands containing less direction information are given less shares, and the different importance of different direction sub-bands can be realized by weighting. In addition, due to the sparsity of the Contourlet transform, the measurement of the energy of the above-mentioned direction subbands can be realized by only selecting some "important" coefficients. That is, the focus evaluation function can also be defined as: f = Σ j Σ k = 1 K j w j , k × | | E. j , k significant | | 2 , Among them, K j is the number of sub-bands in the jth layer, and w j, k are the weights.

此外,在参与计算对焦评价函数的方向子带的选取上,也可以根据各方向子带的能量大小分析确定需对焦的图像的主导方向,仅采用主导方向所确定的若干子带的重要系数来进行对焦评价函数的计算。In addition, in the selection of the direction sub-bands involved in the calculation of the focus evaluation function, the dominant direction of the image to be focused can also be determined according to the energy size analysis of each direction sub-band, and only the important coefficients of several sub-bands determined by the dominant direction are used to determine the Calculate the focus evaluation function.

通过聚焦镜头等距离前进,每前进一个步距,拍摄一幅图像的方式,本实施例采集了18幅“纤毛上皮细胞”截片的显微图像,图像的尺寸为512×512。图像质量经历了从模糊到清晰再到模糊的过程,对于采用的对焦评价函数则应该呈现从小到大再减小的变化规律。图2(a)和图2(b)给出了对焦准确程度不同的两幅图像,即较模糊和较清晰的“纤毛上皮细胞”截片的显微镜观测结果。该系列图像包含的纹理边缘信息主要分为两大类:一是大量的或大或小的圆形区域和圆点。由于圆的方向信息均匀分布于每个方向上,因此不存在某个特定的主导方向;二是条纹状的脉络,这些脉络的走向大致一致,接近45.0°方向,表现在Contourlet变换域,则是能量相对集中在对应于如图3所示的2级Contourlet变换的最高分辨率层的第5个方向子带上。图4给出了对于图2所示图像序列的基于Contourlet变换的五种对焦评价函数曲线,为方便比较,进行了归一化的处理,这五种方法是:By moving the focusing lens equidistantly and taking one image for each step, in this embodiment, 18 microscopic images of "ciliated epithelial cells" sections were collected, and the size of the images was 512×512. The image quality has gone through a process from blurry to clear and then to blurry, and the focus evaluation function used should show a changing law from small to large and then reduced. Figure 2(a) and Figure 2(b) show two images with different degrees of focus accuracy, that is, the microscopic observation results of the blurred and clear slices of "ciliated epithelial cells". The texture edge information contained in this series of images is mainly divided into two categories: one is a large number of large or small circular areas and dots. Since the direction information of the circle is evenly distributed in each direction, there is no specific dominant direction; the second is the stripe-like veins, the direction of these veins is roughly the same, close to the 45.0° direction, which is expressed in the Contourlet transform domain, which is The energy is relatively concentrated on the 5th direction subband corresponding to the highest resolution layer of the 2-level Contourlet transform as shown in Fig. 3. Figure 4 shows five focusing evaluation function curves based on Contourlet transform for the image sequence shown in Figure 2. For the convenience of comparison, normalization processing is carried out. These five methods are:

M1:即Contourlet域分辨率最高层上所有方向子带的能量和;M1: the energy sum of all direction subbands on the highest layer of Contourlet domain resolution;

M2:即Contourlet域分辨率最高层上所有方向子带的重要系数的能量和,这里取了每个方向子带上幅值最大的1%系数;M2: That is, the energy sum of the important coefficients of all direction subbands on the highest layer of the Contourlet domain resolution, where the 1% coefficient with the largest amplitude on each direction subband is taken;

M3:即采用对Contourlet域分辨率最高层上不同方向子带根据其重要性不同加权求取对焦评价函数的方式,对于本实施例而言,采用如下的对焦评价函数: F = Σ k = 1 8 w k × | | E J , k | | 2 , 其中k为方向子带的序号,wk为权值,主导方向所对应的5号子带占具较大的权重;M3: That is, the focus evaluation function is obtained by weighting the sub-bands in different directions on the highest layer of the Contourlet domain resolution according to their importance. For this embodiment, the following focus evaluation function is used: f = Σ k = 1 8 w k × | | E. J , k | | 2 , Among them, k is the serial number of the direction sub-band, w k is the weight value, and the No. 5 sub-band corresponding to the dominant direction has a larger weight;

M4:仅采用主导方向所对应的5号子带的能量大小来评价对焦情况,即对焦评价函数为: F = | | E J , 5 | | 2 ; M4: Only the energy of the No. 5 sub-band corresponding to the dominant direction is used to evaluate the focusing situation, that is, the focusing evaluation function is: f = | | E. J , 5 | | 2 ;

M5:仅选取主导方向所对应的5号子带中重要系数求能量和,即对焦评价函数为: F = | | E J , 5 significant | | 2 , 这里选取了5号子带中幅值最大的1%的系数。M5: Only select the important coefficients in the No. 5 sub-band corresponding to the dominant direction to calculate the energy sum, that is, the focus evaluation function is: f = | | E. J , 5 significant | | 2 , Here, the 1% coefficient with the largest amplitude in the No. 5 subband is selected.

图4表明这五种评价方式的对焦评价函数曲线都呈抛物线状的单峰曲线,函数峰值点都出现在第9幅图像处,即该系列显微图像的精确对焦点。函数曲线的不同之处在于曲线的锋锐程度不同,五条对焦评价曲线中,以M5的曲线最为陡峭,曲线峰值比较尖锐,而M1和M2的曲线比较接近,峰值处都比较平坦,M3和M4的尖锐度则介于中间。五条曲线的尖锐程度依次为:M1≈M2<M3<M4<M5。五种方法的归一化曲线图表明,基于Contourlet变换的自动对焦方法是有效可行的,尤其是对于包含较多特定方向的纹理边缘信息的图像而言,采用主导方向子带的系数不仅可以提高自动对焦的灵敏度,而且由于仅采用部分系数,减少了计算复杂度。Figure 4 shows that the focus evaluation function curves of these five evaluation methods are all parabolic single-peak curves, and the peak points of the functions all appear at the ninth image, which is the precise focus point of the series of microscopic images. The difference between the function curves lies in the sharpness of the curves. Among the five focus evaluation curves, the curve of M5 is the steepest, and the peak of the curve is relatively sharp, while the curves of M1 and M2 are relatively close, and the peaks are relatively flat. M3 and M4 The sharpness of is in the middle. The sharpness of the five curves is as follows: M1≈M2<M3<M4<M5. The normalized curves of the five methods show that the autofocus method based on Contourlet transform is effective and feasible, especially for images containing more texture edge information in specific directions, using the coefficient of the dominant direction subband can not only improve The sensitivity of autofocus, and because only some coefficients are used, the computational complexity is reduced.

图5给出基于Contourlet变换的自动对焦方法与一些经典对焦评价方法的比较,采用的对焦评价算法包括:Laplacian算子、Sobel算子、Prewitt算子、能量方差算子(standard)以及小波变换(wavelet)对焦评价算法。由图5可见,归一化曲线都呈现为单峰抛物线状,但Sobel算子和Prewitt算子的峰值出现在第10幅图像,与其余方法不符,即未能精确对焦。其余的经典对焦方法都能达到精确对焦的目的,而基于Contourlet变换的方法M1和M2的曲线最为陡峭。Figure 5 shows the comparison between the autofocus method based on Contourlet transform and some classic focus evaluation methods. The focus evaluation algorithms used include: Laplacian operator, Sobel operator, Prewitt operator, energy variance operator (standard) and wavelet transform ( wavelet) focus evaluation algorithm. It can be seen from Figure 5 that the normalization curves are all in the shape of a single-peak parabola, but the peaks of the Sobel operator and the Prewitt operator appear in the 10th image, which is inconsistent with other methods, that is, they cannot focus accurately. The rest of the classic focusing methods can achieve the purpose of precise focusing, and the methods M1 and M2 based on Contourlet transform have the steepest curves.

综上所述,由于Contourlet变换具有多分辨率多方向特性,基于Contourlet变换的对焦评价函数可以有效地提取图像的高频信息,判断图像序列中具有最大能量的图像,从而确定数码成像系统的精确对焦位置。对于包含大量走向较为一致的纹理的图像,利用纹理边缘的主导方向确定Contourlet域主导方向子带的方法则可以更好地利用图像的方向信息,从而提高对焦灵敏度,降低计算复杂度。In summary, due to the multi-resolution and multi-directional characteristics of the Contourlet transform, the focus evaluation function based on the Contourlet transform can effectively extract the high-frequency information of the image, judge the image with the largest energy in the image sequence, and determine the accuracy of the digital imaging system. focus position. For images containing a large number of textures with relatively consistent directions, the method of determining the dominant direction subband of the Contourlet domain by using the dominant direction of the texture edge can make better use of the direction information of the image, thereby improving the focus sensitivity and reducing the computational complexity.

在不背离权利要求及同等范围所限定的一般概念的精神和范围的情况下,本发明并不限于特定的细节和这里示出与描述的示例。The invention is not limited to the specific details and examples shown and described herein without departing from the spirit and scope of the general concept defined by the claims and equivalents.

Claims (5)

1、一种基于Contourlet变换的数码成像自动对焦方法,它包括以下步骤:①对于数码显微成像系统,连续调焦以获得清晰度各不相同的图像的输入信号;②对每幅图像的二维输入信号f进行多级Contourlet变换,获得Contourlet变换系数集合{Cj,k},这里Cj,k表示Contourelet域第j层(j=1,...,J,J为分辨率最高的层)第k个子带的系数矩阵;③定义对焦评价函数: F = &Sigma; j &Sigma; k | | E j , k significant | | 2 , 其中, | | E j , k significant | | 2 表示Contourelet域第j层第k个子带中重要系数的能量总和,即 | | E j , k significant | | 2 = &Sigma; i = 1 N ( C j , k , i significant ) 2 , Cj,k,i significant为Contourelet域第j层第k个子带中的重要系数,即 C j , k , i significant &Element; C j , k , N为该子带中选取的重要系数的个数,对每幅图像的输入信号计算其对焦评价函数F的值;④当连续调焦后对焦评价函数F值的变化趋势变化时,回调焦距直至对应于对焦评价函数F极大值的图像输入信号出现,然后结束调焦过程;⑤取对应于输入信号的对焦评价函数F极大值的图像即获得正确对焦的清晰度最佳的图像。1, a kind of digital imaging autofocus method based on Contourlet transformation, it comprises the following steps: 1. for the digital microscope imaging system, continuous focusing obtains the input signal of the image that clarity is different; Multi-level Contourlet transform is performed on the dimensional input signal f to obtain a set of Contourlet transform coefficients {C j, k }, where C j, k represents the jth layer of the Contourelet domain (j=1,..., J, J is the highest resolution layer) the coefficient matrix of the kth subband; ③ define the focus evaluation function: f = &Sigma; j &Sigma; k | | E. j , k significant | | 2 , in, | | E. j , k significant | | 2 Indicates the energy sum of the important coefficients in the kth subband of the jth layer of the Contourelet domain, namely | | E. j , k significant | | 2 = &Sigma; i = 1 N ( C j , k , i significant ) 2 , C j, k, i significant is the important coefficient in the kth subband of the jth layer of the Contourelet domain, namely C j , k , i significant &Element; C j , k , N is the number of important coefficients selected in the sub-band, and the value of the focus evaluation function F is calculated for the input signal of each image; ④ When the change trend of the focus evaluation function F value changes after continuous focusing, the focal length is called back until The image input signal corresponding to the maximum value of the focus evaluation function F appears, and then the focusing process ends; ⑤ Take the image corresponding to the maximum value of the focus evaluation function F of the input signal to obtain the image with the best definition and correct focus. 2、如权利要求1中所述的一种基于Contourlet变换的数码成像自动对焦方法,其特征在于对焦评价函数F中的 | | E j , k significant | | 2 = &Sigma; i = 1 N | C j , k , i significant | . 2, a kind of digital imaging autofocus method based on Contourlet transformation as described in claim 1, it is characterized in that in the focus evaluation function F | | E. j , k significant | | 2 = &Sigma; i = 1 N | C j , k , i significant | . 3、如权利要求1或2所述的一种基于Contourlet变换的数码成像自动对焦方法,其特征在于二维输入信号f是数码显微成像图像的全部区域或局部区域或局部区域的组合或下采样信号。3. A digital imaging autofocus method based on Contourlet transform as claimed in claim 1 or 2, characterized in that the two-dimensional input signal f is the entire area or partial area or a combination of local areas of the digital microscopic imaging image or the following sample signal. 4、如权利要求1或2所述的一种基于Contourlet变换的数码成像自动对焦方法,其特征在于首先根据各方向子带的能量大小分析确定需对焦的图像的重要方向,使得包含重要方向信息的子带在对焦评价函数中占主导成分,包含方向信息较少的子带占较少份额,并通过加权方式来确定不同方向子带的重要性,即定义对焦评价函数为: F = &Sigma; j &Sigma; k = 1 K j w j , k &times; | | E j , k significant | | 2 , 其中Kj为第j层的子带数,wj,k为权值。4. A digital imaging auto-focusing method based on Contourlet transform as claimed in claim 1 or 2, characterized in that first, according to the energy size analysis of each direction sub-band, the important direction of the image to be focused is determined, so that important direction information is included The sub-bands of are the dominant components in the focus evaluation function, and the sub-bands containing less directional information account for a smaller share, and the importance of sub-bands in different directions is determined by weighting, that is, the focus evaluation function is defined as: f = &Sigma; j &Sigma; k = 1 K j w j , k &times; | | E. j , k significant | | 2 , Among them, K j is the number of sub-bands in the jth layer, and w j, k are the weights. 5、如权利要求1或2所述的一种基于Contourlet变换的数码成像自动对焦方法,其特征在于根据各方向子带的能量大小分析确定需对焦的图像的主导方向,仅采用主导方向所确定的子带的重要系数计算对焦评价函数。5. A digital imaging auto-focusing method based on Contourlet transform as claimed in claim 1 or 2, characterized in that the dominant direction of the image to be focused is determined according to the energy size analysis of each direction sub-band, and only the dominant direction is used to determine The important coefficients of the subbands are used to calculate the focus evaluation function.
CNB2006100531186A 2006-08-24 2006-08-24 Digital imaging automatic focusing method based on Contourlet conversion Expired - Fee Related CN100451808C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100531186A CN100451808C (en) 2006-08-24 2006-08-24 Digital imaging automatic focusing method based on Contourlet conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100531186A CN100451808C (en) 2006-08-24 2006-08-24 Digital imaging automatic focusing method based on Contourlet conversion

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CNB2008100922973A Division CN100543576C (en) 2006-08-24 2006-08-24 Digital Imaging Autofocus Method Based on Contourlet Transform

Publications (2)

Publication Number Publication Date
CN1916750A true CN1916750A (en) 2007-02-21
CN100451808C CN100451808C (en) 2009-01-14

Family

ID=37737767

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100531186A Expired - Fee Related CN100451808C (en) 2006-08-24 2006-08-24 Digital imaging automatic focusing method based on Contourlet conversion

Country Status (1)

Country Link
CN (1) CN100451808C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102550010A (en) * 2009-08-10 2012-07-04 德克索实验室 Image-capture system and method with two operating modes
CN102572265A (en) * 2010-09-01 2012-07-11 苹果公司 Auto-focus control using image statistics data with coarse and fine auto-focus scores
CN102595049A (en) * 2012-03-16 2012-07-18 盛司潼 Automatic focusing control system and method
CN102788682A (en) * 2012-07-25 2012-11-21 宁波大学 Method for detecting parfocality of continuous zoom stereo microscope
CN103424953A (en) * 2012-05-25 2013-12-04 中兴通讯股份有限公司 Autofocus method and device
CN107860773A (en) * 2017-11-06 2018-03-30 凌云光技术集团有限责任公司 Automatic optical detecting system and its bearing calibration for PCB
CN112230491A (en) * 2020-10-30 2021-01-15 广西代达科技有限公司 Application method of technical camera capable of automatically focusing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184502C (en) * 2002-06-13 2005-01-12 北京中星微电子有限公司 Process for automatic focusing
JP2006058405A (en) * 2004-08-18 2006-03-02 Casio Comput Co Ltd Camera device and autofocus control method
US7145496B2 (en) * 2004-11-23 2006-12-05 Raytheon Company Autofocus method based on successive parameter adjustments for contrast optimization

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102550010B (en) * 2009-08-10 2014-12-17 德克索实验室 Image-capture system and method with two operating modes
CN102550010A (en) * 2009-08-10 2012-07-04 德克索实验室 Image-capture system and method with two operating modes
CN102572265A (en) * 2010-09-01 2012-07-11 苹果公司 Auto-focus control using image statistics data with coarse and fine auto-focus scores
US9398205B2 (en) 2010-09-01 2016-07-19 Apple Inc. Auto-focus control using image statistics data with coarse and fine auto-focus scores
CN102595049A (en) * 2012-03-16 2012-07-18 盛司潼 Automatic focusing control system and method
CN102595049B (en) * 2012-03-16 2014-11-26 盛司潼 Automatic focusing control system and method
CN103424953B (en) * 2012-05-25 2017-08-11 中兴通讯股份有限公司 Automatic focusing method and device
CN103424953A (en) * 2012-05-25 2013-12-04 中兴通讯股份有限公司 Autofocus method and device
CN102788682B (en) * 2012-07-25 2015-02-04 宁波大学 Method for detecting parfocality of continuous zoom stereo microscope
CN102788682A (en) * 2012-07-25 2012-11-21 宁波大学 Method for detecting parfocality of continuous zoom stereo microscope
CN107860773A (en) * 2017-11-06 2018-03-30 凌云光技术集团有限责任公司 Automatic optical detecting system and its bearing calibration for PCB
CN107860773B (en) * 2017-11-06 2021-08-03 凌云光技术股份有限公司 Automatic optical detection system for PCB and correction method thereof
CN112230491A (en) * 2020-10-30 2021-01-15 广西代达科技有限公司 Application method of technical camera capable of automatically focusing

Also Published As

Publication number Publication date
CN100451808C (en) 2009-01-14

Similar Documents

Publication Publication Date Title
CN111083365B (en) Method and device for fast detection of optimal focal plane position
CN102129676A (en) Microscopic image fusing method based on two-dimensional empirical mode decomposition
CN106886977A (en) A kind of many figure autoregistrations and anastomosing and splicing method
Minhas et al. Shape from focus using fast discrete curvelet transform
CN113689374B (en) A method and system for determining surface roughness of plant leaves
Tessens et al. Extending the depth of field in microscopy through curvelet-based frequency-adaptive image fusion
Shah et al. Image super resolution-a survey
Zhang et al. Focus and blurriness measure using reorganized DCT coefficients for an autofocus application
CN104123705B (en) A kind of super-resolution rebuilding picture quality Contourlet territory evaluation methodology
Yan et al. Study of an image autofocus method based on power threshold function wavelet reconstruction and a quality evaluation algorithm
CN105894483B (en) A kind of multi-focus image fusing method based on multi-scale image analysis and block consistency checking
CN111292256A (en) Texture enhancement algorithm based on microscopic hyperspectral imaging
Bhataria et al. A review of image fusion techniques
CN117523095B (en) A sparse angle THz-CT image reconstruction method based on deep learning
CN100543576C (en) Digital Imaging Autofocus Method Based on Contourlet Transform
CN106204466A (en) A kind of self-adaptive solution method for Fourier lamination micro-imaging technique
CN110060214A (en) A kind of image enchancing method for Fourier&#39;s lamination micro-imaging technique
Huang et al. Robust measure of image focus in the wavelet domain
CN110427951A (en) A Fourier single-pixel imaging method based on non-uniform sampling strategy
CN101216936A (en) Multi-focus image fusion method based on imaging mechanism and non-sampling Contourlet transform
Zhao et al. Enhancement of a cnn-based denoiser based on spatial and spectral analysis
CN1916750A (en) Digital Imaging Autofocus Method Based on Contourlet Transform
Mahmood et al. PCA‐based method for 3D shape recovery of microscopic objects from image focus using discrete cosine transform
CN106534661A (en) Automatic focus algorithm accumulated based on strongest edge gradient Laplasse operator
CN102547363A (en) No-reference image quality evaluating method on basis of contourlet transform domain image energy features

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090114

Termination date: 20160824