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
illumination
field picture
image
segmentation
vega
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 provides a tobacco field acquisition image segmentation method. According to the method, when that illumination in a scene has a relatively great change is detected, the influence of illumination change on video segmentation is inhibited by utilizing a homomorphic filtering algorithm, and then video segmentation is performed by adopting a color difference histogram algorithm, so that it is ensured that background update and foreground target segmentation still can be steadily performed in a video scene with the relatively great illumination change.

Description

A kind of vega gathers image partition method
Technical field
The present invention relates to image processing field, more specifically, relate to a kind of vega and gather image partition method.
Background technology
To gathering in process that the image of vega processes, how processing the impact that illumination variation brings is an important problem.Although proposed a lot of algorithm for the situation containing illumination variation in scene, but the arbitrariness of illumination variation and rapidity still make these detection algorithms there is higher false drop rate.In recent years, propose a kind of new study mechanism and improve the adaptive faculty of Gaussian Mixture algorithm to background, and utilize based on the prospect false drop rate under the heuristic secondary rate control method minimizing illumination variation of frame difference, also useful 3 threshold values belong to pixel the new method that prospect or background classify, and solve different illumination conditions to a certain extent to the impact of Video segmentation; And the local 3 meta schema operator proposing Scale invariant solves the impact etc. of illumination variation. find that color histogram of difference Video Segmentation that these methods propose has Target Segmentation steadily and surely and the feature such as fast operation compared with above-mentioned algorithm by simulation comparison.Because these algorithms utilize image and its background image color difference to set up color histogram of difference, then segmentation threshold is set, finally judge that each pixel of image belongs to background or foreground target, thus when in scene, illumination variation amplitude is larger, the image inevitably illumination variation caused and the Variant statistical of its background image respective pixel are in color histogram of difference, affect the setting of segmentation threshold, thus cause Iamge Segmentation was lost efficacy, if upgraded unsuccessfully its background image. context update continues to lose efficacy, and will affect subsequent video segmentation effect.
Summary of the invention
The invention provides a kind of vega gather image partition method, the method can suppress illumination variation on the impact of Iamge Segmentation robustness, can be sane carry out image background renewal and foreground object segmentation.
In order to reach above-mentioned technique effect, technical scheme of the present invention is as follows:
A kind of vega gathers image partition method, comprises the following steps:
S1: the vega number of image frames Nf of statistic sampling, adopt the background extraction algorithm based on probability to extract background image f b(x, y);
S2: extract the i-th two field picture f respectively ithe redness of (x, y), green and blue valve Ri (x, y), Gi (x, y) and Bi (x, y), i=0,1, Nf;
S3: by the background image f of rgb color space b(x, y) and the i-th two field picture f i(x, y) is transformed into HSV color space, and the luminance component of the i-th two field picture and background image thereof is respectively fv i(x, y) and fv b(x, y), judges whether the i-th two field picture and background image illumination thereof change, is just split by the i-th two field picture if unchanged, just judges whether the i-th two field picture exists illumination further dim if change;
S4: if it is dim just respectively to fv to there is illumination i(x, y) and fv b(x, y) carries out illumination compensation, and by the fv after illumination compensation i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f ' in conjunction with tone, saturation degree component again i(x, y) and f ' b(x, y); If it is dim just direct to fv to there is not illumination i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f in conjunction with tone, saturation degree component again " i(x, y) and f " b(x, y);
S5: to f ' i(x, y), f ' b(x, y) or f " i(x, y), f " bthe process that (x, y) repeats step S3-S5 carries out context update and segmentation.
Further, judge in described step S3 the i-th two field picture and the whether vicissitudinous method of background image illumination as follows:
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 1=c 1× M × N, c 1for constant coefficient.
Further, the process split the i-th two field picture in described step S3 is as follows:
S31: utilize f i(x, y) and f b(x, y) calculates color difference histogram value respectively
ΔR(x,y)=R i(x,y)-R B(x,y)
ΔG(x,y)=G i(x,y)-G B(x,y)x=1,2,…,M;y=1,2…,N;
ΔB(x,y)=B i(x,y)-B B(x,y)
S32: to the smoothing process of color difference histogram value:
S33: computed segmentation left and right threshold value SR i, SL i:
S34: segmentation image:
S35: if QB (x, y) is 0 just by image f iin (x, y), the Pixel Information of correspondence position is updated to its background image fv bin (x, y):
If QB (x, y) is not 0, just removes prospect shade and corresponding QB (x, y) is set to 0;
S36: the hole adopting constraint length algorithm and morphological method to fill up foreground target to QB (x, y) is removed isolated pixel and minimum target and obtained final Iamge Segmentation.
Further, judge in described step S3 that the method whether the i-th two field picture exists illumination dim is as follows:
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 2=c 2× M × N, c 2for constant coefficient.
Further, the process of carrying out illumination suppression in described step S4 is as follows:
Further, the process of carrying out illumination compensation in described step S4 is as follows:
Compared with prior art, the beneficial effect of technical solution of the present invention is:
The inventive method is when detecting in scene that illumination has larger change, Homomorphic Filtering Algorithm is utilized to suppress illumination variation on the impact of Video segmentation, then color difference histogramming algorithm is adopted to carry out Video segmentation, thus ensure containing larger illumination variation video scene in, still can be sane carry out context update and foreground object segmentation.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Accompanying drawing, only for exemplary illustration, can not be interpreted as the restriction to this patent;
In order to better the present embodiment is described, some parts of accompanying drawing have omission, zoom in or out, and do not represent the size of actual product;
To those skilled in the art, in accompanying drawing, some known features and explanation thereof may be omitted is understandable.
Below in conjunction with drawings and Examples, technical scheme of the present invention is described further.
Embodiment 1
A kind of vega gathers image partition method, comprises the following steps:
S1: the vega number of image frames Nf of statistic sampling, adopt the background extraction algorithm based on probability to extract background image f b(x, y);
S2: extract the i-th two field picture f respectively ithe redness of (x, y), green and blue valve Ri (x, y), Gi (x, y) and Bi (x, y), i=0,1, Nf;
S3: by the background image f of rgb color space b(x, y) and the i-th two field picture f i(x, y) is transformed into HSV color space, and the luminance component of the i-th two field picture and background image thereof is respectively fv i(x, y) and fv b(x, y), judges whether the i-th two field picture and background image illumination thereof change, is just split by the i-th two field picture if unchanged, just judges whether the i-th two field picture exists illumination further dim if change;
S4: if it is dim just respectively to fv to there is illumination i(x, y) and fv b(x, y) carries out illumination compensation, and by the fv after illumination compensation i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f ' in conjunction with tone, saturation degree component again i(x, y) and f ' b(x, y); If it is dim just direct to fv to there is not illumination i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f in conjunction with tone, saturation degree component again " i(x, y) and f " b(x, y);
S5: to f ' i(x, y), f ' b(x, y) or f " i(x, y), f " bthe process that (x, y) repeats step S3-S5 carries out context update and segmentation.
Judge in step S3 the i-th two field picture and the whether vicissitudinous method of background image illumination as follows:
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 1=c 1× M × N, c 1for constant coefficient.
The process split the i-th two field picture in step S3 is as follows:
S31: utilize f i(x, y) and f b(x, y) calculates color difference histogram value respectively
ΔR(x,y)=R i(x,y)-R B(x,y)
ΔG(x,y)=G i(x,y)-G B(x,y)x=1,2,…,M;y=1,2…,N;
ΔB(x,y)=B i(x,y)-B B(x,y)
S32: to the smoothing process of color difference histogram value:
S33: computed segmentation left and right threshold value SR i, SL i:
S34: segmentation image:
S35: if QB (x, y) is 0 just by image f iin (x, y), the Pixel Information of correspondence position is updated to its background image fv bin (x, y):
If QB (x, y) is not 0, just removes prospect shade and corresponding QB (x, y) is set to 0;
S36: the hole adopting constraint length algorithm and morphological method to fill up foreground target to QB (x, y) is removed isolated pixel and minimum target and obtained final Iamge Segmentation.
Judge in step S3 that the method whether the i-th two field picture exists illumination dim is as follows:
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 2=c 2× M × N, c 2for constant coefficient.
The process of carrying out illumination suppression in step S4 is as follows:
Further, the process of carrying out illumination compensation in described step S4 is as follows:
The inventive method is when detecting in scene that illumination has larger change, Homomorphic Filtering Algorithm is utilized to suppress illumination variation on the impact of Video segmentation, then adopt color difference histogramming algorithm to carry out Video segmentation. thus ensure containing in the video scene of larger illumination variation, still can be sane carry out context update and foreground object segmentation.
The corresponding same or analogous parts of same or analogous label;
Describe in accompanying drawing position relationship for only for exemplary illustration, the restriction to this patent can not be interpreted as;
Obviously, the above embodiment of the present invention is only for example of the present invention is clearly described, and is not the restriction to embodiments of the present invention.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.All any amendments done within the spirit and principles in the present invention, equivalent to replace and improvement etc., within the protection domain that all should be included in the claims in the present invention.

Claims (6)

1. vega gathers an image partition method, it is characterized in that, comprises the following steps:
S1: the vega number of image frames Nf of statistic sampling, adopt the background extraction algorithm based on probability to extract background image f b(x, y);
S2: extract the i-th two field picture f respectively ithe redness of (x, y), green and blue valve Ri (x, y), Gi (x, y) and Bi (x, y), i=0,1, Nf;
S3: by the background image f of rgb color space b(x, y) and the i-th two field picture f i(x, y) is transformed into HSV color space, and the luminance component of the i-th two field picture and background image thereof is respectively fv i(x, y) and fv b(x, y), judges whether the i-th two field picture and background image illumination thereof change, is just split by the i-th two field picture if unchanged, just judges whether the i-th two field picture exists illumination further dim if change;
S4: if it is dim just respectively to fv to there is illumination i(x, y) and fv b(x, y) carries out illumination compensation, and by the fv after illumination compensation i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f ' in conjunction with tone, saturation degree component again i(x, y) and f ' b(x, y); If it is dim just direct to fv to there is not illumination i(x, y) and fv b(x, y) carries out illumination and suppresses to rotate back into rgb space generate f in conjunction with tone, saturation degree component again " i(x, y) and f " b(x, y);
S5: to f ' i(x, y), f ' b(x, y) or f " i(x, y), f " bthe process that (x, y) repeats step S3-S5 carries out context update and segmentation.
2. vega according to claim 1 gathers image partition method, it is characterized in that, judge in described step S3 the i-th two field picture and the whether vicissitudinous method of background image illumination as follows:
Σ x = 1 M Σ y = 1 N | fv i ( x , y ) - fv B ( x , y ) | > Th 1
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 1=c 1× M × N, c 1for constant coefficient.
3. vega according to claim 1 gathers image partition method, it is characterized in that, the process split the i-th two field picture in described step S3 is as follows:
S31: utilize f i(x, y) and f b(x, y) calculates color difference histogram value respectively
ΔR(x,y)=R i(x,y)-R B(x,y)
ΔG(x,y)=G i(x,y)-G B(x,y)x=1,2,…,M;y=1,2…,N;
ΔB(x,y)=B i(x,y)-B B(x,y)
S32: to the smoothing process of color difference histogram value:
{ HS j c = Σ k = - 2 2 Hist i c ( j + k ) 5 } c = R , G , B j = - 253 , - 252 , ... , 253 ;
S33: computed segmentation left and right threshold value SR i, SL i:
L t c = m a x k ∈ ( - 252 , μ t c - 1 ) ( i n d )
R t c = m i n k ∈ ( μ t c + 1 , 252 ) ( i n d )
i n d = Δ { k | HS t c ( k ) ≤ HS t c ( k - 1 ) a n d HS t c ( k ) ≤ HS t c ( k + 1 ) } ;
SR i = R i R + R i G + R i B
SL i = L i R + L i G + L i B
S34: segmentation image:
Q B ( x , y ) = 0 , i f D F B ( x , y ) ≤ S R i o r D F B ( x , y ) 1 , o t h e r w i s e
D FB(x,y)=|ΔR(x,y)|+|ΔG(x,y)|+|ΔB(x,y)|
S35: if QB (x, y) is 0 just by image f iin (x, y), the Pixel Information of correspondence position is updated to its background image fv bin (x, y):
R B ( x , y ) = R B ( x , y ) × 7 + R S ( x , y ) 8
G B ( x , y ) = G B ( x , y ) × 7 + G S ( x , y ) 8
B B ( x , y ) = B B ( x , y ) × 7 + B S ( x , y ) 8
If QB (x, y) is not 0, just removes prospect shade and corresponding QB (x, y) is set to 0;
S36: the hole adopting constraint length algorithm and morphological method to fill up foreground target to QB (x, y) is removed isolated pixel and minimum target and obtained final Iamge Segmentation.
4. vega according to claim 1 gathers image partition method, it is characterized in that, judges that the method whether the i-th two field picture exists illumination dim is as follows in described step S3:
&Sigma; x = 1 M &Sigma; y = 1 N fv i ( x , y ) < Th 2
In formula, x and y represents the pixel coordinate that size is a two field picture of M × N respectively, Th 2=c 2× M × N, c 2for constant coefficient.
5. vega according to claim 1 gathers image partition method, and it is characterized in that, the process of carrying out illumination suppression in described step S4 is as follows:
H 1 ( u , v ) = ( &gamma; H - &gamma; L ) &lsqb; 1 - exp ( - c 0 ( D ( u , v ) D 0 ) 2 ) &rsqb; + &gamma; L D ( u , v ) = &lsqb; ( u - M 2 ) 2 + ( v - N 2 ) 2 &rsqb; 1 2 .
6. vega according to claim 1 gathers image partition method, and it is characterized in that, the process of carrying out illumination compensation in described step S4 is as follows:
H 1 ( u , v ) = ( &gamma; H - &gamma; L ) &lsqb; 1 - exp ( - c 0 ( D ( u , v ) D 0 3 ) 2 ) &rsqb; + &gamma; L D ( u , v ) = &lsqb; ( u - M 2 ) 2 + ( v - N 2 ) 2 &rsqb; 1 2 .
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
CN103606132B (en) Based on the multiframe Digital Image Noise method of spatial domain and time domain combined filtering
CN103093429B (en) Image enchancing method
CN104408707B (en) Rapid digital imaging fuzzy identification and restored image quality assessment method
CN107016691A (en) Moving target detecting method based on super-pixel feature
CN105184812B (en) A kind of pedestrian based on target following hovers detection method
CN107944359A (en) Flame detecting method based on video
CN105261037A (en) Moving object detection method capable of automatically adapting to complex scenes
CN106327488B (en) Self-adaptive foreground detection method and detection device thereof
CN102768757B (en) Remote sensing image color correcting method based on image type analysis
CN102436575A (en) Method for automatically detecting and classifying station captions
CN104050478A (en) Smog detection method and system
CN104166983A (en) Motion object real time extraction method of Vibe improvement algorithm based on combination of graph cut
CN103020924B (en) Low-illumination monitored image enhancement method based on similar scenes
CN106097366A (en) A kind of image processing method based on the Codebook foreground detection improved
CN103258332A (en) Moving object detection method resisting illumination variation
CN105282530A (en) Method and device for implementing automatic white balance based on background modeling
CN111460964A (en) Moving target detection method under low-illumination condition of radio and television transmission machine room
CN102306307A (en) Positioning method of fixed point noise in color microscopic image sequence
CN107093186A (en) The strenuous exercise&#39;s detection method matched based on edge projection
CN113096103A (en) Intelligent smoke image sensing method for emptying torch
CN102938152B (en) Background modeling method in video monitoring
CN105335962A (en) Tobacco field acquisition image segmentation method
CN104463910B (en) High-speed motion target extraction method based on motion vector
CN109493361B (en) Fire smoke image segmentation method
CN111429375A (en) Night monitoring video quality improving method assisted by daytime image reference

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160217