CN105335962A - Tobacco field acquisition image segmentation method - Google Patents

Tobacco field acquisition image segmentation method Download PDF

Info

Publication number
CN105335962A
CN105335962A CN201510551490.9A CN201510551490A CN105335962A CN 105335962 A CN105335962 A CN 105335962A CN 201510551490 A CN201510551490 A CN 201510551490A CN 105335962 A CN105335962 A CN 105335962A
Authority
CN
China
Prior art keywords
image
frame image
tobacco field
illumination
background
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.)
Pending
Application number
CN201510551490.9A
Other languages
Chinese (zh)
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.)
China National Tobacco Corp Guangdong Branch
Original Assignee
China National Tobacco Corp Guangdong Branch
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 China National Tobacco Corp Guangdong Branch filed Critical China National Tobacco Corp Guangdong Branch
Priority to CN201510551490.9A priority Critical patent/CN105335962A/en
Publication of CN105335962A publication Critical patent/CN105335962A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明提出一种烟田采集图像分割方法,该方法在检测到场景中光照有较大变化时,利用同态滤波算法抑制光照变化对视频分割的影响,然后采用颜色差分直方图算法进行视频分割.从而保证在含有较大光照变化的视频场景中,仍可稳健的进行背景更新和前景目标分割。

The invention proposes a method for segmenting images collected from tobacco fields. When the method detects that there is a large change in the illumination in the scene, the homomorphic filtering algorithm is used to suppress the impact of illumination changes on video segmentation, and then the color difference histogram algorithm is used for video segmentation. .So as to ensure that the background update and foreground target segmentation can still be carried out robustly in video scenes with large illumination changes.

Description

一种烟田采集图像分割方法A Segmentation Method of Tobacco Field Collection Image

技术领域 technical field

本发明涉及图像处理领域,更具体地,涉及一种烟田采集图像分割方法。 The invention relates to the field of image processing, and more particularly, to a method for segmenting images collected from tobacco fields.

背景技术 Background technique

对采集烟田的图像进行处理的过程中,如何处理光照变化所带来的影响是一个重要难题。尽管针对场景中含有光照变化的情况已提出很多算法,然而光照变化的任意性和快速性仍然使得这些检测算法存在较高的误检率。近年来,提出了一种新的学习机制改进了高斯混合算法对背景的适应能力,并利用基于帧差的启发式方法辅助速率控制方法减少光照变化下的前景误检率,还有用3个阈值对像素属于前景还是背景进行分类的新方法,在一定程度上解决不同光照条件对视频分割的影响;以及提出尺度不变的局部3元模式算子解决光照变化的影响等.通过仿真对比发现这些方法提出的颜色差分直方图视频分割算法与上述算法相比具有目标分割稳健和运算速度快等特点。由于这些算法是利用图像和其背景图像颜色差分建立颜色差分直方图,然后设定分割阈值,最后判断图像各像素属于背景还是前景目标,因而当场景中光照变化幅度较大时,不可避免的将光照变化引起的图像和其背景图像对应像素的差异统计到颜色差分直方图中,影响分割阈值的设定,从而造成对图像分割失效,对其背景图像更新失败.如果背景更新持续失效,必将会影响后续视频分割效果. In the process of processing the image of the collected tobacco field, how to deal with the influence of the illumination change is an important problem. Although many algorithms have been proposed for the scene with illumination changes, the randomness and rapidity of illumination changes still make these detection algorithms have a high false detection rate. In recent years, a new learning mechanism has been proposed to improve the adaptability of the Gaussian mixture algorithm to the background, and a heuristic method based on frame difference is used to assist the rate control method to reduce the foreground false detection rate under illumination changes, and three thresholds are used A new method of classifying whether a pixel belongs to the foreground or the background solves the influence of different lighting conditions on video segmentation to a certain extent; and proposes a scale-invariant local 3-element pattern operator to solve the influence of lighting changes, etc. Through simulation and comparison, it is found that these Compared with the above algorithm, the color difference histogram video segmentation algorithm proposed by the method has the characteristics of robust object segmentation and fast operation speed. Because these algorithms use the color difference between the image and its background image to establish a color difference histogram, then set the segmentation threshold, and finally judge whether each pixel of the image belongs to the background or the foreground object. The difference between the corresponding pixels of the image and its background image caused by illumination changes is counted into the color difference histogram, which affects the setting of the segmentation threshold, resulting in the failure of image segmentation and the failure of updating its background image. If the background update continues to fail, it will It will affect the subsequent video segmentation effect.

发明内容 Contents of the invention

本发明提供一种烟田采集图像分割方法,该方法能抑制光照变化对图像分割稳健性的影响,可稳健的进行图像背景更新和前景目标分割。 The invention provides a tobacco field collection image segmentation method, which can suppress the impact of illumination changes on image segmentation robustness, and can stably perform image background update and foreground target segmentation.

为了达到上述技术效果,本发明的技术方案如下: In order to achieve the above-mentioned technical effect, the technical scheme of the present invention is as follows:

一种烟田采集图像分割方法,包括以下步骤: A tobacco field acquisition image segmentation method, comprising the following steps:

S1:统计采样的烟田图像帧数Nf,采用基于概率的背景抽取算法抽取背景图像fB(x,y); S1: Statistically sampled tobacco field image frame number Nf, using the probability-based background extraction algorithm to extract the background image f B (x, y);

S2:分别提取第i帧图像fi(x,y)的红色、绿色和蓝色值Ri(x,y)、Gi(x,y)和Bi(x,y),i=0,1,···,Nf; S2: Extract the red, green and blue values Ri(x,y), Gi(x,y) and Bi(x,y) of the i-th frame image f i (x,y) respectively, i=0,1, ···, Nf;

S3:将RGB色彩空间的背景图像fB(x,y)和第i帧图像fi(x,y)转化到HSV色彩空间,第i帧图像及其背景图像的亮度分量分别为fvi(x,y)和fvB(x,y),判断第i帧图像及其背景图像光照是否有变化,若无变化就将第i帧图像进行分割,若有变化就进一步判断第i帧图像是否存在光照昏暗; S3: Convert the background image f B (x, y) of the RGB color space and the i-th frame image f i (x, y) to the HSV color space, and the brightness components of the i-th frame image and its background image are respectively fv i ( x, y) and fv B (x, y), to determine whether there is any change in the illumination of the i-th frame image and its background image, if there is no change, the i-th frame image is segmented, and if there is a change, it is further judged There is dim light;

S4:若存在光照昏暗就分别对fvi(x,y)和fvB(x,y)进行光照补偿,并将光照补偿后的fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f’i(x,y)和f’B(x,y);若不存在光照昏暗就直接对fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f”i(x,y)和f”B(x,y); S4: If there is dim light, perform light compensation on fv i (x, y) and fv B (x, y) respectively, and perform light compensation on fv i (x, y) and fv B (x, y) Illumination suppression is combined with hue and saturation components to return to RGB space to generate f' i (x, y) and f' B (x, y); if there is no dim light, directly fv i (x, y) and fv B (x, y) performs light suppression and then combines the hue and saturation components to return to the RGB space to generate f” i (x, y) and f” B (x, y);

S5:对f’i(x,y)、f’B(x,y)或f”i(x,y)、f”B(x,y)重复步骤S3-S5的过程进行背景更新和分割。 S5: Repeat steps S3-S5 for f' i (x, y), f' B (x, y) or f" i (x, y), f" B (x, y) for background update and segmentation .

进一步地,所述步骤S3中判断第i帧图像及其背景图像光照是否有变化的方法如下: Further, in the step S3, the method for judging whether the illumination of the i-th frame image and its background image has changed is as follows:

式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th1=c1×M×N,c1为常系数。 In the formula, x and y respectively represent the pixel coordinates of a frame image whose size is M×N, Th 1 =c 1 ×M×N, and c 1 is a constant coefficient.

进一步地,所述步骤S3中对第i帧图像进行分割的过程如下: Further, the process of segmenting the i-th frame image in the step S3 is as follows:

S31:利用fi(x,y)和fB(x,y)分别计算颜色差分直方图值 S31: Use f i (x, y) and f B (x, y) to calculate the color difference histogram value respectively

ΔR(x,y)=Ri(x,y)-RB(x,y) ΔR(x,y)=R i (x,y)-R B (x,y)

ΔG(x,y)=Gi(x,y)-GB(x,y)x=1,2,…,M;y=1,2…,N; ΔG(x,y)=G i (x,y)-G B (x,y)x=1,2,...,M; y=1,2...,N;

ΔB(x,y)=Bi(x,y)-BB(x,y) ΔB(x,y)=B i (x,y)-B B (x,y)

S32:对颜色差分直方图值进行平滑处理: S32: smoothing the color difference histogram values:

S33:计算分割左右阈值SRi、SLiS33: Calculate the segmentation left and right thresholds SR i , SL i :

S34:分割图像: S34: Segment the image:

S35:若QB(x,y)为0就将图像fi(x,y)中对应位置的像素信息更新到其背景图像fvB(x,y)中: S35: If QB(x, y) is 0, update the pixel information of the corresponding position in the image f i (x, y) to its background image fv B (x, y):

若QB(x,y)不为0,就去除前景阴影并将相应的QB(x,y)置为0; If QB(x,y) is not 0, remove the foreground shadow and set the corresponding QB(x,y) to 0;

S36:对QB(x,y)采用约束行程算法和形态学方法填补前景目标的孔去除孤立像素和极小目标获得最终的图像分割。 S36: For QB(x,y), the constrained stroke algorithm and the morphological method are used to fill the holes of the foreground target, remove isolated pixels and extremely small targets, and obtain the final image segmentation.

进一步地,所述步骤S3中判断第i帧图像是否存在光照昏暗的方法如下: Further, in the step S3, the method for judging whether the i-th frame image has dim light is as follows:

式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th2=c2×M×N,c2为常系数。 In the formula, x and y respectively represent the pixel coordinates of a frame image with a size of M×N, Th 2 =c 2 ×M×N, and c 2 is a constant coefficient.

进一步地,所述步骤S4中进行光照抑制的过程如下: Further, the process of light suppression in the step S4 is as follows:

进一步地,所述步骤S4中进行光照补偿的过程如下: Further, the process of performing illumination compensation in the step S4 is as follows:

与现有技术相比,本发明技术方案的有益效果是: Compared with the prior art, the beneficial effects of the technical solution of the present invention are:

本发明方法在检测到场景中光照有较大变化时,利用同态滤波算法抑制光照变化对视频分割的影响,然后采用颜色差分直方图算法进行视频分割,从而保证在含有较大光照变化的视频场景中,仍可稳健的进行背景更新和前景目标分割。 When the method of the present invention detects that there is a large change in the illumination in the scene, the homomorphic filtering algorithm is used to suppress the influence of the illumination change on the video segmentation, and then the color difference histogram algorithm is used to perform video segmentation, thereby ensuring that the video with a large illumination change In the scene, the background update and foreground object segmentation can still be performed robustly.

附图说明 Description of drawings

图1为本发明方法的流程图。 Fig. 1 is the flowchart of the method of the present invention.

具体实施方式 detailed description

附图仅用于示例性说明,不能理解为对本专利的限制; The accompanying drawings are for illustrative purposes only and cannot be construed as limiting the patent;

为了更好说明本实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸; In order to better illustrate this embodiment, some parts in the drawings will be omitted, enlarged or reduced, and do not represent the size of the actual product;

对于本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。 For those skilled in the art, it is understandable that some well-known structures and descriptions thereof may be omitted in the drawings.

下面结合附图和实施例对本发明的技术方案做进一步的说明。 The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

实施例1 Example 1

一种烟田采集图像分割方法,包括以下步骤: A tobacco field acquisition image segmentation method, comprising the following steps:

S1:统计采样的烟田图像帧数Nf,采用基于概率的背景抽取算法抽取背景图像fB(x,y); S1: Statistically sampled tobacco field image frame number Nf, using the probability-based background extraction algorithm to extract the background image f B (x, y);

S2:分别提取第i帧图像fi(x,y)的红色、绿色和蓝色值Ri(x,y)、Gi(x,y)和Bi(x,y),i=0,1,···,Nf; S2: Extract the red, green and blue values Ri(x,y), Gi(x,y) and Bi(x,y) of the i-th frame image f i (x,y) respectively, i=0,1, ···, Nf;

S3:将RGB色彩空间的背景图像fB(x,y)和第i帧图像fi(x,y)转化到HSV色彩空间,第i帧图像及其背景图像的亮度分量分别为fvi(x,y)和fvB(x,y),判断第i帧图像及其背景图像光照是否有变化,若无变化就将第i帧图像进行分割,若有变化就进一步判断第i帧图像是否存在光照昏暗; S3: Convert the background image f B (x, y) of the RGB color space and the i-th frame image f i (x, y) to the HSV color space, and the brightness components of the i-th frame image and its background image are respectively fv i ( x, y) and fv B (x, y), to determine whether there is any change in the illumination of the i-th frame image and its background image, if there is no change, the i-th frame image is segmented, and if there is a change, it is further judged There is dim light;

S4:若存在光照昏暗就分别对fvi(x,y)和fvB(x,y)进行光照补偿,并将光照补偿后的fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f’i(x,y)和f’B(x,y);若不存在光照昏暗就直接对fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f”i(x,y)和f”B(x,y); S4: If there is dim light, perform light compensation on fv i (x, y) and fv B (x, y) respectively, and perform light compensation on fv i (x, y) and fv B (x, y) Illumination suppression is combined with hue and saturation components to return to RGB space to generate f' i (x, y) and f' B (x, y); if there is no dim light, directly fv i (x, y) and fv B (x, y) performs light suppression and then combines the hue and saturation components to return to the RGB space to generate f” i (x, y) and f” B (x, y);

S5:对f’i(x,y)、f’B(x,y)或f”i(x,y)、f”B(x,y)重复步骤S3-S5的过程进行背景更新和分割。 S5: Repeat steps S3-S5 for f' i (x, y), f' B (x, y) or f" i (x, y), f" B (x, y) for background update and segmentation .

步骤S3中判断第i帧图像及其背景图像光照是否有变化的方法如下: In step S3, the method for judging whether the illumination of the i-th frame image and its background image has changed is as follows:

式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th1=c1×M×N,c1为常系数。 In the formula, x and y respectively represent the pixel coordinates of a frame image whose size is M×N, Th 1 =c 1 ×M×N, and c 1 is a constant coefficient.

步骤S3中对第i帧图像进行分割的过程如下: The process of segmenting the i-th frame image in step S3 is as follows:

S31:利用fi(x,y)和fB(x,y)分别计算颜色差分直方图值 S31: Use f i (x, y) and f B (x, y) to calculate the color difference histogram value respectively

ΔR(x,y)=Ri(x,y)-RB(x,y) ΔR(x,y)=R i (x,y)-R B (x,y)

ΔG(x,y)=Gi(x,y)-GB(x,y)x=1,2,…,M;y=1,2…,N; ΔG(x,y)=G i (x,y)-G B (x,y)x=1,2,...,M; y=1,2...,N;

ΔB(x,y)=Bi(x,y)-BB(x,y) ΔB(x,y)=B i (x,y)-B B (x,y)

S32:对颜色差分直方图值进行平滑处理: S32: smoothing the color difference histogram values:

S33:计算分割左右阈值SRi、SLiS33: Calculate the segmentation left and right thresholds SR i , SL i :

S34:分割图像: S34: Segment the image:

S35:若QB(x,y)为0就将图像fi(x,y)中对应位置的像素信息更新到其背景图像fvB(x,y)中: S35: If QB(x, y) is 0, update the pixel information of the corresponding position in the image f i (x, y) to its background image fv B (x, y):

若QB(x,y)不为0,就去除前景阴影并将相应的QB(x,y)置为0; If QB(x,y) is not 0, remove the foreground shadow and set the corresponding QB(x,y) to 0;

S36:对QB(x,y)采用约束行程算法和形态学方法填补前景目标的孔去除孤立像素和极小目标获得最终的图像分割。 S36: For QB(x,y), the constrained stroke algorithm and the morphological method are used to fill the holes of the foreground target, remove isolated pixels and extremely small targets, and obtain the final image segmentation.

步骤S3中判断第i帧图像是否存在光照昏暗的方法如下: In step S3, the method for judging whether there is dim light in the i-th frame image is as follows:

式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th2=c2×M×N,c2为常系数。 In the formula, x and y respectively represent the pixel coordinates of a frame image with a size of M×N, Th 2 =c 2 ×M×N, and c 2 is a constant coefficient.

步骤S4中进行光照抑制的过程如下: The process of light suppression in step S4 is as follows:

进一步地,所述步骤S4中进行光照补偿的过程如下: Further, the process of performing illumination compensation in the step S4 is as follows:

本发明方法在检测到场景中光照有较大变化时,利用同态滤波算法抑制光照变化对视频分割的影响,然后采用颜色差分直方图算法进行视频分割.从而保证在含有较大光照变化的视频场景中,仍可稳健的进行背景更新和前景目标分割。 When the method of the present invention detects that there is a large change in the illumination in the scene, the homomorphic filtering algorithm is used to suppress the impact of the illumination change on the video segmentation, and then the color difference histogram algorithm is used to perform video segmentation. Thereby ensuring that the video with a large illumination change In the scene, the background update and foreground object segmentation can still be performed robustly.

相同或相似的标号对应相同或相似的部件; The same or similar reference numerals correspond to the same or similar components;

附图中描述位置关系的用于仅用于示例性说明,不能理解为对本专利的限制; The positional relationship described in the drawings is only for illustrative purposes and cannot be construed as a limitation to this patent;

显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。 Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, rather than limiting the implementation of the present invention. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. All modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the claims of the present invention.

Claims (6)

1.一种烟田采集图像分割方法,其特征在于,包括以下步骤:1. a tobacco field acquisition image segmentation method, is characterized in that, comprises the following steps: S1:统计采样的烟田图像帧数Nf,采用基于概率的背景抽取算法抽取背景图像fB(x,y);S1: Statistically sampled tobacco field image frame number Nf, using the probability-based background extraction algorithm to extract the background image f B (x, y); S2:分别提取第i帧图像fi(x,y)的红色、绿色和蓝色值Ri(x,y)、Gi(x,y)和Bi(x,y),i=0,1,···,Nf;S2: Extract the red, green and blue values Ri(x,y), Gi(x,y) and Bi(x,y) of the i-th frame image f i (x,y) respectively, i=0,1, ···, Nf; S3:将RGB色彩空间的背景图像fB(x,y)和第i帧图像fi(x,y)转化到HSV色彩空间,第i帧图像及其背景图像的亮度分量分别为fvi(x,y)和fvB(x,y),判断第i帧图像及其背景图像光照是否有变化,若无变化就将第i帧图像进行分割,若有变化就进一步判断第i帧图像是否存在光照昏暗;S3: Convert the background image f B (x, y) of the RGB color space and the i-th frame image f i (x, y) to the HSV color space, and the brightness components of the i-th frame image and its background image are respectively fv i ( x, y) and fv B (x, y), to determine whether there is any change in the illumination of the i-th frame image and its background image, if there is no change, the i-th frame image is segmented, and if there is a change, it is further judged There is dim light; S4:若存在光照昏暗就分别对fvi(x,y)和fvB(x,y)进行光照补偿,并将光照补偿后的fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f’i(x,y)和f’B(x,y);若不存在光照昏暗就直接对fvi(x,y)和fvB(x,y)进行光照抑制再结合色调、饱和度分量转回到RGB空间生成f”i(x,y)和f”B(x,y);S4: If there is dim light, perform light compensation on fv i (x, y) and fv B (x, y) respectively, and perform light compensation on fv i (x, y) and fv B (x, y) Illumination suppression is combined with hue and saturation components to return to RGB space to generate f' i (x, y) and f' B (x, y); if there is no dim light, directly fv i (x, y) and fv B (x, y) performs light suppression and then combines the hue and saturation components to return to the RGB space to generate f” i (x, y) and f” B (x, y); S5:对f’i(x,y)、f’B(x,y)或f”i(x,y)、f”B(x,y)重复步骤S3-S5的过程进行背景更新和分割。S5: Repeat steps S3-S5 for f' i (x, y), f' B (x, y) or f" i (x, y), f" B (x, y) for background update and segmentation . 2.根据权利要求1所述的烟田采集图像分割方法,其特征在于,所述步骤S3中判断第i帧图像及其背景图像光照是否有变化的方法如下:2. the tobacco field collection image segmentation method according to claim 1, is characterized in that, in the described step S3, the method for judging whether the i-th frame image and the background image illumination thereof has changed is as follows: &Sigma;&Sigma; xx == 11 Mm &Sigma;&Sigma; ythe y == 11 NN || fvfv ii (( xx ,, ythe y )) -- fvfv BB (( xx ,, ythe y )) || >> ThTh 11 式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th1=c1×M×N,c1为常系数。In the formula, x and y respectively represent the pixel coordinates of a frame image whose size is M×N, Th 1 =c 1 ×M×N, and c 1 is a constant coefficient. 3.根据权利要求1所述的烟田采集图像分割方法,其特征在于,所述步骤S3中对第i帧图像进行分割的过程如下:3. tobacco field acquisition image segmentation method according to claim 1, is characterized in that, in described step S3, the process that the i-th frame image is segmented is as follows: S31:利用fi(x,y)和fB(x,y)分别计算颜色差分直方图值 S31: Use f i (x, y) and f B (x, y) to calculate the color difference histogram value respectively ΔR(x,y)=Ri(x,y)-RB(x,y)ΔR(x,y)=R i (x,y)-R B (x,y) ΔG(x,y)=Gi(x,y)-GB(x,y)x=1,2,…,M;y=1,2…,N;ΔG(x,y)=G i (x,y)-G B (x,y)x=1,2,...,M; y=1,2...,N; ΔB(x,y)=Bi(x,y)-BB(x,y)ΔB(x,y)=B i (x,y)-B B (x,y) S32:对颜色差分直方图值进行平滑处理:S32: smoothing the color difference histogram values: {{ HSHS jj cc == &Sigma;&Sigma; kk == -- 22 22 HistHist ii cc (( jj ++ kk )) 55 }} cc == RR ,, GG ,, BB jj == -- 253253 ,, -- 252252 ,, ...... ,, 253253 ;; S33:计算分割左右阈值SRi、SLiS33: Calculate the segmentation left and right thresholds SR i , SL i : LL tt cc == mm aa xx kk &Element;&Element; (( -- 252252 ,, &mu;&mu; tt cc -- 11 )) (( ii nno dd )) RR tt cc == mm ii nno kk &Element;&Element; (( &mu;&mu; tt cc ++ 11 ,, 252252 )) (( ii nno dd )) ii nno dd == &Delta;&Delta; {{ kk || HSHS tt cc (( kk )) &le;&le; HSHS tt cc (( kk -- 11 )) aa nno dd HSHS tt cc (( kk )) &le;&le; HSHS tt cc (( kk ++ 11 )) }} ;; SRSR ii == RR ii RR ++ RR ii GG ++ RR ii BB SLSL ii == LL ii RR ++ LL ii GG ++ LL ii BB S34:分割图像:S34: Segment the image: QQ BB (( xx ,, ythe y )) == 00 ,, ii ff DD. Ff BB (( xx ,, ythe y )) &le;&le; SS RR ii oo rr DD. Ff BB (( xx ,, ythe y )) 11 ,, oo tt hh ee rr ww ii sthe s ee DFB(x,y)=|ΔR(x,y)|+|ΔG(x,y)|+|ΔB(x,y)|D FB (x,y)=|ΔR(x,y)|+|ΔG(x,y)|+|ΔB(x,y)| S35:若QB(x,y)为0就将图像fi(x,y)中对应位置的像素信息更新到其背景图像fvB(x,y)中:S35: If QB(x, y) is 0, update the pixel information of the corresponding position in the image f i (x, y) to its background image fv B (x, y): RR BB (( xx ,, ythe y )) == RR BB (( xx ,, ythe y )) &times;&times; 77 ++ RR SS (( xx ,, ythe y )) 88 GG BB (( xx ,, ythe y )) == GG BB (( xx ,, ythe y )) &times;&times; 77 ++ GG SS (( xx ,, ythe y )) 88 BB BB (( xx ,, ythe y )) == BB BB (( xx ,, ythe y )) &times;&times; 77 ++ BB SS (( xx ,, ythe y )) 88 若QB(x,y)不为0,就去除前景阴影并将相应的QB(x,y)置为0;If QB(x,y) is not 0, remove the foreground shadow and set the corresponding QB(x,y) to 0; S36:对QB(x,y)采用约束行程算法和形态学方法填补前景目标的孔去除孤立像素和极小目标获得最终的图像分割。S36: For QB(x,y), the constrained stroke algorithm and the morphological method are used to fill the holes of the foreground target, remove isolated pixels and extremely small targets, and obtain the final image segmentation. 4.根据权利要求1所述的烟田采集图像分割方法,其特征在于,所述步骤S3中判断第i帧图像是否存在光照昏暗的方法如下:4. the tobacco field collection image segmentation method according to claim 1, is characterized in that, in the described step S3, the method for judging whether the i-th frame image has dim light is as follows: &Sigma;&Sigma; xx == 11 Mm &Sigma;&Sigma; ythe y == 11 NN fvfv ii (( xx ,, ythe y )) << ThTh 22 式中x和y分别代表大小为M×N的一帧图像的像素坐标,Th2=c2×M×N,c2为常系数。In the formula, x and y respectively represent the pixel coordinates of a frame image with a size of M×N, Th 2 =c 2 ×M×N, and c 2 is a constant coefficient. 5.根据权利要求1所述的烟田采集图像分割方法,其特征在于,所述步骤S4中进行光照抑制的过程如下:5. The tobacco field acquisition image segmentation method according to claim 1, characterized in that, the process of light suppression in the step S4 is as follows: Hh 11 (( uu ,, vv )) == (( &gamma;&gamma; Hh -- &gamma;&gamma; LL )) &lsqb;&lsqb; 11 -- expexp (( -- cc 00 (( DD. (( uu ,, vv )) DD. 00 )) 22 )) &rsqb;&rsqb; ++ &gamma;&gamma; LL DD. (( uu ,, vv )) == &lsqb;&lsqb; (( uu -- Mm 22 )) 22 ++ (( vv -- NN 22 )) 22 &rsqb;&rsqb; 11 22 .. 6.根据权利要求1所述的烟田采集图像分割方法,其特征在于,所述步骤S4中进行光照补偿的过程如下:6. The tobacco field acquisition image segmentation method according to claim 1, wherein the process of performing illumination compensation in the step S4 is as follows: Hh 11 (( uu ,, vv )) == (( &gamma;&gamma; Hh -- &gamma;&gamma; LL )) &lsqb;&lsqb; 11 -- expexp (( -- cc 00 (( DD. (( uu ,, vv )) DD. 00 33 )) 22 )) &rsqb;&rsqb; ++ &gamma;&gamma; LL DD. (( uu ,, vv )) == &lsqb;&lsqb; (( uu -- Mm 22 )) 22 ++ (( vv -- NN 22 )) 22 &rsqb;&rsqb; 11 22 ..
CN201510551490.9A 2015-08-31 2015-08-31 Tobacco field acquisition image segmentation method Pending CN105335962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510551490.9A CN105335962A (en) 2015-08-31 2015-08-31 Tobacco field acquisition image segmentation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510551490.9A CN105335962A (en) 2015-08-31 2015-08-31 Tobacco field acquisition image segmentation method

Publications (1)

Publication Number Publication Date
CN105335962A true CN105335962A (en) 2016-02-17

Family

ID=55286467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510551490.9A Pending CN105335962A (en) 2015-08-31 2015-08-31 Tobacco field acquisition image segmentation method

Country Status (1)

Country Link
CN (1) CN105335962A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355563A (en) * 2016-08-31 2017-01-25 河南工业大学 Image defogging method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070177797A1 (en) * 2006-01-27 2007-08-02 Tandent Vision Science, Inc. Method and system for identifying illumination fields in an image
CN103324931A (en) * 2012-03-22 2013-09-25 北京百度网讯科技有限公司 Method and device for image color binarization
CN103632132A (en) * 2012-12-11 2014-03-12 广西工学院 Face detection and recognition method based on skin color segmentation and template matching
CN103871066A (en) * 2014-03-27 2014-06-18 武汉大学 Method for constructing similarity matrix in ultrasound image Ncut segmentation process

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070177797A1 (en) * 2006-01-27 2007-08-02 Tandent Vision Science, Inc. Method and system for identifying illumination fields in an image
CN103324931A (en) * 2012-03-22 2013-09-25 北京百度网讯科技有限公司 Method and device for image color binarization
CN103632132A (en) * 2012-12-11 2014-03-12 广西工学院 Face detection and recognition method based on skin color segmentation and template matching
CN103871066A (en) * 2014-03-27 2014-06-18 武汉大学 Method for constructing similarity matrix in ultrasound image Ncut segmentation process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张晓宇 等: "基于同态滤波抑制光照变化的视频分割算法", 《模式识别与人工智能》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355563A (en) * 2016-08-31 2017-01-25 河南工业大学 Image defogging method and device
CN106355563B (en) * 2016-08-31 2019-05-24 河南工业大学 A kind of image defogging method and device

Similar Documents

Publication Publication Date Title
JP7063039B2 (en) Target detection method, target detection device and image processing device
CN107016691B (en) Moving Object Detection Method Based on Superpixel Features
CN103093203B (en) A kind of human body recognition methods again and human body identify system again
CN104021544B (en) A kind of greenhouse vegetable disease monitor video extraction method of key frame, that is, extraction system
CN103646392B (en) Backlighting detecting and equipment
CN105913441A (en) Shadow removal method for improving target detection performance in video
CN104599511B (en) Traffic flow detection method based on background modeling
CN103974053B (en) A kind of Automatic white balance antidote extracted based on ash point
CN103810716B (en) Move and the image partition method of Renyi entropy based on gray scale
CN105046721B (en) The Camshift algorithms of barycenter correction model are tracked based on Grabcut and LBP
CN107256539B (en) An Image Sharpening Method Based on Local Contrast
CN104966054B (en) Detection method of small target in unmanned plane visible images
CN103020924B (en) Low-illumination monitored image enhancement method based on similar scenes
CN107146210A (en) A Method of Detecting and Removing Shadows Based on Image Processing
CN106097366A (en) A kind of image processing method based on the Codebook foreground detection improved
CN104504722A (en) Method for correcting image colors through gray points
CN103942812A (en) Moving object detection method based on Gaussian mixture and edge detection
JP5352859B2 (en) Method and apparatus for maintaining video background using multiple Gaussian distribution models
CN108921857A (en) A kind of video image focus area dividing method towards monitoring scene
CN108334824B (en) State recognition method of high voltage disconnector based on background difference and iterative search
CN104933728A (en) Mixed motion target detection method
CN101364304A (en) Shadow detection method based on color invariance and Gaussian model
CN105046670A (en) Image rain removal method and system
CN111783673B (en) An Improved Method of Video Segmentation Based on OSVOS
CN108875759A (en) A kind of image processing method, device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160217

WD01 Invention patent application deemed withdrawn after publication