CN104331912B - A kind of garment material method for quickly filling based on matrix of edge - Google Patents

A kind of garment material method for quickly filling based on matrix of edge Download PDF

Info

Publication number
CN104331912B
CN104331912B CN201410583597.7A CN201410583597A CN104331912B CN 104331912 B CN104331912 B CN 104331912B CN 201410583597 A CN201410583597 A CN 201410583597A CN 104331912 B CN104331912 B CN 104331912B
Authority
CN
China
Prior art keywords
matrix
pixel
region
fabric
filling
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
CN201410583597.7A
Other languages
Chinese (zh)
Other versions
CN104331912A (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.)
Shandong Jining Ruyi Woolen Textile Co Ltd
Xian Polytechnic University
Original Assignee
Shandong Jining Ruyi Woolen Textile Co Ltd
Xian Polytechnic 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 Shandong Jining Ruyi Woolen Textile Co Ltd, Xian Polytechnic University filed Critical Shandong Jining Ruyi Woolen Textile Co Ltd
Priority to CN201410583597.7A priority Critical patent/CN104331912B/en
Publication of CN104331912A publication Critical patent/CN104331912A/en
Application granted granted Critical
Publication of CN104331912B publication Critical patent/CN104331912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A kind of garment material method for quickly filling based on matrix of edge of the present invention, including:Preservation, garment material filling and the processing at fabric filling region edge of clothes region kimonos dress marginal information.Demand of the present invention for the displaying of clothes two-dimensional virtual, propose a kind of garment material method for quickly filling based on matrix of edge, reduce the man-machine interactively in garment material filling, the filling process of garment material is optimized, solves the problems, such as that garment material filling is difficult time-consuming in garment virtual display to a certain extent.

Description

A kind of garment material method for quickly filling based on matrix of edge
Technical field
The invention belongs to image procossing and garment virtual display technical field, and in particular to a kind of clothes based on matrix of edge Fill fabric method for quickly filling.
Background technology
Garment material displaying is the critical function of garment virtual display, and whether its display form is various, and whether bandwagon effect The true final choice for directly influencing client.With flourishing for clothes ecommerce, garment material display form is carried New requirement is gone out, has been based especially on the advanced custom-built system of clothes of network, user is desirable to see before clothing making completion The final whole structure displaying of clothing making of different garment fabric.The displaying of existing garment material has been applied, wherein with based on The garment material two dimension of graph image is shown as mainstream technology, and with browsing, loading is quick, interaction is convenient, is technologically simple to tie up for it The advantages that shield;And possess more clothes fashion for one and provide abundant garment material for the custom made clothing business of user's selection and How speech, realize the Fast Filling of the garment material of certain specific configuration item of clothing, turn into the key studied in garment virtual display and ask One of topic.
Garment material filling refers to the process of style figure clothes region being replaced with fabric pattern.At present, garment surface The method of material filling is mainly based upon the area filling method of seed point, for clothes fashion area surface material list one, it is not necessary to often Fabric is changed, fabric filling speed is not required, using area filling method, as Line Seed Fill Algorithm, side are related Polygon scan line filling algorithm etc. is easily achieved;And for complicated (a a variety of faces of clothes of clothes fashion region fabric Material), it is necessary to change fabric, it is necessary to which real time inspection filling result, Expected Results is then extremely difficult to using the above method.
The content of the invention
It is an object of the invention to provide a kind of garment material method for quickly filling based on matrix of edge, solves existing region Fill method needs manual selected seed point, it is impossible to the problem of seeing the style design sketch of filling fabric in real time.
The technical solution adopted in the present invention is a kind of garment material method for quickly filling based on matrix of edge, including: Preservation, garment material filling and the processing at fabric filling region edge of clothes region kimonos dress marginal information, it is specific press with Lower step is implemented:
Step 1:Image processor extracts to the region of image of clothing and marginal information, and computer is according to extracting Information establishes two matrixes:Matrix of areas and matrix of edge, and respectively store information wherein;
Step 2:The text for having matrix of areas obtained by step 1 is read out, area information is extracted, passes through region Numbering inquires corresponding fabric filling direction information in storehouse;By fabric information initializing, fabric Fast Filling is carried out;
Step 3:Borderline documents text is read, matrix of edge is obtained, utilizes the composite formula P=aF during imaging importing + (1-a) S is handled clothes edge, and wherein a is corresponding pixel points blackness, and S is style figure, and F is fabric figure, after P is processing Design sketch.
Described information storage process is:The method identification clothes region increased using region, is finger by clothes regional processing Determine color, and to the region number consecutively of selection, pixel corresponding to this region is numbered labeled as this, is stored in matrix of areas; The direction of selection region fabric is defined, after the zone number in the region is associated with the fabric orientation angle in the region, It is saved into database;While region increases and calculate image of clothing edge pixel point position (i, j) place gray value g (i, J), blackness a=g (i, j)/255 of this pixel are then calculated;Finally the data write-in text in two matrixes is protected Deposit.
The fabric Fast Filling process is:
Step 1:To there being the reading of the text of matrix of areas, matrix of areas is obtained;
Step 2:Numbering identical matrix of areas content is read out, a certain clothes area information is obtained, passes through region Numbering inquires corresponding fabric filling direction information in storehouse;
Step 3:Reading area matrix, by corresponding identical numbering corresponding pixel in style image in matrix of areas It is replaced with corresponding pixel in the fabric figure initialized, the now a certain region fabric filling of clothes is completed;
Step 4:Aforesaid operations are repeated, realize the Fast Filling of image of clothing fabric.
The invention has the advantages that the demand for the displaying of clothes two-dimensional virtual, it is proposed that one kind is based on matrix of edge Garment material method for quickly filling, reduce the man-machine interactively in garment material filling, optimize the filling process of garment material, Solve the problems, such as that garment material filling is difficult time-consuming in garment virtual display to a certain extent.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the garment material method for quickly filling based on matrix of edge of the present invention.
Embodiment
The present invention is described in detail with reference to the accompanying drawings and detailed description.
As shown in figure 1, a kind of garment material method for quickly filling based on matrix of edge of the present invention includes:Clothes region and Preservation, garment material filling and the processing at fabric filling region edge of clothes marginal information.
Specifically implement according to the following steps:
Step 1:Image processor extracts to the region of image of clothing and marginal information;
Step 2:Information is extracted according to step 1, using region growing algorithm and zone number labelling method definition region matrix A [width, height], wherein width are the width of agreement image of clothing, and height is the height of agreement image of clothing;
Step 3:Matrix of edge E [width, height] is defined using region growing algorithm and threshold restriction method, wherein Width is the width of agreement image of clothing, and height is the height of agreement image of clothing;
Step 4:If the gray value g (i, j), the now pixel at a certain pixel (i, j) place blackness a in clothes region =g (i, j)/255, any pixel point (x, y) is chosen, its blackness is calculated;
Step 5:The blackness value of pixel selected by step 4 is judged, if a > 0.15, represents that the pixel belongs to Matrix of areas, using pixel pixel (x, y) as seed point;And seed point pixel (x, y) pixel is arranged to yellow Color, and be 1 to this seed point region numbering, by seed point coordinates, element corresponding to A [x, y] is entered as in matrix of areas 1;X++, x--, y++, y-- are carried out respectively to seed point pixel (x, y) transverse and longitudinal coordinate successively, obtain four new pixels Pixel (x+1, y), pixel (x-1, y), pixel (x, y+1), pixel (x, y-1), this four pixel blackness are entered respectively Row judges, using the point for meeting a > 0.15 as new seed point, continues to repeat aforesaid operations, completes the choosing of an area information Select;
Step 6:According to the determination methods of step 4, if a≤0.15, then it represents that selected pixel color is not yellow, category In matrix of edge;According to the method for step 5, the selection to whole matrix of edge information is completed;
Step 7:The fabric filling direction for the mode definition region manually rule, will define deflection corresponding to region Degree associates with zone number;
Step 8:By area information and marginal information deposit text, region defines orientation angle and zone number preserves Storage.
Step 9:To there being the reading of the text of matrix of areas, matrix of areas is obtained;
Step 10:Numbering identical matrix of areas content is read out, a certain clothes area information is obtained, passes through region Numbering inquires corresponding fabric filling direction information in storehouse;
Step 11:Reading area matrix, by corresponding identical numbering corresponding pixel in style image in matrix of areas Point is replaced with corresponding pixel in the fabric figure initialized, and the now a certain region fabric filling of clothes is completed;
Step 12:Repeat step 9~11, realize the Fast Filling of image of clothing fabric.
Step 13:Read clothes edges of regions text message and obtain matrix of edge;
Step 14:Read the blackness information of matrix information, i.e. clothes pixel;It is public using the synthesis during imaging importing Formula P=aF+ (1-a) S are handled clothes edge, the garment virtual display effect being more satisfied with.
The inventive method, only garment virtual display does not provide garment material method for quickly filling, solves clothes exhibition Show middle replacing fabric, check the problem of filling result is difficult time-consuming;The fabric fill method can also derive applied to it simultaneously His field, such as " virtual store ".

Claims (1)

  1. A kind of 1. garment material method for quickly filling based on matrix of edge, it is characterised in that including:Clothes region kimonos rim Preservation, garment material filling and the processing at fabric filling region edge of edge information, specifically implement according to the following steps:
    Step 1:Image processor extracts to the region of image of clothing and marginal information, and computer is according to the information extracted Define two matrixes:Matrix of areas and matrix of edge, and respectively store information wherein;
    Described information storage process is:The method identification clothes region increased using region, is to specify face by clothes regional processing Color, and to the region number consecutively of selection, pixel corresponding to this region is numbered labeled as this, is stored in matrix of areas;To choosing The direction for selecting region fabric is defined, and after the zone number in the region is associated with the fabric orientation angle in the region, is preserved Enter database;While region increases and the gray value g (i, j) at image of clothing edge pixel point position (i, j) place is calculated, so Blackness a=g (i, j)/255 of this pixel are calculated afterwards;According to blackness value judgment matrix, finally the data in two matrixes are write Enter text preservation;
    Method according to blackness value judgment matrix is:If a > 0.15, represent that the pixel belongs to matrix of areas, by pixel Pixel (x, y) is used as seed point;Seed point pixel (x, y) pixel is arranged to certain color, and to this seed point Region numbering is 1, and by seed point coordinates, element corresponding to A [x, y] is entered as 1 in matrix of areas;Successively to seed point Pixel (x, y) transverse and longitudinal coordinate carries out x++, x--, y++, y-- respectively, obtain four new pixel pixel (x+1, y), Pixel (x-1, y), pixel (x, y+1), pixel (x, y-1), this four pixel blackness are judged respectively, a will be met > 0.15 point continues to repeat aforesaid operations, completes the selection of an area information as new seed point;If a≤0.15, Pixel color is not the color set selected by then representing, the pixel belongs to matrix of edge, the selecting party of reference zone matrix Method, complete the selection of an area information;
    Step 2:The text for having matrix of areas obtained by step 1 is read out, extracts area information and corresponding region face Expect filling direction information, by fabric information initializing, carry out fabric Fast Filling;
    The fabric Fast Filling process is:
    Step 2.1:To there being the reading of the text of matrix of areas, matrix of areas is obtained;
    Step 2.2:Numbering identical matrix of areas content is read out, obtains a certain clothes area information and fabric filling side To corresponding informance;
    Step 2.3:Reading area matrix, corresponding identical numbering corresponding pixel in style image in matrix of areas is used Corresponding pixel is replaced in the fabric figure initialized, and the now a certain region fabric filling of clothes is completed;
    Step 2.4, aforesaid operations are repeated, realize the Fast Filling of image of clothing fabric;
    Step 3:Borderline documents text is read, matrix of edge is obtained, utilizes the composite formula P=aF+ (1- during imaging importing A) S is handled clothes edge, and wherein a is corresponding pixel points blackness, and S is style figure, and F is fabric figure, and P is the effect after processing Fruit is schemed.
CN201410583597.7A 2014-10-27 2014-10-27 A kind of garment material method for quickly filling based on matrix of edge Active CN104331912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410583597.7A CN104331912B (en) 2014-10-27 2014-10-27 A kind of garment material method for quickly filling based on matrix of edge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410583597.7A CN104331912B (en) 2014-10-27 2014-10-27 A kind of garment material method for quickly filling based on matrix of edge

Publications (2)

Publication Number Publication Date
CN104331912A CN104331912A (en) 2015-02-04
CN104331912B true CN104331912B (en) 2018-01-16

Family

ID=52406632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410583597.7A Active CN104331912B (en) 2014-10-27 2014-10-27 A kind of garment material method for quickly filling based on matrix of edge

Country Status (1)

Country Link
CN (1) CN104331912B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105023284B (en) * 2015-07-16 2018-01-16 山东济宁如意毛纺织股份有限公司 A kind of fabric for two-dimentional garment virtual display fills deformation texture method
CN104978469A (en) * 2015-08-05 2015-10-14 安徽贵谷电子商务有限公司 Costume fabric quick filling method based on edge matrix

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0851240B1 (en) * 1996-12-26 2006-01-25 Nippon Telegraph And Telephone Corporation Meteorological radar precipitation pattern prediction method and apparatus
CN102044069A (en) * 2010-12-01 2011-05-04 华中科技大学 Method for segmenting white blood cell image
CN102063623A (en) * 2010-12-28 2011-05-18 中南大学 Method for extracting image region of interest by combining bottom-up and top-down ways
CN103049907A (en) * 2012-12-11 2013-04-17 深圳市旭东数字医学影像技术有限公司 Interactive image segmentation method
CN103606162A (en) * 2013-12-04 2014-02-26 福州大学 Stereo matching algorithm based on image segmentation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0851240B1 (en) * 1996-12-26 2006-01-25 Nippon Telegraph And Telephone Corporation Meteorological radar precipitation pattern prediction method and apparatus
CN102044069A (en) * 2010-12-01 2011-05-04 华中科技大学 Method for segmenting white blood cell image
CN102063623A (en) * 2010-12-28 2011-05-18 中南大学 Method for extracting image region of interest by combining bottom-up and top-down ways
CN103049907A (en) * 2012-12-11 2013-04-17 深圳市旭东数字医学影像技术有限公司 Interactive image segmentation method
CN103606162A (en) * 2013-12-04 2014-02-26 福州大学 Stereo matching algorithm based on image segmentation

Also Published As

Publication number Publication date
CN104331912A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN105069754B (en) System and method based on unmarked augmented reality on the image
TWI559242B (en) Visual clothing retrieval
US9691145B2 (en) Methods and systems for automated selection of regions of an image for secondary finishing and generation of mask image of same
CN107340852A (en) Gestural control method, device and terminal device
US10540568B2 (en) System and method for coarse-to-fine video object segmentation and re-composition
CN106157341A (en) Generate the method and device of synthesising picture
JP6529686B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
CN104008547B (en) A kind of visualization sliced image of human body serializing dividing method based on skeleton angle point
CN106096542A (en) Image/video scene recognition method based on range prediction information
CN104952070B (en) A kind of corn field remote sensing image segmentation method of class rectangle guiding
CN110097616B (en) Combined drawing method and device, terminal equipment and readable storage medium
CN102289671A (en) Method and device for extracting texture feature of image
CN102592132A (en) System and method for classifying digital image data
CN108307189A (en) Three-dimensional content provides system, method and computer readable recording medium storing program for performing
CN104658030A (en) Secondary image mixing method and apparatus
CN104331912B (en) A kind of garment material method for quickly filling based on matrix of edge
CN104881641B (en) Mobile device-based questionnaire and table Digital identification method and system
CN110660018B (en) Image-oriented non-uniform style migration method
CN116051575A (en) Image segmentation method, apparatus, computer device, and storage medium program product
CN111563462A (en) Image element detection method and device
CN105808682A (en) Relational graph display method and apparatus
CN108764419A (en) A method of the antifalsification label of identification tool random grain
Governi et al. Digital bas-relief design: A novel shape from shading-based method
CN103914825A (en) Three-dimensional model texture coloring method based on image segmentation
CN105809683A (en) Shopping image collaborative segmenting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Zhu Xinjuan

Inventor after: Zhao Hui

Inventor after: Shi Meihong

Inventor after: Lin Li

Inventor after: He Xingxing

Inventor before: Zhu Xinjuan

Inventor before: He Xingxing

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20151209

Address after: 272000 Ruyi Industrial Park, hi tech Zone, Jining, Shandong

Applicant after: Shandong Jining Ruyi Woolen Textile Co.,Ltd.

Applicant after: Xi'an Engineering Univ.

Address before: 710048 Shaanxi province Xi'an Beilin District Jinhua Road No. 19

Applicant before: Xi'an Engineering Univ.

GR01 Patent grant
GR01 Patent grant