JP2005210365A - Image data interpolator, and image data interpolating method and program - Google Patents

Image data interpolator, and image data interpolating method and program Download PDF

Info

Publication number
JP2005210365A
JP2005210365A JP2004014125A JP2004014125A JP2005210365A JP 2005210365 A JP2005210365 A JP 2005210365A JP 2004014125 A JP2004014125 A JP 2004014125A JP 2004014125 A JP2004014125 A JP 2004014125A JP 2005210365 A JP2005210365 A JP 2005210365A
Authority
JP
Japan
Prior art keywords
image data
pixels
image
predetermined
reference sign
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004014125A
Other languages
Japanese (ja)
Inventor
Shigenori Sugano
茂則 菅野
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004014125A priority Critical patent/JP2005210365A/en
Publication of JP2005210365A publication Critical patent/JP2005210365A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that it is difficult to automatically and accurately print an image in full scale. <P>SOLUTION: An image data acquiring means acquires image data related to the image including a reference mark in which the actual measurement length at a prescribed part is determined. A rate of change acquiring means obtains a rate of change required for printing the image in full scale when executing printing processing by a printer having prescribed printing resolution by utilizing the actual measurement length and a number of pixels corresponding to the prescribed part of the reference mark in the image data. An image data interpolating means changes the number of constituent pixels of the image data on the basis of the acquired rate of change. An image data output means outputs the image data, in which the number of the constituent pixels is changed, as the image data after interpolation processing. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像を複数の画素で表現した画像データについて画像処理する画像データ補間装置、画像データ補間方法および画像データ補間プログラムに関する。   The present invention relates to an image data interpolation apparatus, an image data interpolation method, and an image data interpolation program that perform image processing on image data in which an image is expressed by a plurality of pixels.

従来技術として、画像入力部が備えたレンズの収差によるフレームメモリ一画素あたりの寸法の誤差を算出する機構と、フレームメモリの各画素に対応した寸法誤差を記憶する寸法較正用メモリと、測定対象の図形を撮影しフレームメモリに記憶した画像に対して、特徴量の算出時に各画素に対応した寸法較正用メモリから正しい寸法を算出する演算機構などを備える画像測定装置が知られている(例えば、特許文献1参照。)。   As a conventional technique, a mechanism for calculating a dimensional error per pixel of a frame memory due to aberration of a lens provided in an image input unit, a dimensional calibration memory for storing a dimensional error corresponding to each pixel of the frame memory, and a measurement target There is known an image measuring apparatus including an arithmetic mechanism that calculates a correct dimension from a dimension calibration memory corresponding to each pixel when calculating a feature amount for an image that has been captured and stored in a frame memory (for example, , See Patent Document 1).

上記画像測定装置においては、レンズの収差で生じたフレームメモリ上の画像の歪みがあっても、演算処理によって各画素毎のレンズの収差を補正した寸法を求め、図形の面積、幅、長さ等を正しく算出する。
特開2001−4345号公報
In the above image measuring device, even if there is distortion in the image on the frame memory caused by the lens aberration, the dimensions obtained by correcting the lens aberration for each pixel are obtained by arithmetic processing, and the figure area, width, length Etc. are calculated correctly.
JP 2001-4345 A

上記従来技術は、画像測定装置によって測定対象となる図形の正しい寸法を算出するものであるが、かかる図形を印刷するための画像データを生成する処理は行わない。従って、入力した図形をその実寸大で印刷することができないという課題があった。
本発明は、上記課題にかんがみてなされたもので、正確な実寸大印刷を行うための画像データを生成することが可能な画像データ補間装置、画像データ補間方法および画像データ補間プログラムを提供することを目的とする。
The above conventional technique calculates the correct size of the figure to be measured by the image measuring apparatus, but does not perform processing for generating image data for printing the figure. Therefore, there has been a problem that the input figure cannot be printed at its actual size.
The present invention has been made in view of the above problems, and provides an image data interpolation apparatus, an image data interpolation method, and an image data interpolation program capable of generating image data for performing accurate actual size printing. With the goal.

上記目的を達成するため、本願発明にかかる画像データ補間装置は、画像を複数の画素で表現した画像データに対し画素数を所定の変化率に基づいて変更する。画像データ取得手段は、所定部位の実測長さが定められた基準標識を含む画像にかかる画像データを取得する。ここで、取得する画像データとしては、印刷対象物と基準標識とを一緒に撮像した画像にかかる画像データであっても、既に撮像した画像に対して基準標識となる画像を重畳する加工処理を行って生成した画像データであっても良い。   In order to achieve the above object, an image data interpolating apparatus according to the present invention changes the number of pixels based on a predetermined change rate with respect to image data representing an image by a plurality of pixels. The image data acquisition unit acquires image data relating to an image including a reference sign in which an actual measurement length of a predetermined part is determined. Here, as the image data to be acquired, even if it is image data related to an image obtained by capturing the print target and the reference sign together, a processing process for superimposing an image serving as the reference sign on the already captured image is performed. It may be image data generated by performing.

基準標識を含む画像にかかる画像データを取得したら、変化率取得手段は、上記基準標識の所定部位の実測長さと、画像データ中における所定部位に対応する画素数とを利用し、所定の印刷解像度を有する印刷装置によって印刷処理を行う際に上記画像が実寸大で印刷されるために必要な画素数の変化率を求める処理を行う。一般に、入力画像データの解像度と印刷装置の印刷解像度とに相違がある場合に、同画像データを印刷装置に出力する前に構成画素を補間し、印刷装置において印刷処理をするのに適した解像度に変換する。つまり、画素単位で割り当てて印刷すると画像が小さく印刷されてしまうなら画像データの画素数を増やす処理(高解像度化あるいは拡大化と呼ぶ)を行うし、逆の場合には画像データの画素数を減らす処理(低解像度化あるいは縮小化と呼ぶ)を行う。   If the image data relating to the image including the reference sign is acquired, the change rate acquisition means uses the measured length of the predetermined part of the reference sign and the number of pixels corresponding to the predetermined part in the image data to obtain a predetermined print resolution. When the printing process is performed by a printing apparatus having the above, a process for obtaining a change rate of the number of pixels necessary for the image to be printed in actual size is performed. In general, when there is a difference between the resolution of the input image data and the printing resolution of the printing apparatus, the resolution is suitable for performing printing processing in the printing apparatus by interpolating the constituent pixels before outputting the image data to the printing apparatus. Convert to In other words, if printing is performed by assigning in units of pixels, if the image is printed small, a process of increasing the number of pixels of the image data (called high resolution or enlargement) is performed, and in the opposite case, the number of pixels of the image data is set. Reduction processing (called resolution reduction or reduction) is performed.

しかし、本願においては画像を実寸大で印刷するために、単に入力画像データの解像度と印刷装置の解像度の相違を解消するための画素数の変化率を求めるのでは無く、基準標識の所定部位の実測長さにかかるデータと画像データ中における所定部位に対応する画素数にかかるデータとを利用して、画素数の変化率を求める。   However, in the present application, in order to print an image in actual size, the rate of change in the number of pixels for eliminating the difference between the resolution of the input image data and the resolution of the printing apparatus is not simply obtained, but the predetermined portion of the reference sign is determined. The rate of change in the number of pixels is obtained using data relating to the actually measured length and data relating to the number of pixels corresponding to a predetermined part in the image data.

次に、画像データ補間手段は、上記取得された変化率に基づいて同画像データの構成画素数を変更する補間処理を行う。画像データ出力手段は、上記変化率に基づいて構成画素数が変更された画像データを、補間処理後の画像データとして出力する。出力した補間処理後の画像データは、色変換処理や、ハーフトーン処理などの必要な処理を受けて印刷データとなる。そして、印刷装置がかかる印刷データに基づいて印刷処理を行うことにより、印刷媒体上に上記画像が実寸大で印刷される。   Next, the image data interpolation means performs an interpolation process for changing the number of constituent pixels of the image data based on the obtained change rate. The image data output means outputs the image data in which the number of constituent pixels is changed based on the change rate as image data after the interpolation process. The output image data after interpolation processing is subjected to necessary processing such as color conversion processing and halftone processing, and becomes print data. Then, when the printing apparatus performs a printing process based on the print data, the image is printed in actual size on the print medium.

変化率の算出方法として、変化率取得手段は、基準標識の所定部位の実測長さをLとし、画像データ中における同所定部位の長さに対応する画素数をMとし、印刷装置の印刷解像度をPとした場合に、同変化率Xを式X=P/(M/L)によって求めるようにしても良い。M/Lは、実測Lインチの物体の1インチあたり画像データ中では幾つの画素で表示されているかを指す。ここで、実測長さが1インチの基準標識が画像データにおいてm1個の画素で表されており、印刷解像度がm2dpiであるとする。かかる基準標識を印刷結果においても1インチで表示するには、補間処理後の画像データの解像度としてm2dpiが必要となる。従って、求めるべき画素数の変化率はm2/m1倍となる。   As a calculation method of the change rate, the change rate acquisition means sets L as the measured length of the predetermined portion of the reference sign, M as the number of pixels corresponding to the length of the predetermined portion in the image data, and the printing resolution of the printing apparatus. Where P is P, the change rate X may be obtained by the equation X = P / (M / L). M / L indicates how many pixels are displayed in image data per inch of an actually measured L-inch object. Here, it is assumed that a reference sign having an actually measured length of 1 inch is represented by m1 pixels in the image data, and the print resolution is m2 dpi. In order to display such a reference sign in 1 inch even in the print result, m2 dpi is required as the resolution of the image data after the interpolation process. Accordingly, the change rate of the number of pixels to be obtained is m2 / m1 times.

これを上の式に当てはめると、P=m2,M=m1,L=1であるから、変化率X=m2/(m1/1)=m2/m1となる。
上式を用いれば、変化率取得手段がL,M,Pの値を取得するだけで、画像を正確に実寸大で印刷するために必要な画素数の変化率を容易に求めることができる。
If this is applied to the above equation, P = m2, M = m1, and L = 1, so that the rate of change X = m2 / (m1 / 1) = m2 / m1.
If the above equation is used, the rate of change of the number of pixels necessary for printing the image accurately and in actual size can be easily obtained simply by the change rate acquisition means acquiring the values of L, M, and P.

変化率を求めるには、画像データにおける基準標識の所定部位の長さに対応する画素数を取得する必要がある。そのためには、画像データから基準標識の位置を検出しなければならない。そこで、変化率取得手段は、上記取得された画像データにおいて、水平方向または垂直方向の複数の走査線を予め定められた順序に基づき走査することにより同画像データ中の基準標識を検出するとしても良い。   In order to obtain the rate of change, it is necessary to acquire the number of pixels corresponding to the length of the predetermined portion of the reference sign in the image data. For this purpose, the position of the reference sign must be detected from the image data. Therefore, the change rate acquisition means may detect a reference marker in the acquired image data by scanning a plurality of horizontal or vertical scanning lines based on a predetermined order in the acquired image data. good.

印刷対象物と基準標識とを一緒に撮像した場合には、通常、基準標識は印刷対象物とともにフレームの中央に近い位置に置かれる場合が多い。そこで、一例として水平方向または垂直方向の複数の走査線のうち、フレームの中央に近い走査線から優先的に走査するとしてもよい。その結果、短時間で基準標識を検出できる場合が多く、効率的に基準標識及び所定部位の長さに対応する画素数を取得することができる。   When the print object and the reference mark are imaged together, the reference mark is usually placed at a position close to the center of the frame together with the print object. Therefore, as an example, scanning may be preferentially performed from a scanning line close to the center of the frame among a plurality of horizontal or vertical scanning lines. As a result, the reference marker can often be detected in a short time, and the number of pixels corresponding to the length of the reference marker and the predetermined portion can be acquired efficiently.

基準標識としては、実測長さが正確に測定された標識であって一色に塗られたものや、物体中に所定間隔で目盛りが付されたものなど、種々の標識を用いることができる。そして、画像データを走査して基準標識を検出する際、基準標識に対応するデータ領域を走査すると、各画素から取得される輝度情報がそれまでとは変化して特徴的な値や所定の規則性をもった値を出力するようになることが予想される。そこで、基準標識を検出する構成の一例として、上記変化率取得手段は、各画素から取得される輝度情報が所定の規則性をもって変化するデータ領域を同基準標識であると判断する構成にしてもよい。基準標識に対応するデータ領域から取得される輝度情報の規則性があらかじめ分かっていれば、かかる規則性を持つ輝度情報が検出されたことをもって、正確に画像データ中から基準標識を検出することができる。   As the reference mark, various marks such as a mark whose measured length is accurately measured and painted in a single color, or a scale that is graduated at a predetermined interval in an object can be used. Then, when scanning the image data and detecting the reference sign, when the data area corresponding to the reference sign is scanned, the luminance information acquired from each pixel changes from the previous value and a characteristic value or a predetermined rule It is expected that a value with a sex will be output. Therefore, as an example of a configuration for detecting a reference sign, the change rate acquisition unit determines that a data area in which luminance information acquired from each pixel changes with a predetermined regularity is the same reference sign. Good. If the regularity of the luminance information acquired from the data area corresponding to the reference sign is known in advance, it is possible to accurately detect the reference sign from the image data when the luminance information having such regularity is detected. it can.

基準標識をより正確に検出するための構成として、上記変化率取得手段は、基準標識であると判断したデータ領域のうち所定の領域から同基準標識であることを特定する識別情報を読取った場合に、同基準標識の検出を完了するとしても良い。つまり、検出すべき基準標識の所定領域に上記識別情報を記録しておく。そして、かかる識別情報を読取れた場合にのみ特定の基準標識であると判断すれば、画像データ中の複数箇所から、輝度情報が所定の規則性をもって変化するデータ領域が検出された場合でも、確実に同基準標識を検出することができる。   As a configuration for more accurately detecting the reference sign, the rate-of-change acquisition unit reads identification information that identifies the reference sign from a predetermined area of the data area determined to be the reference sign. In addition, the detection of the reference marker may be completed. That is, the identification information is recorded in a predetermined area of the reference sign to be detected. And if it is determined that it is a specific reference sign only when such identification information can be read, even when a data region in which the luminance information changes with a predetermined regularity is detected from a plurality of locations in the image data, The reference marker can be detected with certainty.

印刷対象物と基準標識とを一緒に撮像して画像データとした場合、基準標識が水平方向または垂直方向の走査線に対して平行であるとは限らない。従って、基準標識のある一辺の長さに対応する画素数を正確に算出する場合、基準標識の水平方向または垂直方向の走査線に対する傾きを考慮する必要がある。そこで、上記変化率取得手段は、水平方向または垂直方向の走査線に対する上記基準標識の所定部位の長さ方向の傾きを算出し、同傾きに基づいて画像データ中における同所定部位の長さに対応する画素数を算出するとしても良い。かかる構成とすれば、基準標識が水平方向または垂直方向の走査線に対して傾いていても、所定部位の長さに対応する画素数を正確に取得することができる。   When the print target and the reference mark are imaged together to obtain image data, the reference mark is not always parallel to the horizontal or vertical scanning line. Therefore, when accurately calculating the number of pixels corresponding to the length of one side of the reference mark, it is necessary to consider the inclination of the reference mark with respect to the horizontal or vertical scanning line. Therefore, the rate-of-change acquisition means calculates the inclination in the length direction of the predetermined portion of the reference sign with respect to the horizontal or vertical scanning line, and based on the inclination, the length of the predetermined portion in the image data is calculated. The corresponding number of pixels may be calculated. With this configuration, the number of pixels corresponding to the length of the predetermined portion can be accurately acquired even if the reference marker is inclined with respect to the horizontal or vertical scanning line.

上記傾きの算出方法の一例として、上記変化率取得手段は、画像データにおいて水平方向または垂直方向に複数回走査する際に上記基準標識が生じさせるエッジ画素を複数検出し、同複数のエッジ画素の位置に基づいて上記傾きを算出するとしても良い。上記画像データ中の基準標識に対応するデータ領域の境界においては、輝度情報の変化度合いが急峻となり、いわゆるエッジが形成されると考えられる。複数のエッジ画素の位置が特定されれば、画像データ中において基準標識が生じさせるエッジが連続する方向(以下、エッジ方向)が分かるため、水平方向または垂直方向の走査線とエッジ方向とに生じる角度から、上記傾きを求めることができる。   As an example of the slope calculation method, the change rate acquisition unit detects a plurality of edge pixels generated by the reference mark when scanning the image data a plurality of times in the horizontal direction or the vertical direction, and detects the plurality of edge pixels. The inclination may be calculated based on the position. It is considered that the so-called edge is formed at the boundary of the data area corresponding to the reference mark in the image data, with the degree of change in the luminance information becoming steep. If the positions of a plurality of edge pixels are specified, the direction in which the edge generated by the reference mark is generated in the image data can be known (hereinafter referred to as the edge direction), and therefore occurs in the horizontal or vertical scanning line and the edge direction. The inclination can be obtained from the angle.

変化率を求めるには、画像データ中における基準標識の所定部位の長さに対応する画素数だけではなく、同所定部位の実測長さと印刷装置の印刷解像度とを取得する必要がある。これら2つの値は、所定のメモリ領域に予め格納しておいてもよいし、ユーザが操作パネル等を介して入力するようにしてもよい。さらに、上記基準標識の所定領域に、同基準標識が画像データとして取得された際に上記変化率取得手段によって読取り可能な情報であって上記所定部位の実測長さを示す情報を予め記録しておいても良い。その結果、取得した画像データから基準標識を検出した際に、同基準標識の所定領域から同所定部位の実測長さを示す情報を読み出すことにより、容易に同所定部位の実測長さを取得することができる。   In order to obtain the rate of change, it is necessary to acquire not only the number of pixels corresponding to the length of the predetermined portion of the reference sign in the image data, but also the measured length of the predetermined portion and the printing resolution of the printing apparatus. These two values may be stored in advance in a predetermined memory area, or may be input by the user via an operation panel or the like. Further, information that can be read by the change rate acquisition means when the reference mark is acquired as image data and that indicates the measured length of the predetermined part is recorded in advance in a predetermined area of the reference mark. You can leave it. As a result, when the reference sign is detected from the acquired image data, the information indicating the measured length of the predetermined part is read from the predetermined area of the reference sign, thereby easily acquiring the measured length of the predetermined part. be able to.

上記基準標識としては種々の標識を用いることができるが、その一例として、所定部位の実測長さが既知のバーコードを採用してもよい。バーコードであれば、複数本の白バーと黒バーが所定の規則性に従って並んだ状態であるため、輝度情報に基づいて基準標識を検出する際も容易に検出することができる。また、複数の白バー・黒バーが集合して形成する情報領域に、当該バーコードが正確に読取られたことを確認するための情報や、読取ったバーコードが上記基準標識であることを特定する識別情報や、バーコードの所定部位の実測長さを示す情報を予め記録しておくことができる。その結果、変化率取得手段は、画像データを走査すれば、基準標識たるバーコードを容易かつ確実に検出できるとともに、同バーコードに含まれた情報を読み出すことにより、変化率の算出に必要な情報を容易に取得できる。   Various labels can be used as the reference label. As an example, a barcode whose measured length of a predetermined part is known may be adopted. In the case of a bar code, since a plurality of white bars and black bars are arranged in accordance with a predetermined regularity, it can be easily detected when a reference sign is detected based on luminance information. In addition, information for confirming that the barcode is correctly read in the information area formed by a plurality of white bars and black bars, and that the read barcode is the above-mentioned reference sign Identification information to be recorded, and information indicating the measured length of a predetermined part of the barcode can be recorded in advance. As a result, the rate-of-change acquisition means can easily and reliably detect the bar code serving as the reference marker by scanning the image data, and read out the information contained in the bar code to calculate the rate of change. Information can be acquired easily.

これまでは、基準標識から得られる情報に基づいて解像度変換の際の画素数の変化率を求め、同変化率に基づいて画像データを補間することで、画像の実寸大印刷を実現する補間後の画像データを生成するという技術的思想を装置の発明として説明した。しかし、同技術的思想はこれを実現する方法の発明としても成立する。従って、請求項10にかかる発明においても、基本的には上記と同様の作用となる。また、本発明を実施しようとする際に、コンピュータにて所定のプログラムを実行させて画像の実寸大印刷を実現する補間後の画像データを生成する場合もある。本発明は、そのプログラムとしても適用可能であり、請求項11にかかる発明においても、基本的には上記と同様の作用となる。   Up to now, post-interpolation that achieves full-scale printing of an image by calculating the rate of change in the number of pixels based on the information obtained from the reference sign and interpolating image data based on the rate of change The technical idea of generating the image data has been described as the invention of the apparatus. However, this technical idea also holds true as an invention of a method for realizing this. Therefore, the invention according to claim 10 basically has the same action as described above. In addition, when implementing the present invention, there is a case where image data after interpolation that realizes actual size printing of an image is generated by executing a predetermined program on a computer. The present invention can also be applied as a program thereof, and the invention according to claim 11 basically has the same operation as described above.

むろん、請求項2〜請求項9に記載された構成を上記方法やプログラムに対応させることも可能であることは言うまでもない。また、いかなる記憶媒体もプログラムを提供するために使用可能である。例えば、磁気記録媒体や光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一部がソフトウェアであって、一部がハードウェアで実現される場合においても本発明の思想において全く異なるものではなく、一部を記録媒体上に記録しておいて必要に応じて適宜読み込む形態のものも含まれる。さらに、一次複製品、二次複製品などの複製段階については全く問う余地なく同等である。   Of course, it is needless to say that the configurations described in claims 2 to 9 can be made to correspond to the above method and program. Any storage medium can be used to provide the program. For example, a magnetic recording medium or a magneto-optical recording medium may be used, and any recording medium that will be developed in the future can be considered in the same manner. In addition, even when a part is software and a part is realized by hardware, the idea of the present invention is not completely different, and a part is recorded on a recording medium and is appropriately changed as necessary. It includes a reading form. Furthermore, the duplication stages such as the primary replica and the secondary replica are equivalent without any question.

下記の順序に従って本願発明の実施形態について説明する。
(1)本願発明の構成
(2)画像データの補間処理
(3)第二の実施形態
(4)まとめ
Embodiments of the present invention will be described in the following order.
(1) Configuration of the present invention (2) Interpolation processing of image data (3) Second embodiment (4) Summary

(1)本願発明の構成
図1は本願発明にかかる画像データ補間装置となるコンピュータの概略構成を示すブロック図である。コンピュータ10は演算処理の中枢をなす図示しないCPUや記憶媒体としてのROMやRAM等を備えており、HDD15等の周辺機器を利用しながら所定のプログラムを実行することができる。コンピュータ10にはシリアル通信用I/O19aを介してキーボード31やマウス32等の操作用入力機器が接続されており、図示しないビデオボードを介して表示用のディスプレイ18も接続されている。さらに、プリンタ40とはパラレル通信用I/O19bを介して接続されている。つまり、コンピュータ10はプリンタ40と接続することにより、画像データ補間装置としてだけではなく、取得した画像データ(レッド,グリーン,ブルー(RGB)の各色成分を階調表現したドットマトリクス状のデータ等)に基づく印刷処理全般を行う印刷制御装置としても捉えることができる。
(1) Configuration of the Present Invention FIG. 1 is a block diagram showing a schematic configuration of a computer that is an image data interpolation apparatus according to the present invention. The computer 10 includes a CPU (not shown) serving as the center of arithmetic processing, a ROM, a RAM, and the like as a storage medium, and can execute a predetermined program using peripheral devices such as the HDD 15. An operation input device such as a keyboard 31 and a mouse 32 is connected to the computer 10 via a serial communication I / O 19a, and a display 18 is also connected via a video board (not shown). Further, it is connected to the printer 40 via a parallel communication I / O 19b. In other words, the computer 10 is connected not only as an image data interpolating apparatus by connecting to the printer 40 but also as acquired image data (dot matrix data representing gradations of each color component of red, green and blue (RGB)). It can also be understood as a print control apparatus that performs the entire printing process based on the above.

また、コンピュータ10には、図示しないデジタルカメラ等の撮像機器が周辺機器I/Fを介して接続される。同デジタルカメラは、撮像した画像をドットマトリクス状の画素で階調表現する画像データを生成し、コンピュータ10に出力可能である。かかる画像データは、HDD15の所定の記憶領域に記録される。コンピュータ10の構成は簡略化して説明しているが、パーソナルコンピュータとして一般的な構成を有するものを採用することができる。むろん、本発明が適用されるコンピュータはパーソナルコンピュータに限定されるものではない。この実施形態はいわゆるデスクトップ型コンピュータであるが、ノート型であるとか、モバイル対応のものであっても良い。また、コンピュータ10とプリンタ40の接続インタフェースも上述のものに限る必要はなくシリアルインタフェースやSCSI,USB接続,無線接続など種々の接続態様を採用可能であるし、今後開発されるいかなる接続態様であっても同様である。   In addition, an imaging device such as a digital camera (not shown) is connected to the computer 10 via a peripheral device I / F. The digital camera can generate image data in which a captured image is expressed in gradation by dot-matrix pixels, and can output the image data to the computer 10. Such image data is recorded in a predetermined storage area of the HDD 15. Although the configuration of the computer 10 has been described in a simplified manner, a computer having a general configuration can be employed. Of course, the computer to which the present invention is applied is not limited to a personal computer. Although this embodiment is a so-called desktop computer, it may be a notebook computer or a mobile computer. Further, the connection interface between the computer 10 and the printer 40 is not limited to the above-described one, and various connection modes such as a serial interface, SCSI, USB connection, and wireless connection can be adopted, and any connection mode to be developed in the future. But the same is true.

さらに、本実施形態においてはコンピュータ10によって画像データ補間装置を構成しているが、プリンタ40に搭載するプログラム実行環境によって補間処理を始めとする所定の画像処理を実施可能に構成し、プリンタ40に対して直接的に接続されるデジタルカメラから画像データを取得して所定の画像処理を行ってもよい。むろん、同様の構成においてデジタルカメラにて所定の画像処理を実施してもよいし、他にも分散処理によって本願発明にかかる画像処理を実施するなど種々の構成を採用可能である。   Further, in the present embodiment, the computer 10 constitutes an image data interpolation device. However, predetermined image processing such as interpolation processing can be performed by a program execution environment installed in the printer 40, and On the other hand, predetermined image processing may be performed by acquiring image data from a digital camera directly connected thereto. Needless to say, predetermined image processing may be performed with a digital camera in the same configuration, and various configurations such as performing image processing according to the present invention by distributed processing may be employed.

本実施形態にかかるコンピュータ10では、APL21とプリンタドライバ(PRTDRV)22と入力機器ドライバ(DRV)23とディスプレイドライバ(DRV)24とがOS20に組み込まれている。ディスプレイDRV24はディスプレイ18における画像データ等の表示を制御するドライバであり、入力機器DRV23はシリアル通信用I/O19aを介して入力されるキーボード31やマウス32からのコード信号を受信して所定の入力操作を受け付けるドライバである。   In the computer 10 according to the present embodiment, an APL 21, a printer driver (PRTDRV) 22, an input device driver (DRV) 23, and a display driver (DRV) 24 are incorporated in the OS 20. The display DRV 24 is a driver that controls the display of image data and the like on the display 18, and the input device DRV 23 receives a code signal from the keyboard 31 and mouse 32 input via the serial communication I / O 19a and receives a predetermined input. A driver that accepts operations.

APL21は、カラー画像のレタッチ等を実行可能なアプリケーションプログラムであり、利用者はAPL21の実行下において上記操作用入力機器を操作して当該カラー画像をプリンタ40にて印刷させることができる。すなわち、APL21は利用者の指示によりHDD15に記録された画像データ15aをRAMに読み出して、ディスプレイDRV24を介して画像データ15aに基づく画像をディスプレイ18上に表示させる。利用者が上記入力機器を操作するとその操作内容が入力機器DRV23を介して取得されて内容が解釈されるようになっており、APL21はその操作内容に応じて実寸大印刷のための所定の画像処理やレタッチなど種々の処理を行う。   The APL 21 is an application program that can execute retouching of a color image, and the user can operate the input device for operation under the execution of the APL 21 and cause the printer 40 to print the color image. That is, the APL 21 reads the image data 15a recorded on the HDD 15 to the RAM according to a user instruction, and displays an image based on the image data 15a on the display 18 via the display DRV 24. When the user operates the input device, the operation content is acquired via the input device DRV 23 so that the content is interpreted. The APL 21 determines a predetermined image for actual size printing according to the operation content. Various processes such as processing and retouching are performed.

本実施形態においては、APL21は画像データ取得モジュール21aと画像データ補間モジュール21bとを備えている。APL21は、後述するように、これらモジュールによって画像データ15aを構成する画素を補間するための所定の変化率Xを取得するとともに、同変化率Xに基づいて補間を行い、画像データ15aの解像度を変換する。
APL21にて上記処理がなされるとともに、APL21からの印刷指示によりPRTDRV22が駆動される。PRTDRV22は、図示しない、色変換モジュールとハーフトーンモジュールと印刷データ生成モジュールとを備えている。PRTDRV22は、各モジュールによって、上記APL21から出力された補間処理後の画像データ15aの各画素データに対する処理を実施し、印刷データを生成する。生成された印刷データはパラレル通信用I/O19bを介してプリンタ40に出力され、プリンタ40は当該印刷データに基づいて印刷を実行する。
In the present embodiment, the APL 21 includes an image data acquisition module 21a and an image data interpolation module 21b. As will be described later, the APL 21 obtains a predetermined change rate X for interpolating the pixels constituting the image data 15a by these modules, and performs interpolation based on the change rate X, thereby reducing the resolution of the image data 15a. Convert.
The above processing is performed in the APL 21, and the PRTDRV 22 is driven by a print instruction from the APL 21. The PRTDRV 22 includes a color conversion module, a halftone module, and a print data generation module (not shown). The PRTDRV 22 performs processing on each pixel data of the image data 15a after the interpolation processing output from the APL 21 by each module, and generates print data. The generated print data is output to the printer 40 via the parallel communication I / O 19b, and the printer 40 executes printing based on the print data.

つまり、色変換モジュールは各画素の色を示す表色系を変換するモジュールであり、HDD15に記録された図示しない色変換テーブルを適宜参照して画像データ15aの表色系(sRGB表色系等)をプリンタ40が搭載するCMYKlclm(シアン、マゼンダ、イエロー、ブラック、ライトシアン、ライトマゼンダ)インクの成分となるCMYKlclm表色系等に変換する。   In other words, the color conversion module is a module that converts a color system indicating the color of each pixel, and appropriately refers to a color conversion table (not shown) recorded in the HDD 15 to display the color system (sRGB color system, etc.) of the image data 15a. ) Is converted into a CMYKlclm color system that is a component of CMYKlclm (cyan, magenta, yellow, black, light cyan, light magenta) ink mounted on the printer 40.

色変換モジュールによって色変換がなされてCMYKlclmデータが得られると、ハーフトーン処理モジュールは、CMYKlclm表色系で表現された各画素の階調値を各画素におけるインクの吐出/非吐出を特定したハーフトーン画像データに変換する。すなわち、プリンタ40における各画素についてインク滴の吐出/非吐出を決定する。むろん、インク滴の吐出/非吐出のみならず、吐出インクの量を段階的に制御可能に構成し、吐出インク滴の大きさを決定しても良い。   When color conversion is performed by the color conversion module and CMYKlclm data is obtained, the halftone processing module converts the gradation value of each pixel expressed in the CMYKlclm color system into a half that specifies ink ejection / non-ejection in each pixel. Convert to tone image data. That is, ejection / non-ejection of ink droplets is determined for each pixel in the printer 40. Needless to say, not only ink droplet ejection / non-ejection but also the amount of ejected ink can be controlled stepwise to determine the size of the ejected ink droplet.

印刷データ生成モジュールはハーフトーン画像データを受け取り、プリンタ40で使用される順番に並べ替え、一回の主走査にて使用されるデータを単位にして印刷データを生成する。印刷データは、パラレル通信用I/O19bを介して逐次プリンタ40に出力され、プリンタ40に画像を形成するために必要なすべてのデータが転送されると、プリンタ40にて印刷媒体上に画像が形成される。   The print data generation module receives the halftone image data, rearranges them in the order used by the printer 40, and generates print data in units of data used in one main scan. The print data is sequentially output to the printer 40 via the parallel communication I / O 19b. When all the data necessary for forming an image is transferred to the printer 40, the printer 40 stores the image on the print medium. It is formed.

(2)画像データの補間処理
図2は、画像データ15aの補間処理の処理内容を示したフローチャートである。
当該処理は上記APL21の画像データ取得モジュール21a及び画像データ補間モジュール21bによって実行される。先ず、画像データ取得モジュール21aが、HDD15に記録された画像データ15aを取得する(ステップS100)。画像データ15aは、ユーザがデジタルカメラ等で撮像した画像をドットマトリクス状に表現したデータであり、本実施形態においては、実寸大で印刷するための印刷対象物70と基準標識としてのバーコード50とが一緒に撮像された画像にかかる画像データとする。バーコード50は、その所定部位の実測長さLが予め正確に測定されているものを用いる。
(2) Interpolation Processing of Image Data FIG. 2 is a flowchart showing the processing contents of the interpolation processing of the image data 15a.
The processing is executed by the image data acquisition module 21a and the image data interpolation module 21b of the APL 21. First, the image data acquisition module 21a acquires the image data 15a recorded on the HDD 15 (step S100). The image data 15a is data in which an image captured by a user with a digital camera or the like is expressed in a dot matrix. In the present embodiment, the print object 70 for printing in actual size and a barcode 50 as a reference mark. And image data relating to an image taken together. As the bar code 50, a bar code whose measured length L of the predetermined portion is accurately measured in advance is used.

上記画像を撮像する際には、デジタルカメラ等の撮像機器から上記印刷対象物70およびバーコード50までの距離が等距離となる位置に印刷対象物70とバーコード50とを配置する。また、バーコード50は、撮像機器の撮像する方向に正対する角度で配置する。このように撮像して取得した画像データ15aに基づく印刷処理を行う場合に、バーコード50がその実寸大で印刷されるように画像データ15aの解像度変換を行うことにより、結果的に、一緒に撮像した印刷対象物70が実寸大で印刷されることになる。
画像データ補間モジュール21bは、かかる画像データ15aを画像データ取得モジュール21aから入力するとともに、同画像データ15aに対する走査処理の結果等に基づいて上記変化率Xを取得する処理を行う(ステップS200)。
When the image is picked up, the print object 70 and the barcode 50 are arranged at a position where the distance from the image pickup device such as a digital camera to the print object 70 and the barcode 50 is equal. Further, the barcode 50 is arranged at an angle directly opposite to the imaging direction of the imaging device. When performing the printing process based on the image data 15a acquired by imaging in this way, the resolution conversion of the image data 15a is performed so that the barcode 50 is printed at its actual size, and as a result, together The captured print object 70 is printed in actual size.
The image data interpolation module 21b receives the image data 15a from the image data acquisition module 21a and performs a process of acquiring the change rate X based on the result of the scanning process on the image data 15a (step S200).

ここで変化率Xとは、画像データ15aを補間する際の画素数の変化率であり、画素数を増大させる場合の拡大率と画素数を減少させる場合の縮小率の両方を含む概念である。本実施形態においては、画像がその実寸大で印刷されるように、画像データ15aを構成する画素を補間する。従って、変化率Xとしては、画像をプリンタ40によって実寸大で印刷するために必要な解像度にまで画像データ15aの解像度を拡大あるいは縮小する値を求める。変化率Xを求める詳しい処理については後述する。   Here, the rate of change X is a rate of change in the number of pixels when interpolating the image data 15a, and is a concept including both an enlargement rate when increasing the number of pixels and a reduction rate when decreasing the number of pixels. . In the present embodiment, the pixels constituting the image data 15a are interpolated so that the image is printed at its actual size. Therefore, as the change rate X, a value for enlarging or reducing the resolution of the image data 15a to a resolution necessary for printing the image in actual size by the printer 40 is obtained. Detailed processing for obtaining the change rate X will be described later.

ステップS200で求めた変化率Xに基づいて、画像データ補間モジュール21bは、画像データ15aを構成する画素数を水平方向及び垂直方向に夫々X倍に補間する(ステップS300)。従って、本実施形態においてAPL21の画像データ補間モジュール21bは、特許請求の範囲の記載における、変化率取得手段と画像データ補間手段とに対応する。
補間処理として用いる手法は何ら限定する必要はなく、ニアリストネイバ法や3次たたみ込み内挿法など公知の様々な補間処理方法を採用可能である。かかる補間処理後の画像データ15aが得られたら、同画像データ15aを画像処理の次のステップであるPRTDRV22の色変換モジュールへ出力する(ステップS400)。
Based on the change rate X obtained in step S200, the image data interpolation module 21b interpolates the number of pixels constituting the image data 15a by X times in the horizontal direction and the vertical direction, respectively (step S300). Accordingly, in the present embodiment, the image data interpolation module 21b of the APL 21 corresponds to the change rate acquisition unit and the image data interpolation unit in the claims.
There is no need to limit the method used for the interpolation processing, and various known interpolation processing methods such as the nearest neighbor method and the cubic convolution interpolation method can be employed. When the image data 15a after the interpolation processing is obtained, the image data 15a is output to the color conversion module of the PRTDRV 22, which is the next step of the image processing (step S400).

つまり、変化率Xに基づいて画像データ15aを補間し、プリンタ40において画像が実寸大で印刷される解像度に変換された画像データ15aを出力する。そして、同画像データ15aから印刷データが生成され、同印刷データに基づいて印刷処理がなされることで、画像ひいては画像中の印刷対象物70が正確な実寸大で印刷される。かかる補間処理をAPL21に行わせれば、ユーザは、実寸大印刷を望む印刷対象物70とバーコード50とを一緒に撮像し、同撮像による画像データをコンピュータ10に入力するだけで、印刷対象物70が正確に実寸で表示された印刷結果を自動的に取得することができる。   That is, the image data 15a is interpolated based on the rate of change X, and the printer 40 outputs the image data 15a converted to a resolution at which the image is printed at actual size. Then, print data is generated from the image data 15a, and print processing is performed based on the print data, so that the image and thus the print object 70 in the image is printed with an accurate actual size. If the APL 21 performs such interpolation processing, the user simply captures an image of the print object 70 and the barcode 50 that he / she wants to print at full size, and inputs image data obtained by the image capture to the computer 10. It is possible to automatically obtain a print result in which 70 is accurately displayed in actual size.

また、本願発明は、実寸大印刷のみを可能とする訳ではない。すなわち、算出された変化率Xに対して、50%や、30%等、任意の倍率を乗算する処理を行う。当該乗算の結果取得された値に基づいて補間処理をえば、プリンタ40において印刷対象物70をその実寸に対し任意の拡大・縮小率で印刷することを可能とする画像データ15aが生成される。   In addition, the present invention does not enable only actual size printing. That is, a process of multiplying the calculated change rate X by an arbitrary magnification such as 50% or 30% is performed. If interpolation processing is performed based on the value acquired as a result of the multiplication, the image data 15a that enables the printer 40 to print the print object 70 at an arbitrary enlargement / reduction ratio with respect to the actual size is generated.

図3は、バーコード50を示している。
バーコード50は、全体を構成する基本単位である黒バー52a及び白バー52bが複数本集合して形成された光学的に読取り可能な情報領域である。上記基本単位となる黒バー52a,白バー52bが所定本数集まって形成された領域をキャラクタ51と呼ぶ。各キャラクタ51は、黒バー52a,白バー52bの並び方の組合わせによって特定される一つの数字を夫々情報(コード)として有している。バーコード50を光学的に読取って得た情報をデジタル信号に変換し、かかるデジタル信号を認識することで、APL21はバーコード50に含まれた各キャラクタ51毎の特有のコードを取得するとともに、バーコード50特有の複数の数字を組合わせたコード情報を取得する。
FIG. 3 shows the barcode 50.
The barcode 50 is an optically readable information area formed by collecting a plurality of black bars 52a and white bars 52b which are basic units constituting the whole. An area formed by a predetermined number of black bars 52a and white bars 52b serving as basic units is referred to as a character 51. Each character 51 has, as information (code), one number specified by a combination of the arrangement of black bars 52a and white bars 52b. By converting information obtained by optically reading the barcode 50 into a digital signal and recognizing the digital signal, the APL 21 acquires a unique code for each character 51 included in the barcode 50, and Code information obtained by combining a plurality of numbers unique to the barcode 50 is acquired.

同図に示すように、バーコード50の最も左にある黒バー52aの左エッジから最も右にある黒バー52aの右エッジまでの実測長さ(両端エッジ間距離)をLインチとする。また、両端エッジ間距離Lを示す数字情報をコードとして有するキャラクタ51をバーコード50内に形成する。ただし、用いる実測長さは上記両端エッジ間の距離に限る必要はない。バーコード50のある部位の長さを正確に測定して取得した値であればどの様な値を用いてもよく、変化率Xを求める際には、画像データ15a中の同部位に対応する画素数を求めればよい。
さらに、夫々所定のキャラクタ51に、そのバーコードが正確に検出されたことを確認するためのコード(デコード成功確認用コード)や、検出された対象がバーコード50であることを特定するためのコード(デコード内容特定用コード)を予め記録しておく。
As shown in the figure, the measured length (distance between both end edges) from the left edge of the leftmost black bar 52a to the right edge of the rightmost black bar 52a is L inches. In addition, a character 51 having numeric information indicating the distance L between both end edges as a code is formed in the barcode 50. However, the actual measurement length to be used is not necessarily limited to the distance between the both end edges. Any value may be used as long as it is a value obtained by accurately measuring the length of a part where the barcode 50 is present, and when obtaining the change rate X, it corresponds to the same part in the image data 15a. What is necessary is just to obtain | require the number of pixels.
Furthermore, a code for confirming that the barcode is correctly detected for each predetermined character 51 (decoding success confirmation code) and for identifying that the detected object is the barcode 50, respectively. A code (decoding content specifying code) is recorded in advance.

上記変化率Xを取得するための処理について詳述する。
変化率Xは、上記両端エッジ間距離Lと、画像データ15a内における同両端エッジ間距離Lに対応する画素数Mと、プリンタ40の印刷解像度Pとを取得した場合、次式
X=P/(M/L)
によって表される。
従って、変化率Xを求めるには、画像データ補間モジュール21bは上記L,M,Pの各値を取得する必要がある。
A process for obtaining the change rate X will be described in detail.
The rate of change X is obtained by the following equation: X = P / when the distance L between both ends, the number M of pixels corresponding to the distance L between both ends in the image data 15a, and the print resolution P of the printer 40 are obtained. (M / L)
Represented by
Therefore, in order to obtain the change rate X, the image data interpolation module 21b needs to acquire the values of L, M, and P.

図4は、変化率Xを取得するための処理内容を示したフローチャートである。
先ず、画像データ補間モジュール21bは、ドットマトリクス状の画像データ15aのうち、バーコード50に対応するデータ領域(以下、バーコード領域)の検出を開始する(ステップS210)。すなわち、ドットマトリクス状の画像データ15aの水平方向または垂直方向の複数の走査線を、予め定められた順序に基づき走査し、バーコード領域を検出する。
FIG. 4 is a flowchart showing the processing contents for obtaining the change rate X.
First, the image data interpolation module 21b starts detecting a data area corresponding to the barcode 50 (hereinafter referred to as a barcode area) in the dot matrix image data 15a (step S210). That is, a plurality of scanning lines in the horizontal direction or the vertical direction of the dot matrix image data 15a are scanned based on a predetermined order to detect a barcode area.

図5は、バーコード領域を検出する処理の説明図である。
同図においては、ディスプレイ18に画像データ15aに基づく画像を表示した状態を示している。画像の略中央には、実寸大で印刷することを目的とした印刷対象物70と基準標識たるバーコード50とが表示されている。印刷対象物70とバーコード50とを撮像する際は、両者が画面中央に配置されるように撮像するのが一般的である。従って、バーコード領域を検出する際も、画面の中央に近い位置を通る走査線から優先的に順次走査するようにする。その結果、画像データ補間モジュール21bは、バーコード領域を短時間で効率よく検出することができる。なお、画面の左端に示した数字は、水平方向の走査線を走査する際の順序の例を、画面の上端に示した数字は、垂直方向の走査線を走査する際の順序の例を夫々示している。
FIG. 5 is an explanatory diagram of a process for detecting a barcode area.
In the same figure, the state which displayed the image based on the image data 15a on the display 18 is shown. In the approximate center of the image, a print object 70 intended to be printed in actual size and a barcode 50 as a reference mark are displayed. When the printing object 70 and the barcode 50 are imaged, it is common to image them so that they are arranged in the center of the screen. Accordingly, when the barcode area is detected, scanning is sequentially performed preferentially from a scanning line passing through a position close to the center of the screen. As a result, the image data interpolation module 21b can efficiently detect the barcode area in a short time. The numbers shown at the left end of the screen are examples of the order when scanning horizontal scanning lines, and the numbers shown at the top of the screen are examples of the order when scanning vertical scanning lines. Show.

水平方向の走査と垂直方向の走査の後先は自由であるが、本実施形態においては、最初に水平方向の走査線を上記順序に従って走査し、バーコード領域を検出する。同走査によってバーコード領域が検出されなかった場合に、垂直方向の走査線を上記順序に従って走査する。上記走査においては、各画素から輝度情報を取得することによりバーコード領域を検出する。バーコード領域では、黒バー52aと白バー52bとが所定の規則性に基づき並んでいるため、輝度情報を取得して行けば、0と1の輝度値が同所定の規則性に基づいて並ぶ領域を検出することにより、容易にバーコード領域を検出することができる。   Although the horizontal scanning and the vertical scanning can be performed freely afterward, in the present embodiment, the horizontal scanning lines are first scanned in the above order to detect the barcode area. When the barcode area is not detected by the scanning, the scanning lines in the vertical direction are scanned in the above order. In the above scanning, the barcode area is detected by acquiring luminance information from each pixel. In the barcode area, the black bar 52a and the white bar 52b are arranged on the basis of the predetermined regularity. Therefore, if the luminance information is acquired, the luminance values of 0 and 1 are arranged on the basis of the predetermined regularity. By detecting the area, the barcode area can be easily detected.

ステップS220においては、画像データ補間モジュール21bは、バーコード領域を正確に複数回検出できたか否か判断する。ここで、正確に検出できたとは、一本の走査線を走査した際に、そのバーコードを構成する全てのキャラクタを走査できた場合を言う。一度の走査でバーコード50を構成する全てのキャラクタ51を走査できたか否かは、所定の計算式に各キャラクタ51から取得した各コードを代入して得られた数字情報が、上記デコード成功確認用コードと一致するか否かにより判断する。つまり、一回の走査でバーコード50を構成する全キャラクタ51を読取ることができた場合にのみ、上記計算結果としての数字情報とデコード成功確認用コードとが一致する。両値が一致しない場合には、当該走査においてはバーコード50を構成する全てのキャラクタ51を走査できていないと判断し、他の走査線についてバーコード領域の検出を繰り返す(ステップS240)。   In step S220, the image data interpolation module 21b determines whether or not the barcode area has been accurately detected a plurality of times. Here, being able to detect correctly means that all the characters composing the bar code can be scanned when one scanning line is scanned. Whether or not all the characters 51 constituting the barcode 50 can be scanned by one scan is determined by the numerical information obtained by substituting each code acquired from each character 51 into a predetermined calculation formula. Judgment is made based on whether or not the code matches. That is, only when all the characters 51 constituting the barcode 50 can be read by one scan, the numerical information as the calculation result matches the decoding success confirmation code. If the two values do not match, it is determined that all the characters 51 constituting the barcode 50 have not been scanned in the scanning, and the barcode area detection is repeated for the other scanning lines (step S240).

全キャラクタを読取ることができた走査が、水平方向の走査で2度以上、あるいは垂直方向の走査で2度以上あった場合に、バーコード領域を正確に複数回検出できたとして次のステップへと進む。
次に、画像データ補間モジュール21bは、上記検出したバーコード領域が真に上記バーコード50に対応する領域であるか否かを判断する(ステップS230)。印刷対象物70内のある位置に製品情報を示すバーコードが付されているなど、撮像した画像中にバーコード50以外のバーコードが存在することもあり得るからである。
If the scan that could read all characters was more than 2 degrees in the horizontal scan or more than 2 degrees in the vertical scan, proceed to the next step, assuming that the barcode area could be accurately detected multiple times Proceed with
Next, the image data interpolation module 21b determines whether or not the detected barcode area is truly an area corresponding to the barcode 50 (step S230). This is because there may be a barcode other than the barcode 50 in the captured image, for example, a barcode indicating product information is attached at a certain position in the print object 70.

具体的には、所定のキャラクタ51に記録された、上記デコード内容特定用コードを取得するとともに、HDD15に予め記録された同コードと同じ数字情報(対比確認用コード15d)を取得し、両コードが一致するか否かを判断する。その結果、両コードが一致すれば、検出されたバーコードはバーコード50であることが特定され、両コードが一致しない場合には、バーコード50以外の誤ったバーコード等を検出したとして、他の走査線についてバーコード領域の検出を繰り返す(ステップS240)。その結果、バーコード50以外の両端エッジ間距離がLではないバーコードを誤って読取り、同バーコードから上記画素数Mを取得してしまうことが防がれる。   Specifically, the code for identifying the decoded content recorded in the predetermined character 51 is acquired, and the same numerical information (contrast confirmation code 15d) as the same code recorded in advance in the HDD 15 is acquired. It is judged whether or not. As a result, if both codes match, it is determined that the detected barcode is the barcode 50. If both codes do not match, it is assumed that an erroneous barcode other than the barcode 50 is detected. The barcode area detection is repeated for the other scanning lines (step S240). As a result, it is possible to prevent a barcode other than the barcode 50 having a distance between both end edges of L from being read erroneously and acquiring the number M of pixels from the barcode.

ここで、水平方向の走査線に対して、バーコード50の各黒バー52a,白バー52bが並ぶ方向(長手方向)が大きく傾いている場合や、図6に示すように、同長手方向が上下を向くような場合、水平方向の走査だけでは、バーコード領域を正確に検出することはできない。しかし、本実施形態においては、上記の通り垂直方向の走査も行うため、画像平面上において同長手方向が大きく傾いている場合や上下を向くような場合でも、バーコード領域を正確に検出することができる。
次に、上記検出したバーコード領域から両端エッジ間距離Lに対応する画素数Mを取得する(ステップS250)。
Here, when the direction (longitudinal direction) in which the black bars 52a and the white bars 52b of the barcode 50 are arranged is greatly inclined with respect to the horizontal scanning line, or as shown in FIG. When facing up and down, the barcode area cannot be accurately detected by only scanning in the horizontal direction. However, in the present embodiment, since the scanning in the vertical direction is also performed as described above, the barcode area can be accurately detected even when the longitudinal direction is greatly inclined on the image plane or when it faces up and down. Can do.
Next, the number of pixels M corresponding to the distance L between both end edges is acquired from the detected barcode area (step S250).

図7は、バーコード領域から画素数Mを取得する処理の説明図である。
同図においては、ディスプレイ18に表示される画像データ15aに基づく画像のバーコード50付近を拡大的に示している。ただし、最も左にある黒バー52a及び最も右にある黒バー52a以外の、バーコード50を構成する黒バー52a,白バー52bは図示を省略してある。走査線R1,R2は上記検出処理において画像データ15aを走査した際に、バーコード50を構成する全てのキャラクタ51を走査した走査線を示している。また、走査線R1とバーコード50の最も左にある黒バー52aの左エッジとの交点座標を(x1、y1)とし、走査線R1と最も右にある黒バー52aの右エッジとの交点座標を(x1´、y1´)とする。同様に、走査線R2と最も左にある黒バー52aの左エッジとの交点座標および最も右にある黒バー52aの右エッジとの交点座標を、夫々(x2、y2)、(x2´、y2´)とする。
FIG. 7 is an explanatory diagram of processing for obtaining the number of pixels M from the barcode area.
In the figure, the vicinity of the barcode 50 of the image based on the image data 15a displayed on the display 18 is shown in an enlarged manner. However, the black bar 52a and the white bar 52b constituting the barcode 50 other than the leftmost black bar 52a and the rightmost black bar 52a are not shown. The scanning lines R1 and R2 indicate scanning lines that have scanned all the characters 51 constituting the barcode 50 when the image data 15a is scanned in the detection process. Further, the intersection coordinates between the scanning line R1 and the left edge of the leftmost black bar 52a of the barcode 50 are (x1, y1), and the intersection coordinates between the scanning line R1 and the right edge of the rightmost black bar 52a. Is (x1 ′, y1 ′). Similarly, the intersection coordinates between the scanning line R2 and the left edge of the leftmost black bar 52a and the intersection coordinates of the right edge of the rightmost black bar 52a are respectively (x2, y2) and (x2 ′, y2). ′).

上記交点となる各エッジは、走査線R1,R2を走査する際に各画素から取得した輝度情報に基づいてその位置を検出する。黒バー52aのエッジを形成するエッジ画素から取得される輝度値は基本的に0であるため、同エッジの境界においては、輝度情報の変化度合いが急峻となる。従って、かかる輝度情報の変化度合いの程度に基づき最も左にある黒バー52aの左エッジ及び最も右にある黒バー52aの右エッジを形成するエッジ画素を特定し、各交点座標を求めることができる。かかるエッジ画素の検出には、ラプラシアンフィルタなど、公知のエッジ検出フィルタを用いることができる。   The positions of the edges serving as the intersections are detected based on the luminance information acquired from the pixels when scanning the scanning lines R1 and R2. Since the luminance value acquired from the edge pixel forming the edge of the black bar 52a is basically 0, the change degree of the luminance information is steep at the edge boundary. Therefore, based on the degree of change in the luminance information, the edge pixel forming the left edge of the leftmost black bar 52a and the right edge of the rightmost black bar 52a can be specified, and each intersection coordinate can be obtained. . A known edge detection filter such as a Laplacian filter can be used to detect such edge pixels.

画素数Mを求めるには、走査線R1,R2に対するバーコード50の長手方向の傾きαを求める。あるいは、走査線R1,R2に対する黒バー52aのエッジ方向の傾き(π/2−α)を求めてもよい。同エッジ方向は上記交点座標(x1、y1),(x2、y2)を通過する方向となるため、同エッジ方向の傾き(π/2−α)は、走査線R1,R2と同エッジ方向とが成す角度として容易に求まる。同エッジ方向の傾き(π/2−α)または傾きαを求めたら、かかる傾きとバーコード領域を通過する走査線R1又はR2の長さに対応する画素数mに基づいて、両端エッジ間距離Lに対応する画素数Mを次式によって取得する。
M=m×cosα、あるいは、M=m×sin(π/2−α)
なお、画素数mは、座標(x1、y1)(x1´、y1´)間の距離、あるいは座標(x2、y2)(x2´、y2´)間の距離と画像データ15aの解像度によって求められる。
In order to obtain the number M of pixels, the inclination α in the longitudinal direction of the barcode 50 with respect to the scanning lines R1 and R2 is obtained. Alternatively, the slope (π / 2−α) of the edge direction of the black bar 52a with respect to the scanning lines R1 and R2 may be obtained. Since the edge direction is a direction passing through the intersection coordinates (x1, y1) and (x2, y2), the inclination (π / 2−α) of the edge direction is the same as that of the scanning lines R1 and R2. It can be easily obtained as the angle formed by. When the inclination (π / 2−α) or the inclination α in the edge direction is obtained, the distance between both ends of the edge is determined based on the inclination and the number of pixels m corresponding to the length of the scanning line R1 or R2 passing through the barcode area. The number of pixels M corresponding to L is obtained by the following equation.
M = m × cos α, or M = m × sin (π / 2−α)
The number of pixels m is determined by the distance between the coordinates (x1, y1) (x1 ′, y1 ′) or the distance between the coordinates (x2, y2) (x2 ′, y2 ′) and the resolution of the image data 15a. .

また、傾きαを求めたら、画像データ15aを傾きα方向に再度走査し、同走査線上における最も左の黒バー52aの左エッジと最も右の黒バー52aの右エッジとの距離を求め、同求めた距離と画像データ15aの解像度とに基づいて、画素数Mを算出してもよい。両端エッジ間距離Lに対応する画素数Mを取得したら、次に、画像データ補間モジュール21bは、両端エッジ間距離Lとプリンタ40の印刷解像度Pとを取得する(ステップS260)。両端エッジ間距離Lはバーコード50の所定のキャラクタ51にコードとして記録されているため、バーコード50を走査し、キャラクタ51のコードを読取るだけで容易に取得できる。もちろん、ユーザが上記操作用入力機器を操作して同L値を入力してもよいし、同L値をHDD15に予め記録し、適宜HDD15から読み出して取得するようにしてもい。   When the inclination α is obtained, the image data 15a is scanned again in the direction of the inclination α, and the distance between the left edge of the leftmost black bar 52a and the right edge of the rightmost black bar 52a on the same scanning line is obtained. The number of pixels M may be calculated based on the obtained distance and the resolution of the image data 15a. If the number of pixels M corresponding to the distance L between both ends is acquired, the image data interpolation module 21b then acquires the distance L between both ends and the printing resolution P of the printer 40 (step S260). Since the distance L between both end edges is recorded as a code on a predetermined character 51 of the barcode 50, it can be easily obtained by scanning the barcode 50 and reading the code of the character 51. Of course, the user may input the same L value by operating the operation input device, or the L value may be recorded in advance in the HDD 15 and read out from the HDD 15 as appropriate and acquired.

印刷解像度Pは、パラレル通信用I/O19bを介してプリンタ40から直接取得してもよい。あるいは、上記L値と同様に、ユーザが上記操作用入力機器を操作してP値を入力してもよいし、同P値をHDD15に予め記録し、適宜HDD15から読み出して取得するようにしてもい。そして、これら取得したL,M,P値に基づいて、変化率Xを算出する(ステップS270)。   The print resolution P may be obtained directly from the printer 40 via the parallel communication I / O 19b. Alternatively, similarly to the L value, the user may input the P value by operating the operation input device, or the P value may be recorded in advance in the HDD 15 and read and acquired from the HDD 15 as appropriate. Yes. Then, based on these acquired L, M, and P values, the change rate X is calculated (step S270).

ここで、使用するプリンタ40の印刷解像度が水平方向と垂直方向とで異なる場合は、画像データ15aを補間する際の画素数の変化率として、水平方向の変化率Xhと垂直方向の変化率Xvとを取得する必要がある。この場合には、ステップS260において、プリンタ40の水平方向の印刷解像度Phと垂直方向の印刷解像度Pvとを取得する。そして、ステップS270において、次式
Xh=Ph/(M/L)
Xv=Pv/(M/L)
により、水平方向の変化率Xhと垂直方向の変化率Xvとを夫々算出する。
Here, when the printing resolution of the printer 40 to be used is different between the horizontal direction and the vertical direction, the change rate Xh in the horizontal direction and the change rate Xv in the vertical direction are used as the change rate of the number of pixels when the image data 15a is interpolated. And need to get. In this case, in step S260, the horizontal print resolution Ph and the vertical print resolution Pv of the printer 40 are acquired. In step S270, the following formula Xh = Ph / (M / L)
Xv = Pv / (M / L)
Thus, the change rate Xh in the horizontal direction and the change rate Xv in the vertical direction are respectively calculated.

図8は、基準標識の他の例を斜視図により示している。
同図においては、標識60は、バーコード61と突起62とボード63により構成されている。バーコード61は上記バーコード50と同じ態様のものである。突起62は円筒状であり、ボード63から略垂直に立設している。また、突起62の先端の円形面62aは、バーコード61及びボード63と略平行となるように設計する。
変化率Xを求める際には、画像データ15a中におけるバーコード61の所定部位の実測長さに対応する画素数Mを正確な値として取得する必要がある。ここで、上記所定部位を含むバーコード61が撮像機器に対して正対していない状態で画像データ15aを取得し、上記画素数Mを取得しても、同画素数Mは上記所定部位の実測長さに対応する画素数を正確に表しているとは言えない。
FIG. 8 is a perspective view showing another example of the reference sign.
In the figure, the sign 60 is constituted by a bar code 61, a protrusion 62 and a board 63. The bar code 61 has the same form as the bar code 50 described above. The protrusion 62 has a cylindrical shape, and stands substantially vertically from the board 63. The circular surface 62 a at the tip of the protrusion 62 is designed to be substantially parallel to the barcode 61 and the board 63.
When obtaining the rate of change X, it is necessary to acquire the number of pixels M corresponding to the actually measured length of the predetermined portion of the barcode 61 in the image data 15a as an accurate value. Here, even if the image data 15a is acquired in a state where the barcode 61 including the predetermined portion is not directly facing the imaging device, and the number of pixels M is acquired, the same number of pixels M is actually measured of the predetermined portion. It cannot be said that the number of pixels corresponding to the length is accurately represented.

ここで、基準標識として標識60を用いれば、画像を撮像しようとするときに突起62の円形面62aが円形となっているか否かを判断することで、容易に、バーコード61が撮像機器に対して正対しているか否かを判断することができる。従って、ユーザは画像を撮像するときに、撮像機器から見て円形面62aが楕円状となっている場合は標識60の向きを調節することで、容易にバーコード61を撮像機器に対して正対させることができる。   Here, if the sign 60 is used as the reference sign, it is easy to determine whether the circular surface 62a of the protrusion 62 is circular when attempting to pick up an image. It is possible to determine whether or not it is directly facing. Therefore, when the user captures an image, if the circular surface 62a is elliptical when viewed from the imaging device, the user can easily correct the barcode 61 with respect to the imaging device by adjusting the direction of the sign 60. Can be paired.

基準標識としては、バーコードに限定する必要はなく、所定部位の実測長さが予め分かっているものなら様々なものを基準標識として用いることが可能である。例えば、目盛りが正確に付された定規を基準標識としてもよい。すなわち、所定の目盛り間の距離をL値とし、画像データ中における、同所定の目盛り間の距離に対応する画素数をM値とすれば、同定規を含んで撮像された画像を実寸大で印刷するための、画素数の変化率Xが求められる。また、何れの態様の基準標識を用いる場合にも、その基準標識の近傍に同基準標識の所定部位の実測長さLを光学式文字認識のためのOCR文字で表示するようにしてもよい。かかる表示をしておけば、基準標識とともに同OCR文字を撮像することで、同L値にかかるデータを一部に有する画像データが生成される。その結果、コンピュータ10は、上記補間処理を実行する際に、取得した画像データから直接に同L値を取得することができる。   The reference mark need not be limited to a bar code, and various kinds of reference marks can be used as long as the measured length of a predetermined part is known in advance. For example, a ruler with an accurate scale may be used as the reference mark. That is, if the distance between the predetermined scales is L value and the number of pixels corresponding to the distance between the predetermined scales in the image data is M value, the captured image including the identification rule is actual size. A change rate X of the number of pixels for printing is obtained. In addition, in any case of using the reference sign of any aspect, the measured length L of a predetermined part of the reference sign may be displayed in the vicinity of the reference sign as an OCR character for optical character recognition. If such display is performed, image data having a part of the data corresponding to the L value is generated by imaging the OCR character together with the reference sign. As a result, the computer 10 can acquire the L value directly from the acquired image data when executing the interpolation process.

(3)第二の実施形態
これまでは、HDD15からAPL21の画像データ取得モジュール21aに入力する画像データは、基準標識と印刷対象物70とを一緒に撮像した画像にかかるデータであるとして説明を行った。しかし、必ずしも基準標識と印刷対象物70とを一緒に撮像する必要はなく、既に印刷対象物70を撮像して生成された画像データを画像データ取得モジュール21aに入力するようにしてもよい。
(3) Second Embodiment Until now, it is assumed that the image data input from the HDD 15 to the image data acquisition module 21a of the APL 21 is data related to an image obtained by capturing the reference sign and the print object 70 together. went. However, it is not always necessary to image the reference mark and the print object 70 together, and image data already generated by imaging the print object 70 may be input to the image data acquisition module 21a.

図9は、第二の実施形態において変化率Xを取得する処理内容を示したフローチャートである。同図は、第二の実施形態において、図2のステップS200で行われる処理を詳述したものであが、当該第二の実施形態においては、前段のステップS100で取得する画像データは、上記バーコード50を含む場合と含まない場合とがあるものとする。図9のステップS310〜S340の処理は、図4のステップS210〜S240の処理内容と同じである。従って、特徴的なステップS345以下の処理を中心に説明する。   FIG. 9 is a flowchart showing the processing content for obtaining the change rate X in the second embodiment. This figure details the processing performed in step S200 of FIG. 2 in the second embodiment. In the second embodiment, the image data acquired in step S100 in the preceding stage is Assume that the barcode 50 may or may not be included. The processing in steps S310 to S340 in FIG. 9 is the same as the processing content in steps S210 to S240 in FIG. Therefore, the description will be focused on the characteristic processing after step S345.

HDD15から画像データ取得モジュール21aに入力された画像データ15bを走査した結果、バーコード50は検出されなかったと判断した場合(ステップS340)、APL21は、画像データ15b上に所定の伸縮型基準標識80を重畳した画像データ15cを生成する画像処理を行う(ステップS345)。
図10は、上記画像データ15cを生成する処理の説明図である。同図は、ディスプレイ18に画像データ15bに基づく画像を表示した状態を示している。画像の略中央には、実寸大で印刷することを目的とした印刷対象物70が表示されるが、基準標識たるバーコード50は表示されていない。
When it is determined that the barcode 50 has not been detected as a result of scanning the image data 15b input from the HDD 15 to the image data acquisition module 21a (step S340), the APL 21 reads a predetermined extendable reference mark 80 on the image data 15b. The image processing for generating the image data 15c on which is superimposed is performed (step S345).
FIG. 10 is an explanatory diagram of processing for generating the image data 15c. This figure shows a state in which an image based on the image data 15 b is displayed on the display 18. In the approximate center of the image, a print object 70 intended to be printed in actual size is displayed, but the barcode 50 as a reference mark is not displayed.

かかる場合、APL21は画面の所定位置に伸縮型基準標識80をアイコンとして表示する。伸縮型基準標識80は、画面上においてその長さを自由に伸縮可能なアイコンであるとともに、画面上でその長さを変化させた場合でも固定値としてのある長さを意味する。ユーザは、アイコンとして表示された伸縮型基準標識80を、マウス32のカーソル操作により、印刷対象物70の近傍にドラッグアンドドロップするとともに、所定の長さに伸長あるいは縮小させる。ここで、伸縮型基準標識80をどの範囲まで伸縮させるかは、印刷対象物70のどの部位の実測長さが分かっているかによる。例えば、印刷対象物70の下端から上端までの実測長さLが予め分かっている場合は、伸縮型基準標識80が印刷対象物70の下端から上端までの長さと同じ長さとなるように、画面上で伸縮させる。   In such a case, the APL 21 displays the telescopic reference mark 80 as an icon at a predetermined position on the screen. The telescopic reference mark 80 is an icon whose length can be freely expanded and contracted on the screen, and means a certain length as a fixed value even when the length is changed on the screen. The user drags and drops the extensible reference mark 80 displayed as an icon to the vicinity of the print object 70 by the cursor operation of the mouse 32, and expands or contracts it to a predetermined length. Here, to which range the extendable reference mark 80 is expanded or contracted depends on which part of the print object 70 is actually measured. For example, when the measured length L from the lower end to the upper end of the print object 70 is known in advance, the screen is set so that the extendable reference mark 80 has the same length as the length from the lower end to the upper end of the print object 70. Stretch on top.

その結果、実測長さLが予め分かっている印刷対象物70の所定部位と画面上において同じ長さで表示された伸縮型基準標識80が、元の画像データ15bに重畳された画像データ15cが生成される。かかる伸縮型基準標識80に、その固定値として上記実測長さLを与えることにより、画像データ15cは、所定部位(同図の例においては、伸縮型基準標識80の下端から上端までの範囲)の実測長さが定められた基準標識を含む画像にかかる画像データとなる。伸縮型基準標識80の下端から上端までの長さを示す固定値としての上記L値は、キーボード31やマウス32等を操作してユーザがディスプレイ18上の所定のUIから入力する。
従って、第二の実施形態では、ステップS100及びステップS310〜S345までの処理を行う場合の画像データ取得モジュール21a及び画像データ補間モジュール21bが、請求項1に言う画像データ取得手段に対応する。
As a result, the image data 15c in which the extensible reference mark 80 displayed with the same length on the screen as the predetermined portion of the print object 70 whose measured length L is known in advance is superimposed on the original image data 15b. Generated. By giving the actually measured length L as a fixed value to the telescopic reference mark 80, the image data 15c is stored in a predetermined portion (in the example shown in the figure, the range from the lower end to the upper end of the expandable reference mark 80). Is the image data relating to the image including the reference sign for which the actual measurement length is determined. The L value, which is a fixed value indicating the length from the lower end to the upper end of the telescopic reference sign 80, is input from a predetermined UI on the display 18 by operating the keyboard 31, mouse 32, or the like.
Therefore, in the second embodiment, the image data acquisition module 21a and the image data interpolation module 21b in the case of performing the processing from step S100 and steps S310 to S345 correspond to the image data acquisition means described in claim 1.

上記画像データ15cが取得された後、画像データ補間モジュール21bは以下のステップで、画像が実寸大印刷で印刷される解像度に画素数を変換するための変化率Xを算出する。つまり、画像データ15c中の伸縮型基準標識80の下端から上端までの長さに対応する画素数Mを求め(ステップS350)、次に、伸縮型基準標識80の固定値として上記入力されたL値およびプリンタ40の印刷解像度Pを取得する(ステップS360)。そして、上記取得したL,M,P値に基づいて、変化率Xを算出する(ステップS370)。   After the image data 15c is acquired, the image data interpolation module 21b calculates the rate of change X for converting the number of pixels to the resolution at which the image is printed in actual size printing in the following steps. That is, the number M of pixels corresponding to the length from the lower end to the upper end of the expandable reference mark 80 in the image data 15c is obtained (step S350), and then the L input as the fixed value of the expandable reference mark 80 is obtained. The value and the printing resolution P of the printer 40 are acquired (step S360). Based on the acquired L, M, and P values, the rate of change X is calculated (step S370).

(4)まとめ
このように、コンピュータ10は、印刷対象物70と所定部位の実測長さLが既知のバーコード50とが一緒に撮像された画像にかかる画像データ15aを入力し、同画像データ15a中の同所定部位の長さに対応する画素数Mを取得する。次に、上記Lとプリンタ40の印刷解像度Pを取得し、かかるL,M,P値に基づいて、画像データ15aの解像度を画像の実寸大印刷を可能とする解像度に変換するための、画素数の変化率Xを算出する。そして、同変化率Xに基づいて画素を補間した補間処理後の画像データ15aに基づく印刷処理を行えば、自動的に上記画像が正確な実寸大で表示された印刷結果を取得できる。
(4) Summary As described above, the computer 10 inputs the image data 15a related to the image obtained by capturing the print object 70 and the barcode 50 whose measured length L of the predetermined portion is known together. The number M of pixels corresponding to the length of the predetermined portion in 15a is acquired. Next, the pixels for obtaining the print resolution P of L and the printer 40 and converting the resolution of the image data 15a into a resolution that enables actual size printing of the image based on the L, M, and P values. The number change rate X is calculated. Then, if a printing process based on the image data 15a after the interpolation process in which pixels are interpolated based on the change rate X is performed, it is possible to automatically obtain a printing result in which the image is displayed in an accurate actual size.

本願発明の実施形態にかかる概略構成を示すブロック図である。It is a block diagram which shows schematic structure concerning embodiment of this invention. 画像データの補間処理の処理内容を示したフローチャートである。It is the flowchart which showed the processing content of the interpolation processing of image data. バーコードを示した図である。It is the figure which showed the barcode. 変化率Xを取得するための処理内容を示したフローチャートである。It is the flowchart which showed the processing content for acquiring the change rate X. バーコード領域を検出する処理の説明図である。It is explanatory drawing of the process which detects a barcode area | region. バーコード領域を検出する処理の説明図である。It is explanatory drawing of the process which detects a barcode area | region. バーコード領域から画素数Mを取得する処理の説明図である。It is explanatory drawing of the process which acquires the pixel number M from a barcode area | region. 基準標識の他の例を示した斜視図である。It is the perspective view which showed the other example of the reference | standard label | marker. 変化率Xを取得するための処理内容を示したフローチャートである。It is the flowchart which showed the processing content for acquiring the change rate X. 補間処理の対象となる画像データを生成する処理の説明図である。It is explanatory drawing of the process which produces | generates the image data used as the object of an interpolation process.

符号の説明Explanation of symbols

10…コンピュータ、15…HDD、15a,15b,15c…画像データ、15d…対比確認用コード、18…ディスプレイ、21…APL、21a…画像データ取得モジュール、21b…画像データ補間モジュール、22…PRTDRV、23…入力機器DRV、24…ディスプレイDRV、31…キーボード、32…マウス、40…プリンタ、50,61…バーコード、51…キャラクタ、52a…黒バー、52b…白バー、70…印刷対象物、80…伸縮型基準標識 DESCRIPTION OF SYMBOLS 10 ... Computer, 15 ... HDD, 15a, 15b, 15c ... Image data, 15d ... Comparison confirmation code, 18 ... Display, 21 ... APL, 21a ... Image data acquisition module, 21b ... Image data interpolation module, 22 ... PRTDRV, 23 ... Input device DRV, 24 ... Display DRV, 31 ... Keyboard, 32 ... Mouse, 40 ... Printer, 50, 61 ... Bar code, 51 ... Character, 52a ... Black bar, 52b ... White bar, 70 ... Print object, 80 ... telescopic reference mark

Claims (11)

画像を複数の画素で表現した画像データに対し画素数を所定の変化率に基づいて変更する画像データ補間装置であって、
所定部位の実測長さが定められた基準標識を含む画像にかかる画像データを取得する画像データ取得手段と、
上記実測長さと上記画像データ中における基準標識の所定部位に対応する画素数とを利用し、所定の印刷解像度を有する印刷装置によって印刷処理を行う際に上記画像が実寸大で印刷されるために必要な上記変化率を求める変化率取得手段と、
上記取得された変化率に基づいて同画像データの構成画素数を変更する画像データ補間手段と、
上記構成画素数が変更された画像データを補間処理後の画像データとして出力する画像データ出力手段とを具備することを特徴とする画像データ補間装置。
An image data interpolation device that changes the number of pixels based on a predetermined change rate with respect to image data representing an image by a plurality of pixels,
Image data acquisition means for acquiring image data relating to an image including a reference sign in which an actual measurement length of a predetermined part is determined;
The image is printed in actual size when printing processing is performed by a printing apparatus having a predetermined printing resolution using the actually measured length and the number of pixels corresponding to the predetermined portion of the reference sign in the image data. A rate of change acquisition means for obtaining the required rate of change;
Image data interpolation means for changing the number of constituent pixels of the image data based on the obtained change rate;
An image data interpolation device comprising: image data output means for outputting image data in which the number of constituent pixels has been changed as image data after interpolation processing.
上記変化率取得手段は、上記基準標識の所定部位の実測長さをLとし、上記画像データ中における同所定部位の長さに対応する画素数をMとし、上記印刷装置の印刷解像度をPとした場合に、上記変化率Xを次式によって求めることを特徴とする請求項1に記載の画像データ補間装置。
X=P/(M/L)
The rate-of-change acquisition means sets L as the measured length of the predetermined portion of the reference sign, M as the number of pixels corresponding to the length of the predetermined portion in the image data, and P as the print resolution of the printing apparatus. The image data interpolating apparatus according to claim 1, wherein the change rate X is obtained by the following equation.
X = P / (M / L)
上記変化率取得手段は、上記取得された画像データにおいて、水平方向または垂直方向の複数の走査線を予め定められた順序に基づき走査することにより同画像データ中の基準標識を検出することを特徴とする請求項1または請求項2のいずれかに記載の画像データ補間装置。 The change rate acquisition means detects a reference sign in the acquired image data by scanning a plurality of horizontal or vertical scanning lines based on a predetermined order in the acquired image data. The image data interpolation apparatus according to claim 1 or 2. 上記変化率取得手段は、上記基準標識を検出する際に各画素から取得される輝度情報が所定の規則性をもって変化するデータ領域を同基準標識であると判断することを特徴とする請求項1〜請求項3のいずれかに記載の画像データ補間装置。 The said change rate acquisition means judges that the data area | region from which the luminance information acquired from each pixel changes with a predetermined regularity is the said reference mark when detecting the said reference mark. The image data interpolating device according to claim 3. 上記変化率取得手段は、上記基準標識であると判断したデータ領域のうち所定の領域から同基準標識であることを特定する識別情報を読取った場合に、同基準標識の検出を完了することを特徴とする請求項4に記載の画像データ補間装置。 The rate-of-change acquisition means completes detection of the reference sign when reading identification information identifying the reference sign from a predetermined area of the data area determined to be the reference sign. 5. The image data interpolating apparatus according to claim 4, wherein 上記変化率取得手段は、水平方向または垂直方向の走査線に対する上記基準標識の所定部位の長さ方向の傾きを算出し、同傾きに基づいて画像データ中における同所定部位の長さに対応する画素数を算出することを特徴とする請求項3〜請求項5のいずれかに記載の画像データ補間装置。 The rate-of-change acquisition means calculates an inclination in a length direction of a predetermined portion of the reference sign with respect to a horizontal or vertical scanning line, and corresponds to the length of the predetermined portion in the image data based on the inclination. 6. The image data interpolation apparatus according to claim 3, wherein the number of pixels is calculated. 上記変化率取得手段は、上記画像データにおいて水平方向または垂直方向に複数回走査する際に上記基準標識が生じさせるエッジ画素を複数検出し、同複数のエッジ画素の位置に基づいて上記傾きを算出することを特徴とする請求項6に記載の画像データ補間装置。 The change rate acquisition means detects a plurality of edge pixels generated by the reference marker when scanning the image data a plurality of times in the horizontal direction or the vertical direction, and calculates the inclination based on the positions of the plurality of edge pixels. The image data interpolating apparatus according to claim 6. 上記基準標識の所定領域には、同基準標識が画像データとして取得された際に上記変化率取得手段によって読取り可能な情報であって上記所定部位の実測長さを示す情報が予め記録されることを特徴とする請求項1〜請求項7のいずれかに記載の画像データ補間装置。 In the predetermined area of the reference sign, information that can be read by the change rate acquisition means when the reference sign is acquired as image data and that indicates the measured length of the predetermined part is recorded in advance. The image data interpolating device according to claim 1, wherein 上記基準標識は、所定部位の実測長さが既知のバーコードであることを特徴とする請求項1〜請求項8のいずれかに記載の画像データ補間装置。 The image data interpolating apparatus according to any one of claims 1 to 8, wherein the reference mark is a barcode whose measured length of a predetermined part is known. 画像を複数の画素で表現した画像データに対し画素数を所定の変化率に基づいて変更する画像データ補間方法であって、
所定部位の実測長さが定められた基準標識を含む画像にかかる画像データを取得する画像データ取得工程と、
上記実測長さと上記画像データ中における基準標識の所定部位に対応する画素数とを利用し、所定の印刷解像度を有する印刷装置によって印刷処理を行う際に上記画像が実寸大で印刷されるために必要な上記変化率を求める変化率取得工程と、
上記取得された変化率に基づいて同画像データの構成画素数を変更する画像データ補間工程と、
上記構成画素数が変更された画像データを補間処理後の画像データとして出力する画像データ出力工程とを具備することを特徴とする画像データ補間方法。
An image data interpolation method for changing the number of pixels based on a predetermined change rate with respect to image data representing an image by a plurality of pixels,
An image data acquisition step of acquiring image data relating to an image including a reference sign in which an actual measurement length of a predetermined part is determined;
The image is printed in actual size when printing processing is performed by a printing apparatus having a predetermined printing resolution using the actually measured length and the number of pixels corresponding to the predetermined portion of the reference sign in the image data. A change rate acquisition step for obtaining the required change rate, and
An image data interpolation step of changing the number of constituent pixels of the image data based on the obtained change rate;
An image data interpolation method comprising: an image data output step of outputting the image data in which the number of constituent pixels is changed as image data after interpolation processing.
画像を複数の画素で表現した画像データに対し、コンピュータによって画素数を所定の変化率に基づいて変更するための画像データ補間プログラムであって、
所定部位の実測長さが定められた基準標識を含む画像にかかる画像データを取得する画像データ取得機能と、
上記実測長さと上記画像データ中における基準標識の所定部位に対応する画素数とを利用し、所定の印刷解像度を有する印刷装置によって印刷処理を行う際に上記画像が実寸大で印刷されるために必要な上記変化率を求める変化率取得機能と、
上記取得された変化率に基づいて同画像データの構成画素数を変更する画像データ補間機能と、
上記構成画素数が変更された画像データを補間処理後の画像データとして出力する画像データ出力機能とをコンピュータに実現させることを特徴とする画像データ補間プログラム。
An image data interpolation program for changing the number of pixels based on a predetermined change rate by a computer with respect to image data representing an image by a plurality of pixels,
An image data acquisition function for acquiring image data relating to an image including a reference sign in which an actual measurement length of a predetermined part is determined;
The image is printed in actual size when printing processing is performed by a printing apparatus having a predetermined printing resolution using the actually measured length and the number of pixels corresponding to the predetermined portion of the reference sign in the image data. Change rate acquisition function to obtain the required change rate,
An image data interpolation function for changing the number of constituent pixels of the image data based on the acquired rate of change;
An image data interpolation program for causing a computer to realize an image data output function for outputting image data in which the number of constituent pixels is changed as image data after interpolation processing.
JP2004014125A 2004-01-22 2004-01-22 Image data interpolator, and image data interpolating method and program Pending JP2005210365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004014125A JP2005210365A (en) 2004-01-22 2004-01-22 Image data interpolator, and image data interpolating method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004014125A JP2005210365A (en) 2004-01-22 2004-01-22 Image data interpolator, and image data interpolating method and program

Publications (1)

Publication Number Publication Date
JP2005210365A true JP2005210365A (en) 2005-08-04

Family

ID=34900008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004014125A Pending JP2005210365A (en) 2004-01-22 2004-01-22 Image data interpolator, and image data interpolating method and program

Country Status (1)

Country Link
JP (1) JP2005210365A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019196982A (en) * 2018-05-10 2019-11-14 コニカミノルタ株式会社 Image processing device, overloading detection device, overloading detection system and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019196982A (en) * 2018-05-10 2019-11-14 コニカミノルタ株式会社 Image processing device, overloading detection device, overloading detection system and program
JP6996415B2 (en) 2018-05-10 2022-02-04 コニカミノルタ株式会社 Image processing equipment, overload detection equipment, overload detection system and programs

Similar Documents

Publication Publication Date Title
JP5060404B2 (en) Image processing apparatus, image processing method, and program
JP4019063B2 (en) Optical terminal device, image processing method and system
US8285080B2 (en) Image processing apparatus and image processing method
US20100135595A1 (en) Image processing apparatus and image processing method
US7986832B2 (en) Image combining apparatus and control method for the same
KR101450782B1 (en) Image processing device and program
JP2010034683A (en) Image processing apparatus, and program
JP2009010618A (en) Image area designating device and its control method, and system
JP5407627B2 (en) Image processing apparatus, image processing method, and program
JP4140519B2 (en) Image processing apparatus, program, and recording medium
US8254693B2 (en) Image processing apparatus, image processing method and program
US10924620B2 (en) Document reading guidance for operator using feature amount acquired from image of partial area of document
JP2005210365A (en) Image data interpolator, and image data interpolating method and program
JP6540597B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP4910635B2 (en) Image processing apparatus and image processing program
JP2007074484A (en) Calibration method, calibration system, calibration program and recording medium with the calibration program stored
JP4397866B2 (en) Two-dimensional pattern reading device, two-dimensional pattern reading method
JP2009105541A (en) Image processing apparatus, method and program
JP4803001B2 (en) Image processing apparatus and image processing program
JP2019220906A (en) Image processing system, print instruction device, image processing device, and program
JP5434273B2 (en) Image processing apparatus and image processing program
JP2007318341A (en) Device for calculating position on printed matter, system for calculation position on printed matter, method for calculating position on printed matter, and printed matter
JP5434272B2 (en) Information processing apparatus and information processing program
JP2005196659A (en) Program, recording medium and apparatus for processing image
JP4725463B2 (en) Image processing apparatus, image processing method and computer program thereof