CN101699447A - Pattern optimization display method in stamp pattern design system - Google Patents

Pattern optimization display method in stamp pattern design system Download PDF

Info

Publication number
CN101699447A
CN101699447A CN200910229702A CN200910229702A CN101699447A CN 101699447 A CN101699447 A CN 101699447A CN 200910229702 A CN200910229702 A CN 200910229702A CN 200910229702 A CN200910229702 A CN 200910229702A CN 101699447 A CN101699447 A CN 101699447A
Authority
CN
China
Prior art keywords
color
pattern
base map
user
display
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
CN200910229702A
Other languages
Chinese (zh)
Other versions
CN101699447B (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 University
Original Assignee
Shandong 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 University filed Critical Shandong University
Priority to CN2009102297026A priority Critical patent/CN101699447B/en
Publication of CN101699447A publication Critical patent/CN101699447A/en
Application granted granted Critical
Publication of CN101699447B publication Critical patent/CN101699447B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a pattern optimization display method in stamp pattern design system, belonging to the technical field of application of computer in light textile stamp. The used devices include an image scanner, a computer, a display and an input device; wherein the computer is respectively connected with the image scanner, the input device and the display; the pattern optimization display method in stamp pattern design system provided by the invention supports monochromatic editing and fusion display in stamp patter design. The user can timely browse the effect of the whole pattern and improves plotting quality. Besides, by methods of local display, reducing base map resolution and colour depth, internal memory consumption is reduced and display speed of pattern is improved.

Description

Pattern optimization display method in a kind of stamp pattern design system
Technical field
The present invention relates to pattern optimization display method in a kind of stamp pattern design system, belong to the applied technical field of computing machine in light textile printing.
Background technology
At present, the pattern editing system towards the light textile printing industry that has existed has systems such as Hua Guang.China's photoelectron stamp colour splitting system is that former Huaguang Science and Technology Co., Ltd., Weifang City and Shandong University coact, and is the open electronics stamp colour splitting system of a cover.Be collection sample manuscript scanning, style design and editor, moire is handled, and connects that to shine output etc. multi-functional in the integrated system of one.In similar decalcomania editing system, there is following problem in the pattern editor procedure for displaying.Among the printing design editor, use all be the very big bitmap file of size, very big to the consumption of internal memory, the configuration of user's computer is generally not high, huge internal memory make display speed slack-off, move delay phenomenon arranged.Being CN97106406.7, denomination of invention as application number promptly belongs to these row for the patent of the method for printing color pattern " a kind of on textile ".
Summary of the invention
For defective and the deficiency that overcomes prior art, can the invention provides pattern optimization display method in a kind of stamp pattern design system support to reduce taking of internal memory on the basis that pattern editor multilayer shows as far as possible.
Technical scheme of the present invention realizes in the following ways.
Pattern displaying and optimization method in a kind of stamp pattern design system, step is as follows:
1. beginning;
2. system obtains the true color cloth base map by scanning device scanning acquisition, by conversion, reduces its color depth and resolution, then import system;
3. after the base map data importing system, it is 1 monochrome bitmap that the user creates a color depth, system imports some by alternant way prompting user and creates the parameter that monochrome bitmap needs, comprise editor's the resolution and the color of achromatic sheet layer foreground, the background color system of achromatic sheet all is appointed as white;
4. whether user's decision continues interpolation figure layer, is to change step 3 over to, does not enter next step;
5. system carries out the fusion of figure layer according to the achromatic sheet layer of the base map data that import and user's establishment, with data fusion to a display interface of multilayer;
6. after the pattern data fusion finished, active user's visual interface was judged by system, and less than display interface, a part of then getting display interface is shown on the display device by windows GDI function as if visual interface;
7. finish.
The method that system's conversion base map described in the above-mentioned steps 2 imports, step is as follows:
1. begin;
2. the number of color in the former true color image is added up, drawn the ordering from high to low of color frequency of utilization;
3. get the palette that the highest preceding 256 kinds of colors of frequency of utilization constitute target image according to ordering, target image is made of these 256 kinds of colors;
4. traveling through each pixel among the former figure once more, calculate according to the difference between 256 looks in pixel color and the target image, is color with it in 256 looks the most close with this color of pixel merger, 256 chromatic graphs after finally obtaining transforming;
5. finish.
The achromatic sheet layer that system described in the above-mentioned steps 5 is created according to the base map data that import and user carries out the figure layer and merges, and with the method for data fusion to a display interface of multilayer, step is as follows:
1. begin;
2. the achromatic sheet layer that sorts all from bottom to top forms a sequence, and base map is positioned over the bottommost of figure sequence of layer;
3. get first achromatic sheet layer on base map and the base map, the two is merged, during fusion, the background colour of base map and achromatic sheet layer (white) is used as Transparent color and handles, do not influence other foreground colors of this position, the foreground color of base map and achromatic sheet layer merges, and the color on upper strata directly substitutes the color of lower floor, and fusion process realizes by windows GDI function;
4. in addition whether the achromatic sheet layer continues to merge, if also have, the result after the fusion of upper strata as intermediate result, is continued step 3, if do not have, carries out next step;
5. finish.
Pattern part after system described in the above-mentioned steps 6 will merge is shown to the method on the display device, and step is as follows:
1. begin;
2. the size of system-computed user viewing area;
3. if the viewing area more than or equal to the size that merges the back pattern, execution in step 5, otherwise carry out next step;
4. according to the size of user viewing area and the position of user's viewpoint at present, back pattern and the onesize part in user viewing area are merged in cutting;
5. will adjust suitable pattern data directly is shown on the display device by windows GDI function;
6. finish.
The device that uses in a kind of said method, comprise image reading apparatus, computing machine, display and input equipment, it is characterized in that computing machine is connected with image reading apparatus, input equipment and display respectively, input equipment is mouse and keyboard, finishes the operating process of said method by input equipment.
The invention provides pattern optimization display method in a kind of stamp pattern design system,, supported the monochromatic editing in the decalcomania design, merge demonstration by the fusion demonstration of a plurality of figure layers.Make the user can in time browse the effect of whole pattern, improve plotting quality.In addition,, reduced the use of internal memory, accelerated the display speed of pattern by methods such as local repressentation, reduction base map resolution and color depths.
Description of drawings
Fig. 1 is the configuration diagram of the inventive method equipment therefor.Wherein, 1, image reading apparatus, 2, computing machine, 3, display, 4, input equipment.
Fig. 2 is the process flow diagram of the inventive method.Wherein 5-11 is each step in this method.
Fig. 3 is the method for step 6 in the inventive method shown in Figure 2, and wherein 12-16 is each step.
Fig. 4 is the method for step 9 in the inventive method shown in Figure 2, and wherein 17-21 is each step.
Fig. 5 is the method for step 10 in the inventive method shown in Figure 2, and wherein 22-27 is each step.
Embodiment
The present invention will be further described below in conjunction with drawings and Examples, but be not limited thereto.
Embodiment 1:
The embodiment of the invention 1 shown in Fig. 2-5, pattern displaying and optimization method in a kind of stamp pattern design system, step is as follows:
5. beginning;
6. system obtains the true color cloth base map by scanning device scanning acquisition, by conversion, reduces its color depth and resolution, then import system;
7. after the base map data importing system, it is 1 monochrome bitmap that the user creates a color depth, system imports some by alternant way prompting user and creates the parameter that monochrome bitmap needs, comprise editor's the resolution and the color of achromatic sheet layer foreground, the background color system of achromatic sheet all is appointed as white;
8. whether user's decision continues interpolation figure layer, is to change step 7 over to, does not enter next step;
9. system carries out the fusion of figure layer according to the achromatic sheet layer of the base map data that import and user's establishment, with data fusion to a display interface of multilayer;
10. after the pattern data fusion finished, active user's visual interface was judged by system, and less than display interface, a part of then getting display interface is shown on the display device by windows GDI function as if visual interface;
11. finish.
The method that system's conversion base map described in the above-mentioned steps 6 imports, step is as follows:
12, beginning;
13, the number of color in the former true color image is added up, drawn the ordering from high to low of color frequency of utilization;
14, get the palette that the highest preceding 256 kinds of colors of frequency of utilization constitute target image according to ordering, target image is made of these 256 kinds of colors;
15, traveling through each pixel among the former figure once more, calculate according to the difference between 256 looks in pixel color and the target image, is color with it in 256 looks the most close with this color of pixel merger, 256 chromatic graphs after finally obtaining transforming;
16, finish.
The achromatic sheet layer that system described in the above-mentioned steps 9 is created according to the base map data that import and user carries out the figure layer and merges, and with the method for data fusion to a display interface of multilayer, step is as follows:
17, beginning;
18, the achromatic sheet layer that sorts all from bottom to top forms a sequence, and base map is positioned over the bottommost of figure sequence of layer;
19, get first achromatic sheet layer on base map and the base map, the two is merged, during fusion, the background colour of base map and achromatic sheet layer (white) is used as Transparent color and handles, do not influence other foreground colors of this position, the foreground color of base map and achromatic sheet layer merges, and the color on upper strata directly substitutes the color of lower floor, and fusion process realizes by windows GDI function;
20, in addition whether the achromatic sheet layer continues to merge, if also have, the result after the fusion of upper strata as intermediate result, is continued step 19, if do not have, carries out next step;
21, finish.
Pattern part after system described in the above-mentioned steps 10 will merge is shown to the method on the display device, and step is as follows:
22, beginning;
23, the size of system-computed user viewing area;
24, as if the size of viewing area more than or equal to pattern after merging, execution in step 26, otherwise carry out next step;
25, according to the size of user viewing area and the present position of user's viewpoint, back pattern and the onesize part in user viewing area are merged in cutting;
26, will adjust suitable pattern data directly is shown on the display device by windows GDI function;
27, finish.
Embodiment 2:
The embodiment of the invention 2 as shown in Figure 1, the device that uses in a kind of said method, comprise image reading apparatus 1, computing machine 2, display 3 and input equipment 4, it is characterized in that computing machine 2 is connected with image reading apparatus 1, input equipment 4 and display 3 respectively, input equipment 4 is mouse and keyboard, finishes the operating process of said method by input equipment 4.

Claims (5)

1. pattern displaying and optimization method in the stamp pattern design system, step is as follows:
1) beginning;
2) system obtains the true color cloth base map by scanning device scanning acquisition, by conversion, reduces its color depth and resolution, then import system;
3) after the base map data importing system, it is 1 monochrome bitmap that the user creates a color depth, system imports some by alternant way prompting user and creates the parameter that monochrome bitmap needs, comprise editor's the resolution and the color of achromatic sheet layer foreground, the background color system of achromatic sheet all is appointed as white;
4) whether user's decision continues interpolation figure layer, is to change step 3) over to, does not enter next step;
5) system carries out the fusion of figure layer according to the achromatic sheet layer of the base map data that import and user's establishment, with data fusion to a display interface of multilayer;
6) after the pattern data fusion finished, active user's visual interface was judged by system, and less than display interface, a part of then getting display interface is shown on the display device by windows GDI function as if visual interface;
7) finish.
2. the method that system's conversion base map imports step 2 in the method for claim 1), step is as follows:
1. begin;
2. the number of color in the former true color image is added up, drawn the ordering from high to low of color frequency of utilization;
3. get the palette that the highest preceding 256 kinds of colors of frequency of utilization constitute target image according to ordering, target image is made of these 256 kinds of colors;
4. traveling through each pixel among the former figure once more, calculate according to the difference between 256 looks in pixel color and the target image, is color with it in 256 looks the most close with this color of pixel merger, 256 chromatic graphs after finally obtaining transforming;
5. finish.
3. the achromatic sheet layer that system described in the step 5) is created according to the base map data that import and user in the method for claim 1 carries out the figure layer and merges, and with the method for data fusion to a display interface of multilayer, step is as follows:
1. begin;
2. the achromatic sheet layer that sorts all from bottom to top forms a sequence, and base map is positioned over the bottommost of figure sequence of layer;
3. get first achromatic sheet layer on base map and the base map, the two is merged, during fusion, the background colour of base map and achromatic sheet layer is used as Transparent color and handles, do not influence other foreground colors of this position, the foreground color of base map and achromatic sheet layer merges, and the color on upper strata directly substitutes the color of lower floor, and fusion process realizes by windows GDI function;
4. in addition whether the achromatic sheet layer continues to merge, if also have, 3. the result after the fusion of upper strata as intermediate result, is continued step, if do not have, carries out next step;
5. finish.
4. the pattern part after step in the method for claim 1) system will merge described in 6 is shown to the method on the display device, and step is as follows:
1. begin;
2. the size of system-computed user viewing area;
3. if the viewing area more than or equal to the size that merges the back pattern, 5. execution in step otherwise carries out next step;
4. according to the size of user viewing area and the position of user's viewpoint at present, back pattern and the onesize part in user viewing area are merged in cutting;
5. will adjust suitable pattern data directly is shown on the display device by windows GDI function;
6. finish.
5. a device that uses in the method according to claim 1 comprises image reading apparatus, computing machine, display and input equipment, it is characterized in that computing machine is connected with image reading apparatus, input equipment and display respectively; Input equipment is mouse and keyboard, finishes the operating process of said method by input equipment.
CN2009102297026A 2009-10-23 2009-10-23 Pattern optimization display method in stamp pattern design system Expired - Fee Related CN101699447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102297026A CN101699447B (en) 2009-10-23 2009-10-23 Pattern optimization display method in stamp pattern design system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102297026A CN101699447B (en) 2009-10-23 2009-10-23 Pattern optimization display method in stamp pattern design system

Publications (2)

Publication Number Publication Date
CN101699447A true CN101699447A (en) 2010-04-28
CN101699447B CN101699447B (en) 2011-05-04

Family

ID=42147906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102297026A Expired - Fee Related CN101699447B (en) 2009-10-23 2009-10-23 Pattern optimization display method in stamp pattern design system

Country Status (1)

Country Link
CN (1) CN101699447B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929482A (en) * 2012-10-26 2013-02-13 北京久其软件股份有限公司 Pattern recording method by electronic equipment terminal
CN103903247A (en) * 2012-12-26 2014-07-02 北京谊安医疗系统股份有限公司 Image rendering method and system
CN110223358A (en) * 2019-05-27 2019-09-10 铸视(上海)科技有限公司 Visible pattern design method, training method, device, system and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929482A (en) * 2012-10-26 2013-02-13 北京久其软件股份有限公司 Pattern recording method by electronic equipment terminal
CN103903247A (en) * 2012-12-26 2014-07-02 北京谊安医疗系统股份有限公司 Image rendering method and system
CN110223358A (en) * 2019-05-27 2019-09-10 铸视(上海)科技有限公司 Visible pattern design method, training method, device, system and storage medium

Also Published As

Publication number Publication date
CN101699447B (en) 2011-05-04

Similar Documents

Publication Publication Date Title
CN108876931B (en) Three-dimensional object color adjustment method and device, computer equipment and computer readable storage medium
CN1786308B (en) Digital code manufacturing method for jacquard weave double surface embroidery
CN108352083B (en) 2D image processing for stretching into 3D objects
CN101699447B (en) Pattern optimization display method in stamp pattern design system
CN107463756B (en) A kind of manufacturing method of the artistic punching decorative panel of the hole arrangement design of feature based
CN103093437A (en) Method and device for generating pencil drawing style image
CN111462838A (en) Method for directly converting image pixel into finite element unit
CN1687966A (en) Method for extracting graph image data information
CN105550682B (en) Bronze object stone inscription inscription rubbing method
CN101668144B (en) Method for realizing semitransparent effect of image layer on video layer, device and set top box
CN114622322B (en) System and method for quickly generating brocade makeup satin fabric pattern
CN102592302A (en) Digital cartoon intelligent dynamic detection system and dynamic detection method
CN109767384B (en) Method for manufacturing seamless collage pattern simulation litchi grain leather surface
JP2014044595A (en) Line drawing coloring system
CN106528161A (en) Terminal equipment, page display processing device and method
CN101526966A (en) System and method for designing structure of packing paper box
CN109859258A (en) Interface processing method and device, electronic equipment
JPH07129762A (en) Sketch-fashion image generator
JPH08161530A (en) Icon preparing method and frame preparing method for dynamic image
CN103853800B (en) Target image searching method and device
CN102566870A (en) Adjusting system and method of stacking sequence of images
CN102141909B (en) Primitive creation method and system
CN107844240A (en) A kind of masking-out auto-erasing method based on template
CN102411788B (en) Area filling algorithm based on four-way scan mode
Zlatev et al. Transfer of embroidery elements from Bulgarian national folk costume to the contemporary fashion

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110504

Termination date: 20111023