CN110555803B - Method for judging whether patterns in printing can be spliced or not and pattern splicing method - Google Patents
Method for judging whether patterns in printing can be spliced or not and pattern splicing method Download PDFInfo
- Publication number
- CN110555803B CN110555803B CN201910863340.XA CN201910863340A CN110555803B CN 110555803 B CN110555803 B CN 110555803B CN 201910863340 A CN201910863340 A CN 201910863340A CN 110555803 B CN110555803 B CN 110555803B
- Authority
- CN
- China
- Prior art keywords
- pattern
- line
- printed
- reference line
- stitching
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 239000010902 straw Substances 0.000 claims description 4
- 238000004590 computer program Methods 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
The invention relates to the field of image technology processing, in particular to an image stitching method in the printing industry. The method comprises the following steps: acquiring a pattern to be printed; selecting an arbitrary point on the pattern to be printed, drawing an arbitrary straight line passing through the point as a reference line, and obtaining color values of all pixel points on the reference line on the pattern to be printed; finding another stitching line from the datum line along any direction on the pattern to be printed, and determining the pattern to be a usable stitching line when the similarity between the color value of each pixel point on the stitching line and the color value of each pixel point on the datum line on the pattern to be printed reaches a preset standard; according to whether the result of the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced; by the method, whether the pattern to be printed has ductility can be rapidly judged by using a computer program.
Description
Technical Field
The invention relates to the field of image technology processing, in particular to an image stitching method in the printing industry.
Background
In the conventional printing process, the situation that the image provided by the customer is not matched with the printing format often occurs, as shown in fig. 1, because the printed image provided by the customer is smaller, the image is required to be spliced and then expanded to a proper printing format, and then the image is printed. As shown in fig. 2, the printed pictures provided by the clients are directly copied into a plurality of directly spliced pictures, but the left, right, up and down edges of the pictures have overlapping parts, if the pictures are naturally spliced without clipping, the patterns at the position a of the edges of the two pictures can be seen from the enlarged view of the spliced part shown in fig. 3 to generate the condition of irregular splicing, so that the picture effect after printing can be greatly influenced. The traditional processing method is that drawing staff adopts a manual mode to carry out drawing repairing treatment, the processing efficiency is low, the drawing repairing effect is not ideal enough, and time and manpower are wasted.
Disclosure of Invention
The invention aims to overcome the defects and provide a judging method for whether patterns in printing can be spliced or not and a pattern splicing method. By the method, whether the patterns to be printed can be spliced and expanded or not can be rapidly judged.
The invention is realized by the following technical scheme: a judging method for judging whether patterns in printing can be spliced or not comprises the following steps:
acquiring a pattern to be printed;
selecting an arbitrary point on the pattern to be printed, and drawing an arbitrary straight line passing through the point as a reference line to obtain color values of all pixel points on the reference line on the pattern to be printed;
finding another stitching line along any direction from a datum line on a pattern to be printed, and determining the stitching line as an available stitching line when the similarity between the color value of each pixel point on the stitching line and the color value of each pixel point on the datum line on the pattern to be printed reaches a preset standard;
and according to whether the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced or not. The range of the similarity a between the color value of each pixel point on the reference line and the color value of each pixel point on the spliced line is as follows: 0% < a +.100%. In order to achieve the best splicing printing effect, the color values of the pixel points on the reference line and the splicing line are completely consistent with the color values of the pixel points on the reference line.
And according to whether the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced or not.
Further, the acquiring the color value of each pixel point on the reference line on the pattern to be printed specifically includes: and calculating the color value of each pixel point by adopting a straw algorithm, and globally analyzing the same module.
The invention also provides a pattern splicing method in printing, which comprises the following specific steps:
acquiring a pattern to be printed;
selecting an arbitrary point on the pattern to be printed, and drawing an arbitrary straight line passing through the point as a reference line to obtain color values of all pixel points on the reference line on the pattern to be printed;
finding another stitching line along any direction from a datum line on a pattern to be printed, and determining the stitching line as an available stitching line when the similarity between the color value of each pixel point on the stitching line and the color value of each pixel point on the datum line on the pattern to be printed reaches a preset standard;
and according to whether the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced or not. The range of the similarity a between the color value of each pixel point on the reference line and the color value of each pixel point on the spliced line is as follows: 0% < a +.100%. In order to achieve the best splicing printing effect, the color values of the pixel points on the reference line and the splicing line are completely consistent with the color values of the pixel points on the reference line.
After the splice lines are found on the patterns to be printed, reserving the patterns between the reference lines and the splice lines as first splice units, and copying a plurality of required splice units; and the reference line or the spliced line is used as the spliced edge of each spliced unit to splice so as to meet the requirement of pattern splicing.
Furthermore, in order to enrich the artistic effect brought by different splicing modes, the splicing units can be directly connected together or connected together after mirror images.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a judging method for judging whether patterns in printing can be spliced or not and a pattern splicing method, by the method, whether the patterns to be printed have ductility can be judged quickly by using a computer program, and because pictures provided by customers can not necessarily meet the breadth requirement in actual printing, if a picture unsuitable for splicing and extending is subjected to manual pattern repair treatment, the accuracy of the patterns provided by the customers can be damaged, and the method is time-consuming and labor-consuming and has poor effect. Meanwhile, the invention can also rapidly judge whether the image meets the expansion condition by judging whether the similarity of the color values of each pixel point on the datum line and the splicing line reaches the preset standard or not, and rapidly realize the expansion and use of the image by arranging the splicing unit.
Drawings
The invention is further described below with reference to the accompanying drawings in conjunction with examples:
FIG. 1 is a schematic diagram of a pattern to be printed and a comparison of the sizes of the patterns according to the present invention.
Fig. 2 is a schematic diagram of the direct stitching of the pattern to be printed according to the present invention according to a conventional method.
Fig. 3 is an enlarged schematic view of the splice of fig. 2.
Fig. 4 is a schematic view of a reference line and a stitching line selected from a pattern to be printed according to the present invention.
Fig. 5 is a schematic view of a cut-and-splice unit for a pattern to be printed according to the present invention.
Fig. 6 is a schematic view of the direct edge connection of the splice units of the pattern to be printed according to the present invention.
FIG. 7 is a schematic illustration of the connection of the splice units of the pattern to be printed of the present invention after mirroring.
Detailed Description
The present invention is described in detail below with reference to the attached drawings and specific examples of the specification:
a judging method for judging whether patterns in printing can be spliced or not comprises the following steps:
acquiring a pattern to be printed, as shown in fig. 1;
as shown in fig. 4, an arbitrary point is selected on the pattern to be printed, and an arbitrary straight line passing through the point is drawn as a reference line B, and color values of each pixel point on the reference line on the pattern to be printed are obtained;
and searching the other stitching line C along any direction from the datum line B on the pattern to be printed, wherein the similarity between the color value of each pixel point on the stitching line C and the color value of each pixel point on the datum line B on the printed pattern needs to meet the requirement that the user can accept the stitched printing effect. The range of the similarity a between the color values of the pixel points on the reference line and the stitching line and the color values of the pixel points on the reference line may be set as follows: 0% < a +.100%. In this embodiment, the color values of both are required to be set to be completely identical in order to achieve the best printing effect.
And according to whether the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced or not.
Further, the acquiring the color value of each pixel point on the reference line on the pattern to be printed specifically includes: and calculating the color value of each pixel point by adopting a straw algorithm, and globally analyzing the same module.
Meanwhile, the invention also provides a pattern splicing method in printing, which comprises the following specific steps:
acquiring a pattern to be printed;
selecting an arbitrary point on the pattern to be printed, and drawing an arbitrary straight line passing through the point as a reference line to obtain color values of all pixel points on the reference line on the pattern to be printed;
and finding another splicing line from the datum line along any direction on the pattern to be printed, wherein the similarity between the color value of each pixel point on the splicing line and the color value of each pixel point on the datum line on the printed pattern reaches a preset standard. The range of the similarity a between the color value of each pixel point on the reference line and the color value of each pixel point on the stitching line may be: a is more than 0% and less than or equal to 100%, and is set according to the splicing printing effect required by a user. If the optimal splicing printing effect is achieved, the color values of the pixels on the reference line and the splicing line are completely consistent with the color values of the pixels on the reference line.
As shown in fig. 5, after the splice lines are found on the pattern to be printed, the pattern between the reference line and the splice lines is reserved as a first splice unit D, and a plurality of required splice units are copied; and the reference line or the spliced line is used as the spliced edge of each spliced unit to splice so as to meet the requirement of pattern splicing.
Further, in order to enrich the artistic effect brought by different splicing modes, each splicing unit D may be a plurality of splicing units directly connected together, or may be a splicing unit D' obtained by once mirroring each splicing unit D as shown in fig. 7 or a splicing unit d″ obtained by twice mirroring each splicing unit D. The purpose of this is to: the client can select different splicing modes by searching for the different splicing modes and previewing and presenting the different splicing modes.
The specific splicing mode and the specific splicing requirements are as follows:
1. if the color blocks are the same color value, the color blocks are spliced along the edge-most part.
2. If the picture is not a color block, but is provided with a pattern like the schematic diagram above, each pixel point on the vertical and horizontal lines is analyzed to find a matching part. ( The method can automatically cut the graph in the X & Y axis longitudinal and transverse directions, then scan and identify the graph along the central axis left and right to find out whether the pixel points of the lines in the longitudinal and transverse directions have matching parts, if so, displaying a preview scheme, and if not, displaying that the matching is impossible, otherwise, one-way matching. If only one-way splicing of X axis or Y axis is possible, displaying preview of the splicing mode )
3. A picture must have two sides (i.e., color values for each pixel) to be able to perform the pattern stitching.
4. The pattern splice can be divided into (endless loop pattern and limited loop pattern)
The foregoing detailed description will be given for the purpose of illustration only, and the invention is not limited to the above-described embodiments, but is to be construed as merely illustrative of the principles of the invention, as long as they are within the scope of the invention.
Claims (5)
1. A judging method for judging whether patterns in printing can be spliced is characterized by comprising the following steps of: the method comprises the following steps:
acquiring a pattern to be printed;
selecting an arbitrary point on the pattern to be printed, drawing an arbitrary straight line passing through the point as a reference line, and acquiring color values of all pixel points on the reference line on the pattern to be printed, wherein the acquiring of the color values of all pixel points on the reference line on the pattern to be printed specifically comprises the following steps: calculating the color value of each pixel point by adopting a straw algorithm, and globally analyzing the same module;
finding another stitching line along any direction from a reference line on a pattern to be printed, determining the pattern to be a usable stitching line when the similarity between the color value of each pixel point on the stitching line and the color value of each pixel point on the reference line on the printed pattern reaches a preset standard, wherein the range of the similarity a between the color value of each pixel point on the reference line and the color value of each pixel point on the stitching line is as follows: 0% < a ∈ 100%;
and according to whether the splicing line can be found on the pattern to be printed, the result is used as a basis for judging whether the pattern can be spliced or not.
2. The method for determining whether a pattern in printing is spliceable according to claim 1, wherein: the color values of the pixel points on the reference line and the spliced line are completely consistent with the color values of the pixel points on the reference line.
3. A method of pattern stitching in printing, characterized by:
acquiring a pattern to be printed;
selecting an arbitrary point on the pattern to be printed, drawing an arbitrary straight line passing through the point as a reference line, and acquiring color values of all pixel points on the reference line on the pattern to be printed, wherein the acquiring of the color values of all pixel points on the reference line on the pattern to be printed specifically comprises the following steps: calculating the color value of each pixel point by adopting a straw algorithm, and globally analyzing the same module;
finding another stitching line along any direction from a reference line on a pattern to be printed, determining the pattern to be a usable stitching line when the similarity between the color value of each pixel point on the stitching line and the color value of each pixel point on the reference line on the printed pattern reaches a preset standard, wherein the range of the similarity a between the color value of each pixel point on the reference line and the color value of each pixel point on the stitching line is as follows: 0% < a ∈ 100%;
after the splice lines are found on the patterns to be printed, reserving the patterns between the reference lines and the splice lines as first splice units, and copying a plurality of required splice units; and the reference line or the spliced line is used as the spliced edge of each spliced unit to splice so as to meet the requirement of pattern splicing.
4. A method of pattern stitching in printing as recited in claim 3 wherein: the splicing units are directly connected or connected together after being mirrored.
5. A method of pattern stitching in printing as claimed in claim 3 or 4, wherein: the color values of the pixel points on the reference line and the spliced line are completely consistent with the color values of the pixel points on the reference line.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863340.XA CN110555803B (en) | 2019-09-12 | 2019-09-12 | Method for judging whether patterns in printing can be spliced or not and pattern splicing method |
PCT/CN2020/114047 WO2021047512A1 (en) | 2019-09-12 | 2020-09-08 | Method for determining whether patterns in printing can be spliced and pattern splicing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863340.XA CN110555803B (en) | 2019-09-12 | 2019-09-12 | Method for judging whether patterns in printing can be spliced or not and pattern splicing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110555803A CN110555803A (en) | 2019-12-10 |
CN110555803B true CN110555803B (en) | 2023-08-08 |
Family
ID=68740095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910863340.XA Active CN110555803B (en) | 2019-09-12 | 2019-09-12 | Method for judging whether patterns in printing can be spliced or not and pattern splicing method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110555803B (en) |
WO (1) | WO2021047512A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110555803B (en) * | 2019-09-12 | 2023-08-08 | 福建云造科技有限公司 | Method for judging whether patterns in printing can be spliced or not and pattern splicing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1188656A (en) * | 1997-09-04 | 1999-03-30 | Dainippon Screen Mfg Co Ltd | Image-processing unit and record medium thereof |
JP2003194735A (en) * | 2001-09-27 | 2003-07-09 | Shoei Kk | Inspection method and device for printed-wiring substrate |
CN105825476A (en) * | 2016-06-12 | 2016-08-03 | 浙江清华长三角研究院 | Rapid image scanning and mosaicing mode applied to DSP |
CN107221306A (en) * | 2017-06-29 | 2017-09-29 | 上海顺久电子科技有限公司 | Method, device and the display device of brightness of image in correction splicing device screen |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150325044A1 (en) * | 2014-05-09 | 2015-11-12 | Adornably, Inc. | Systems and methods for three-dimensional model texturing |
CN105957007B (en) * | 2016-05-05 | 2018-12-18 | 电子科技大学 | Image split-joint method based on characteristic point plane similarity |
CN110555803B (en) * | 2019-09-12 | 2023-08-08 | 福建云造科技有限公司 | Method for judging whether patterns in printing can be spliced or not and pattern splicing method |
-
2019
- 2019-09-12 CN CN201910863340.XA patent/CN110555803B/en active Active
-
2020
- 2020-09-08 WO PCT/CN2020/114047 patent/WO2021047512A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1188656A (en) * | 1997-09-04 | 1999-03-30 | Dainippon Screen Mfg Co Ltd | Image-processing unit and record medium thereof |
JP2003194735A (en) * | 2001-09-27 | 2003-07-09 | Shoei Kk | Inspection method and device for printed-wiring substrate |
CN105825476A (en) * | 2016-06-12 | 2016-08-03 | 浙江清华长三角研究院 | Rapid image scanning and mosaicing mode applied to DSP |
CN107221306A (en) * | 2017-06-29 | 2017-09-29 | 上海顺久电子科技有限公司 | Method, device and the display device of brightness of image in correction splicing device screen |
Non-Patent Citations (1)
Title |
---|
一种快速扫描的全景图像拼接算法;赵飞等;《电子技术》;20180930(第09期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2021047512A1 (en) | 2021-03-18 |
CN110555803A (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101079952B (en) | Image processing method and image processing apparatus | |
US9715755B2 (en) | Systems and methods for photogrammetric rendering | |
US20080298718A1 (en) | Image Stitching | |
US20130145298A1 (en) | Structure-Preserving Clone Brush | |
US8265380B1 (en) | Reuse of image processing information | |
WO2013103032A1 (en) | Inspection area setting method for image inspecting device | |
US20180357819A1 (en) | Method for generating a set of annotated images | |
KR20130029779A (en) | Video screen display method and device | |
WO2018006566A1 (en) | View adjustment method and system | |
CN110390648A (en) | A kind of image high-intensity region method distinguished based on unsaturation and saturation bloom | |
CN103984774A (en) | Method and system for viewing drawings of substation | |
US9064314B2 (en) | Robust automatic determination and location of MacBeth color checker charts | |
CN111311487B (en) | Rapid splicing method and system for photovoltaic module images | |
RU2580473C1 (en) | Device to seamlessly merge the images into a single composition with automatic contrast adjustment and gradients | |
CN110555803B (en) | Method for judging whether patterns in printing can be spliced or not and pattern splicing method | |
CN112687231A (en) | Brightness and chrominance data extraction method, equipment and computer readable storage medium | |
US20050147312A1 (en) | Method and apparatus for creating vector representation | |
US7715650B2 (en) | Method and apparatus for digital processing of images | |
JPH10149449A (en) | Picture division method, picture identification method, picture division device and picture identification device | |
CN105825476B (en) | A kind of quick Overlap-scanning mode of image applied to DSP | |
JP5618719B2 (en) | Image processing apparatus, method and program thereof | |
Xiong et al. | Fast and high-quality image blending on mobile phones | |
CN109285166B (en) | Overlapping and conglutinating chromosome automatic segmentation method based on full convolution network | |
JP2000092319A (en) | Device and method for deciding scratch part on image and storage medium | |
WO2022056875A1 (en) | Method and apparatus for segmenting nameplate image, and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200827 Address after: 350000 office, 9 / F, Haixi financial building, No.1 Wanglong Er Road, Ninghua street, Taijiang District, Fuzhou City, Fujian Province Applicant after: Fujian Yunzao Technology Co.,Ltd. Address before: 350018 2 / F, building 2, Fuzhou yuxinda economic development company, No. 2, Yangqi Branch Road, Gaishan Town, Cangshan District, Fuzhou City, Fujian Province Applicant before: FUZHOU INSTAFABRIC DIGITAL TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |