CN1081774A - The method and system of colour dot lattice printing image - Google Patents
The method and system of colour dot lattice printing image Download PDFInfo
- Publication number
- CN1081774A CN1081774A CN 92105969 CN92105969A CN1081774A CN 1081774 A CN1081774 A CN 1081774A CN 92105969 CN92105969 CN 92105969 CN 92105969 A CN92105969 A CN 92105969A CN 1081774 A CN1081774 A CN 1081774A
- Authority
- CN
- China
- Prior art keywords
- image
- value
- colour
- dot lattice
- lattice printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
Abstract
The method and system of colour dot lattice printing image.Obtain the raw image file by video camera and microcomputer, calculate R, G, B component, set up M
r, M
g, M
bThree quadravalence matrixes again according to a special table of comparisons, are their accommodations P corresponding to four kinds of colors of printer
r, P
B/e, P
y, P
B/yFour assignment matrixes start the driver of supporting colour dot lattice printing in view of the above.Because algorithm novelty, uniqueness, the dot matrix that prints image rich color, form are true to nature, have artistic effect.
Description
The present invention relates to handle from the method and system of the picture information of gamma camera acquisition, particularly relate to the preparation method of the printed driver of supporting the colour dot lattice printing image with microcomputer.
Prior art is handled color image information, all is to be used for screen display or for recording the information in medium.For example the disclosed technology of Chinese patent CN1044544A " color image processing method " is to make image on image-forming medium; The disclosed technology of Chinese patent CN1036279A " System and method for that color image strengthens " then is to be used to not have the hyperchromic of color picture, as static photo, film, video tape image, telemetry etc.Lean on the microcomputer process information, use the dot-matrix printer print image, only see so-called black and white computer portrait machine at present, it is to utilize the visual gray level of existing monochromatic dither algorithm performance, though algorithm is simple, speed is fast, can only handle and print soot-and-whitewash.
The method and system that the objective of the invention is to avoid above-mentioned the deficiencies in the prior art part and a kind of colour dot lattice printing image is provided are used for replacing " black and white computer portrait machine ", in each scenic spot and the downtown area, street corner be numerous visitors' service.The visitor if in the face of the colour TV camera station once, can on printer paper, print context enriched colour portrait, not only lively, true to nature but also be rich in artistic effect.
Purpose of the present invention can reach by following measure: the method for creating a kind of colour dot lattice printing image, at first by colour TV camera and microcomputer (containing the color image processing hardware), the image that pick-up lens is aimed at becomes the raw image file that computing machine can be read and remember; Then adopt the described raw image file of steps of processing, establishment to support the printed driver of colour dot lattice printing (commodity " colored computer portrait machine software package " by name):
A. read information line by line from the raw image file, from brightness, colourity and the tone of each picture element, for example Y, U, V value are calculated R, G, B component;
B. with same factor gamma all over taking advantage of R, G, the B component of calculating, obtain R ', G ', B ', adjust the value of γ, the 0≤R ' that make sures, G ', B '≤16;
C. set up three 4 * 4 matrix: M
r, M
gAnd M
b, fill respectively according to the value of R ', G ', B '; The method of filling is to set up a discrimination matrix M
s, for example can be
To fill in M
rBe example, the value of establishing R ' is β, with M
sEach element all go relatively should value, greater than the element of this value, at M
rCorrespondence position on fill in " 0 ", be less than or equal to this value and then fill out one writing, for example β=12 just have
M
gAnd M
bAccording to the value of G ' B ', method is filled in equally according to this respectively, so all had R, G, the B matrix of 16 grades of gray scales, a picture element of the former image of the common expression of these three matrixes can have
2
12=4,096 kind of possible color;
D. the colour dot lattice printing machine for this reason, is set up a special table of comparisons, with M with a picture element red, blue, yellow, that a prescription lattice point that deceive four color ribbon printing 4 * 4 reproduces former image
r, M
gAnd M
bMiddle same position element, for example: a
r, a
gAnd a
bValue from the described table of comparisons, check in the printed colors of corresponding visual superposition look and printer;
E. corresponding to the described four color ribbon of printer, set up four 4 * 4 matrix: P
r, P
B/e, P
y, P
B/k, the M that their each element value obtains according to step C
r, M
g, M
bMiddle each element value of same position checks in corresponding printed colors accommodation and fills in from the described table of comparisons, the printed colors that for example checks in is Huang/indigo plant, is about to P
yAnd P
B/eThe element of relevant position is written as " 1 ", P
rAnd P
B/kThe element of relevant position then is written as " 0 ";
F. obtain P by step e
r, P
B/e, P
yAnd P
B/kFour assignment matrixes start the driver of supporting colour dot lattice printing in view of the above, and each assignment can be reproduced a picture element of raw image on printer paper;
G. be actually the data that at every turn read image 6 row and handle, the colour dot lattice printing machine then is a print image line by line.
Purpose of the present invention also reaches by following measure simultaneously: the system that sets up a kind of colour dot lattice printing image, comprise colour TV camera, microcomputer (containing the color image processing hardware), colour dot lattice printing machine and general software environment, and this system also comprises the printed driver of supporting colour dot lattice printing.
The drawing of accompanying drawing is described as follows:
Fig. 1 is that system of the present invention forms synoptic diagram,
Fig. 2 is the concise and to the point block diagram of system work process of the present invention;
Fig. 3 is the block diagram of the inventive method key step;
Fig. 4-1 to 4-5 be the software flow block diagram that the inventive method is worked out described driver.
Be described in further detail with regard to a most preferred embodiment below in conjunction with accompanying drawing:
The trade name of system of the present invention is " a colored computer portrait machine ", and it is formed as shown in Figure 1, comprises
A. video camera 1, can be the civilian colour TV camera of any kind of, PAL-system or TSC-system formula;
C. image processing hardware 3, with true color video image transaction card produced in USA (trade name Super Video Window);
E. software environment 5, comprise that MSDOS2.0 is above, UCDOS2.0, and the printed driver of support colour dot lattice printing of the present invention.
System work process of the present invention as shown in Figure 2, the existing label declaration of using in conjunction with Fig. 1 is as follows: the visitor obtains video image signal in the face of video camera 1.This signal is sent into microcomputer 2, handle through image processing hardware 3, become the raw image file that computing machine can be read and remember, then in software environment 5, analyze, handle, start colour dot lattice printing machine 4 by printed driver of the present invention, print the portrait that pick-up lens is aimed at.The visitor can require to print the colour dot lattice image by black, magenta, indigo plant, purple, Huang, orange, green seven colour cells one-tenth, also can require to use wherein arbitrary monochromatic print image.The image that prints has 5 kinds of sizes selective, Here it is 29 * 22,22 * 17,19 * 11,15 * 11 and 7 * 5 centimetres; Screen intensity is adjustable, have 10 grades selective; Image can also freeze, thereby the portrait of once facing pick-up lens is fixed on the screen.If Here it is the desired portrait of visitor, you can provide instruction by keystroke, printer to print immediately; If this is not the desired portrait of visitor, but keystroke provides " video reproduction " instruction so, so the image that occurred before pick-up lens reappears one one width of cloth on screen, selects for the visitor, and order is printed then.Fig. 3 is the block diagram of the inventive method key step, comes into plain view in conjunction with above-mentioned explanation.
Colour dot lattice printing machine 4, its colour band is red by r(), the y(Huang), b/e(indigo plant), b/k(is black) four colour cells become, with they mutual assembly, then together with they oneself, can be made into seven kinds of colors altogether: black, pinkish red, light blue, purple, yellow, orange, green, but image file comprises 2
21Plant color.Obviously, do not provide particular algorithm, the image that prints will make us because distortion is excessive and can not accept.
Usually, come the many images of apparent color, often use a kind of shake (dithering) or half technology of transferring (halftone) of being called with the few output device of color.The central idea of this technology is to reduce picture resolution color is increased, and it is used widely in monochromatic output device.For example, the point that monochrome printers is printed, for black otherwise for white, be the secondary gray scale.But the gray level of natural image is often very high, as 16 grades.
Dither algorithm is handled problems like this, and it represents a former visual picture element with a prescription lattice point of printer 4 * 4.The value of 16 points of this square formation or be " 1 ", or be " 0 ".If the gray-scale value of a former visual point is 0, the value of these 16 points is " 0 " so; If the gray-scale value of a former visual point is 12, the value of these 16 points has 12 to be " 1 " so, and all the other four is " 0 ", and the rest may be inferred.Like this, just 16 grades of gray scales can have been represented with 4 * 4 dot matrix.
The dither algorithm that is used for color image is seldom seen report, even have, also all is to be used for screen display, cooperates the palette technology to use, and is not suitable for printer.The present invention has done foregoing processing for this reason, adopts the series of steps from A to G, and the printed driver of colour dot lattice printing is supported in establishment, and its detailed process sees that Fig. 4-1 is to 4-5.In the process that programs, set up a special table of comparisons at step D, in view of the above the M that obtains according to R, G, B component
r, M
g, M
bThree matrix accommodations are P
r, P
B/e, P
y, P
B/kFour matrixes are in order to four kinds of primary colours of control printer.The described special table of comparisons is:
a r | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
a g | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 |
a b | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 |
The superposition look | Black | Blue | Green | Light blue | Red | Pinkish red | Yellow | In vain |
Printed colors | Black | Red/indigo plant | Huang/indigo plant | Blue | Yellow/red | Red | Yellow | Do not print |
A wherein
r, a
g, a
bBe matrix M
r, M
g, M
bIn the element of arbitrary same position; Red and the blue superposition of " red/indigo plant " expression is printed.
Software flow block diagram shown in the accompanying drawing 4-1 to 4-5 is to the effect that:
A. program elder generation initialization;
B. from image file, obtain image width and height;
C. reading visual 6 line data handles.So get 6 row and is because printer is 24 pins, the 6 quadravalence matrix shakes of passing through promptly become 24 row, satisfy 24 needle printers just and print delegation;
D. each line data is calculated R, G, B value earlier at every, its scope is limited between 0 to 16, then R, G, B are shaken respectively, produce three matrixes, match colors according to the table of comparisons of instructions again, accommodation is four matrixes, is respectively four looks (red, blue, yellow, the black) matrix of printer;
E. after handling 6 row, print according to described four colour moment battle arrays;
F. repeat C to E step, finish until print image.
The present invention according to above-mentioned FB(flow block) establishment supports that the printed driver of colour dot lattice printing is write as with the C language.And in order to protect described program not give away secrets; system of the present invention also adorns encryption hardware-dongle of having used special protection software; its external commodity are called Software Dog, as normal printer plug size, are installed between computer parallel interface card and the printer plug.
Compare with prior art, the invention has the advantages that, utilize the colour dot lattice printing machine, can not only process black-and-white image, and can also process chromatic image. Since algorithm novelty, uniqueness, the dot matrix that prints image rich color, and form is true to nature, has artistic effect.
Claims (5)
1, a kind of method of colour dot lattice printing image, at first by colour TV camera 1 and microcomputer 2 (containing color image processing hardware 3), the image that pick-up lens is aimed at becomes the raw image file that computing machine can be read and remember; Described method is characterised in that: handle the printed driver (commodity " colored computer portrait machine software package " by name) of described raw image file, establishment support colour dot lattice printing, adopted following steps:
A. read information line by line from the raw image file, from brightness, colourity and the tone of each picture element, for example Y, U, V value are calculated R, G, B component;
B. with same factor gamma all over taking advantage of R, G, the B component of calculating, obtain R ', G ', B ', adjust the value of γ, the 0≤R ' that make sures, G ', B '≤16;
C. set up three 4 * 4 matrix: M
r, M
g, M
b, fill respectively according to the value of R ', G ', B '; The method of filling is to set up a discrimination matrix M
ε, for example can be
To fill in M
rBe example, the value of establishing R ' is β, with M
εEach element all go relatively should value, greater than the element of this value, at M
rCorrespondence position on fill in " 0 ", be less than or equal to this value and then fill out one writing, for example β=12 just have
M
gAnd M
bAccording to the value of G ' and B ', method is filled in equally according to this respectively, so obtain having R, G, the B matrix of 16 grades of gray scales, a picture element of the former image of the common expression of these three matrixes can have 2
12=4,096 kind of possible color;
D. the colour dot lattice printing machine is set up a special table of comparisons, with M with a picture element red, blue, yellow, that a prescription lattice point that deceive four color ribbon printing 4 * 4 reproduces former image for this reason
r, M
g, and M
bMiddle same position element, for example a
r, a
g, and a
bValue from the described table of comparisons, check in the printed colors of corresponding visual superposition look and printer;
E. corresponding to the described four color ribbon of printer, set up four 4 * 4 matrix: P
r, P
B/e, P
y, P
B/k, the M that their each element value obtains according to step C
r, M
g, and M
bMiddle each element value of same position checks in corresponding printed colors accommodation and fills in from the described table of comparisons, the printed colors that for example checks in is Huang/indigo plant, is about to P
yAnd P
B/eThe element of relevant position is written as " 1 ", P
rAnd P
B/kThe element of relevant position then is written as " 0 ";
F. obtain P by step e
r, P
B/e, P
y, and P
B/kFour assignment matrixes start the driver of supporting colour dot lattice printing in view of the above, and each assignment can be reproduced a picture element of raw image on printer paper;
G. be actually the data that at every turn read image 6 row and handle, the colour dot lattice printing machine then is a print image line by line.
2, according to the method for the described colour dot lattice printing image of claim 1, it is characterized in that: the described special table of comparisons is
A wherein
r, a
g, a
bBe matrix M
r, M
gAnd M
bIn the element of arbitrary same position; Red and the blue superposition of " red/indigo plant " expression is printed.
3, a kind of system of colour dot lattice printing image, comprise that colour TV camera 1, microcomputer 2(contain color image processing hardware 3), colour dot lattice printing machine 4 and general software environment 5, it is characterized in that: described system also comprises the printed driver of supporting colour dot lattice printing.
4, according to the system of the described colour dot lattice printing image of claim 3, it is characterized in that: the printed driver of described support colour dot lattice printing is worked out in accordance with the method for claim 1.
5, according to the system of the described colour dot lattice printing image of claim 4, it is characterized in that: the printed driver of described support colour dot lattice printing is write as with the C language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 92105969 CN1081774A (en) | 1992-07-25 | 1992-07-25 | The method and system of colour dot lattice printing image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 92105969 CN1081774A (en) | 1992-07-25 | 1992-07-25 | The method and system of colour dot lattice printing image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1081774A true CN1081774A (en) | 1994-02-09 |
Family
ID=4941687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 92105969 Pending CN1081774A (en) | 1992-07-25 | 1992-07-25 | The method and system of colour dot lattice printing image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1081774A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326548B (en) * | 2005-12-16 | 2011-09-07 | 汤姆森许可贸易公司 | Method, apparatus and system for registering color component |
CN103400172A (en) * | 2011-07-19 | 2013-11-20 | 北京中科联众科技股份有限公司 | Point bitmap and manufacturing method thereof |
CN105572942A (en) * | 2015-12-22 | 2016-05-11 | 友达光电股份有限公司 | Pixel group and display device using same |
-
1992
- 1992-07-25 CN CN 92105969 patent/CN1081774A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326548B (en) * | 2005-12-16 | 2011-09-07 | 汤姆森许可贸易公司 | Method, apparatus and system for registering color component |
CN103400172A (en) * | 2011-07-19 | 2013-11-20 | 北京中科联众科技股份有限公司 | Point bitmap and manufacturing method thereof |
CN103400172B (en) * | 2011-07-19 | 2016-09-28 | 北京中科联众科技股份有限公司 | Bit map/bitmap manufacture method and the bit map/bitmap made by the method |
CN105572942A (en) * | 2015-12-22 | 2016-05-11 | 友达光电股份有限公司 | Pixel group and display device using same |
CN105572942B (en) * | 2015-12-22 | 2020-06-05 | 友达光电股份有限公司 | Pixel group and display device using same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0389743B1 (en) | Apparatus and accompanying method for converting a bit mapped monochromatic image to a grey scale image using table look up operations | |
US5153576A (en) | Mapping of color images to black-and-white textured images | |
US20040119726A1 (en) | Graphic pieces for a border image | |
JPH02188263A (en) | Improved method and system for color and black/white image with ink jet printer | |
EP0208919A2 (en) | Multicolor sublimation type thermal recording method and device therefor | |
US7283277B2 (en) | Image borders | |
WO1996039681A1 (en) | Method and apparatus for partitioning an image | |
US4956704A (en) | Image processing apparatus and methods for making a creative image from an original image | |
US5594839A (en) | Apparatus and method for improving black and color separation in halftoned images by printing black dots in a different screen phase | |
US5003494A (en) | Data storage system for an electronic color printer | |
EP0459350A2 (en) | Method of and apparatus for generating image data representing integrated image | |
US5359432A (en) | Printer page composition with color and text | |
US5179640A (en) | Generating repeating patterns from a pattern header | |
CN1081774A (en) | The method and system of colour dot lattice printing image | |
US5680526A (en) | Method and system for selectively rendering image data in a bi-level or multi-level format | |
US5542029A (en) | System and method for halftoning using an overlapping threshold array | |
US5761347A (en) | Method and system for halftoning by tiling subsets of a threshold array over portions of an image | |
US5499362A (en) | Image processing apparatus | |
US5040128A (en) | Image processing apparatus | |
JP3020596B2 (en) | Color image processing apparatus and method | |
JPH07242027A (en) | Printer | |
EP1277174B1 (en) | Image halftoning method | |
JP3093290B2 (en) | Image processing device | |
JPH08223423A (en) | Image data processing method and image processor | |
JPH0583538A (en) | Printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C01 | Deemed withdrawal of patent application (patent law 1993) | ||
WD01 | Invention patent application deemed withdrawn after publication |