CN104331912A - Rapid garment fabric filling method based on edge matrix - Google Patents

Rapid garment fabric filling method based on edge matrix Download PDF

Info

Publication number
CN104331912A
CN104331912A CN201410583597.7A CN201410583597A CN104331912A CN 104331912 A CN104331912 A CN 104331912A CN 201410583597 A CN201410583597 A CN 201410583597A CN 104331912 A CN104331912 A CN 104331912A
Authority
CN
China
Prior art keywords
matrix
pixel
fabric
edge
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410583597.7A
Other languages
Chinese (zh)
Other versions
CN104331912B (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.)
Xian Polytechnic University
Shandong Jining Ruyi Woolen Textile Co Ltd
Original Assignee
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 Xian Polytechnic University filed Critical Xian Polytechnic University
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

The invention discloses a rapid garment fabric filling method based on an edge matrix. The method includes the steps: storing garment area information and garment edge information; filling garment fabrics; treating a fabric filling area edge. According to the requirements of two-dimensional garment virtual display, man-machine interaction in garment fabric filling is decreased, the filling process of the garment fabrics is optimized, and the method solves the problem that the garment fabric filling is difficult and time is wasted in the garment virtual display to some 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, be specifically related to a kind of garment material method for quickly filling based on matrix of edge.
Background technology
Garment material displaying is the critical function of garment virtual display, and whether its display form is various, and whether bandwagon effect truly directly has influence on the final selection of client.Flourish along with clothes ecommerce, new requirement is proposed to garment material display form, especially the senior custom-built system of network clothes, user just wishes the clothing making final integral effect plays seeing different garment fabric before clothing making completes.Existing garment material shows existing application, is wherein shown as mainstream technology with the garment material two dimension of graphic based image, its have browse load quick, mutual convenient, be technically easy to the advantages such as maintenance; And have more clothes fashion for one and provide enrich garment material for user select custom made clothing business for, how to realize the Fast Filling of the garment material of certain specific configuration item of clothing, become one of key issue studied in garment virtual display.
Garment material is filled and is referred to the process of being carried out by style figure clothes region fabric pattern replacing.At present, the method that garment material is filled is mainly based on the area filling method of Seed Points, for clothes fashion area surface material list one, do not need often to change fabric, to the not requirement of fabric filling speed, adopt area filling method, as Line Seed Fill Algorithm, limit associated polygon Scanning-line Filling algorithm etc. are easy to realize; And for clothes fashion region fabric complexity (the multiple fabric of a clothes), need to change fabric, need real time inspection to fill result, adopt said method to be then difficult to produce a desired effect.
Summary of the invention
The object of this invention is to provide a kind of garment material method for quickly filling based on matrix of edge, solving existing area filling method needs manual selected seed point, can not see the problem of 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, comprising: the preservation of marginal information of clothes region kimonos dress, garment material are filled and the process at edge, fabric fill area, specifically implement according to the following steps:
Step 1: image processor extracts the region of image of clothing and marginal information, computing machine sets up two matrixes according to the information extracted: matrix of areas and matrix of edge, and respectively by information storage wherein;
Step 2: text step 1 gained being had to matrix of areas reads, extracts area information, inquires corresponding fabric fill directional information by zone number in storehouse; Through fabric information initializing, carry out fabric Fast Filling;
Step 3: read borderline documents text, obtains matrix of edge, utilizes composite formula P=aF+ (1-a) S in imaging importing process to process clothes edge, wherein a is corresponding pixel points blackness, design sketch after to be fabric figure, P be process that B is style figure, F.
Described information storage process is: adopting the method identification clothes region that region increases, is designated color by clothes regional processing, and to the region number consecutively selected, numbers, pixel corresponding for this region mark stored in matrix of areas for this reason; The direction of selected zone fabric is defined, after the zone number in this region is associated with the fabric orientation angle in this region, preserves into database; While region increases, calculate the gray-scale value g (i, j) at image of clothing edge pixel point position (i, j) place, then calculate blackness a=g (i, j)/255 of this pixel; Finally the data write text in two matrixes is preserved.
Described fabric Fast Filling process is:
Step 1: to the reading of text having matrix of areas, obtain matrix of areas;
Step 2: read the identical matrix of areas content of numbering, obtain a certain clothes area information, inquires corresponding fabric by zone number and fills directional information in storehouse;
Step 3: reading area matrix, replaced by corresponding pixel in fabric figure good for the pixel initialization of identical numbering corresponding in matrix of areas correspondence in style image, now a certain region fabric of clothes has been filled;
Step 4: repeat aforesaid operations, realize the Fast Filling of image of clothing fabric.
The invention has the beneficial effects as follows, for the demand that clothes two-dimensional virtual is shown, propose a kind of garment material method for quickly filling based on matrix of edge, reduce the man-machine interactively in garment material filling, optimize the filling process of garment material, to some extent solve garment material in garment virtual display and fill the time-consuming problem of difficulty.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of garment material method for quickly filling based on matrix of edge of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
As shown in Figure 1, a kind of garment material method for quickly filling based on matrix of edge of the present invention comprises: the preservation of marginal information of clothes region kimonos dress, garment material are filled and the process at edge, fabric fill area.
Concrete enforcement according to the following steps:
Step 1: image processor extracts the region of image of clothing and marginal information;
Step 2: according to step 1 information extraction, adopts region growing algorithm and zone number labelling method defined range matrix A [width, height], and wherein width is the width of agreement image of clothing, and height is the height of agreement image of clothing;
Step 3: adopt region growing algorithm and threshold restriction method definition matrix of edge E [width, height], wherein width is the width of agreement image of clothing, and height is the height of agreement image of clothing;
Step 4: the gray-scale value g (i, j) establishing a certain pixel (i, j) place in clothes region, now blackness a=g (i, j)/255 of this pixel, chooses arbitrary pixel (x, y), calculates its blackness;
Step 5: the blackness value of pixel selected by step 4 is judged, if a > 0.15, represents that this pixel belongs to matrix of areas, using pixel pixel (x, y) as Seed Points; And the pixel of this Seed Points pixel (x, y) is set to yellow, and 1 is numbered to this Seed Points region, be 1 by the Seed Points coordinate element assignment that A [x, y] is corresponding in matrix of areas; Successively respectively x++, x--are carried out to the transverse and longitudinal coordinate of Seed Points pixel (x, y), y++, y--, obtain four new pixel pixel (x+1, y), pixel (x-1, y), pixel (x, y+1), pixel (x, y-1), respectively these four pixel blackness are judged, to the point of a > 0.15 be met as new Seed Points, continue to repeat aforesaid operations, complete the selection of an area information;
Step 6: according to the determination methods of step 4, if a≤0.15, then represents that selected pixel color is not yellow, belongs to matrix of edge; According to the method for step 5, complete the selection to whole matrix of edge information;
Step 7: direction filled by the fabric of the mode defined range of manually ruling, and associated by definition orientation angle corresponding for region with zone number;
Step 8: by area information and marginal information stored in text, region definition orientation angle and zone number preserve warehouse-in.
Step 9: to the reading of text having matrix of areas, obtain matrix of areas;
Step 10: read the identical matrix of areas content of numbering, obtain a certain clothes area information, inquires corresponding fabric by zone number and fills directional information in storehouse;
Step 11: reading area matrix, replaced by corresponding pixel in fabric figure good for the pixel initialization of identical numbering corresponding in matrix of areas correspondence in style image, now a certain region fabric of clothes has been filled;
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 matrix information, i.e. the blackness information of clothes pixel; Composite formula P=aF+ (1-a) S in imaging importing process is utilized to process clothes edge, the garment virtual display effect be comparatively satisfied with.
The inventive method, is not only garment virtual display and provides garment material method for quickly filling, solve in clothing show and change fabric, checks and fills the time-consuming problem of result difficulty; This fabric fill method can also derive and is applied to other field, as " virtual store " etc. simultaneously.

Claims (4)

1. based on a garment material method for quickly filling for matrix of edge, it is characterized in that, comprising: the preservation of marginal information of clothes region kimonos dress, garment material are filled and the process at edge, fabric fill area, specifically implement according to the following steps:
Step 1: image processor extracts the region of image of clothing and marginal information, computing machine is according to the information definition extracted two matrixes: matrix of areas and matrix of edge, and respectively by information storage wherein;
Step 2: text step 1 gained being had to matrix of areas reads, extracts area information and directional information filled by corresponding region fabric, through fabric information initializing, carries out fabric Fast Filling;
Step 3: read borderline documents text, obtains matrix of edge, utilizes composite formula P=aF+ (1-a) S in imaging importing process to process clothes edge, wherein a is corresponding pixel points blackness, design sketch after to be fabric figure, P be process that B is style figure, F.
2. according to the garment material method for quickly filling based on matrix of edge a kind of described in claim 1, it is characterized in that, described information storage process is: adopt the method identification clothes region that region increases, be designated color by clothes regional processing, and to the region number consecutively selected, pixel corresponding for this region mark is numbered, stored in matrix of areas for this reason; The direction of selected zone fabric is defined, after the zone number in this region is associated with the fabric orientation angle in this region, preserves into database; While region increases, calculate the gray-scale value g (i, j) at image of clothing edge pixel point position (i, j) place, then calculate blackness a=g (i, j)/255 of this pixel; According to blackness value judgment matrix, finally the data write text in two matrixes is preserved.
3. according to the garment material method for quickly filling based on matrix of edge a kind of described in claim 2, it is characterized in that, method according to blackness value judgment matrix is: if a > 0.15, represent that this pixel belongs to matrix of areas, using pixel pixel (x, y) as Seed Points; The pixel of this Seed Points pixel (x, y) being set to certain color, and being numbered 1 to this Seed Points region, is 1 by the Seed Points coordinate element assignment that A [x, y] is corresponding in matrix of areas; Successively respectively x++, x--are carried out to the transverse and longitudinal coordinate of Seed Points pixel (x, y), y++, y--, obtain four new pixel pixel (x+1, y), pixel (x-1, y), pixel (x, y+1), pixel (x, y-1), respectively these four pixel blackness are judged, to the point of a > 0.15 be met as new Seed Points, continue to repeat aforesaid operations, complete the selection of an area information; If a≤0.15, then represent that selected pixel color is not the color arranged, this pixel belongs to matrix of edge, the system of selection of reference zone matrix, completes the selection of an area information.
4. according to the garment material method for quickly filling based on matrix of edge a kind of described in claim 1, it is characterized in that, described fabric Fast Filling process is:
Step 1: to the reading of text having matrix of areas, obtain matrix of areas;
Step 2: read the identical matrix of areas content of numbering, obtains the corresponding informance in a certain clothes area information and fabric filling direction;
Step 3: reading area matrix, replaced by corresponding pixel in fabric figure good for the pixel initialization of identical numbering corresponding in matrix of areas correspondence in style image, now a certain region fabric of clothes has been filled;
Step 4, repetition aforesaid operations, realize the Fast Filling of image of clothing fabric.
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 true CN104331912A (en) 2015-02-04
CN104331912B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978469A (en) * 2015-08-05 2015-10-14 安徽贵谷电子商务有限公司 Costume fabric quick filling method based on edge matrix
CN105023284A (en) * 2015-07-16 2015-11-04 西安工程大学 Fabric filling texture distortion method for two-dimension garment virtual display

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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王进等: "基于摄像的服装款式CAD中的填充处理技术", 《徐州师范大学学报(自然科学版)》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105023284A (en) * 2015-07-16 2015-11-04 西安工程大学 Fabric filling texture distortion method for two-dimension garment virtual display
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

Also Published As

Publication number Publication date
CN104331912B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US10318654B2 (en) Slicing and/or texturing for three-dimensional printing
US9870646B2 (en) Three-dimensional model generation based on two-dimensional images
CN106157341A (en) Generate the method and device of synthesising picture
CN104392238B (en) The recognition methods of the information carrier of the mark containing polymorphic type
CN101925928B (en) Representing flat designs to be printed on curves of 3-dimensional product
CN104038807B (en) A kind of figure layer mixed method and device based on OpenGL
AU2018201319B2 (en) Flow-based ornamental element packing
US9661886B1 (en) System and method for capturing design state of apparel or accessory to enable extrapolation for style and size variants
CN107610131A (en) A kind of image cropping method and image cropping device
CN104063888B (en) A kind of wave spectrum artistic style method for drafting based on feeling of unreality
CN108307189A (en) Three-dimensional content provides system, method and computer readable recording medium storing program for performing
CN105303616A (en) Embossment modeling method based on single photograph
CN102663806B (en) Artistic-vision-based cartoon stylized rendering method of image
CN108876868B (en) Computerized generation of decorative designs by placing instances of simple shapes according to direction guidance
Lee et al. Directional texture transfer with edge enhancement
CN106778881B (en) Digital printing method and device
CN105096358A (en) Line enhanced simulation method for pyrography artistic effect
CN103793549B (en) Adopt the computer-aided crewel embroidery production method of fuzzy clustering and random walk
CN105976362B (en) A kind of image line drawing generation method suitable for 3D printing
CN104331912A (en) Rapid garment fabric filling method based on edge matrix
CN109308380B (en) Embroidery artistic style simulation method based on non-photorealistic sense
CN104978469A (en) Costume fabric quick filling method based on edge matrix
CN103914825A (en) Three-dimensional model texture coloring method based on image segmentation
CN112274926A (en) Virtual character reloading method and device
CN105513031B (en) Based on the matched data-driven image extrapolation method of figure and device

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