CN102572205B - Image processing method, device and system - Google Patents

Image processing method, device and system Download PDF

Info

Publication number
CN102572205B
CN102572205B CN201110443618.1A CN201110443618A CN102572205B CN 102572205 B CN102572205 B CN 102572205B CN 201110443618 A CN201110443618 A CN 201110443618A CN 102572205 B CN102572205 B CN 102572205B
Authority
CN
China
Prior art keywords
image
white
color
pixel
boundary
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.)
Active
Application number
CN201110443618.1A
Other languages
Chinese (zh)
Other versions
CN102572205A (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.)
Fangzhu Wuhan Technology Co ltd
Founder International Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing Co Ltd
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 Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201110443618.1A priority Critical patent/CN102572205B/en
Publication of CN102572205A publication Critical patent/CN102572205A/en
Application granted granted Critical
Publication of CN102572205B publication Critical patent/CN102572205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention relates to a searching method for a regional boundary of a color block in an image. The method comprises the following steps of: taking a pixel point matrix of an entire image; classifying pixel points according to transparency values and color values of the pixels; searching boundary closed curves between different types of pixel points; finally grouping the boundary closed curves, wherein one or more boundary closed curves which belong to a communication region of the same type of pixel points to form a group to construct a polygon; and finding out the outermost boundary closed curve, wherein the polygon is the regional boundary of the color block. The invention also relates to a searching device for the regional boundary of a white block in the image and image bottoming and trapping method and system on the basis. The regional boundary of the white block in the image is additionally searched, so that the white region in the image is neglected during bottoming; color transfer trapping occurs when a normal color block meets white in the image; meanwhile, the interference of a small white region in the image is eliminated; and the trapping effect is better.

Description

A kind of image processing method, Apparatus and system
Technical field
The invention belongs to technical field of image processing, be specifically related to finding method and the device of color block zone boundary in a kind of image, and shop fixtures on this basis, trapping method and system.
Background technology
In prior art, exist and find the method for transparent, the translucent and zone of opacity in picture of publishing picture, and do not have the method for finding white portion in the picture of publishing picture.Therefore, when shop fixtures, can not ignore the white portion in image, cause shop fixtures effect bad; Between white portion when automatic trapping in common color lump and image, do not allow look, cause register trouble.Described shop fixtures refers to layer overlay background color under all nontransparent color lumps, and in the time of like this on being printed onto some transparent material, effect can be better, and transparent part is without shop fixtures, and client need to see the product of package interior.Describedly allow look refer to by a dark colored inks and a plurality of light China ink, to be formed and dark colored inks and light black difference in brightness when very large when a color lump, for fear of cause light color China ink to expose at color lump edge due to register trouble meeting, cause significantly " color limit ", light China ink need to be inside contracted, Here it is allows look.As shown in Figure 1, Fig. 1 a is the original image before not dealing with, and wherein blue frame inside is divided into nontransparent image, and place, four angles is white portion, and centre is pink colour border circular areas, and purple piece is common color lump.Adopt existing method to carry out effect after shop fixtures as shown in Figure 1 b to Fig. 1 a, wherein white portion has also been carried out to shop fixtures.Adopt existing method to carry out effect after trapping as shown in Fig. 1 c to Fig. 1 a, wherein yellow is enclosed part and is not allowed look.
The main flow process that conventional images is sought limit algorithm is: first get the pixel matrix of entire image, according to the transparence value of pixel, pixel is classified; Then travel through all pixels, seek the border (comprising translucent and opaque two-part border) of the picture of publishing picture.Because the method is not found out the border of white portion, thereby cannot ignore the white in image while causing shop fixtures, not allow look between white during trapping in image and common color lump, effect is poor.
Summary of the invention
For the defect existing in prior art, technical problem to be solved by this invention is to provide finding method and the device on white portion border in a kind of image, and the good image shop fixtures of a kind of effect, trapping method and system are provided on this basis.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows:
An image shop fixtures method, comprises the following steps:
(1) get the pixel matrix of entire image, according to the transparence value of pixel and color value, pixel is classified; Described pixel is divided into following five classes: completely transparent, translucent and be white, translucent and be non-white, opaque and be white, opaque and be non-white;
(2) find out the boundary closed curve between inhomogeneity pixel;
(3) described boundary closed curve is divided into groups, the one or more boundary closed curves that belong to a similar pixel connected region are one group, form a polygon, find out every group of outmost boundary closed curve, described polygon is just the zone boundary of color block;
(4) in described opaque white color piece region, fill white, in other color block regions, fill corresponding color;
(5) all colours piece is associated with described image;
(6) traversal all colours piece, if this color block is the opaque white color piece region in image, does not carry out shop fixtures to this region unit, otherwise this color block is carried out to shop fixtures.
Image shop fixtures method as above, preferred, described sorting technique is as follows:
Get all channel informations in color of image space, each pixel all has alpha, C, M, Y, five values of information of K;
If the alpha value of a pixel is 0, for completely transparent;
If alpha value between 1 to 254 and CMYK value be 0, be translucent and for white;
If alpha value between 1 to 254 and CMYK value have at least one not to be 0, be translucent and for non-white;
If alpha value be 255 and CMYK value be 0, be opaque and for white;
If alpha value be 255 and CMYK value have at least one not to be 0, be opaque and for non-white.
Image shop fixtures method as above, preferred, in step (2), after the boundary closed curve of finding out between inhomogeneity pixel, also comprise that take described boundary closed curve girth is foundation, deletes the step that is less than the boundary closed curve of setting girth.
Image shop fixtures method as above, described arrange girth on be limited to 60 pixels, under be limited to 5 pixels; Preferably, described setting girth is 3.0 * 10 -5* ImageSize, the size of described ImageSize presentation video.
Image shop fixtures method described above, preferred, in step (5), by record the mode of the ID of this image in color block, realize the associated of color block and image.
An image shop fixtures system, comprises for getting the pixel matrix of entire image, the taxon of pixel being classified according to the transparence value of pixel and color value; Described pixel is divided into following five classes: completely transparent, translucent and be white, translucent and be non-white, opaque and be white, opaque and be non-white;
For finding out first of the closed curve of demarcating between inhomogeneity pixel, find unit;
For boundary closed curve is divided into groups, the one or more boundary closed curves that belong to a similar pixel connected region are one group, find out second of outermost boundary closed curve and find unit;
For fill white in opaque white color piece region, in other color block regions, fill the filling device of respective color;
For all colours piece is carried out to associated associated apparatus with this image;
Be used for traveling through all colours piece, if this color block is the opaque white color piece region in image, this color block do not carried out to shop fixtures, otherwise this color block is carried out to the shop fixtures device of shop fixtures.
Image shop fixtures system as above, the closed curve girth that also comprises demarcating is foundation, deletes the delete cells that is less than the boundary closed curve of setting girth.
The method of the invention, Apparatus and system, additionally seeking the white portion border of publishing picture in picture,, there is color fading and trapping in the sometimes white portion in image slightly while making shop fixtures when white in common color lump and image is met, the interference of the medium and small white portion of rejection image simultaneously, trapping effect is better.
Accompanying drawing explanation
Fig. 1 a is the original image before not dealing with in prior art, and Fig. 1 b adopts existing method to carry out the effect schematic diagram after shop fixtures to Fig. 1 a, and Fig. 1 c adopts existing method to carry out the effect schematic diagram after trapping to Fig. 1 a;
Fig. 2 is the structured flowchart of white blocks zone boundary device for searching in image in execution mode 1;
Fig. 3 is the flow chart of white blocks zone boundary finding method in image in execution mode 1;
Fig. 4 a is the original image before not dealing with in execution mode 1, and Fig. 4 b adopts existing method image to be sought to the result schematic diagram on limit, and Fig. 4 c adopts method described in present embodiment image to be sought to the result schematic diagram on limit;
Fig. 5 is the structured flowchart of image shop fixtures system in execution mode 2;
Fig. 6 is the flow chart of image shop fixtures method in execution mode 2.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Execution mode 1
Present embodiment has been recorded device for searching and the method for color block zone boundary in a kind of image.As shown in Figure 2, this device 1 comprises that taxon 11, first is found unit 12, delete cells 13 and second is found unit 14.
Taxon 11, for getting the pixel matrix of entire image, is classified to pixel according to the transparence value of pixel and color value.First finds unit 12 for finding out the closed curve of demarcating between inhomogeneity pixel.Delete cells 13 is foundation for take boundary closed curve girth, deletes the boundary closed curve that is less than setting regions.Second finds unit 14 for boundary closed curve is divided into groups, and the one or more boundary closed curves that belong to a similar pixel connected region are one group, find out outermost boundary closed curve, form a polygon.
As shown in Figure 3, the method that adopts said apparatus to find white blocks zone boundary in image comprises the following steps:
(1) taxon 11 is got the pixel matrix of entire image, according to the transparence value of pixel and color value, pixel is classified.
In present embodiment, pixel is divided into following five classes: completely transparent, translucent and for white, translucent and be non-white, opaque and for white, opaque and be non-white.Accordingly, present embodiment can be found out the border in above-mentioned five class color block regions.
All channel informations of getting color of image space, each pixel all has five values of information such as alpha, C, M, Y, K, and all values is value between 0 to 255 all.If the alpha value of a pixel is 0, for completely transparent.If alpha value between 1 to 254 and CMYK value be 0, be translucent and for white.If alpha value between 1 to 254 and CMYK value have at least one not to be 0, be translucent and for non-white.If alpha value be 255 and CMYK value be 0, be opaque and for white.If alpha value be 255 and CMYK value have at least one not to be 0, be opaque and for non-white.
(2) first find unit 12 finds out the boundary closed curve between inhomogeneity pixel.It is foundation that delete cells 13 be take boundary closed curve girth, deletes and is less than the boundary closed curve of setting girth.
Arrange girth on be limited to 60 pixels, under be limited to 5 pixels.Preferably, setting girth is 3.0 * 10 -5* ImageSize.Wherein, the size of ImageSize presentation video.
(3) second find 14 pairs of unit boundary closed curve divides into groups, the one or more boundary closed curves that belong to a similar pixel connected region are one group, form a polygon, a corresponding color block, find out outmost boundary closed curve, be polygonal outer closed curve, all the other curves are all included in this curve.Described polygon is just the zone boundary of color block.
As shown in Figure 4, Fig. 4 a is original image, and Fig. 4 b adopts existing method image to be sought to the result signal on limit, and Fig. 4 c adopts method shown in present embodiment image to be sought to the result signal on limit.
Execution mode 2
Present embodiment has been recorded a kind of image shop fixtures system and method.As shown in Figure 5, this system comprises device for searching 1, filling device 2, associated apparatus 3 and shop fixtures device 4.
Device for searching 1 adopts the device for searching described in execution mode 1, for finding the zone boundary of the picture color block of publishing picture.Filling device 2, for fill white in opaque white color piece region, is filled corresponding color in other color block regions.Associated apparatus 3 is for carrying out associated by all colours piece with this image.Shop fixtures device 4, for traveling through all colours piece, if this color block is the opaque white color region in image, does not carry out shop fixtures to this color block, otherwise this color block is carried out to shop fixtures.
As shown in Figure 6, the method that adopts said system to carry out shop fixtures to image comprises the following steps:
(1) device for searching 1 adopts method described in execution mode 1 to find the zone boundary of color block in the picture of publishing picture.
Pixel is that the zone boundary of opaque white color is the zone boundary of opaque white color piece in image.
(2) filling device 2 is filled white in opaque white color piece region, in other color block regions, fills corresponding color.
(3) associated apparatus 3 carries out associated by all colours piece with this image.Can realize association by record the mode of the ID of this image in color block.
(4) traversal all colours piece, if this color block is the opaque white color region in image, does not carry out shop fixtures to this color block, otherwise this color block is carried out to shop fixtures.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technology thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (8)

1. an image shop fixtures method, is characterized in that, comprises the following steps:
(1) get the pixel matrix of entire image, according to the transparence value of pixel and color value, pixel is classified; Described pixel is divided into following five classes: completely transparent, translucent and be white, translucent and be non-white, opaque and be white, opaque and be non-white;
(2) find out the boundary closed curve between inhomogeneity pixel;
(3) described boundary closed curve is divided into groups, the one or more boundary closed curves that belong to a similar pixel connected region are one group, form a polygon, find out every group of outmost boundary closed curve, described polygon is just the zone boundary of color block;
(4) in described opaque white color piece region, fill white, in other color block regions, fill corresponding color;
(5) all colours piece is associated with described image;
(6) traversal all colours piece, if this color block is the opaque white color piece region in image, does not carry out shop fixtures to this region unit, otherwise this color block is carried out to shop fixtures.
2. image shop fixtures method as claimed in claim 1, is characterized in that: the method for described classification is as follows:
Get all channel informations in color of image space, each pixel all has alpha, C, M, Y, five values of information of K;
If the alpha value of a pixel is 0, for completely transparent;
If alpha value between 1 to 254 and CMYK value be 0, be translucent and for white;
If alpha value between 1 to 254 and CMYK value have at least one not to be 0, be translucent and for non-white;
If alpha value be 255 and CMYK value be 0, be opaque and for white;
If alpha value be 255 and CMYK value have at least one not to be 0, be opaque and for non-white.
3. image shop fixtures method as claimed in claim 1, it is characterized in that: in step (2) after the boundary closed curve of finding out between inhomogeneity pixel, also comprise that take described boundary closed curve girth is foundation, delete the step that is less than the boundary closed curve of setting girth.
4. image shop fixtures method as claimed in claim 3, is characterized in that: described arrange girth on be limited to 60 pixels, under be limited to 5 pixels.
5. image shop fixtures method as claimed in claim 3, is characterized in that: described setting girth is 3.0 * 10 -5* ImageSize, the size of described ImageSize presentation video.
6. image shop fixtures method as claimed in claim 1, is characterized in that: in step (5), by record the mode of the ID of this image in color block, realize the associated of color block and image.
7. an image shop fixtures system, is characterized in that, comprises for getting the pixel matrix of entire image the taxon (11) of pixel being classified according to the transparence value of pixel and color value; Described pixel is divided into following five classes: completely transparent, translucent and be white, translucent and be non-white, opaque and be white, opaque and be non-white;
For finding out first of the closed curve of demarcating between inhomogeneity pixel, find unit (12);
For boundary closed curve is divided into groups, the one or more boundary closed curves that belong to a similar pixel connected region are one group, find out second of outermost boundary closed curve and find unit (14);
For fill white in opaque white color piece region, in other color block regions, fill the filling device (2) of respective color;
For all colours piece and this image are carried out to associated associated apparatus (3);
Be used for traveling through all colours piece, if this color block is the opaque white color piece region in image, this color block do not carried out to shop fixtures, otherwise this color block is carried out to the shop fixtures device (4) of shop fixtures.
8. image shop fixtures system as claimed in claim 7, is characterized in that: the closed curve girth that also comprises demarcating is foundation, deletes the delete cells (13) that is less than the boundary closed curve of setting girth.
CN201110443618.1A 2011-12-27 2011-12-27 Image processing method, device and system Active CN102572205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110443618.1A CN102572205B (en) 2011-12-27 2011-12-27 Image processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110443618.1A CN102572205B (en) 2011-12-27 2011-12-27 Image processing method, device and system

Publications (2)

Publication Number Publication Date
CN102572205A CN102572205A (en) 2012-07-11
CN102572205B true CN102572205B (en) 2014-04-30

Family

ID=46416602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110443618.1A Active CN102572205B (en) 2011-12-27 2011-12-27 Image processing method, device and system

Country Status (1)

Country Link
CN (1) CN102572205B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679658B (en) * 2013-12-13 2016-06-22 厦门美图网科技有限公司 A kind of image processing method according to the decolouring of dominant hue intelligence
CN103618886B (en) * 2013-12-13 2015-07-08 厦门美图网科技有限公司 Shooting method for intelligently decoloring according to main color tone
CN106204588B (en) * 2016-07-08 2020-03-17 腾讯科技(深圳)有限公司 Image processing method and device
CN110140149B (en) * 2017-01-18 2022-04-05 华为技术有限公司 Color filling method and terminal
CN108647680B (en) * 2018-04-28 2021-11-12 北京盒子鱼教育科技有限公司 Image positioning frame detection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275225A (en) * 1997-05-22 2000-11-29 世雅企业股份有限公司 Image processor and image processing method
CN101558404A (en) * 2005-06-17 2009-10-14 微软公司 Image segmentation
CN101588459A (en) * 2009-06-26 2009-11-25 北京交通大学 A kind of video keying processing method
CN101676953A (en) * 2008-08-22 2010-03-24 奥多比公司 Automatic video image segmentation
CN101729743A (en) * 2008-10-21 2010-06-09 方正国际软件(北京)有限公司 Method of image trapping
CN101923707A (en) * 2009-07-23 2010-12-22 北京师范大学 Watershed algorithm-based high spatial resolution multi-spectral remote sensing image segmentation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1275225A (en) * 1997-05-22 2000-11-29 世雅企业股份有限公司 Image processor and image processing method
CN101558404A (en) * 2005-06-17 2009-10-14 微软公司 Image segmentation
CN101676953A (en) * 2008-08-22 2010-03-24 奥多比公司 Automatic video image segmentation
CN101729743A (en) * 2008-10-21 2010-06-09 方正国际软件(北京)有限公司 Method of image trapping
CN101588459A (en) * 2009-06-26 2009-11-25 北京交通大学 A kind of video keying processing method
CN101923707A (en) * 2009-07-23 2010-12-22 北京师范大学 Watershed algorithm-based high spatial resolution multi-spectral remote sensing image segmentation method

Also Published As

Publication number Publication date
CN102572205A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102572205B (en) Image processing method, device and system
CN1655583B (en) Systems and methods for generating high compression image data files having multiple foreground planes
CN104318542B (en) Image enhancement processing method
CN105430361B (en) Imaging method, imaging sensor, imaging device and electronic installation
CN104899586A (en) Method for recognizing character contents included in image and device thereof
CN101074915A (en) Device, method and program for detecting impurities in a fluid
CN101076831A (en) Pseudoscopic image reduction of digital video
CN1960439A (en) Methods and devices for image signal processing
CN101667287B (en) Method for detecting corner points of outermost frames of symbols in symbol images
CN104112763A (en) Pixel arrangement structure, display device and display method thereof
CN105323495A (en) Region based shutter adaptation method for image exposure
CN109308711A (en) Object detection method, device and image processing equipment
CN102509264B (en) Image-segmentation-based scanning image dedusting method
CN105578066B (en) Imaging method, imaging device and electronic installation
CN106228581A (en) By GPU, pixel format is converted to by ARGB the method and system of NV12
CN107507142A (en) Signal lamp image processing method
CN103903265B (en) The method of detection industrial products packages in damaged condition
CN105578080A (en) Imaging method, image sensor, imaging device and electronic device
CN104156703A (en) License plate location method and system based on color texture
CN104349161B (en) The dirty decision method of camera module image
CN107148648A (en) Estimate the method and apparatus of the color mapping between two different colours classification version of image sequence
CN106507079A (en) A kind of color rendition method and device
CN113392819A (en) Batch academic image automatic segmentation and labeling device and method
KR102398874B1 (en) Apparatus and method for separating foreground from background
CN203368604U (en) Camera white balance testing cards

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230808

Address after: Room 2514, Building 1, Lejia Building, No. 8 Jiarui Lane, Suzhou Industrial Park, Suzhou Area, China (Jiangsu) Pilot Free Trade Zone, Suzhou City, Jiangsu Province, 215000

Patentee after: FOUNDER INTERNATIONAL Co.,Ltd.

Patentee after: Fangzhu (Wuhan) Technology Co.,Ltd.

Address before: Founder International Building, Creative Industry Park, No. 328 Xinghu Street, Industrial Park, Suzhou City, Jiangsu Province, 215123

Patentee before: FOUNDER INTERNATIONAL Co.,Ltd.

Patentee before: Founder International Co.,Ltd. (Beijing)