CN104572610A - Method and device for automatic imposition - Google Patents

Method and device for automatic imposition Download PDF

Info

Publication number
CN104572610A
CN104572610A CN201310507850.6A CN201310507850A CN104572610A CN 104572610 A CN104572610 A CN 104572610A CN 201310507850 A CN201310507850 A CN 201310507850A CN 104572610 A CN104572610 A CN 104572610A
Authority
CN
China
Prior art keywords
imposition
page
impositioned
area
pages
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
CN201310507850.6A
Other languages
Chinese (zh)
Other versions
CN104572610B (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.)
BEIJING BEIDA FOUNDER ELECTRONICS Co Ltd
New Founder Holdings Development Co ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310507850.6A priority Critical patent/CN104572610B/en
Publication of CN104572610A publication Critical patent/CN104572610A/en
Application granted granted Critical
Publication of CN104572610B publication Critical patent/CN104572610B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

本发明实施例提供了一种自动拼版方法及装置,用于获取可裁切的拼版结果,当使用需要横向或者纵向贯通版面进行裁切的版面材质进行合版印刷时,能够将页面完好裁切下来,包括:从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内;当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域。

Embodiments of the present invention provide an automatic imposition method and device for obtaining trimmable imposition results, and when using a layout material that needs to be cut horizontally or vertically through the layout for combined printing, the pages can be completely cut Next, it includes: selecting a blank rectangular area from the blank rectangular area to be impositioned on the layout as the current imposition rectangular area; determining a page to be impositioned among the pages to be impositioned, and imposing the page to be impositioned in the current imposition In the rectangular area; when it is determined that there is a remaining area after imposition in the current imposition rectangular area, judge whether the shape of the remaining area is a rectangle, and if so, use the remaining area and the current blank rectangular area on the layout together as the waiting area Compose the blank rectangular area, if not, divide the remaining area into two rectangular areas, and use the divided two rectangular areas and the current blank rectangular area on the layout together as the blank rectangular area to be impositioned.

Description

一种自动拼版方法及装置An automatic imposition method and device

技术领域technical field

本发明涉及计算排版技术领域,尤其涉及一种自动拼版方法及装置。The invention relates to the technical field of computational typesetting, in particular to an automatic imposition method and device.

背景技术Background technique

在计算机排版技术领域中,尤其是在合版印刷中,拼版是一项重要的基础技术。拼版的目的是在指定尺寸的印刷介质(计算机直接制版(Computer ToPlate,CTP)板材,胶片,纸张等)上输出尽可能多的印刷活件(名片,宣传页,海报,画册等),以提高印刷介质的利用率,达到减少印刷材料消耗和节省印刷成本的目的。In the field of computer typesetting technology, especially in combined printing, imposition is an important basic technology. The purpose of imposition is to output as many printing jobs (business cards, leaflets, posters, albums, etc.) The utilization rate of printing media achieves the purpose of reducing the consumption of printing materials and saving printing costs.

为了提高拼版的效率,节省人工成本,提高印刷生产效率,发展出了自动拼版技术。自动拼版技术能够根据拼版算法自动地将多个不同尺寸的页面(由印刷活件生成)拼合在一个版面上,不需要人工干预。In order to improve the efficiency of imposition, save labor costs, and improve printing production efficiency, automatic imposition technology has been developed. Automatic imposition technology can automatically assemble multiple pages of different sizes (generated by printing jobs) on one layout according to the imposition algorithm without manual intervention.

由于印刷输出设备的技术升级,CTP材质版面取代了胶片版面,数码印刷逐渐普及,连线印后设备和自动化印后设备逐渐成为主流。CTP材质版面使用专门的裁切设备,只能横向或者纵向贯通版面进行裁切。如图1所示,是一种可裁切的拼版结果,可依次沿虚线1、2、3裁切。而现有的自动拼版技术(中国专利200710176313.2一种自动拼版方法及装置)没有考虑CTP材质版面的裁切问题,拼版结果可能出现无法裁切的情况,如图2所示,导致拼版结果不可用,浪费印刷材料。Due to the technical upgrading of printing output equipment, CTP material layout has replaced the film layout, digital printing has gradually become popular, and in-line post-press equipment and automated post-press equipment have gradually become the mainstream. The CTP material layout uses special cutting equipment, which can only be cut through the layout horizontally or vertically. As shown in Figure 1, it is a cuttable imposition result, which can be cut along the dotted lines 1, 2, and 3 in sequence. However, the existing automatic imposition technology (Chinese patent 200710176313.2, an automatic imposition method and device) does not consider the cutting problem of the CTP material layout, and the imposition result may not be able to be cut, as shown in Figure 2, resulting in the imposition result being unavailable , wasting printed material.

发明内容Contents of the invention

本发明实施例提供了一种自动拼版方法及装置,用以解决现有技术中拼版结果不可用,合版印刷后无法裁切,导致印刷材料浪费的问题。Embodiments of the present invention provide an automatic imposition method and device, which are used to solve the problems in the prior art that the imposition result is unavailable, and cannot be cut after combined printing, resulting in waste of printing materials.

本发明实施例提供的一种自动拼版方法,该方法包括:An automatic imposition method provided by an embodiment of the present invention includes:

从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;Select a blank rectangular area from the blank rectangular area to be imposed on the layout as the current imposition rectangular area;

在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;Among the pages to be made up, a page to be made up is determined, and the page to be made up is made up in the current make-up rectangular area, and at least two borders of the page to be made up are the same as two borders of the current make-up rectangular area. Overlapping borderlines;

当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域;When it is determined that there is a remaining area after imposition in the current imposition rectangular area, it is judged whether the shape of the remaining area is a rectangle, and if so, the remaining area and the current blank rectangular area on the layout are used together as a blank rectangular area to be impositioned , if not, divide the remaining area into two rectangular areas, and use the divided two rectangular areas and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned;

重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面。Repeat the above steps until all the pages to be imposition are impositioned, or the blank rectangular area on the layout cannot be impositioned to any page to be impositioned.

本发明实施例提供的一种自动拼版装置,该装置包括:An automatic imposition device provided by an embodiment of the present invention, the device includes:

拼版单元,用于从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面;The imposition unit is used to select a blank rectangular area from the blank rectangular area to be impositioned on the layout as the current imposition rectangular area; among the pages to be impositioned, determine a page to be impositioned, and make the imposition of the page to be impositioned in the current imposition within the imposition rectangle area, and at least two boundaries of the pages to be imposition overlap with the two boundary lines of the current imposition rectangle area; repeat the above steps until all the pages to be imposition are impositioned, or the pages to be impositioned on the layout Any page to be imposed cannot be imposed in the blank rectangular area;

剩余区域划分单元,用于当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域。The remaining area division unit is used to determine whether the shape of the remaining area is a rectangle when it is determined that there is an imposition remaining area in the current imposition rectangular area, and if so, combine the remaining area with the current blank rectangular area on the layout Together as a blank rectangular area to be impositioned, if not, divide the remaining area into two rectangular areas, and use the two divided rectangular areas and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned.

本发明实施例,从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域;重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面。通过该技术方案,得到了可裁切的拼版结果,当使用需要横向或者纵向贯通版面进行裁切的版面材质进行合版印刷时,能够将页面完好裁切下来,避免了印刷材料的浪费;并且,由于是自动拼版,还提高了工作效率,节省了人力。In the embodiment of the present invention, a blank rectangular area is selected from the blank rectangular areas to be impositioned on the layout as the current imposition rectangular area; among the pages to be impositioned, a page to be imposed is determined, and the page to be imposed is imposed on the current imposition. within the imposition rectangular area, and at least two boundaries of the page to be imposition overlap with two boundary lines of the current imposition rectangular area; when it is determined that there is a remaining area after imposition in the current imposition rectangular area, the Whether the shape of the remaining area is a rectangle, if so, use the remaining area and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned, if not, divide the remaining area into two rectangular areas, and divide the divided The two rectangular areas and the current blank rectangular area on the layout are used together as the blank rectangular area to be impositioned; repeat the above steps until all pages to be impositioned are impositioned, or the blank rectangular area to be impositioned on the layout cannot be impositioned to any page to be impositioned. Through this technical solution, a trimmable imposition result is obtained. When using a layout material that needs to be cut horizontally or vertically through the layout for combined printing, the page can be cut in good condition, avoiding the waste of printing materials; and , as it is an automatic imposition, it also improves work efficiency and saves manpower.

附图说明Description of drawings

图1是可裁切的拼版结果的示意图;FIG. 1 is a schematic diagram of a trimmable imposition result;

图2是现有技术中不可裁切的拼版结果的示意图;Fig. 2 is a schematic diagram of imposition results that cannot be cut in the prior art;

图3是本发明实施例提供的自动拼版方法的流程示意图;Fig. 3 is a schematic flow chart of an automatic imposition method provided by an embodiment of the present invention;

图4是本发明实施例提供的剩余区域的划分示意图;FIG. 4 is a schematic diagram of division of remaining regions provided by an embodiment of the present invention;

图5是本发明实施例提供的确定待拼版空白矩形区域的方法的流程示意图;Fig. 5 is a schematic flowchart of a method for determining a blank rectangular area to be impositioned provided by an embodiment of the present invention;

图6是本发明实施例提供的使用拼版模式时选取待拼版页面的方法的流程示意图;Fig. 6 is a schematic flowchart of a method for selecting pages to be made when using the make-up mode provided by an embodiment of the present invention;

图7是本发明实施例提供的不使用拼版模式时选取待拼版页面的方法的流程示意图;Fig. 7 is a schematic flowchart of a method for selecting pages to be made without using the make-up mode provided by an embodiment of the present invention;

图8是本发明实施例提供的不使用拼版模式时确定待拼版页面的具体方法的流程示意图;Fig. 8 is a schematic flowchart of a specific method for determining a page to be imposition when the imposition mode is not used according to an embodiment of the present invention;

图9是本发明实施例提供的根据颜色近似度选取待拼版页面的方法的流程示意图;Fig. 9 is a schematic flowchart of a method for selecting pages to be impositioned according to the degree of color similarity provided by an embodiment of the present invention;

图10是本发明实施例提供的计算颜色近似度的原理示意图;Fig. 10 is a schematic diagram of the principle of calculating color approximation provided by an embodiment of the present invention;

图11是本发明具体实施例提供的自动拼版方法的流程示意图;Fig. 11 is a schematic flow chart of an automatic imposition method provided by a specific embodiment of the present invention;

图12是本发明具体实施例提供的一拼版结果示意图;Fig. 12 is a schematic diagram of an imposition result provided by a specific embodiment of the present invention;

图13是本发明具体实施例提供的另一拼版结果示意图;Fig. 13 is a schematic diagram of another imposition result provided by a specific embodiment of the present invention;

图14是本发明具体实施例提供的另一拼版结果示意图;Fig. 14 is a schematic diagram of another imposition result provided by a specific embodiment of the present invention;

图15是本发明实施例提供的自动拼版装置的结构示意图。Fig. 15 is a schematic structural diagram of an automatic imposition device provided by an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供了一种自动拼版方法及装置,当使用需要横向或者纵向贯通版面进行裁切的版面材质进行合版印刷时,能够得到可裁切的拼版结果,避免印刷材料的浪费。Embodiments of the present invention provide an automatic imposition method and device. When using a layout material that needs to be cut horizontally or vertically through the layout for combined printing, a cuttable imposition result can be obtained and waste of printing materials can be avoided.

如图3所示,本发明实施例提供的一种自动拼版的方法包括:As shown in Figure 3, a method for automatic imposition provided by the embodiment of the present invention includes:

S301、从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域。S301. Select a blank rectangular area from the blank rectangular areas to be imposed on the layout as the current imposition rectangular area.

当前拼版矩形区域具体可以按照以下选取规则进行选取:对待拼版空白矩形区域按照面积大小进行排序,优先选取面积最大的空白矩形区域,或者,优先选取面积最小的空白矩形区域。The current imposition rectangular area can be selected specifically according to the following selection rules: the blank rectangular areas to be impositioned are sorted according to the size of the area, and the blank rectangular area with the largest area is preferentially selected, or the blank rectangular area with the smallest area is preferentially selected.

S302、在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠。S302. Among the pages to be impositioned, determine a page to be imposed, and arrange the page to be impositioned in the current imposition rectangle area, and at least two borders of the page to be impositioned are the same as the current imposition rectangle area. The two boundary lines overlap.

确定的待拼版页面应当能够拼版在当前拼版矩形区域内,即拼版后的页面范围不超过当前空白拼版矩形区域的范围。The determined pages to be imposition should be able to be imposed within the current imposition rectangle area, that is, the range of the pages after imposition does not exceed the scope of the current blank imposition rectangle area.

S303、当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域;S303. When it is determined that there is a remaining area after imposition in the current imposition rectangular area, determine whether the shape of the remaining area is a rectangle, and if so, use the remaining area and the current blank rectangular area on the layout as a blank to be impositioned Rectangular area, if not, divide the remaining area into two rectangular areas, and use the divided two rectangular areas and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned;

重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面。Repeat the above steps until all the pages to be imposition are impositioned, or the blank rectangular area on the layout cannot be impositioned to any page to be impositioned.

如图4所示,页面P拼版后空白矩形区域中存在剩余区域A,可以将A横向划分,得到两个矩形B和C,也可以将A纵向划分,得到两个矩形B’和C’。As shown in Figure 4, there is a remaining area A in the blank rectangular area after the imposition of page P, and A can be divided horizontally to obtain two rectangles B and C, or A can be divided vertically to obtain two rectangles B' and C'.

具体的划分规则,即如何确定横向划分还是纵向划分,可以根据版面宽、高、面积,以及各个待拼版页面的宽、高、面积等因素综合考虑。例如,对于一页面p,拼版在空白矩形区域f,页面p的宽、高分别为Wp、Hp,空白矩形区域f的宽、高分别为Wf、Hf;如果Wp×(Hf-Hp)≥Hp×(Wf-Wp),则横向划分,否则,纵向划分。还可以按照以下划分规则,如果(Wf-Wp)≥(Hf-Hp),则横向划分,否则,纵向划分。The specific division rules, that is, how to determine whether to divide horizontally or vertically, can be comprehensively considered based on factors such as the width, height, and area of the layout, and the width, height, and area of each page to be impositioned. For example, for a page p, the imposition is in the blank rectangular area f, the width and height of the page p are W p , H p respectively, and the width and height of the blank rectangular area f are W f , H f respectively; if W p ×(H f -H p )≥H p ×(W f -W p ), divide horizontally; otherwise, divide vertically. It can also be divided according to the following division rule, if (W f -W p )≥(H f -H p ), divide horizontally; otherwise, divide vertically.

不同的划分规则会得到不同的拼版结果,对版面的利用率可能不同,最后裁切的刀数也可能不同,需要根据实际情况来决定采用哪种划分规则。当然,划分规则不仅限于以上提出的两种规则,只要将剩余区域划分为两个矩形,最终都能得到可裁切的拼版结果。Different division rules will result in different imposition results, the utilization rate of the layout may be different, and the number of final cutting knives may also be different. It is necessary to decide which division rule to use according to the actual situation. Of course, the division rules are not limited to the two rules proposed above, as long as the remaining area is divided into two rectangles, a trimmable imposition result can be obtained in the end.

此外,还可以通过尝试不同的划分方案,确定版面利用率最高的拼版结果再进行印制。In addition, it is also possible to determine the imposition result with the highest layout utilization rate by trying different division schemes before printing.

如图5所示,步骤S301之前,该方法还包括:预先确定版面的待拼版空白矩形区域;具体流程如下:As shown in Figure 5, before step S301, the method also includes: predetermining the blank rectangular area to be impositioned in the layout; the specific process is as follows:

S501、分析全部待拼版页面的宽、高,以及分析版面的宽、高。S501. Analyze the width and height of all pages to be imposition, and analyze the width and height of the layout.

S502、根据分析结果,查询系统知识库,判断是否使用拼版模式,如果是,执行步骤S503;否则,执行步骤S504。S502. According to the analysis result, query the system knowledge base to determine whether to use the imposition mode, if yes, perform step S503; otherwise, perform step S504.

拼版问题可以抽象为二维装箱问题(two-dimensional bin packing problem),属于非确定性多项式(Non-deterministic polynomial,NP)完全问题,具有很高的计算复杂性(参见GAREY M R,JOHNSON D S.Computers andintractability[M].San Francisco:Freeman,1979)。现有技术的自动拼版方法,得到的拼版结果都是近似次优解,而非最优解,也就是说,存在版面空间的浪费。而对于具备一定特征的版面和待拼版页面,是存在最优解的。系统知识库就是用于存储存在最优解的版面和待拼版页面的特征数据,以及存储相应的最优解的数据库,该最优解指示了如何预先在版面上划分出初始的待拼版空白矩形区域。The imposition problem can be abstracted into a two-dimensional bin packing problem (two-dimensional bin packing problem), which is a non-deterministic polynomial (Non-deterministic polynomial, NP) complete problem with high computational complexity (see GAREY M R, JOHNSON D S. Computers and intractability [M]. San Francisco: Freeman, 1979). In the automatic imposition method of the prior art, the imposition results obtained are all approximate suboptimal solutions, not optimal solutions, that is to say, there is a waste of layout space. However, there is an optimal solution for layouts with certain characteristics and pages to be impositioned. The system knowledge base is used to store the characteristic data of the layout and the page to be imposition with the optimal solution, and the database for storing the corresponding optimal solution. The optimal solution indicates how to divide the initial blank rectangle to be imposed on the layout in advance area.

S503、在版面上划分出初始的待拼版空白矩形区域。S503. Divide an initial blank rectangular area to be impositioned on the layout.

使用拼版模式,即根据系统知识库指示的最优解,初步将版面划分为初始的待拼版空白矩形区域,并确定每一空白矩形区域内允许拼版的页面的宽、高和旋转角度。其中,当版面被划分为至少两个待拼版空白矩形区域时,满足:部分或全部待拼版空白矩形区域的一条边能够顺序连成至少一条水平线或垂直线,所述水平线的起止点分别位于所述版面的左、右边界上,所述垂直线的起止点分别位于所述版面的上、下边界上。也就是说,待拼版空白矩形区域的初始划分,也要满足可裁切的要求。Use the imposition mode, that is, according to the optimal solution indicated by the system knowledge base, initially divide the layout into initial blank rectangular areas to be imposition, and determine the width, height and rotation angle of pages that allow imposition in each blank rectangular area. Wherein, when the layout is divided into at least two blank rectangular areas to be impositioned, it is satisfied that one side of part or all of the blank rectangular areas to be impositioned can be sequentially connected into at least one horizontal line or vertical line, and the starting and ending points of the horizontal lines are respectively located at the On the left and right boundaries of the layout, the starting and ending points of the vertical lines are respectively located on the upper and lower boundaries of the layout. That is to say, the initial division of the blank rectangular area to be impositioned must also meet the requirement of trimming.

本发明实施例,用二元组tp(w,h,r)表示一类待拼版页面,w是页面宽度、h是页面高度、r表示拼版时的顺时针旋转角度,全部待拼版页面的类别集合为Stp;用四元组gr(x,y,W,H)表示空白矩形区域,x,y表示空白矩形区域的左下角的顶点在版面上的坐标,W表示空白矩形区域的宽度,H表示空白矩形区域的高度,全部gr的集合为Sgr;完整的版面为GP。拼版模式定义了Stp到Sgr的映射f,f的数学定义如下:In the embodiment of the present invention, the binary group tp(w, h, r) is used to represent a class of pages to be made, w is the width of the page, h is the height of the page, and r represents the clockwise rotation angle of the make-up, all the categories of the pages to be made The set is S tp ; the blank rectangular area is represented by the quadruple gr(x, y, W, H), x, y represent the coordinates of the vertex at the lower left corner of the blank rectangular area on the layout, W represents the width of the blank rectangular area, H represents the height of the blank rectangular area, the set of all gr is S gr ; the complete layout is GP. The imposition mode defines the mapping f from S tp to S gr , and the mathematical definition of f is as follows:

SS tptp →&Right Arrow; ff SS grgr ,, grgr == ff (( tptp )) ,, grgr ∈∈ SS grgr ,, tptp ∈∈ SS tptp ,, ∪∪ grgr ∈∈ SS grgr grgr == GPGP

此外,拼版模式下,空白矩形区域与待拼版页面的映射关系具有继承性。即步骤S303将剩余区域作为待拼版空白矩形区域时,不仅记录剩余区域的四元组gr’(x’,y’,W’,H’),还记录剩余区域拼版前所在空白矩形区域对应的拼版页面的二元组tp’(w’,h’,r’),并通过数组(gr’(x’,y’,W’,H’),tp’(w’,h’,r’))存放。因此,剩余区域内也只能够拼入指定类型的待拼版页面。In addition, in the imposition mode, the mapping relationship between the blank rectangular area and the page to be imposition is inherited. That is, when step S303 uses the remaining area as the blank rectangular area to be impositioned, not only the quaternion gr'(x', y', W', H') of the remaining area is recorded, but also the corresponding The two-tuple tp'(w',h',r') of the imposition page, and through the array (gr'(x',y',W',H'),tp'(w',h',r' )) storage. Therefore, only specified types of pages to be imposed can be assembled in the remaining area.

S504、将整个版面区域作为一个待拼版空白矩形区域。S504. Use the entire layout area as a blank rectangular area to be impositioned.

当不采用拼版模式时,空白矩形区域与待拼版页面之间不存在映射关系,可以将任意宽、高的能够拼版在当前拼版矩形区域内的待拼版页面拼版在当前拼版矩形区域。其中,能够拼版在当前拼版矩形区域内的待拼版页面,指的是范围不超过当前拼版矩形区域的待拼版页面。When the imposition mode is not used, there is no mapping relationship between the blank rectangular area and the pages to be impositioned, and the pages to be impositioned that can be impositioned in the current imposition rectangle area can be impositioned in the current imposition rectangle area with any width and height. Wherein, the pages to be impositioned within the current imposition rectangle area that can be impositioned refers to the pages to be imposition whose range does not exceed the current imposition rectangle area.

如图6所示,当采用拼版模式时,步骤S302中确定一个待拼版页面的方法,包括:As shown in Figure 6, when the imposition mode is adopted, the method for determining a page to be imposition in step S302 includes:

S601、从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述当前拼版矩形区域内允许拼版的页面的宽、高的待拼版页面,或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述允许拼版的页面按照所述旋转角度旋转后的宽、高的整数倍的待拼版页面。S601. From among the pages to be impositioned within the current imposition rectangular area, determine the pages to be imposition whose width and height are respectively the width and height of pages allowed to be impositioned within the current imposition rectangular area, or, from the pages capable of imposition Among the pages to be impositioned in the current imposition rectangle area, determine the pages to be impositioned whose width and height are integer multiples of the width and height of the pages allowed for imposition after being rotated according to the rotation angle.

例如,欲将由tp1(w1,h1)、tp2(w2,h2)、tp3(w3,h3)三类待拼版页面组成的待拼版页面集合拼版在某一版面,按照系统知识库,版面划分为三个空白矩形区域:gr1(x1,y1,W1,H1),gr2(x2,y2,W2,H2),gr3(x3,y3,W3,H3);同时,系统知识库指示了各个空白矩形区域分别映射的待拼版页面,记录为(gr1(x1,y1,W1,H1),tp1(w1,h1,r1)),(gr2(x2,y2,W2,H2),tp2(w2,h2,r2)),(gr3(x3,y3,W3,H3),tp3(w3,h3,r3))。gr1(x1,y1,W1,H1)中允许拼入按照r1旋转后的tp1(w1,h1,),gr2(x2,y2,W2,H2)中允许拼入按照r2旋转后的tp2(w2,h2),gr3(x3,y3,W3,H3)中允许拼入按照r3旋转后的tp3(w3,h3)。因此,在确定空白矩形区域之后,在空白矩形区域拼入相应规格的待拼版页面即可。For example, if you want to impose a set of imposition pages composed of three types of pages to be imposition, tp1(w1,h1), tp2(w2,h2), and tp3(w3,h3), on a certain layout, the layout is divided into three types according to the system knowledge base. blank rectangular areas: gr1(x1,y1,W1,H1), gr2(x2,y2,W2,H2), gr3(x3,y3,W3,H3); at the same time, the system knowledge base indicates that each blank rectangular area is Mapped pages to be imposition, recorded as (gr1(x1,y1,W1,H1),tp1(w1,h1,r1)), (gr2(x2,y2,W2,H2),tp2(w2,h2,r2) ), (gr3(x3,y3,W3,H3),tp3(w3,h3,r3)). gr1 (x1, y1, W1, H1) allows tp1 (w1, h1,) rotated according to r1, and gr2 (x2, y2, W2, H2) allows tp2 (w2, h2), gr3(x3, y3, W3, H3) allow to insert tp3(w3, h3) rotated according to r3. Therefore, after determining the blank rectangular area, it is sufficient to assemble pages to be imposition of corresponding specifications in the blank rectangular area.

为增强系统知识库的适应性,减少待拼版页面分类数量,可以对映射关系进行灵活处理,不满足映射关系的部分待拼版页面也可以拼入空白矩形区域中。例如,若待拼版页面中同时存在tp1(w1,h1),tp4(2*w1,h1),在确定拼版模式的映射关系时将tp4视作两个tp1,对于允许拼入tp1(w1,h1)的gr1(x1,y1,W1,H1),同样允许拼入tp4(2*w1,h1,r1)。并且,由于tp4面积大于tp1,可以优先对tp4进行拼版,避免后续空间不足。又例如,对于映射(gr1(x1,y1,W1,H1),tp1(w1,h1,r1)),假设tp1拼入gr1的旋转角度r1为90度,那gr1中允许拼入tp5(h1,w1)。In order to enhance the adaptability of the system knowledge base and reduce the number of pages to be imposition, the mapping relationship can be handled flexibly, and some pages to be imposition that do not meet the mapping relationship can also be assembled into the blank rectangular area. For example, if there are tp1(w1,h1) and tp4(2*w1,h1) in the page to be imposition at the same time, tp4 is regarded as two tp1 when determining the mapping relationship of the imposition mode. )'s gr1(x1,y1,W1,H1), it is also allowed to splice into tp4(2*w1,h1,r1). Moreover, since the area of tp4 is larger than that of tp1, tp4 can be impositioned first to avoid insufficient subsequent space. For another example, for mapping (gr1(x1,y1,W1,H1),tp1(w1,h1,r1)), assuming that the rotation angle r1 of tp1 into gr1 is 90 degrees, then gr1 is allowed to be inserted into tp5(h1, w1).

S602、从确定的待拼版页面中选取一个待拼版页面。S602. Select a page to be made from the determined pages to be made.

当确定得到多个待拼版页面时,从确定的待拼版页面中选取一个待拼版页面;当确定得到唯一的待拼版页面时,将确定的待拼版页面直接作为选取的待拼版页面。When it is determined that multiple pages to be imposed are obtained, a page to be imposed is selected from the determined pages to be imposed; when it is determined that the only page to be imposed is obtained, the determined page to be imposed is directly used as the selected page to be imposed.

如图7所示,当不采用拼版模式时,步骤S302中确定一个待拼版页面的方法,包括:As shown in Figure 7, when the imposition mode is not used, the method for determining a page to be imposition in step S302 includes:

S701、根据各个待拼版页面的宽、高,以及所述当前拼版矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面。S701. According to the width and height of each to-be-imposed page and the width and height of the current imposition rectangular area, determine the to-be-imposed page that satisfies the principle of least space waste.

例如,对于待拼版页面p,页面p的宽、高分别以Wp、Hp表示,当前拼版矩形区域f,当前拼版矩形区域f的宽、高分别为Wf、Hf,S701使用以下选取方法确定待拼版页面,如图8所示,包括:For example, for the page p to be imposed, the width and height of the page p are represented by W p and H p respectively, the current imposition rectangular area f, the width and height of the current imposition rectangular area f are respectively W f , H f , S701 uses the following selection The method determines the pages to be impositioned, as shown in Figure 8, including:

S801、判断是否存在Wp==Wf并且Hp==Hf的页面,如果是,将满足Wp==Wf并且Hp==Hf的页面作为确定的待拼版页面,结束;否则,执行步骤S802;S801. Determine whether there is a page with W p == W f and H p == H f , if yes, use the page that satisfies W p == W f and H p == H f as the determined page to be impositioned, and end; Otherwise, execute step S802;

S802、判断是否存在Wp==Hf并且Hp==Wf的页面,如果是,将满足Wp==Hf并且Hp==Wf的页面作为确定的待拼版页面,结束;否则,执行步骤S803;S802. Determine whether there is a page where W p == H f and H p == W f , if yes, use the page that satisfies W p == H f and H p == W f as the determined page to be impositioned, and end; Otherwise, execute step S803;

S803、将能够拼版在所述当前拼版矩形区域内的待拼版页面中,面积最大的页面作为确定的待拼版页面;S803. Among the pages to be impositioned within the current imposition rectangle area, the page with the largest area is taken as the determined page to be impositioned;

或者,将能够拼版在所述当前拼版矩形区域内的待拼版页面中,Min(Wf-Wp,Hf–Hp)取最小值的页面作为确定的待拼版页面;Or, among the pages to be impositioned within the current imposition rectangle area, the page whose Min(W f -W p , H f -H p ) takes the minimum value is taken as the determined page to be impositioned;

或者,将能够拼版在所述当前拼版矩形区域内的待拼版页面中,Min(Wf-Wp,Hf–Hp)取最小值的页面作为确定的待拼版页面。Alternatively, among the pages to be impositioned within the current imposition rectangle area, the page whose Min(W f −W p , H f −H p ) takes the minimum value is taken as the determined page to be impositioned.

S702、从确定的待拼版页面中选取一个待拼版页面。S702. Select a page to be made from the determined pages to be made.

当确定得到多个待拼版页面时,从确定的待拼版页面中选取一个待拼版页面;当确定得到唯一的待拼版页面时,将确定的待拼版页面直接作为选取的待拼版页面。When it is determined that multiple pages to be imposed are obtained, a page to be imposed is selected from the determined pages to be imposed; when it is determined that the only page to be imposed is obtained, the determined page to be imposed is directly used as the selected page to be imposed.

如图9所示,图6的S602和图7的S702中,当确定得到多个待拼版页面时,从确定的待拼版页面中选取一个待拼版页面的方法,包括:As shown in FIG. 9 , in S602 of FIG. 6 and S702 of FIG. 7 , when it is determined that multiple pages to be impositioned are obtained, the method of selecting a page to be impositioned from the determined pages to be impositioned includes:

S901、确定墨道方向。S901. Determine the direction of the ink channel.

墨道方向,为版面在印刷时的印刷方向。The direction of the ink channel is the printing direction of the layout during printing.

S902、计算确定的各个待拼版页面拼版在所述当前拼版矩形区域之后与墨道方向上相邻页面的颜色近似度。S902. Calculating the determined color similarity between the imposition of each page to be imposition and the adjacent page in the ink channel direction after the current imposition rectangular area.

对于任意两个待拼版页面Pa,Pb,Pa与Pb的颜色近似度矩阵定义如下:For any two imposition pages P a , P b , the color approximation matrix of P a and P b is defined as follows:

其中,sizeof表示页面面积,Sim(Pa,Pb)值为一个(key,value)元组,key为拼版后Pa与Pb的相对位置(Posx,Posy),value为该相对位置下计算得到的颜色近似度。Among them, sizeof represents the page area, Sim(P a , P b ) value is a (key, value) tuple, key is the relative position (Pos x , Pos y ) of P a and P b after imposition, and value is the relative position The calculated color approximation at the position.

构造像素集合S,S包括Pa、Pb在相对位置(Posx,Posy)下沿指定方向移动后的最大重合区域内Pa、Pb的像素,S={(Pai,Pbi)},其中,Pai是Pa中的一个像素,Pbi是Pb中与Pai在最大重合区域具有相同位置的像素。Sim(Pa,Pb)函数的定义具体如下:N为S中的元素个数,归一处理函数。函数D用于计算颜色差异,对于任一CIELAB分析色空间中的两个像素(Li,ai,bi),(Lj,aj,bj)的颜色差异为 D ij = ( L i - L j ) 2 + ( a i - a j ) 2 + ( b i - b j ) 2 . Sim值越小,页面Pa,Pb颜色越相近。相对位置不同,则Sim值也不同。Construct a pixel set S, S includes the pixels of P a and P b in the maximum overlapping area after P a and P b move along the specified direction at the relative position (Pos x , Pos y ), S={(P ai , P bi )}, where P ai is a pixel in P a , and P bi is a pixel in P b that has the same position as P ai in the maximum overlap area. The definition of Sim(P a , P b ) function is as follows: N is the number of elements in S, yes Normalization processing function. Function D is used to calculate the color difference, for two pixels (L i , a i , b i ) in any CIELAB analysis color space, the color difference of (L j , a j , b j ) is D. ij = ( L i - L j ) 2 + ( a i - a j ) 2 + ( b i - b j ) 2 . The smaller the value of Sim is, the more similar the colors of pages P a and P b are. If the relative position is different, the Sim value is also different.

因此,计算特定的相对位置下两个页面的颜色近似度,即为沿墨道方向运动得到最大重合区域,对重合区域内两个页面进行Sim函数运算。如图10所示,计算页面1和页面2的颜色近似度,即取页面1和页面2的阴影区域部分进行Sim函数运算。Therefore, to calculate the color approximation of two pages at a specific relative position, is to move along the direction of the ink channel to obtain the maximum overlapping area, and perform Sim function calculation on the two pages in the overlapping area. As shown in FIG. 10 , the calculation of the color similarity between page 1 and page 2 is to take the shaded areas of page 1 and page 2 to perform Sim function calculation.

S903、根据所述颜色近似度,从确定的待拼版页面中选取一个待拼版页面。S903. According to the color similarity, select a page to be impositioned from the determined pages to be impositioned.

这样,在不影响版面面积利用率的前提下,按照颜色近似度进行排版,可以提高印刷的色彩效果。In this way, on the premise of not affecting the utilization rate of the layout area, typesetting according to the degree of color approximation can improve the color effect of printing.

下面给出本发明的具体实施例。Specific examples of the present invention are given below.

本实施例中,版面的尺寸为855×705,共有9个待拼版页面,其尺寸分别为页面P1(285×420),P2-P9(285×210),其中P5,P6,P7的颜色为Lab(50,100,0),其他页面颜色为Lab(50,0,100),设定印刷墨道方向为纵向。In this embodiment, the size of the layout is 855×705, and there are 9 pages to be imposition, and their sizes are page P 1 (285×420), P2-P9 (285×210), among which the colors of P5, P6 and P7 It is Lab (50, 100, 0), other page colors are Lab (50, 0, 100), and the printing ink channel direction is set to vertical.

如图11所示,拼版过程包括如下步骤:As shown in Figure 11, the imposition process includes the following steps:

S1101、确定待拼版页面的选取规则:优先向当前拼版矩形区域放入面积较大的待拼版页面;S1101. Determine the selection rules of the pages to be imposition: preferentially put pages to be imposition with a larger area into the current imposition rectangular area;

S1102、确定使用拼版模式,拼版模式为:(tp1(285,210,0),gr1(0,0,855,420)),(tp2(285,210,90),gr2(0,420,855,285);S1102. Determine to use the imposition mode, the imposition mode is: (tp 1 (285,210,0), gr 1 (0,0,855,420)), (tp 2 (285,210,90), gr 2 (0,420,855,285);

S1103、从全部待拼版空白矩形区域中选取最大的空白矩形区域作为当前拼版矩形区域;S1103. Select the largest blank rectangular area from all the blank rectangular areas to be imposition as the current imposition rectangular area;

S1104、判断待拼版页面集合中是否有满足当前拼版矩形区域尺寸要求的待拼版页面,如果是,执行步骤S1105;否则,执行S1108;S1104. Determine whether there is a page to be imposition in the set of pages to be imposition that meets the size requirement of the current imposition rectangular area, if yes, execute step S1105; otherwise, execute S1108;

S1105、根据颜色近似度选取待拼版页面,按照相应的旋转角度拼版在当前拼版矩形区域,同时在待拼版页面集合中删除选取的待拼版页面;S1105. Select the pages to be imposition according to the color similarity, and impose in the current imposition rectangle area according to the corresponding rotation angle, and delete the selected pages to be imposition from the set of pages to be imposition;

S1106、判断当前拼版矩形区域是否有剩余区域,如果是,则执行S1107;否则,执行S1108;S1106. Determine whether there is any remaining area in the current imposition rectangular area, if so, execute S1107; otherwise, execute S1108;

S1107、将当前拼版矩形区域的剩余区域直接或划分之后作为待拼版空白矩形区域;S1107, directly or after dividing the remaining area of the current imposition rectangular area as a blank rectangular area to be imposition;

S1108、删除当前拼版矩形区域;S1108. Delete the current imposition rectangular area;

S1109、判断是否还有待拼版空白矩形区域,如果是,执行步骤S1103;否则,结束。S1109. Determine whether there is still a blank rectangular area to be imposed, if yes, perform step S1103; otherwise, end.

按照以上步骤,依次将P1、P2、P3、P4拼版至版面,如图12所示。当需要拼版第五个页面时,经过计算,P8与P3、P5的颜色近似度,小于P5、P6、P7分别与P3、P5的颜色近似度,因此优先放入P8,如图13所示。最后的拼版结果如图14所示。According to the above steps, make P1, P2, P3, and P4 into the layout in sequence, as shown in Figure 12. When the fifth page needs to be impositioned, after calculation, the color similarity between P8 and P3 and P5 is smaller than the color similarity between P5, P6 and P7 and P3 and P5 respectively, so P8 is put in priority, as shown in Figure 13. The final imposition result is shown in Figure 14.

如图15所示,本发明实施例提供了一种自动拼版的装置,包括:As shown in Figure 15, an embodiment of the present invention provides an automatic imposition device, including:

拼版单元1501,用于从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面;The imposition unit 1501 is used to select a blank rectangular area from the blank rectangular area to be impositioned on the layout as the current imposition rectangular area; among the pages to be impositioned, determine a page to be impositioned, and make the imposition of the page to be imposed on the In the current imposition rectangular area, and at least two boundaries of the pages to be imposition overlap with the two boundary lines of the current imposition rectangular area; repeat the above steps until all the imposition of each page to be imposition is completed, or the pages to be impositioned on the layout Any imposition page cannot be impositioned in the imposition blank rectangular area;

剩余区域划分单元1502,用于当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域。The remaining area division unit 1502 is configured to judge whether the shape of the remaining area is a rectangle when it is determined that there is an imposition remaining area in the current imposition rectangular area, and if so, combine the remaining area with the current blank rectangle on the layout If not, the remaining area is divided into two rectangular areas, and the two divided rectangular areas and the current blank rectangular area on the layout are used together as a blank rectangular area to be impositioned.

较佳的,该装置还包括:版面预先处理单元,用于预先在版面上划分出初始的待拼版空白矩形区域;Preferably, the device further includes: a layout pre-processing unit, which is used to pre-demarcate an initial blank rectangular area to be imposed on the layout;

所述版面预先处理单元具体用于:根据版面的宽、高,以及待拼版的各页面的宽、高,确定版面上划分出的初始的待拼版空白矩形区域,以及确定各待拼版空白矩形区域内允许拼版的页面的宽、高和旋转角度;其中,当版面被划分为至少两个待拼版空白矩形区域时,满足:部分或全部待拼版空白矩形区域的一条边能够顺序连成至少一条水平线或垂直线,所述水平线的起止点分别位于所述版面的左、右边界上,所述垂直线的起止点分别位于所述版面的上、下边界上。The layout preprocessing unit is specifically used to: determine the initial blank rectangular area to be imposition divided on the layout according to the width and height of the layout, and the width and height of each page to be imposed, and determine each blank rectangular area to be imposed Width, height, and rotation angle of the pages that allow imposition; among them, when the layout is divided into at least two blank rectangular areas to be impositioned, it is satisfied that one side of some or all of the blank rectangular areas to be impositioned can be sequentially connected to form at least one horizontal line Or vertical lines, the starting and ending points of the horizontal lines are respectively located on the left and right boundaries of the layout, and the starting and ending points of the vertical lines are respectively located on the upper and lower boundaries of the layout.

较佳的,所述拼版单元1501用于确定一个待拼版页面时,具体用于:Preferably, when the imposition unit 1501 is used to determine a page to be imposed, it is specifically used for:

从能够拼版在所述当前空白矩形区域内的待拼版页面中,确定宽、高分别为所述当前空白矩形区域内允许拼版的页面的宽、高的待拼版页面,或者,从能够拼版在所述当前空白矩形区域内的待拼版页面中,确定宽、高分别为所述允许拼版的页面按照所述旋转角度旋转后的宽、高的整数倍的待拼版页面;From among the pages to be made that can be made up in the current blank rectangular area, determine the pages to be made whose width and height are respectively the width and height of pages allowed to be made up in the current blank rectangular area, or, from the pages that can be made up in the current blank rectangular area Among the pages to be impositioned in the current blank rectangular area, determine the pages to be impositioned whose width and height are integer multiples of the width and height of the pages allowed to be impositioned after being rotated according to the rotation angle;

从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed.

较佳的,所述剩余区域划分单元1502还用于:当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,确定所述剩余区域内允许拼版的页面的宽、高和旋转角度,分别为所述当前拼版矩形区域内允许拼版的页面的宽、高和旋转角度。Preferably, the remaining area dividing unit 1502 is further configured to: determine the width, height and rotation angle of pages that allow imposition in the remaining area when it is determined that there is an imposition remaining area in the current imposition rectangular area, are respectively the width, height and rotation angle of pages allowed to be made in the current made-up rectangular area.

较佳的,所述拼版单元1501,用于从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域之前,还用于:将整个版面区域作为一个待拼版空白矩形区域。Preferably, the imposition unit 1501 is configured to select a blank rectangular area from the blank rectangular area to be imposed on the layout as the current imposition rectangular area, and is also used to: use the entire layout area as a blank rectangular area to be imposed.

较佳的,所述拼版单元1501用于确定一个待拼版页面时,具体用于:Preferably, when the imposition unit 1501 is used to determine a page to be imposed, it is specifically used for:

根据各个待拼版页面的宽、高,以及所述当前空白矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面;According to the width and height of each page to be imposition, and the width and height of the current blank rectangular area, determine the page to be imposition that satisfies the principle of least space waste;

从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed.

较佳的,所述拼版单元1501用于根据各个待拼版页面的宽、高,以及所述当前空白矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面时,具体用于:Preferably, when the imposition unit 1501 is used to determine the page to be imposition that satisfies the principle of least space waste according to the width and height of each page to be impositioned and the width and height of the current blank rectangular area, it is specifically used for:

判断是否存在宽、高分别与所述当前空白矩形区域宽、高相等的第一类待拼版页面,如果是,将所述第一类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a first type of imposition page whose width and height are respectively equal to the width and height of the current blank rectangular area, if yes, using the first type of page to be imposition as a determined page to be imposition; otherwise,

判断是否存在高、宽分别与所述当前空白矩形区域的宽、高相等的第二类待拼版页面,如果是,将所述第二类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a second type of page to be imposition whose height and width are respectively equal to the width and height of the current blank rectangular area, if so, using the second type of page to be impositioned as the determined page to be impositioned; otherwise,

从能够拼版在所述当前空白矩形区域内的待拼版页面中,选取面积最大的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前空白矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前空白矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前空白矩形区域的高的差值,将两个差值中的较小值最小的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前空白矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前空白矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前空白矩形区域的高的差值,将两个差值中的较大值最小的待拼版页面作为确定的待拼版页面。From the pages to be impositioned in the current blank rectangular area, select the page to be impositioned with the largest area as the determined page to be impositioned; or, from the pages to be impositioned in the current blank rectangular area, Determining the difference between the width of each page to be imposition and the width of the current blank rectangular area, and determining the difference between the height of each page to be imposition and the height of the current blank rectangular area, and the smaller of the two differences The page to be made with the smallest value is used as the determined page to be made; or, from the pages to be made that can be made in the current blank rectangular area, determine the difference between the width of each page to be made and the width of the current blank rectangular area value, and determine the difference between the height of each page to be imposition and the height of the current blank rectangular area, and use the page to be imposition with the larger value of the two differences as the determined page to be imposition.

较佳的,所述拼版单元1501用于从确定的待拼版页面中选取一个待拼版页面时,具体用于:Preferably, when the imposition unit 1501 is used to select a page to be impositioned from the determined pages to be impositioned, it is specifically used for:

确定墨道方向;Determine the direction of the ink path;

计算确定的各个待拼版页面拼版在所述当前空白矩形区域之后与墨道方向上相邻页面的颜色近似度;Calculating the color approximation of the imposition of each page to be imposition determined after the current blank rectangular area and the adjacent page in the direction of the ink channel;

根据所述颜色近似度,从确定的待拼版页面中选取一个待拼版页面。According to the color similarity, a page to be made is selected from the determined pages to be made.

较佳的,所述拼版单元1501用于计算确定的各个待拼版页面拼版在所述当前空白矩形区域之后与墨道方向上相邻页面的颜色近似度时,具体用于:Preferably, when the imposition unit 1501 is used to calculate the color similarity between each determined page imposition after the current blank rectangular area and the adjacent page in the ink channel direction, it is specifically used for:

确定所述确定的各个待拼版页面沿墨道方向移动后与所述相邻页面的最大重合区域;Determining the maximum overlapping area between the determined pages to be imposition and the adjacent pages after moving along the ink channel direction;

根据所述确定的各个待拼版页面的所述重合区域内的像素,以及所述相邻页面的所述重合区域内的像素,确定所述确定的各个待拼版页面与所述相邻页面的颜色近似度。According to the determined pixels in the overlapping area of each page to be imposition and the pixels in the overlapping area of the adjacent page, determine the color of each determined page to be imposition and the adjacent page approximation.

较佳的,所述剩余区域划分单元1502用于将所述剩余区域划分为两个矩形时,具体用于:Preferably, when the remaining area dividing unit 1502 is used to divide the remaining area into two rectangles, it is specifically used for:

将所述剩余区域横向划分,得到两个矩形;或者,Divide the remaining area horizontally to obtain two rectangles; or,

将所述剩余区域纵向划分,得到两个矩形。The remaining area is divided vertically to obtain two rectangles.

综上所述,本发明实施例提供了一种自动拼版方法及装置,当使用需要横向或者纵向贯通版面进行裁切的版面材质进行合版印刷时,能够得到可裁切的拼版结果,避免印刷材料的浪费;当使用拼版模式时,还能够获取最佳拼版结果,提高版面的利用率。To sum up, the embodiments of the present invention provide an automatic imposition method and device. When using a layout material that needs to be cut horizontally or vertically through the layout for combined printing, a cuttable imposition result can be obtained, avoiding printing Waste of materials; when using the imposition mode, the best imposition result can be obtained and the utilization rate of the layout can be improved.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (20)

1.一种自动拼版方法,其特征在于,该方法包括:1. an automatic imposition method, is characterized in that, the method comprises: 从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;Select a blank rectangular area from the blank rectangular area to be imposed on the layout as the current imposition rectangular area; 在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;Among the pages to be made up, a page to be made up is determined, and the page to be made up is made up in the current make-up rectangular area, and at least two borders of the page to be made up are the same as two borders of the current make-up rectangular area. Overlapping borderlines; 当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域;When it is determined that there is a remaining area after imposition in the current imposition rectangular area, it is judged whether the shape of the remaining area is a rectangle, and if so, the remaining area and the current blank rectangular area on the layout are used together as a blank rectangular area to be impositioned , if not, divide the remaining area into two rectangular areas, and use the divided two rectangular areas and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned; 重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面。Repeat the above steps until all the pages to be imposition are impositioned, or the blank rectangular area on the layout cannot be impositioned to any page to be impositioned. 2.如权利要求1所述的方法,其特征在于,还包括:预先在版面上划分出初始的待拼版空白矩形区域,具体为:2. The method according to claim 1, further comprising: dividing an initial blank rectangular area to be impositioned on the layout in advance, specifically: 根据版面的宽、高,以及待拼版的各页面的宽、高,确定版面上划分出的初始的待拼版空白矩形区域,以及确定各待拼版空白矩形区域内允许拼版的页面的宽、高和旋转角度;其中,当版面被划分为至少两个待拼版空白矩形区域时,满足:部分或全部待拼版空白矩形区域的一条边能够顺序连成至少一条水平线或垂直线,所述水平线的起止点分别位于所述版面的左、右边界上,所述垂直线的起止点分别位于所述版面的上、下边界上。According to the width and height of the layout and the width and height of each page to be imposed, determine the initial blank rectangular area to be imposed on the layout, and determine the width, height and height of the pages allowed to be imposed in each blank rectangular area to be imposed Rotation angle; wherein, when the layout is divided into at least two blank rectangular areas to be impositioned, it is satisfied that: one side of part or all of the blank rectangular areas to be impositioned can be sequentially connected into at least one horizontal line or vertical line, and the starting and ending points of the horizontal line They are respectively located on the left and right boundaries of the layout, and the starting and ending points of the vertical lines are respectively located on the upper and lower boundaries of the layout. 3.如权利要求2所述的方法,其特征在于,所述确定一个待拼版页面,包括:3. The method according to claim 2, wherein said determining a page to be made up comprises: 从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述当前拼版矩形区域内允许拼版的页面的宽、高的待拼版页面,或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述允许拼版的页面按照所述旋转角度旋转后的宽、高的整数倍的待拼版页面;From among the pages to be impositioned in the current imposition rectangle area, determine the pages to be imposition whose width and height are respectively the width and height of the pages allowed to be impositioned in the current imposition rectangle area, or, from the pages that can be impositioned in the current imposition rectangle area Among the pages to be impositioned in the current imposition rectangular area, determine the pages to be impositioned whose width and height are integer multiples of the width and height of the pages allowed to be impositioned after being rotated according to the rotation angle; 从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed. 4.如权利要求2所述的方法,其特征在于,当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,该方法还包括:4. The method according to claim 2, wherein when it is determined that there is a remaining area after imposition in the current imposition rectangular area, the method further comprises: 确定所述剩余区域内允许拼版的页面的宽、高和旋转角度,分别为所述当前拼版矩形区域内允许拼版的页面的宽、高和旋转角度。Determine the width, height, and rotation angle of the pages that allow imposition in the remaining area, which are respectively the width, height, and rotation angle of the pages that allow imposition in the current imposition rectangular area. 5.如权利要求1所述的方法,其特征在于,还包括:预先将整个版面区域作为一个待拼版空白矩形区域。5. The method according to claim 1, further comprising: pre-setting the entire layout area as a blank rectangular area to be impositioned. 6.如权利要求5所述的方法,其特征在于,所述确定一个待拼版页面,包括:6. The method according to claim 5, wherein said determining a page to be made up comprises: 根据各个待拼版页面的宽、高,以及所述当前拼版矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面;According to the width and height of each page to be imposition, and the width and height of the current imposition rectangular area, determine the page to be imposition that satisfies the principle of least space waste; 从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed. 7.如权利要求6所述的方法,其特征在于,根据各个待拼版页面的宽、高,以及所述当前拼版矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面,包括:7. The method according to claim 6, wherein, according to the width and height of each page to be made up, and the width and height of the current made up rectangular area, determining the page to be made up that satisfies the principle of least space waste includes : 判断是否存在宽、高分别与所述当前拼版矩形区域宽、高相等的第一类待拼版页面,如果是,将所述第一类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a first type of page to be impositioned whose width and height are respectively equal to the width and height of the current imposition rectangular area, if so, using the first type of page to be impositioned as a determined page to be impositioned; otherwise, 判断是否存在高、宽分别与所述当前拼版矩形区域的宽、高相等的第二类待拼版页面,如果是,将所述第二类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a second type of page to be imposition whose height and width are respectively equal to the width and height of the current imposition rectangular area, if so, using the second type of page to be impositioned as the determined page to be impositioned; otherwise, 从能够拼版在所述当前拼版矩形区域内的待拼版页面中,选取面积最大的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前拼版矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前拼版矩形区域的高的差值,将两个差值中的较小值最小的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前拼版矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前拼版矩形区域的高的差值,将两个差值中的较大值最小的待拼版页面作为确定的待拼版页面。From the pages to be impositioned within the current imposition rectangle area, select the page to be impositioned with the largest area as the determined page to be impositioned; or, from the pages to be impositioned within the current imposition rectangle area, Determining the difference between the width of each page to be imposition and the width of the current imposition rectangle area, and determining the difference between the height of each page to be imposition and the height of the current imposition rectangle area, and the smaller of the two differences The page to be made with the smallest value is taken as the determined page to be made; or, from the pages to be made that can be made up in the current make-up rectangular area, determine the difference between the width of each to-be-made page and the width of the current make-up rectangular area value, and determine the difference between the height of each page to be imposition and the height of the current imposition rectangular area, and use the page to be imposition with the larger value of the two difference values as the determined page to be imposition. 8.如权利要求4或6所述的方法,其特征在于,所述从确定的待拼版页面中选取一个待拼版页面,包括:8. The method according to claim 4 or 6, wherein said selecting a page to be made from the determined pages to be made up comprises: 确定墨道方向;Determine the ink path direction; 计算确定的各个待拼版页面拼版在所述当前拼版矩形区域之后与墨道方向上相邻页面的颜色近似度;Calculating the color approximation of the imposition of each page to be imposition determined after the current imposition rectangular area and the adjacent pages in the direction of the ink channel; 根据所述颜色近似度,从确定的待拼版页面中选取一个待拼版页面。According to the color similarity, a page to be made is selected from the determined pages to be made. 9.如权利要求8所述的方法,其特征在于,计算一待拼版页面拼版在当前拼版矩形区域之后与墨道方向上一相邻页面的颜色近似度,包括:9. The method according to claim 8, wherein the calculation of the color approximation between the imposition of a page to be imposition and an adjacent page in the ink channel direction after the current imposition rectangular area comprises: 确定所述待拼版页面沿墨道方向移动后与所述相邻页面的最大重合区域;Determining the maximum overlapping area between the page to be imposition and the adjacent page after it moves along the ink channel direction; 根据所述待拼版页面的所述重合区域内的像素,所述相邻页面的所述重合区域内的像素,确定所述待拼版页面与所述相邻页面的颜色近似度。Determine the color similarity between the page to be imposition and the adjacent page according to the pixels in the overlapping area of the page to be impositioned and the pixels in the overlapping area of the adjacent page. 10.如权利要求1所述的方法,其特征在于,将所述剩余区域划分为两个矩形,包括:10. The method of claim 1, wherein dividing the remaining area into two rectangles comprises: 将所述剩余区域横向划分,得到两个矩形;或者,Divide the remaining area horizontally to obtain two rectangles; or, 将所述剩余区域纵向划分,得到两个矩形。The remaining area is divided vertically to obtain two rectangles. 11.一种自动拼版装置,其特征在于,该装置包括:11. An automatic imposition device, characterized in that the device comprises: 拼版单元,用于从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域;在待拼版的各页面中,确定一个待拼版页面,将该待拼版页面拼版在所述当前拼版矩形区域内,且所述待拼版页面的至少两条边界与所述当前拼版矩形区域的两条边界线重叠;重复上述步骤,直到待拼版的各页面全部拼版完毕,或者版面上的待拼版空白矩形区域不能拼版任一待拼版页面;The imposition unit is used to select a blank rectangular area from the blank rectangular area to be impositioned on the layout as the current imposition rectangular area; among the pages to be impositioned, determine a page to be impositioned, and make the imposition of the page to be impositioned in the current imposition within the imposition rectangle area, and at least two boundaries of the pages to be imposition overlap with the two boundary lines of the current imposition rectangle area; repeat the above steps until all the pages to be imposition are impositioned, or the pages to be impositioned on the layout Any page to be imposed cannot be imposed in the blank rectangular area; 剩余区域划分单元,用于当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,判断所述剩余区域的形状是否为矩形,如果是,将所述剩余区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域,如果不是,将所述剩余区域划分为两个矩形区域,将划分出的两个矩形区域和版面上当前空白矩形区域一起作为待拼版空白矩形区域。The remaining area division unit is used to determine whether the shape of the remaining area is a rectangle when it is determined that there is an imposition remaining area in the current imposition rectangular area, and if so, combine the remaining area with the current blank rectangular area on the layout Together as a blank rectangular area to be impositioned, if not, divide the remaining area into two rectangular areas, and use the two divided rectangular areas and the current blank rectangular area on the layout together as a blank rectangular area to be impositioned. 12.如权利要求11所述的装置,其特征在于,该装置还包括:版面预先处理单元,用于预先在版面上划分出初始的待拼版空白矩形区域;12. The device according to claim 11, characterized in that, the device further comprises: a layout pre-processing unit, which is used to pre-demarcate an initial blank rectangular area to be imposed on the layout; 所述版面预先处理单元具体用于:根据版面的宽、高,以及待拼版的各页面的宽、高,确定版面上划分出的初始的待拼版空白矩形区域,以及确定各待拼版空白矩形区域内允许拼版的页面的宽、高和旋转角度;其中,当版面被划分为至少两个待拼版空白矩形区域时,满足:部分或全部待拼版空白矩形区域的一条边能够顺序连成至少一条水平线或垂直线,所述水平线的起止点分别位于所述版面的左、右边界上,所述垂直线的起止点分别位于所述版面的上、下边界上。The layout preprocessing unit is specifically used to: determine the initial blank rectangular area to be imposition divided on the layout according to the width and height of the layout, and the width and height of each page to be imposed, and determine each blank rectangular area to be imposed Width, height, and rotation angle of the pages that allow imposition; among them, when the layout is divided into at least two blank rectangular areas to be impositioned, it is satisfied that one side of some or all of the blank rectangular areas to be impositioned can be sequentially connected to form at least one horizontal line Or vertical lines, the starting and ending points of the horizontal lines are respectively located on the left and right boundaries of the layout, and the starting and ending points of the vertical lines are respectively located on the upper and lower boundaries of the layout. 13.如权利要求12所述的装置,其特征在于,所述拼版单元用于确定一个待拼版页面时,具体用于:13. The device according to claim 12, wherein when the imposition unit is used to determine a page to be imposed, it is specifically used for: 从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述当前拼版矩形区域内允许拼版的页面的宽、高的待拼版页面,或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定宽、高分别为所述允许拼版的页面按照所述旋转角度旋转后的宽、高的整数倍的待拼版页面;From among the pages to be impositioned in the current imposition rectangle area, determine the pages to be imposition whose width and height are respectively the width and height of the pages allowed to be impositioned in the current imposition rectangle area, or, from the pages that can be impositioned in the current imposition rectangle area Among the pages to be impositioned in the current imposition rectangular area, determine the pages to be impositioned whose width and height are integer multiples of the width and height of the pages allowed to be impositioned after being rotated according to the rotation angle; 从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed. 14.如权利要求12所述的装置,其特征在于,所述剩余区域划分单元还用于:当确定所述当前拼版矩形区域中存在拼版后的剩余区域时,确定所述剩余区域内允许拼版的页面的宽、高和旋转角度,分别为所述当前拼版矩形区域内允许拼版的页面的宽、高和旋转角度。14. The device according to claim 12, wherein the remaining area dividing unit is further configured to: when it is determined that there is an imposition remaining area in the current imposition rectangular area, determine that imposition is allowed in the remaining area The width, height, and rotation angle of the page are respectively the width, height, and rotation angle of pages allowed to be impositioned within the current imposition rectangle area. 15.如权利要求11所述的装置,其特征在于,所述拼版单元,用于从版面上待拼版空白矩形区域中选取一个空白矩形区域,作为当前拼版矩形区域之前,还用于:将整个版面区域作为一个待拼版空白矩形区域。15. The device according to claim 11, wherein the imposition unit is configured to select a blank rectangular area from the blank rectangular area to be impositioned on the layout, and before the current imposition rectangular area, it is also used to: The layout area is used as a blank rectangular area to be imposed. 16.如权利要求15所述的装置,其特征在于,所述拼版单元用于确定一个待拼版页面时,具体用于:16. The device according to claim 15, wherein when the imposition unit is used to determine a page to be imposed, it is specifically used for: 根据各个待拼版页面的宽、高,以及所述当前拼版矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面;According to the width and height of each page to be imposition, and the width and height of the current imposition rectangular area, determine the page to be imposition that satisfies the principle of least space waste; 从确定的待拼版页面中选取一个待拼版页面。Select a page to be imposed from the determined pages to be imposed. 17.如权利要求16所述的装置,其特征在于,所述拼版单元用于根据各个待拼版页面的宽、高,以及所述当前拼版矩形区域的宽、高,确定满足最少空间浪费的原则的待拼版页面时,具体用于:17. The device according to claim 16, wherein the imposition unit is configured to determine the principle of least space waste according to the width and height of each page to be imposed and the width and height of the current imposition rectangular area Specifically used for: 判断是否存在宽、高分别与所述当前拼版矩形区域宽、高相等的第一类待拼版页面,如果是,将所述第一类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a first type of page to be impositioned whose width and height are respectively equal to the width and height of the current imposition rectangular area, if so, using the first type of page to be impositioned as a determined page to be impositioned; otherwise, 判断是否存在高、宽分别与所述当前拼版矩形区域的宽、高相等的第二类待拼版页面,如果是,将所述第二类待拼版页面作为确定的待拼版页面;否则,Judging whether there is a second type of page to be imposition whose height and width are respectively equal to the width and height of the current imposition rectangular area, if so, using the second type of page to be impositioned as the determined page to be impositioned; otherwise, 从能够拼版在所述当前拼版矩形区域内的待拼版页面中,选取面积最大的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前拼版矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前拼版矩形区域的高的差值,将两个差值中的较小值最小的待拼版页面作为确定的待拼版页面;或者,从能够拼版在所述当前拼版矩形区域内的待拼版页面中,确定各个待拼版页面的宽与所述当前拼版矩形区域的宽的差值,以及确定各个待拼版页面的高与所述当前拼版矩形区域的高的差值,将两个差值中的较大值最小的待拼版页面作为确定的待拼版页面。From the pages to be impositioned within the current imposition rectangle area, select the page to be impositioned with the largest area as the determined page to be impositioned; or, from the pages to be impositioned within the current imposition rectangle area, Determining the difference between the width of each page to be imposition and the width of the current imposition rectangle area, and determining the difference between the height of each page to be imposition and the height of the current imposition rectangle area, and the smaller of the two differences The page to be made with the smallest value is taken as the determined page to be made; or, from the pages to be made that can be made up in the current make-up rectangular area, determine the difference between the width of each to-be-made page and the width of the current make-up rectangular area value, and determine the difference between the height of each page to be imposition and the height of the current imposition rectangular area, and use the page to be imposition with the larger value of the two difference values as the determined page to be imposition. 18.如权利要求14或16所述的装置,其特征在于,所述拼版单元用于从确定的待拼版页面中选取一个待拼版页面时,具体用于:18. The device according to claim 14 or 16, wherein when the imposition unit is used to select a page to be impositioned from the determined pages to be impositioned, it is specifically used for: 确定墨道方向;Determine the direction of the ink path; 计算确定的各个待拼版页面拼版在所述当前拼版矩形区域之后与墨道方向上相邻页面的颜色近似度;Calculating the color approximation of the imposition of each page to be imposition determined after the current imposition rectangular area and the adjacent pages in the direction of the ink channel; 根据所述颜色近似度,从确定的待拼版页面中选取一个待拼版页面。According to the color similarity, a page to be made is selected from the determined pages to be made. 19.如权利要求18所述的装置,其特征在于,所述拼版单元用于计算确定的各个待拼版页面拼版在所述当前拼版矩形区域之后与墨道方向上相邻页面的颜色近似度时,具体用于:19. The device according to claim 18, wherein the imposition unit is used to calculate the color similarity between each determined page imposition after the current imposition rectangular area and the adjacent pages in the ink channel direction. , specifically for: 确定所述确定的各个待拼版页面沿墨道方向移动后与所述相邻页面的最大重合区域;Determining the maximum overlapping area between the determined pages to be imposition and the adjacent pages after moving along the ink channel direction; 根据所述确定的各个待拼版页面的所述重合区域内的像素,以及所述相邻页面的所述重合区域内的像素,确定所述确定的各个待拼版页面与所述相邻页面的颜色近似度。According to the determined pixels in the overlapping area of each page to be imposition and the pixels in the overlapping area of the adjacent page, determine the color of each determined page to be imposition and the adjacent page approximation. 20.如权利要求11所述的装置,其特征在于,所述剩余区域划分单元用于将所述剩余区域划分为两个矩形时,具体用于:20. The device according to claim 11, wherein when the remaining area dividing unit is used to divide the remaining area into two rectangles, it is specifically used for: 将所述剩余区域横向划分,得到两个矩形;或者,Divide the remaining area horizontally to obtain two rectangles; or, 将所述剩余区域纵向划分,得到两个矩形。The remaining area is divided vertically to obtain two rectangles.
CN201310507850.6A 2013-10-24 2013-10-24 A kind of automatic keyline layout method and device Expired - Fee Related CN104572610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310507850.6A CN104572610B (en) 2013-10-24 2013-10-24 A kind of automatic keyline layout method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310507850.6A CN104572610B (en) 2013-10-24 2013-10-24 A kind of automatic keyline layout method and device

Publications (2)

Publication Number Publication Date
CN104572610A true CN104572610A (en) 2015-04-29
CN104572610B CN104572610B (en) 2018-05-01

Family

ID=53088714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310507850.6A Expired - Fee Related CN104572610B (en) 2013-10-24 2013-10-24 A kind of automatic keyline layout method and device

Country Status (1)

Country Link
CN (1) CN104572610B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787877A (en) * 2016-02-18 2016-07-20 苏州开眼数据技术股份有限公司 Dynamic multi-picture typesetting method and apparatus
CN105824586A (en) * 2016-03-23 2016-08-03 曲阜师范大学 Combined multi-order makeup printing typesetting optimization method
CN107102830A (en) * 2017-04-12 2017-08-29 北京图文天地科技发展有限公司 A kind of method for digital printing layout
CN107229607A (en) * 2016-03-25 2017-10-03 北大方正集团有限公司 The partitioning method and device of space of a whole page content trough
CN107463346A (en) * 2016-06-02 2017-12-12 柯尼卡美能达株式会社 Image processing apparatus and layout control method
CN109144437A (en) * 2018-09-29 2019-01-04 山东世纪开元电子商务集团有限公司 Optimized printing makeup method
CN119078363A (en) * 2024-11-05 2024-12-06 武汉宇恩防伪技术有限公司 Production control method, system and storage medium of UV (ultraviolet) imposition machine
CN119078363B (en) * 2024-11-05 2025-02-07 武汉宇恩防伪技术有限公司 A production control method, system and storage medium of UV platemaking machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140569A (en) * 2007-10-24 2008-03-12 北大方正集团有限公司 Automatic keyline layout method and apparatus
CN101645096A (en) * 2008-08-07 2010-02-10 北京大学 Imposition method
US20100049787A1 (en) * 2008-08-21 2010-02-25 Acer Incorporated Method of an internet service, system and data server therefor
CN102486871A (en) * 2010-12-03 2012-06-06 北大方正集团有限公司 A kind of imposition method and device
CN102760120A (en) * 2012-05-12 2012-10-31 西北工业大学 Engineering drawing layout optimization method
CN103150301A (en) * 2011-12-06 2013-06-12 北大方正集团有限公司 Method and device for cutting flat

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140569A (en) * 2007-10-24 2008-03-12 北大方正集团有限公司 Automatic keyline layout method and apparatus
CN101645096A (en) * 2008-08-07 2010-02-10 北京大学 Imposition method
US20100049787A1 (en) * 2008-08-21 2010-02-25 Acer Incorporated Method of an internet service, system and data server therefor
CN102486871A (en) * 2010-12-03 2012-06-06 北大方正集团有限公司 A kind of imposition method and device
CN103150301A (en) * 2011-12-06 2013-06-12 北大方正集团有限公司 Method and device for cutting flat
CN102760120A (en) * 2012-05-12 2012-10-31 西北工业大学 Engineering drawing layout optimization method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787877A (en) * 2016-02-18 2016-07-20 苏州开眼数据技术股份有限公司 Dynamic multi-picture typesetting method and apparatus
CN105787877B (en) * 2016-02-18 2018-11-23 精实万维软件(北京)有限公司 A kind of more figure composition methods of dynamic and device
CN105824586A (en) * 2016-03-23 2016-08-03 曲阜师范大学 Combined multi-order makeup printing typesetting optimization method
CN105824586B (en) * 2016-03-23 2019-04-23 曲阜师范大学 A combined multi-order imposition printing layout optimization method
CN107229607A (en) * 2016-03-25 2017-10-03 北大方正集团有限公司 The partitioning method and device of space of a whole page content trough
CN107463346A (en) * 2016-06-02 2017-12-12 柯尼卡美能达株式会社 Image processing apparatus and layout control method
CN107463346B (en) * 2016-06-02 2020-03-27 柯尼卡美能达株式会社 Image processing apparatus and imposition control method
CN107102830A (en) * 2017-04-12 2017-08-29 北京图文天地科技发展有限公司 A kind of method for digital printing layout
CN109144437A (en) * 2018-09-29 2019-01-04 山东世纪开元电子商务集团有限公司 Optimized printing makeup method
CN109144437B (en) * 2018-09-29 2021-06-01 世纪开元智印互联科技集团股份有限公司 Optimized printing makeup method
CN119078363A (en) * 2024-11-05 2024-12-06 武汉宇恩防伪技术有限公司 Production control method, system and storage medium of UV (ultraviolet) imposition machine
CN119078363B (en) * 2024-11-05 2025-02-07 武汉宇恩防伪技术有限公司 A production control method, system and storage medium of UV platemaking machine

Also Published As

Publication number Publication date
CN104572610B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104572610B (en) A kind of automatic keyline layout method and device
US11113546B2 (en) Lane line processing method and device
EP2549735A2 (en) Method of editing static digital combined images comprising images of multiple objects
US9983760B2 (en) Apparatus, method and computer readable recording medium for arranging a plurality of items automatically in a canvas
CN108762740B (en) Page data generation method and device and electronic equipment
US8212815B2 (en) Drawing apparatus, drawing program, and drawing method
CN109670516B (en) Image feature extraction method, device, equipment and readable storage medium
CN112329548A (en) Document chapter segmentation method and device and storage medium
US11219928B2 (en) Shape packing technique
US10289656B2 (en) Efficiently relocating objects within a digital document to an equidistant position relative to reference objects
CN103871022B (en) Image cropping method and device
CN113538623B (en) Method, device, electronic equipment and storage medium for determining target image
CN105513008A (en) Image processing method and device
KR101903617B1 (en) Method for editing static digital combined images comprising images of multiple objects
KR20200052206A (en) Plenoptic image processing apparatus, system having the same, and object segmentation method thereof
CN114816410A (en) Interface generation method, device and storage medium
JP2014502387A (en) Determining the assembly of printable objects
CN111340914A (en) Map generation method and device, storage medium and delivery vehicle
CN103324606A (en) Typesetting method and typesetting device
US11386596B2 (en) Automatic creation of text-on-path graphic along complex paths
CN104517273A (en) Image super-resolution processing method and apparatus
Patel et al. Adaptive multiple-pixel wide seam carving
CN106980655A (en) Picture segmentation handles storage method and system
WO2020181903A1 (en) Webpage illustration processing method, system and device, and storage medium
CN112085155A (en) Data processing device and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220712

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: Beijing Beida Founder Electronics Co., Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: Beijing Beida Founder Electronics Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180501

CF01 Termination of patent right due to non-payment of annual fee