JP2010130126A - Apparatus and method of generating image, and program - Google Patents
Apparatus and method of generating image, and program Download PDFInfo
- Publication number
- JP2010130126A JP2010130126A JP2008300323A JP2008300323A JP2010130126A JP 2010130126 A JP2010130126 A JP 2010130126A JP 2008300323 A JP2008300323 A JP 2008300323A JP 2008300323 A JP2008300323 A JP 2008300323A JP 2010130126 A JP2010130126 A JP 2010130126A
- Authority
- JP
- Japan
- Prior art keywords
- image
- page
- folded
- unit
- page image
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/387—Composing, repositioning or otherwise geometrically modifying originals
- H04N1/3872—Repositioning or masking
- H04N1/3873—Repositioning or masking defined only by a limited number of coordinate points or parameters, e.g. corners, centre; for trimming
Abstract
Description
本発明は、袋とじ製本された書物に関する画像を生成する画像生成装置等に関する。 The present invention relates to an image generation apparatus that generates an image related to a book that has been bound by a bag.
従来、簡易な製本の方法として、袋とじ製本が用いられてきている。例えば、古文書や公文書、旧土地台帳などについて、袋とじ製本によって製本されたものが存在する。また、その袋とじ製本された書物を、コピー機などによって複写することも行われていた。 Conventionally, bag binding has been used as a simple bookbinding method. For example, there are old documents, official documents, old land ledgers, and the like bound by bag binding. In addition, the book bound in the bag was copied by a copy machine or the like.
なお、そのような複写を行う際に、デジタルカメラを用いて容易に正確な転写図面を得る方法も知られている(例えば、特許文献1参照)。
しかしながら、袋とじ製本された書物を複写したとしても、袋とじ製本された書物を構成する一の紙に対応する画像を得ることはできなかった。それは、袋とじ製本された書物を構成する一の紙は二つ折りにされており、その一の紙に含まれる2ページは表裏となるため、両ページを一括して複写することはできなかったからである。 However, even if a book bound in a bag is copied, an image corresponding to one paper constituting the book bound in a bag cannot be obtained. That is because one sheet of a book bound in a book is folded in half, and the two pages included in the one sheet are front and back, so both pages cannot be copied together. It is.
例えば、袋とじ製本された書物の見開きをそのままコピーすると、袋とじ製本された書物における第1の紙に含まれる一方のページの画像と、第1の紙とは異なる第2の紙に含まれる一方のページの画像とを複写できるのみであった。また、袋とじ製本された書物の見開きをコピーしたとしても、その見開きのページには少なからず湾曲が存在することになり、袋とじ製本された書物の各ページとまったく同じ画像を得ることはできなかった。 For example, if the spread of a book bound in a bag is copied as it is, the image of one page included in the first paper in the book bound in a bag is included in a second paper different from the first paper. It was only possible to copy an image on one page. In addition, even if you copy the spread of a book that has been bound in a bag, there will be a certain amount of curvature in the page of the spread book, and you will be able to obtain exactly the same image as each page of a book that has been bound in a bag. There wasn't.
本発明は、このような問題点を解決するためになされたものであり、その一の目的は、袋とじ製本された書物を構成する一の紙に対応する画像を生成することができる画像生成装置等を提供することである。また、他の目的は、湾曲している書物のページからであっても一の紙に対応する適切な画像を生成することができる画像生成装置等を提供することである。 The present invention has been made to solve such problems, and one object of the present invention is to generate an image that can generate an image corresponding to a piece of paper constituting a bound book. It is to provide a device or the like. Another object of the present invention is to provide an image generation apparatus that can generate an appropriate image corresponding to one paper even from a curved book page.
上記目的の少なくともいずれかを達成するため、本発明による画像生成装置は、袋とじ製本された書物おいて一の紙が二つ折りされて構成される、一方のページの画像である第1ページ画像と、他方のページの画像である第2ページ画像とが記憶される画像記憶部と、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する位置決定部と、前記位置決定部が決定した位置によって、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された前記一の紙に対応する画像である一枚画像を生成する画像生成部と、前記画像生成部が生成した一枚画像を出力する画像出力部と、を備えたものである。 In order to achieve at least one of the above objects, an image generation apparatus according to the present invention is a first page image that is an image of one page, which is formed by folding a sheet of paper in a book that has been bound into a bag. A second page image that is an image of the other page, a side of the first page image that is folded in two, and a side of the second page image that is folded in half A position determining unit that determines a position to connect the image, and a position that is determined by the position determining unit to connect the second folded side of the first page image and the second folded side of the second page image. An image generation unit that generates a single image that is an image corresponding to the one paper that has been bound by a bag, and an image output unit that outputs the single image generated by the image generation unit. It is.
このような構成により、袋とじ製本された書物を構成する一の紙に対応する一枚画像を生成することができる。その結果、その生成された一枚画像を用いることによって、例えば、その書物に関する研究を行ったり、その書物の完全な複製品を作成したりすることができうる。 With such a configuration, it is possible to generate a single image corresponding to one paper constituting a book bound by a booklet. As a result, by using the generated single image, for example, research on the book can be performed, or a complete reproduction of the book can be created.
また、本発明による画像生成装置では、前記画像生成部は、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とが、前記一枚画像の中心線となるように前記一枚画像を生成してもよい。 In the image generation apparatus according to the present invention, the image generation unit may include a side of the first page image that is folded in half and a side of the second page image that is folded in half of the one-image. The single image may be generated so as to be a center line.
このような構成により、その一枚画像を適切に印刷することによって、元の二つ折りにされた線が、印刷後の紙を二つ折りにした際の二つ折りにされた線と一致するようになりうる。その結果、その紙を用いることによって、袋とじ製本された書物の複製品を容易に作成することができるようになる。 With such a configuration, by appropriately printing the single image, the original folded line is matched with the folded line when the printed paper is folded in half. Can be. As a result, by using the paper, it becomes possible to easily create a duplicate of the book bound and bound.
また、本発明による画像生成装置では、前記一の紙の二つ折りにされた線上には、両ページにまたがる図形が存在し、前記位置決定部は、前記第1ページ画像に含まれる前記図形の部分と、前記第2ページ画像に含まれる前記図形の部分とがつながるように、位置の決定を行ってもよい。
このような構成により、より厳密な位置の決定を行うことができるようになると考えられる。
Further, in the image generating apparatus according to the present invention, there is a figure that spans both pages on the folded line of the one paper, and the position determination unit is configured to display the figure included in the first page image. The position may be determined so that the portion and the portion of the graphic included in the second page image are connected.
With such a configuration, it is considered that a more precise position can be determined.
また、本発明による画像生成装置では、前記位置決定部は、前記第1ページ画像の二つ折りの側の辺上の画素列と、前記第2ページ画像の二つ折りの側の辺上の画素列との辺方向の位置関係を変更する位置関係変更手段と、前記位置関係変更手段が位置関係を変更した両画素列の類似性に関する情報である類似情報を算出する類似情報算出手段と、前記類似情報によって類似性が最も高くなる両画素列の位置関係を特定する位置関係特定手段と、を備え、前記位置関係特定手段によって特定された両画素列の位置関係が、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置関係となってもよい。 In the image generation apparatus according to the present invention, the position determination unit may include a pixel row on a side of the first page image that is folded in two and a pixel row on the side of the second page image that is folded in half. A positional relationship changing unit that changes a positional relationship in the side direction, a similarity information calculating unit that calculates similarity information that is information relating to the similarity between both pixel columns whose positional relationship has been changed by the positional relationship changing unit, and the similarity Positional relationship specifying means for specifying the positional relationship between the two pixel columns having the highest similarity according to the information, and the positional relationship between the two pixel columns specified by the positional relationship specifying means is the second positional relationship of the first page image. A positional relationship may be established in which the side of the folded side and the side of the folded second side of the second page image are connected.
このような構成により、ある図形が二つ折りの線上において2ページに分断されている場合に、両ページの二つ折りの側の辺上の画素列はほぼ同じになるであろうという仮定のもと、両ページをつなげる位置の適切な決定を行うことができるようになると考えられる。 With such a configuration, it is assumed that when a certain figure is divided into two pages on a folded line, the pixel columns on the folded side of both pages will be substantially the same. It will be possible to appropriately determine the position where the two pages are connected.
また、本発明による画像生成装置では、前記位置決定部は、前記第1ページ画像の二つ折りの側の辺の端点と、前記第2ページ画像の二つ折りの側の辺の端点とがつながるように、位置の決定を行ってもよい。
このような構成により、両ページにまたがる図形がなかった場合においても、二つ折りの側の辺の端点を用いて両ページをつなげる位置を決定することができるようになる。
In the image generating apparatus according to the present invention, the position determining unit may connect the end point of the second folded side of the first page image to the end point of the second folded side of the second page image. Alternatively, the position may be determined.
With such a configuration, even when there is no figure that spans both pages, it is possible to determine the position at which the two pages are connected using the end points of the side that is folded in half.
また、本発明による画像生成装置では、前記第1ページ画像に対応するページ上に基準点を配置して撮影された画像である第1撮影画像と、前記第2ページ画像に対応するページ上に基準点を配置して撮影された画像である第2撮影画像とを受け付ける画像受付部と、前記画像受付部が受け付けた第1撮影画像及び第2撮影画像を、前記基準点を用いて撮影方向に関する補正を行うことによって、前記第1ページ画像及び前記第2ページ画像を生成し、前記画像記憶部に蓄積する画像補正部と、をさらに備えてもよい。
このような構成により、デジタルカメラ等によって撮影された撮影画像を補正することによって、ページ画像を得ることができるようになる。特に、撮影対象となる袋とじ製本された書物が解体不能なもの、例えば、和綴じ製本(糸綴じ製本)されたものである場合には、フラットヘッドスキャナでページ画像を得ることが不可能であるが、このようにして撮影画像を補正することによって、適切なページ画像を得ることができるようになる。例えば、その撮影時にページが湾曲していたとしても、その湾曲を適切に補正することができる。
In the image generation apparatus according to the present invention, the first captured image that is an image captured by arranging a reference point on the page corresponding to the first page image, and the page corresponding to the second page image. An image receiving unit that receives a second captured image that is an image captured by arranging a reference point, and a shooting direction of the first captured image and the second captured image received by the image receiving unit using the reference point An image correcting unit that generates the first page image and the second page image and stores the first page image and the second page image in the image storage unit.
With such a configuration, a page image can be obtained by correcting a photographed image photographed by a digital camera or the like. In particular, when a book that is to be photographed is bound and bound, the book cannot be disassembled, for example, Japanese-bound bookbinding (yarn-bound bookbinding), it is impossible to obtain a page image with a flat head scanner. However, an appropriate page image can be obtained by correcting the captured image in this way. For example, even if the page is curved at the time of shooting, the curvature can be corrected appropriately.
本発明による画像生成装置等によれば、袋とじ製本された書物を構成する一の紙に対応する画像を生成することができる。その結果、例えば、袋とじ製本された書物の完全なレプリカ(これも袋とじ製本されたものである)を作成することもできる。 According to the image generating apparatus and the like according to the present invention, it is possible to generate an image corresponding to one piece of paper constituting a book bound by a bag. As a result, for example, it is possible to create a complete replica of a book that has been bound by a bag (this is also a book that has been bound by a bag).
以下、本発明による画像生成装置について、実施の形態を用いて説明する。なお、以下の実施の形態において、同じ符号を付した構成要素及びステップは同一または相当するものであり、再度の説明を省略することがある。 Hereinafter, an image generation apparatus according to the present invention will be described using embodiments. In the following embodiments, components and steps denoted by the same reference numerals are the same or equivalent, and repetitive description may be omitted.
(実施の形態1)
本発明の実施の形態1による画像生成装置について、図面を参照しながら説明する。本実施の形態による画像生成装置は、袋とじ製本された書物を構成する一の紙に対応する画像を生成するものである。
(Embodiment 1)
An image generation apparatus according to
図1は、本実施の形態による画像生成装置1の構成を示すブロック図である。本実施の形態による画像生成装置1は、画像受付部11と、画像補正部12と、画像記憶部13と、位置決定部14と、画像生成部15と、画像出力部16とを備える。
FIG. 1 is a block diagram showing a configuration of an
画像受付部11は、第1ページ上に基準点を配置して撮影された画像である第1撮影画像と、第2ページ上に基準点を配置して撮影された画像である第2撮影画像とを受け付ける。ここで、袋とじ製本された書物(この書物は、解体不可能なもの、すなわち、ページごとにばらばらにすることができないものであってもよい)において、二つ折りされている一の紙に含まれる一方のページが第1ページであり、他方のページが第2ページである。すなわち、第1ページ、第2ページは、袋とじ製本された書物における一の紙に含まれる2個のページであって、袋とじ製本された書物のページにおいて表裏を構成するものである。なお、基準点をページ上に配置する方法は問わない。例えば、あらかじめ複数の基準点が設けられた透明シートをページ上に重ねることによって、複数の基準点をページ上に配置してもよく、あるいは、一の基準点の設けられた透明、半透明、または不透明のシートの小片を用意し、その複数の小片をページ上に配置してもよい。
The
なお、画像受付部11が3以上の撮影画像を受け付ける場合には、組となる2個の撮影画像、すなわち、第1撮影画像及び第2撮影画像を特定することができるようになっていることが好適である。組となる2個の撮影画像を特定する方法は問わないが、例えば、受け付けの順番を用いる方法や、撮影画像に対応付けられている情報を用いる方法などがある。
When the
受け付けの順番を用いる方法では、例えば、画像受付部11が受け付ける1番目の撮影画像と、2番目の撮影画像とが組となる2個の撮影画像であり、3番目の撮影画像と、4番目の撮影画像とが組となる2個の撮影画像である、というように定められていてもよい。そして、画像受付部11は、組となる撮影画像に対して、両者が組であることを示す情報を付与してもよい。その情報は、例えば、撮影画像のヘッダ等に含められてもよい。
In the method using the order of acceptance, for example, the first photographed image accepted by the
撮影画像に対応付けられている情報を用いる方法では、例えば、各撮影画像のヘッダ等に、その情報が含まれている。その撮影画像に対応付けられている情報は、例えば、組となる2個の撮影画像を紐付ける情報であってもよい。2個の撮影画像を紐付ける情報は、例えば、組となる撮影画像に対して付与された同じ情報であってもよく、所定の関係を有する情報であってもよい。前者の場合には、2個の撮影画像を紐付ける情報は、例えば、組となる2個の撮影画像のそれぞれに付与された組識別情報「H001」などであってもよい。ただし、組ごとに異なる組識別情報が付与されるものとする。また、後者の場合には、2個の撮影画像を紐付ける情報は、例えば、組となる2個の撮影画像の一方に付与されたページ番号「P001」と、他方に付与されたページ番号「P002」などであってもよい。そして、ページ番号「PN」と、ページ番号「PN+1」とにそれぞれ対応する2個の撮影画像が組となる撮影画像であると定められていてもよい。ただし、Nは3桁表記の1以上の整数である。また、後者の場合には、2個の撮影画像を紐付ける情報は、例えば、撮影時に撮影画像に付与されたファイル名であってもよい。通常、デジタルカメラで撮影する際には、撮影画像ごとにファイル名が付与され、そのファイル名は、撮影ごとに1ずつインクリメントされたものになる。したがって、画像受付部11が受け付けた複数の撮影画像をファイル名の昇順となるようにソートすると、そのソート後の先頭から2個ずつの撮影画像が、組となる2個の撮影画像となる。なお、この場合には、組となる2個の撮影画像ごとに撮影が行われているものとする。
In the method using information associated with a captured image, for example, the information is included in the header of each captured image. The information associated with the captured image may be, for example, information that associates two captured images that form a group. The information associated with the two captured images may be, for example, the same information given to the paired captured images, or information having a predetermined relationship. In the former case, the information for associating the two captured images may be, for example, set identification information “H001” assigned to each of the two captured images that form a set. However, different group identification information is given for each group. In the latter case, the information for linking the two captured images includes, for example, a page number “P001” assigned to one of the two captured images in the set and a page number “ P002 "or the like. Then, it may be determined that the captured image is a set of two captured images corresponding to the page number “PN” and the page number “PN + 1”, respectively. However, N is an integer of 1 or more expressed in three digits. In the latter case, the information that links the two photographed images may be, for example, a file name given to the photographed image at the time of photographing. Usually, when shooting with a digital camera, a file name is assigned to each shot image, and the file name is incremented by one for each shot. Therefore, when the plurality of photographed images received by the
なお、組となる2個の撮影画像を特定することができる情報は、後述する画像補正部12によって撮影画像がページ画像に変換された際にも、そのまま保持されていることが好適である。組となる2個のページ画像を特定することができるようにするためである。
It should be noted that the information that can specify the two captured images that form a pair is preferably retained as it is when the captured image is converted into a page image by the
画像受付部11は、例えば、デバイス(例えば、デジタルカメラなど)から入力された撮影画像を受け付けてもよく、有線もしくは無線の通信回線を介して送信された撮影画像を受信してもよく、所定の記録媒体(例えば、光ディスクや磁気ディスク、半導体メモリなど)から読み出された撮影画像を受け付けてもよい。なお、画像受付部11は、受け付けを行うためのデバイス(例えば、モデムやネットワークカードなど)を含んでもよく、あるいは含まなくてもよい。また、画像受付部11は、ハードウェアによって実現されてもよく、あるいは所定のデバイスを駆動するドライバ等のソフトウェアによって実現されてもよい。
For example, the
画像補正部12は、画像受付部11が受け付けた第1撮影画像及び第2撮影画像を、基準点を用いて撮影方向に関する補正を行うことによって、第1ページ画像及び第2ページ画像を生成する。そして、画像補正部12は、その生成した第1及び第2ページ画像を画像記憶部13に蓄積する。第1ページ画像は、第1ページに対応する画像であり、等倍で、あるいは、拡大・縮小することによって、原図である第1ページと重ね合わせ可能な画像、すなわち、その第1ページと同じ画像となり得るものである。また、第2ページ画像は、第2ページに対応する画像であり、等倍で、あるいは、拡大・縮小することによって、原図である第2ページと重ね合わせ可能な画像、すなわち、その第2ページと同じ画像となり得るものである。画像補正部12は、2次元の射影変換等を行うことによって、その補正を行うことができる。また、その補正によって、撮影画像を撮影したカメラのレンズ収差による誤差(歪み)の補正も同時に行うことができうる。画像補正部12がこの画像補正を行う方法については、前述の特許文献1を参照されたい。
The
画像補正部12は、撮影方向に関する補正以外の処理を行ってもよい。例えば、第1及び第2撮影画像について撮影方向に関する補正を行った後に、第1及び第2ページに対応する領域のみを切り出す処理を行ってもよい。その処理は、撮影方向に関する補正の前に行われてもよい。第1及び第2ページに対応する領域のみを切り出す処理は、例えば、輪郭抽出の技術を用いて行ってもよい。例えば、画像補正部12は、第1及び第2ページにおける背景色を取得し、その背景色の近似値を有する画素の領域を特定し、その特定した領域をすべて含む矩形形状(この場合には、各ページが矩形形状であることを前提としている)の領域を特定することによって、第1及び第2ページに対応する領域を特定してもよい。その特定した領域のみを切り出す処理は、例えば、切り抜き(トリミング)の処理としてすでに公知である。また、背景色を特定する方法としては、例えば、次の方法がある。まず、ランダムに色(輝度の階調のみでもよい。以下、同様である)をサンプリングする。そして、サンプリングした色をグルーピング(例えば、データクラスタリングの手法を用いてもよく、あらかじめ決められた幅の色ごとにグルーピングしてもよい)して、最も要素の多いグループが背景色に対応しているグループであると判断し、そのグループに含まれている色の平均値である背景色を特定してもよい。適切にランダムなサンプリングがなされた場合には、背景色が最もたくさんサンプリングされると考えられるからである。なお、画像補正部12は、第1及び第2ページに対応する領域を切り出す際に、書物の各ページに対応した縦横比や縦横の長さでその切り出しを行ってもよい。
The
また、画像補正部12は、画像の大きさに関する補正を行ってもよい。例えば、あらかじめ撮影対象のページの大きさ(書物の背の長さ方向だけの長さであってもよく、縦横の両方の長さであってもよい)を計測して登録しておき、その登録されているページの大きさとなるように、ページ画像を補正(具体的には、拡大または縮小)してもよい。このようにすることで、後述する画像生成部15によって2個のページ画像をつなげる際に、その2個のページ画像の大きさが異なっているような事態を回避することができるようになる。なお、拡大・縮小の際には、縦横比を固定していることが好適であるが、そうでなくてもよい。
Further, the
また、画像補正部12は、基準図形によって示される基準点を用いた画像補正を行った後に、その基準図形を消去する処理を行ってもよい。そのようにすることで、撮影画像やページ画像から基準図形を消去することができうる。基準図形を消去する処理は、例えば、その基準図形の画素の値を、その基準図形の画素に隣接する画素の値に置き換えることによって行ってもよく、その他の方法によって行ってもよい。
Further, the
また、画像補正部12は、組となる2個のページ画像について、色調やコントラストを一致させる補正を行ってもよい。まず、色調を一致させる補正について説明する。ここでは、第2ページ画像の色調を第1ページ画像の色調に合わせる場合について説明するが、その逆であってもよい。まず、組となる第1及び第2ページ画像のそれぞれについて、R,G,Bごとに全画素の平均値を算出する。そして、R,G,Bごとに、第1ページ画像の平均値から第2ページ画像の平均値を減算した差分を算出する。その後に、第2ページ画像について、R,G,Bごとの各画素に対して、算出したR,G,Bごとの平均値の差分を加算する。その結果、第1及び第2ページ画像のそれぞれのR,G,Bごとの平均値を一致させることができ、両画像の色調を一致させることができる。また、コントラストを一致させる場合には、一方のページ画像のコントラストゲインを取得し、それと同じコントラストゲインとなるように、他方のページ画像のコントラストを調整すればよい。このコントラストを調整する手法はすでに公知であり、その詳細な説明を省略する。なお、ここでは、2個のページ画像について色調等を一致させる補正について説明したが、3以上のページ画像が存在する場合には、2個ずつ、このような処理を行うことによって、すべてのページ画像の色調等を一致させることも可能となる。例えば、第Nページ画像の色調等を、第(N−1)ページ画像の色調等に一致させる処理を、N=2,3,…,Mまで実行してもよい。ただし、Mはページ画像の総数である。
In addition, the
画像記憶部13では、袋とじ製本された書物おいて一の紙が二つ折りされて構成される、一方のページの画像である第1ページ画像と、他方のページの画像である第2ページ画像とが記憶される。この第1及び第2ページ画像は、画像補正部12によって蓄積されたものである。
In the
なお、画像記憶部13において記憶されている各ページ画像において、二つ折りされている側の辺が分かるようになっていることが好適である。そのため、例えば、各ページ画像において、二つ折りされている側の辺がどちら側であるのか(すなわち、上側、左側、右側、下側のいずれであるのか)を示す情報がヘッダ等に含まれていてもよく、あらかじめ特定の側が二つ折りされている側であると決められていてもよく、後述するように二つ折りされている線上に両ページにまたがる図形が存在する場合には、各辺の最外縁の画素に含まれる図形を検出することによって二つ折りされている側を検出してもよい。二つ折りされている側を検出する場合には、例えば、各辺の最外縁の画素列において、隣接する画素間の輝度の変化を算出し、辺ごとにその輝度の変化が最大のものから所定の数量(例えば、4個など)の平均値を算出し、その平均値の最も大きい辺が二つ折りされている側であると検出してもよい。二つ折りされている辺上に図形が存在するのであれば、その図形によって輝度の変化の大きい地点が少なくとも2箇所は存在すると考えられるためである。なお、他の方法を用いてもよいことは言うまでもない。
It should be noted that in each page image stored in the
また、各ページ画像には、種々の情報が対応付けられていてもよい。例えば、各ページ画像が撮影された袋とじ製本された書物のページに関する情報が、各ページ画像に対応付けられていてもよい。袋とじ製本された書物のページに関する情報とは、例えば、そのページの番号であってもよく、そのページに対応している他の書物のページ番号であってもよい。後者の場合には、袋とじ製本された書物のページに関する情報は、例えば、他の書物の対応するページ画像へのリンクの情報であってもよい。このように各ページ画像に対応付けられている情報は、例えば、各ページ画像のヘッダ等に含まれていてもよく、あるいは、他の情報として、そのページ画像と紐付けられて管理されていてもよい。また、各ページ画像に対応付けられている情報は、後述する画像生成部15によってページ画像がつなげられて一枚画像が生成された際にも保持されていることが好適である。その際には、一枚画像に対応する情報として保持されていてもよく、あるいは、その一枚画像に含まれるページに対応する情報として保持されていてもよい。後者の方が好適であることは言うまでもない。
Various information may be associated with each page image. For example, information about a page of a book that is bound and bound to a bag in which each page image is captured may be associated with each page image. The information related to the page of a book bound by bookbinding may be, for example, the page number or the page number of another book corresponding to the page. In the latter case, the information related to the page of the book bound and bound may be information on a link to a corresponding page image of another book, for example. Thus, the information associated with each page image may be included in, for example, the header of each page image, or managed as being associated with the page image as other information. Also good. In addition, it is preferable that the information associated with each page image is retained even when the page image is connected by the
画像記憶部13での記憶は、RAM等における一時的な記憶でもよく、あるいは、長期的な記憶でもよい。画像記憶部13は、所定の記録媒体(例えば、半導体メモリや磁気ディスク、光ディスクなど)によって実現されうる。
Storage in the
位置決定部14は、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する。「辺と辺とをつなげる位置」とは、その辺の長さ方向の位置である。位置を決定するとは、例えば、第1ページ画像と第2ページ画像とを二つ折りの線上でつながるようにすることができる情報を特定することであってもよい。情報を特定するとは、例えば、その情報を図示しない記録媒体に蓄積することであってもよく、あるいは、その情報に対応付けてフラグ等を設定することであってもよい。その情報は、例えば、第1ページ画像を第2ページ画像に対してどれだけずらすのかを示す情報(あるいは、第1ページ画像と第2ページ画像とが逆でもよい)であってもよい。その特定する情報は、結果として両ページ画像をつなげるための位置が分かる情報であれば、その内容を問わない。例えば、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺との相対的な位置関係(例えば、相対的なずれの量)を示す情報であってもよく、あるいは、基準となる座標系における、第1ページ画像の二つ折りの側の辺の位置を示す情報と、第2ページ画像の二つ折りの側の辺の位置を示す情報とであってもよい。また、結果として両ページ画像の二つ折りの側の辺の位置関係が分かるのであれば、例えば、各辺上の点と点との位置関係を示す情報が特定されてもよい。
The
位置決定部14は、例えば、一の紙の二つ折りにされた線上(すなわち、二つ折りの折り目の線上)に、両ページにまたがる図形が存在する場合に、第1ページ画像に含まれる図形の部分と、第2ページ画像に含まれる図形の部分とがつながるように、位置の決定を行ってもよい。本実施の形態では、この場合について説明する。なお、両ページにまたがる図形とは、例えば、両ページにまたがる文字などでもよく(この場合には、文字上で二つ折りにされていることになる)、その両ページを含む一の紙の番号を示す図形(ページ数に類似したもの)であってもよく、その他の図形であってもよい。この図形は、例えば、紙の番号のように目的を持って設けられたものであってもよく、文字のように偶然にその場所で二つ折りにされることによって両ページにまたがるようになったものであってもよい。また、位置決定部14は、第1ページ画像の二つ折りの側の辺の端点(例えば、書物の天側の端点、あるいは、書物の地側の端点)と、第2ページ画像の二つ折りの側の辺の端点(例えば、書物の天側の端点、あるいは、書物の地側の端点)とがつながるように、位置の決定を行ってもよい。書物の天とは、書物の三方の小口のうち、上の小口の部分である。また、書物の地とは、書物の三方の小口のうち、下の小口の部分である。小口とは、書物の背を除く三方のことであり、特に背の反対側のみを指すこともある。第1及び第2ページ画像の二つ折りの側の辺の端点を検出する方法としては、例えば、前述のようにして第1及び第2ページに対応する領域のみを切り出した後における、切り出された矩形形状における二つ折りの側の辺に対応する辺の両端点(矩形の頂点)を検出することによって行われてもよい。また、前述の基準点がその端点に設定されている場合には、第1及び第2撮影画像において検出した基準点に対応する第1及び第2ページ画像における点を特定することによって行われてもよい。また、あるページの角の部分が破れているような場合には、そのページの下側のページの角の部分を用いて第1ページ画像や第2ページ画像の二つ折りの側の辺の端点を検出するようにしてもよい。なぜなら、1ページ分だけ下のページであっても、二つ折りの側の辺の端点の位置はほぼ同じであると考えられるからである。
For example, when there is a figure that spans both pages on a line that is folded in two on one paper (that is, on the line of the folded fold), the
本実施の形態による位置決定部14は、上述のように、両ページにまたがる図形を用いて第1及び第2ページ画像をつなげる位置を決定するものであり、図2で示されるように、位置関係変更手段21と、類似情報算出手段22と、類似情報記憶手段23と、位置関係特定手段24とを備える。
As described above, the
位置関係変更手段21は、第1ページ画像の二つ折りの側の辺上の画素列と、第2ページ画像の二つ折りの側の辺上の画素列との辺方向の位置関係を変更する。位置関係変更手段21は、二つ折りの側の辺上のすべての画素列の位置関係を変更してもよく、あるいは、一部の位置関係を変更してもよい。位置関係を変更するとは、両画素列を順番にずらしていくことである。具体的には、位置関係変更手段21は、両画素列のずれを示す量(本実施の形態では「ε」とする)を決定して、図示しない記録媒体に蓄積することであってもよい。 The positional relationship changing means 21 changes the positional relationship in the side direction between the pixel row on the side of the first page image that is folded in two and the pixel row on the side of the second page image that is folded in half. The positional relationship changing means 21 may change the positional relationship of all the pixel columns on the side that is folded in half, or may change a partial positional relationship. Changing the positional relationship means shifting both pixel columns in order. Specifically, the positional relationship changing means 21 may determine an amount indicating “deviation” between both pixel columns (in this embodiment, “ε”) and store it in a recording medium (not shown). .
類似情報算出手段22は、位置関係変更手段21が位置関係を変更した両画素列の類似性に関する情報である類似情報を算出する。類似情報算出手段22は、位置関係変更手段21が位置関係を変更した複数の位置関係の両画素列の類似情報を算出するものとする。好適には、類似情報算出手段22は、位置関係変更手段21が両画素列の位置関係を少しずつ(例えば、1画素ずつ)変更していくごとに、両画素列の類似情報を算出してもよい。なお、位置関係変更手段21が位置関係を変更する前の両ページ画像の位置関係が決まっているような場合には、類似情報算出手段22は、その位置関係における両画素列の類似情報を算出してもよい。
The similarity
なお、類似情報は、その値の大きい方が類似性の高くなる情報であってもよく、その値の小さい方が類似性の高くなる情報であってもよい。すなわち、類似情報は、結果として類似しているかどうかが分かる情報であれば、例えば、類似度であってもよく、相異度であってもよい。また、類似情報算出手段22は、両画素列の輝度に関する情報を用いて類似情報を算出してもよく、両画素列のRGBの各色の階調を用いて類似情報を算出してもよく、両画素列の色に関する情報(例えば、色相や彩度の情報であってもよい)を用いて類似情報を算出してもよい。 Note that the similarity information may be information having a higher similarity when the value is larger, or information having a higher similarity when the value is smaller. That is, the similarity information may be, for example, a similarity degree or a difference degree as long as it is information indicating whether or not they are similar as a result. Further, the similar information calculation means 22 may calculate similar information using information regarding the luminance of both pixel columns, may calculate similar information using gradations of RGB colors of both pixel columns, Similar information may be calculated using information on the colors of both pixel columns (for example, information on hue and saturation).
類似情報算出手段22は、算出した類似情報を類似情報記憶手段23に蓄積する。なお、類似情報算出手段22は、類似情報を、その類似情報を算出した時点における両画素列の位置関係を示す情報(例えば、上述したεの値)に対応付けて蓄積してもよい。
The similar
類似情報記憶手段23では、類似情報算出手段22が蓄積した類似情報が記憶される。前述のように、その類似情報は、類似情報が算出された時点における、第1及び第2ページ画像の二つ折りの側の辺上の両画素列の位置関係を示す情報に対応付けられて記憶されていてもよい。類似情報記憶手段23での記憶は、RAM等における一時的な記憶でもよく、あるいは、長期的な記憶でもよい。類似情報記憶手段23は、所定の記録媒体(例えば、半導体メモリや磁気ディスク、光ディスクなど)によって実現されうる。
The similar
位置関係特定手段24は、類似情報によって類似性が最も高くなる両画素列の位置関係を特定する。類似情報記憶手段23において類似情報と、その類似情報に対応する位置関係を示す情報とが記憶されている場合に、位置関係特定手段24は、例えば、最も高い類似性を示す類似情報(通常、最も大きい値となるか、最も小さい値となる)に対応する位置関係を示す情報を特定してもよい。位置関係を示す情報を特定するとは、例えば、その情報を図示しない記録媒体に蓄積することであってもよく、あるいは、その情報に対応付けてフラグ等を設定することであってもよい。このようにして特定された両画素列の位置関係が、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺とをつなげる位置関係となる。
The positional
画像生成部15は、位置決定部14が決定した位置によって、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された一の紙に対応する画像である一枚画像を生成する。画像生成部15は、例えば、第1ページ画像のファイルと、第2ページ画像のファイルとを用いて、一枚画像の一のファイルを生成してもよい。なお、一枚画像は、結果として第1ページ及び第2ページの両方をそれぞれの二つ折りの側の辺でつなげた画像となるのであれば、データの形式を問わない。一枚画像は、例えば、前述のように一のファイルであってもよく、あるいは、第1ページ画像と、第2ページ画像と、両画像を適切につなげるための情報とから構成されてもよい。両画像を適切につなげるための情報は、両ページ画像をリンクすることによって、両画像を適切につなげる情報であってもよい。
According to the position determined by the
また、画像生成部15は、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺とが、一枚画像の中心線となるように一枚画像を生成してもよい。このようにすることで、その一枚画像をプリントして中心線で二つ折りにすることによって、第1及び第2ページ画像に対応する第1及び第2撮影画像が撮影された書物と同様の書物を製作することができるようになる。なお、この場合に、結果として、画像生成部15が、第1ページ画像の二つ折りの側の辺と、第2ページ画像の二つ折りの側の辺とが、一枚画像の中心線となる一枚画像を生成するのであれば、その過程は問わない。例えば、画像生成部15が第1及び第2ページ画像をつなげた後に、各ページ画像の二つ折りの側の辺が中心線となるように画像を切り抜いたり、あるいは、余白を足したりしてもよい。あるいは、画像補正部12がページ画像を生成する際の切り抜きにおいて、あらかじめ書物の各ページに対応した縦横比や縦横の長さで切り抜いておくことにより、第1及び第2ページ画像の二つ折りの側の辺をつないだ画像において、その画像の中心線上に二つ折りの線が自動的に位置するようにしてもよい。
In addition, the
なお、第1ページ画像と、第2ページ画像との倍率(縮尺)が異なっている場合には、画像生成部15は、第1及び第2ページ画像の一方、あるいは、両方を拡大・縮小して一枚画像を生成してもよい。また、画像生成部15は、第1ページ画像と、第2ページ画像とをつなげることによって、二つ折りの線上において段差が生じる場合には、例えば、一枚画像の形状を、一方のページの辺(二つ折りの辺と直行する辺である)を延ばした矩形にしてもよく、その他の位置における矩形にしてもよい(この処理については、図14を用いて後述する)。
When the magnification (scale) of the first page image is different from that of the second page image, the
画像出力部16は、画像生成部15が生成した一枚画像を出力する。ここで、この出力は、例えば、表示デバイス(例えば、CRTや液晶ディスプレイなど)への表示でもよく、所定の機器への通信回線を介した送信でもよく、プリンタによる印刷でもよく、記録媒体への蓄積でもよく、他の構成要素への引き渡しでもよい。なお、画像出力部16は、出力を行うデバイス(例えば、表示デバイスやプリンタなど)を含んでもよく、あるいは含まなくてもよい。また、画像出力部16は、ハードウェアによって実現されてもよく、あるいは、それらのデバイスを駆動するドライバ等のソフトウェアによって実現されてもよい。
The
なお、画像記憶部13と、類似情報記憶手段23とは、同一の記録媒体によって実現されてもよく、あるいは、別々の記録媒体によって実現されてもよい。前者の場合には、ページ画像を記憶している領域が画像記憶部13となり、類似情報を記憶している領域が類似情報記憶手段23となる。
Note that the
次に、本実施の形態による画像生成装置1の動作について、図3のフローチャートを用いて説明する。
Next, the operation of the
(ステップS101)画像受付部11は、撮影画像を受け付けたかどうか判断する。そして、撮影画像を受け付けた場合には、ステップS102に進み、そうでない場合には、ステップS104に進む。
(Step S101) The
(ステップS102)画像補正部12は、受け付けられた撮影画像について補正を行うことによって、ページ画像を生成する。
(Step S <b> 102) The
(ステップS103)画像補正部12は、生成したページ画像を画像記憶部13に蓄積する。そして、ステップS101に戻る。
(Step S <b> 103) The
(ステップS104)画像生成部15は、一枚画像を生成する処理を行うかどうか判断する。そして、生成する処理を行う場合には、ステップS105に進み、そうでない場合には、ステップS101に戻る。なお、画像生成部15は、例えば、一枚画像を生成する処理を行う旨の指示を画像生成装置1が受け付けた場合に、一枚画像を生成する処理を行うと判断してもよく、その他のタイミングで一枚画像を生成する処理を行うと判断してもよい。
(Step S104) The
(ステップS105)画像生成部15は、画像記憶部13において、組となる2個のページ画像、すなわち、第1ページ画像及び第2ページ画像が記憶されているかどうか判断する。そして、記憶されている場合には、ステップS106に進み、そうでない場合には、一枚画像を生成することはできないのでステップS101に戻る。
(Step S <b> 105) The
(ステップS106)位置決定部14は、一枚画像を生成する元になる第1及び第2ページ画像の二つ折りの側の辺をつなげる位置を決定する。この処理の詳細については、図4のフローチャートを用いて後述する。
(Step S106) The
(ステップS107)画像生成部15は、位置決定部14が決定した位置によって第1及び第2ページ画像をつなげることによって、一枚画像を生成する。
(Step S <b> 107) The
(ステップS108)画像出力部16は、画像生成部15が生成した一枚画像を出力する。そして、ステップS101に戻る。
(Step S108) The
なお、図3のフローチャートにおいて、電源オフや処理終了の割り込みにより処理は終了する。また、画像受付部11が2以上の撮影画像を受け付けた場合には、画像補正部12は、ステップS102,S103の処理を撮影画像の数だけ繰り返して実行するものとする。
In the flowchart of FIG. 3, the process ends when the power is turned off or the process is terminated. When the
また、画像記憶部13において、2個のページ画像の組が2以上存在する場合には、ページ画像の各組についてステップS106,S107の処理を繰り返して2以上の一枚画像を生成し、ステップS108において、その2以上の一枚画像を出力してもよい。
If there are two or more sets of page images in the
図4は、図3のフローチャートにおける位置の決定(ステップS106)の処理の詳細を示すフローチャートである。 FIG. 4 is a flowchart showing details of position determination (step S106) in the flowchart of FIG.
(ステップS201)位置関係変更手段21は、第1及び第2ページ画像における二つ折りの側の辺上のそれぞれの画素列について、図形の範囲を検出する。図形の範囲とは、両ページにまたがっている図形に対応する範囲である。この範囲の検出は、例えば、各画素列において、輝度がしきい値よりも暗い画素を特定し、その特定した画素のうちの最も天の側の画素から、最も地の側の画素までの範囲を検出することによって行ってもよい。そのしきい値は、あらかじめ決められていてもよく、あるいは、各画素列における輝度の平均値や中間値などであってもよい。 (Step S201) The positional relationship changing means 21 detects a figure range for each pixel row on the side of the two-fold side in the first and second page images. The range of a figure is a range corresponding to a figure that spans both pages. The detection of this range is performed by, for example, specifying a pixel whose luminance is darker than a threshold value in each pixel row, and a range from the most celestial pixel to the most ground pixel among the specified pixels. It may be performed by detecting. The threshold value may be determined in advance, or may be an average value or an intermediate value of luminance in each pixel column.
(ステップS202)位置関係変更手段21は、両画素列の位置関係、すなわち、ずれの量(画素数)を示すεを、初期値に設定する。ここで、その初期値とは、ステップS201で検出した第1ページ画像における図形の範囲(これを「第1図形の範囲」と呼ぶ)の天側の端点と、第2ページ画像における図形の範囲(これを「第2図形の範囲」と呼ぶ)の地側の端点とを一致させる場合のずれの量、あるいは、第1図形の範囲の地側の端点と、第2図形の範囲の天側の端点とを一致させる場合のずれの量のどちらであってもよい。 (Step S202) The positional relationship changing means 21 sets the positional relationship between both pixel columns, that is, ε indicating the amount of deviation (number of pixels) to an initial value. Here, the initial value is the top end point of the graphic range (referred to as “first graphic range”) in the first page image detected in step S201, and the graphic range in the second page image. The amount of deviation when matching the ground-side end point of this (referred to as "second graphic range"), or the ground-side end point of the first graphic range and the top side of the second graphic range Either of the amounts of deviation in the case of matching with the end point of may be used.
(ステップS203)類似情報算出手段22は、その時点のεで示される両画素列の位置関係における類似情報を算出する。 (Step S203) The similar information calculation means 22 calculates similar information in the positional relationship between both pixel columns indicated by ε at that time.
(ステップS204)類似情報算出手段22は、その算出した類似情報を、その時点のεの値に対応付けて類似情報記憶手段23に蓄積する。 (Step S204) The similar information calculation means 22 stores the calculated similar information in the similar information storage means 23 in association with the value of ε at that time.
(ステップS205)位置関係変更手段21は、εの値を1だけインクリメント、あるいは、デクリメントする。εが初期値の状態から、第1及び第2図形の範囲の重なりが大きい方に両画素列の位置関係を変更した際に、εが大きくなる場合には、このステップにおいて、εの値を1だけインクリメントする。一方、εが初期値の状態から、第1及び第2図形の範囲の重なりが大きい方に両画素列の位置関係を変更した際に、εが小さくなる場合には、このステップにおいて、εの値を1だけデクリメントする。 (Step S205) The positional relationship changing means 21 increments or decrements the value of ε by 1. If ε increases when the positional relationship between the two pixel columns is changed from the state where ε is the initial value to the one where the overlap between the ranges of the first and second figures is larger, in this step, the value of ε is set to Increment by one. On the other hand, if ε becomes smaller when the positional relationship between the two pixel columns is changed from the state where ε is the initial value to the one where the overlap between the ranges of the first and second figures is larger, in this step, Decrement the value by 1.
(ステップS206)位置関係変更手段21は、その時点のεで示される位置関係において、第1図形の範囲及び第2図形の範囲に重なりがあるかどうか判断する。そして、重なりがある場合には、ステップS203に戻り、そうでない場合には、ステップS207に進む。 (Step S206) The positional relationship changing means 21 determines whether or not there is an overlap between the range of the first graphic and the range of the second graphic in the positional relationship indicated by ε at that time. If there is an overlap, the process returns to step S203, and if not, the process proceeds to step S207.
(ステップS207)位置関係特定手段24は、類似性の最も高いεを特定する。例えば、位置関係特定手段24は、類似情報記憶手段23で記憶されているεと類似情報との組を類似情報の類似性が降順となるようにソートし、そのソート後の最初のεと類似情報との組に含まれるεである類似性の最も高いεを特定してもよい。そして、図3のフローチャートに戻る。
(Step S207) The positional
なお、図4のフローチャートにおいて、図形の範囲を検出した上で類似情報の算出等を行う場合について説明したが、図形の範囲を検出しないで、類似情報の算出等を行ってもよい。その場合には、各画素列のすべての画素を用いて類似情報の算出等を行うことになる。 In the flowchart of FIG. 4, the case where the similar information is calculated after detecting the graphic range has been described. However, the similar information may be calculated without detecting the graphic range. In that case, similar information is calculated using all the pixels in each pixel column.
次に、本実施の形態による画像生成装置1の動作について、具体例を用いて説明する。
図5は、袋とじ製本された書物30の一例を示す図である。図5で示されるように、その書物は、一の紙が二つ折りされて袋状になった方を小口として背側を綴じる方法である。例えば、和綴じの書物や、簡易製本の書物などにおいてみることができる。
Next, the operation of the
FIG. 5 is a diagram illustrating an example of a
まず、ユーザは、図6で示されるように、書物30を開いた状態でページごとにデジタルカメラ31で撮影していく。その撮影の際に、図7で示されるように、各ページの上に5個の基準図形の表示された透明シート40を載せて撮影するものとする。各基準図形の十字の交わる点が基準点である。なお、図7において、第1ページ41に記載されている文字等は説明の便宜上、省略している。また、それらの基準図形は、図7で示されるように、各ページにおいてできるだけ均等に配置されるようにすることが好適である。また、図7において、上記特許文献1に記載されているように、各基準図形上に半透明基準点位置認識体をおくことによって、基準図形を認識しやすいようにしてもよい。その半透明基準点位置認識体は、例えば、半透明のカラーマークであってもよい。
First, as shown in FIG. 6, the user takes a picture with the
デジタルカメラ31での撮影が終了すると、ユーザは、デジタルカメラ31からメモリを取り出し、そのメモリを画像生成装置1に装着する。すると、画像受付部11は、そのメモリから撮影された第1撮影画像「IMG_00102」、第2撮影画像「IMG_00103」を読み出し、画像補正部12に渡す(ステップS101)。なお、この具体例では、説明の便宜上、2個の撮影画像のみが受け付けられた場合について説明する。
When shooting with the
また、この具体例では、撮影画像のファイル名が若いものから順番に、2個単位で組になっているものとする。また、その2個単位の撮影画像のうち、ファイル名が若い方の撮影画像では、二つ折りの側が左であり、もう一方の撮影画像では、二つ折りの側が右であるとする。 Further, in this specific example, it is assumed that the file names of captured images are grouped in units of two in order from the youngest. Further, of the two units of captured images, it is assumed that the half-folded side is left in the photographed image with the younger file name, and the half-folded side is right in the other captured image.
画像補正部12は、第1撮影画像の基準点を検出し、その5個の基準点を用いた補正を行うことによって、撮影方向に関する補正を行う。その結果、図8で示されるような画像を得ることができる。また、画像補正部12は、前述のようにして、ページ領域のみを切り抜いて図9で示されるような第1ページ画像43を生成する(ステップS102)。そして、その第1ページ画像43を画像記憶部13に蓄積する(ステップS103)。なお、画像補正部12は、第2ページの第2撮影画像についても同様の処理を行い(ステップS102)、図10で示される第2ページ画像44を画像記憶部13に蓄積する(ステップS103)。なお、図9の第1ページ画像43の二つ折りの側の辺(左側の辺)に存在する図形と、図10の第2ページ画像44の二つ折りの側の辺(右側の辺)に存在する図形とは、第1及び第2ページ画像43,44によって構成される一の紙の二つ折りにされた線上に表示されている番号の図形、すなわち、漢数字の二を丸で囲った図形である。
The
次に、ユーザが、マウスやキーボードなどの入力デバイスを操作することにより、一枚画像を生成する処理を実行する旨の指示を入力したとする。すると、画像生成部15は、一枚画像を生成するタイミングであると判断し(ステップS104)、画像記憶部13に組となる2個のページ画像が存在するかどうか判断する(ステップS105)。この場合には、第1及び第2ページ画像43,44が記憶されているため、画像生成部15は、組となる2個のページ画像が存在すると判断し、位置決定部14に位置を決定する処理を実行するように指示する。
Next, it is assumed that the user inputs an instruction to execute a process for generating a single image by operating an input device such as a mouse or a keyboard. Then, the
その指示に応じて、位置決定部14は、位置を決定する処理を実行する(ステップS106)。なお、第1ページ画像43の二つ折りの側の辺上の画素列と、第2ページ画像44の二つ折りの側の辺上の画素列とが図11で示されるようになっていたとする。なお、説明の便宜上、画素数が非常に少なく、また、各画素が白黒の二値である場合について示しているが、本来はもっと多くの画素が各画素列に含まれている。また、各画素は、階調を有していてもよく、あるいは、カラーであってもよい(例えば、RGBのそれぞれについての階調を有していてもよい。
In response to the instruction, the
まず、位置決定部14の位置関係変更手段21は、各画素列について、図形の範囲を検出する(ステップS201)。具体的には、位置関係変更手段21は、各画素列について、地側の端点から順番に黒の画素であるかどうか判断していき、黒の画素となった場合に、その画素を図形の範囲の地側の端点に設定する。ある画素を図形の範囲の地側の端点に設定するとは、その画素を特定可能な情報(アドレス)を、図示しない記録媒体の地側の端点を特定する情報を格納する領域に蓄積することであってもよい。また、位置関係変更手段21は、さらに天側に向かって順番に黒の画素であるかどうか判断していき、黒の画素となった場合に、その画素を図形の範囲の天側の端点に設定する。なお、その後にもさらに天側に向かって順番に判断を続けていき、黒の画素が存在した場合には、その画素を図形の範囲の天側の端点に設定し直す。そして、天側の端点の画素までこの判断を実行する。このようにして、図形の範囲の地側の端点と天側の端点とを特定することができ、その地側の端点から天側の端点までが図形の範囲となる。図11では、図中に記載しているように図形の範囲が検出されたものとする。
First, the positional
なお、この具体例では、第1ページ画像43の画素列が、第2ページ画像44の画素列に対して天側(図11の右側)にずれている画素数をεとする。また、この具体例では、両図形の範囲が重なりを有する場合におけるεの最大値を初期値とする。したがって、位置関係変更手段21は、第1ページ画像43の画素列の地側の端点と、第2ページ画像44の画素列の天側の端点とが重なる状態でのεの値「5」を算出し、その値をεの初期値に設定する(ステップS202)。
In this specific example, the pixel number of the first page image 43 shifted from the pixel column of the second page image 44 to the top (right side in FIG. 11) is ε. In this specific example, the maximum value of ε when the ranges of both figures have an overlap is set as the initial value. Therefore, the positional
また、この具体例では、類似情報として、相異度を用いるものとする。すなわち、類似情報の示す値の小さい方が類似性が高いことになる。相異度は、次式で算出するものとする。
相異度=Σi{(L1)i−(L2)i}2
In this specific example, the degree of difference is used as the similarity information. That is, the smaller the value indicated by the similar information, the higher the similarity. The difference degree is calculated by the following equation.
Degree of difference = Σ i {(L1) i − (L2) i } 2
なお、iは、その時点のεの値だけずれた状態での両図形の範囲の地側の端点を1として、天側に1画素ずれるごとに1だけインクリメントされる値である。このiによって画素の位置が指定されることになる。したがって、和(Σ)におけるiの上限は、その時点のεの値だけずれた状態での両図形の範囲の天側の端点に対応する値となる。また、(L1)iは、iで特定される画素での第1ページ画像43の画素列の値である。黒の画素であれば、
(L1)i=1となり、白の画素であれば、(L1)i=0となるものとする。また、(L2)iは、iで特定される画素での第2ページ画像44の画素列の値である。黒の画素であれば、
(L2)i=1となり、白の画素であれば、(L2)i=0となるものとする。また、図形の範囲外における(L1)i、(L2)iの値は「0」であるとする。
Note that i is a value that is incremented by 1 every time one pixel is shifted to the top, with the end point on the ground side of the range of both figures in a state shifted by the value of ε at that time as 1. This i designates the position of the pixel. Therefore, the upper limit of i in the sum (Σ) is a value corresponding to the top end point of the range of both figures in a state shifted by the value of ε at that time. Further, (L1) i is the value of the pixel column of the first page image 43 at the pixel specified by i. If it ’s a black pixel,
(L1) i = 1, and if it is a white pixel, (L1) i = 0. (L2) i is the value of the pixel column of the second page image 44 at the pixel specified by i. If it ’s a black pixel,
(L2) i = 1, and if it is a white pixel, (L2) i = 0. Further, it is assumed that the values of (L1) i and (L2) i outside the figure range are “0”.
すると、図12で示されるように、εが初期値「5」に設定されているときには、類似情報算出手段22は、類似情報である相異度「6」を算出し(ステップS203)、ε=5に対応付けて類似情報記憶手段23に蓄積する(ステップS204)。また、位置関係変更手段21は、εを1だけデクリメントし(ステップS205)、その場合にも図形の範囲に重なりがあると判断する(ステップS206)。具体的には、第1ページ画像43の図形の範囲の天側の端点、あるいは、地側の端点が、第2ページ画像44の図形の範囲のいずれかの画素と同じ位置となる場合に、重なりがあると判断し、そうでない場合に、重なりがないと判断してもよい。第1ページ画像43と、第2ページ画像とは逆であってもよい。 Then, as shown in FIG. 12, when ε is set to the initial value “5”, the similar information calculation means 22 calculates the degree of difference “6” which is similar information (step S203). = 5 and stored in the similar information storage unit 23 (step S204). Further, the positional relationship changing means 21 decrements ε by 1 (step S205), and in that case also determines that there is an overlap in the figure range (step S206). Specifically, when the top end point of the graphic range of the first page image 43 or the end point of the ground side is at the same position as any pixel in the graphic range of the second page image 44, It may be determined that there is an overlap, and if not, it may be determined that there is no overlap. The first page image 43 and the second page image may be reversed.
その後、図12で示されるように、各位置関係において相異度である類似情報の算出や、蓄積、εのデクリメントが繰り返して実行されることになる(ステップS203〜S206)。そして最終的に、類似情報記憶手段23では、図13で示される情報が記憶されるようになったとする。
Thereafter, as shown in FIG. 12, the calculation, accumulation, and decrement of similarity information that is the degree of difference in each positional relationship are repeatedly executed (steps S203 to S206). Finally, it is assumed that the information shown in FIG. 13 is stored in the similar
位置関係特定手段24は、図13の情報において、各レコードを類似情報(相異度)の昇順となるように、すなわち、類似性の降順となるようにソートし、類似情報(相異度)の最も小さいレコードの位置関係を示すε=「−3」を図示しない記録媒体に蓄積する(ステップS207)。すると、画像生成部15は、そのεの値「−3」を読み出し、図9の第1ページ画像43と、図10の第2ページ画像44とを、第1ページ画像を地側に3画素分だけ移動させた位置でつなぎ合わせる(ステップS107)。なお、そのままつなぎ合わせると、つなぎ合わせた後の画像は、矩形ではなく、辺上で段差のある図形となってしまう。したがって、画像生成部15は、前述のように、第1及び第2ページ画像43,44をつなぎ合わせた後の画像を矩形にしてもよい。その際には、図14の一点鎖線で示されるように、第1ページ画像43に合わせて矩形を設定してもよく、図14の二点鎖線で示されるように、第2ページ画像44に合わせて矩形を設定してもよく、図14の破線で示されるように、第1ページ画像43と、第2ページ画像44との間に矩形を設定してもよい。なお、図14において、説明の便宜上、実線や破線、鎖線をずらして書いているが、本来は少なくとも一部(例えば、縦線の部分)が一致しているものである。また、そのように全体を矩形に設定した後の一枚画像45は、図15で示されるようになる。その図15における破線は、二つ折りの辺の位置を示す便宜上のものであり、実際には、この破線が一枚画像45に存在しなくてもよい。
In the information of FIG. 13, the positional
画像出力部16は、その図15で示される一枚画像45を出力する(ステップS108)。その出力は、例えば、プリントアウトであってもよい。そのプリントアウトにおいて、一枚画像45の大きさと、プリント用紙との大きさが合わない場合には、第1及び第2ページ画像43,44の二つ折りの側の辺に対応する一枚画像45の中心線が、プリント用紙の中心線と一致するように、プリント用紙に合わせた自動拡大・縮小と、自動中央配置とを行うようにしてもよい。
The
なお、この具体例で説明した類似情報は一例であって、それ以外の方法によって類似情報を算出してもよいことは言うまでもない。また、この具体例において、第1及び第2ページ画像の二つ折りの側の辺上の各画素列を用いた類似情報の算出を行う際に、いずれか一方の画素列を拡大・縮小して再サンプリングし、その再サンプリングした画素列をも用いて類似情報を算出してもよい。その場合には、拡大・縮小された画素列を用いて算出された類似情報と、拡大・縮小を行わないで算出された類似情報とのうちから最も類似性の高い類似情報を特定し、その類似情報に対応する位置関係、拡大・縮小の倍率を用いて、第1及び第2ページ画像43,44をつなげる際の位置と、一方のページ画像の拡大・縮小の倍率を決定してもよい。 Note that the similar information described in this specific example is merely an example, and it goes without saying that the similar information may be calculated by other methods. In this specific example, when calculating similar information using each pixel column on the side of the first and second page images that is folded in half, either one of the pixel columns is enlarged or reduced. Similar information may be calculated by resampling and using the resampled pixel column. In that case, the similar information having the highest similarity is identified from the similar information calculated using the enlarged / reduced pixel column and the similar information calculated without performing the enlargement / reduction. The position when connecting the first and second page images 43 and 44 and the enlargement / reduction magnification of one page image may be determined using the positional relationship corresponding to the similar information and the enlargement / reduction magnification. .
以上のように、本実施の形態による画像生成装置1によれば、袋とじ製本された書物において表と裏に存在する2個のページ画像を適切につなげた画像である一枚画像を生成することができる。その結果、例えば、その一枚画像をプリントアウトすることによって、元の袋とじ製本された書物とまったく同じ複製品(レプリカ)を作成することも可能となる。また、袋とじ製本される前の各紙を完全に復元することができるため、それらの各紙が全体としてどのようなバランスで記載がなされていたのか、どのようなレイアウトになっていたのかなどを知ることができ、古文書等の研究の進展に資することになると考えられる。
As described above, according to the
また、デジタルカメラ等で撮影した撮影画像からページ画像を生成することによって、簡易な装置によってページ画像を得ることができるようになる。例えば、古文書や公文書、旧土地台帳などはたとえ閲覧が許可されていたとしても、一般に持ち出し禁止であることが多い。また、そのような閲覧が許可される場所では、フラットヘッドスキャナなどを設置するスペースを確保できないことが多い。したがって、フラットヘッドスキャナなどを持ち込むことは困難であり、デジタルカメラ等によって簡易に撮影画像を得ることができることは作業者の利便性を向上させることになる。また、そのような古文書などは、虫食いや紙の変質等により、非常にもろくなっており、フラットヘッドスキャナ上において平面状に延ばすことが困難なこともある。そのような場合であっても、デジタルカメラ等による撮影は行うことができうるものであり、書物を傷めることなく撮影画像を得ることもできうる。また、糸綴じや無線綴じなどのように、容易に解体することが困難である場合や、書物の性質上、解体することが許可され得ない場合にも、フラットヘッドスキャナを用いずに、各ページに対応するページ画像を容易に得ることができるようになる。 Further, by generating a page image from a photographed image taken with a digital camera or the like, the page image can be obtained with a simple device. For example, old documents, official documents, old land ledgers and the like are generally prohibited from being taken out even if they are permitted to be browsed. Moreover, in such a place where browsing is permitted, it is often impossible to secure a space for installing a flat head scanner or the like. Therefore, it is difficult to bring in a flat head scanner or the like, and a photographed image can be easily obtained with a digital camera or the like, which improves the convenience for the operator. Further, such old documents are very fragile due to worm-eaten and paper alteration, and it may be difficult to extend them flat on a flat head scanner. Even in such a case, photographing with a digital camera or the like can be performed, and a photographed image can be obtained without damaging the book. Also, if it is difficult to disassemble easily, such as thread binding or wireless binding, or if it is not permitted to disassemble due to the nature of the book, A page image corresponding to the page can be easily obtained.
なお、袋とじ製本された書物を撮影するカメラは、通常、デジタルスチルカメラであることが好適であるが、そうでなくてもよい。例えば、動画を撮影するデジタルビデオカメラで撮影を行い、その動画のうちの1フレームを一の撮影画像として用いてもよい。また、銀塩カメラで撮影を行い、フィルムに記録された画像や、印画紙に焼かれた画像をスキャナなどの光学的機器を用いてデジタル化したものを撮影画像として用いてもよい。 Note that a camera that captures a book that has been bound into a bag is usually a digital still camera, but this need not be the case. For example, a digital video camera that shoots a moving image may be used, and one frame of the moving image may be used as one captured image. Alternatively, a photograph taken with a silver salt camera and an image recorded on a film or an image burned on a photographic paper digitized using an optical device such as a scanner may be used as a photographed image.
また、本実施の形態では、位置決定部14が図2で示される構成を有しており、第1及び第2ページ画像の二つ折りの側の辺上の各画素列の類似性を用いて位置関係を決定する場合について説明したが、そうでなくてもよい。例えば、第1及び第2ページ画像の二つ折りの側の辺上の各画素列のそれぞれにおいて、前述のようにして図形の範囲を検出し、その検出された図形の範囲の天側及び/または地側の端点が一致するように、両画素列の位置関係を決定してもよい。また、位置決定部14は、本実施の形態で説明した以外の方法によって第1及び第2ページ画像の二つ折りの側の辺をつなげる位置を決定してもよいことは言うまでもない。
In the present embodiment, the
また、本実施の形態では、カメラで撮影された撮影画像が受け付けられ、補正されることによってページ画像が生成される場合について説明したが、ページ画像が画像記憶部13で記憶されるようになる過程は問わない。例えば、袋とじ製本された書物の各ページがフラットヘッドスキャナ等によって読み取られた読み取り画像からページ画像が生成され、画像記憶部13に蓄積されてもよい。その場合に、読み取り画像からページ画像の部分を切り抜く処理を行ってもよく、あるいは、あらかじめページの部分のみを読み取るように設定している場合には、読み取り画像がそのままページ画像であってもよい。その場合には、画像生成装置1は、画像受付部11や画像補正部12を備えていなくてもよい。また、そのようなページ画像が画像記憶部13で記憶される過程は問わない。例えば、記録媒体を介してページ画像が画像記憶部13で記憶されるようになってもよく、通信回線等を介して送信されたページ画像が画像記憶部13で記憶されるようになってもよく、あるいは、フラットヘッドスキャナ等から入力されたページ画像が画像記憶部13で記憶されるようになってもよい。
Further, in the present embodiment, a case has been described in which a captured image captured by a camera is received and corrected to generate a page image, but the page image is stored in the
また、1枚の紙が二つ折りにされている場合において、厳密には、その二つ折りにされている線上に、第1及び第2ページと直行する面(あるいは線状の領域)が微小ながら存在することになる。したがって、画像生成部15が第1及び第2ページ画像をつなげる際に、その二つ折りにされている線状の領域の補正を行うようにしてもよい。例えば、画像生成部15は、二つ折りにされている線状の領域に対応する画素数分の画素列であって、第1ページ画像の二つ折りの側の辺上の画素列、または第2ページ画像の二つ折りの側の辺上の画素列を、第1ページ画像及び第2ページ画像の間に付け足して第1及び第2ページ画像をつなげるようにしてもよい。二つ折りにされている線状の領域に対応する画素数(画像の解像度にも依存するが、例えば、1〜5画素程度であってもよい)は、あらかじめ決められており、その値が図示しない記録媒体において記憶されており、画像生成部15は、その値を読み出すことによって上記処理を行うようにしてもよい。このようにすることで、一枚画像を、袋とじ製本された書物に含まれていた紙により近いものにすることができうる。
Further, in the case where a sheet of paper is folded in half, strictly speaking, the surface (or linear region) that is perpendicular to the first and second pages is minute on the folded line. Will exist. Therefore, when the
また、本実施の形態において、画像補正部12は、ページ画像の背景色を除去する処理を行ってもよい。画像補正部12は、例えば、各ページ画像の各画素の輝度についてしきい値との比較を行い、輝度がしきい値よりも明るい場合には、その画素の階調や色の情報をなくしてもよく、あらかじめ決められている背景色やいずれかのページ画像から取得した背景色に設定してもよく、あるいは、その画素についてα値(透過度情報)を完全な透明(無色)に設定してもよい。この背景色の補正は、一枚画像を構成する2個のページ画像に対して行ってもよく、一の書物から取得された複数のページ画像に対して行ってもよい。前者の場合には、一枚画像の両ページにおいて背景色を統一することができ、後者の場合には、一の書物に対応する複数の一枚画像において背景色を統一することができる。その後者の場合には、いずれかのページについてのみ高精度での撮影を行い、その撮影画像から背景色に関する情報を取り込んで背景色を補正するようにしてもよい。ここで、背景色に関する情報は、例えば、輝度、色相、彩度などのうちの任意の1以上の情報であってもよい。
In the present embodiment, the
また、上記実施の形態では、画像生成装置1がスタンドアロンである場合について説明したが、画像生成装置1は、スタンドアロンの装置であってもよく、サーバ・クライアントシステムにおけるサーバ装置であってもよい。後者の場合には、出力部や受付部は、通信回線を介して入力を受け付けたり、情報を出力したりしてもよい。
In the above embodiment, the case where the
また、上記実施の形態において、各処理または各機能は、単一の装置または単一のシステムによって集中処理されることによって実現されてもよく、あるいは、複数の装置または複数のシステムによって分散処理されることによって実現されてもよい。 In the above embodiment, each process or each function may be realized by centralized processing by a single device or a single system, or may be distributedly processed by a plurality of devices or a plurality of systems. It may be realized by doing.
また、上記実施の形態において、各構成要素が実行する処理に関係する情報、例えば、各構成要素が受け付けたり、取得したり、選択したり、生成したり、送信したり、受信したりした情報や、各構成要素が処理で用いるしきい値や数式、アドレス等の情報等は、上記説明で明記していない場合であっても、図示しない記録媒体において、一時的に、あるいは長期にわたって保持されていてもよい。また、その図示しない記録媒体への情報の蓄積を、各構成要素、あるいは、図示しない蓄積部が行ってもよい。また、その図示しない記録媒体からの情報の読み出しを、各構成要素、あるいは、図示しない読み出し部が行ってもよい。 In the above embodiment, information related to processing executed by each component, for example, information received, acquired, selected, generated, transmitted, or received by each component In addition, information such as threshold values, mathematical formulas, addresses, etc. used by each component in processing is retained temporarily or over a long period of time on a recording medium (not shown) even when not explicitly stated in the above description. It may be. Further, the storage of information in the recording medium (not shown) may be performed by each component or a storage unit (not shown). Further, reading of information from the recording medium (not shown) may be performed by each component or a reading unit (not shown).
また、上記実施の形態において、各構成要素等で用いられる情報、例えば、各構成要素が処理で用いるしきい値やアドレス、各種の設定値等の情報がユーザによって変更されてもよい場合には、上記説明で明記していない場合であっても、ユーザが適宜、それらの情報を変更できるようにしてもよく、あるいは、そうでなくてもよい。それらの情報をユーザが変更可能な場合には、その変更は、例えば、ユーザからの変更指示を受け付ける図示しない受付部と、その変更指示に応じて情報を変更する図示しない変更部とによって実現されてもよい。その図示しない受付部による変更指示の受け付けは、例えば、入力デバイスからの受け付けでもよく、通信回線を介して送信された情報の受信でもよく、所定の記録媒体から読み出された情報の受け付けでもよい。 In the above embodiment, when information used by each component, for example, information such as a threshold value, an address, and various setting values used by each component may be changed by the user Even if it is not specified in the above description, the user may be able to change the information as appropriate, or it may not be. If the information can be changed by the user, the change is realized by, for example, a not-shown receiving unit that receives a change instruction from the user and a changing unit (not shown) that changes the information in accordance with the change instruction. May be. The change instruction received by the receiving unit (not shown) may be received from an input device, information received via a communication line, or information read from a predetermined recording medium, for example. .
また、上記実施の形態において、画像生成装置1に含まれる2以上の構成要素が通信デバイスや入力デバイス等を有する場合に、2以上の構成要素が物理的に単一のデバイスを有してもよく、あるいは、別々のデバイスを有してもよい。
In the above embodiment, when two or more constituent elements included in the
また、上記実施の形態において、各構成要素は専用のハードウェアにより構成されてもよく、あるいは、ソフトウェアにより実現可能な構成要素については、プログラムを実行することによって実現されてもよい。例えば、ハードディスクや半導体メモリ等の記録媒体に記録されたソフトウェア・プログラムをCPU等のプログラム実行部が読み出して実行することによって、各構成要素が実現され得る。なお、上記実施の形態における画像生成装置1を実現するソフトウェアは、以下のようなプログラムである。つまり、このプログラムは、コンピュータを、袋とじ製本された書物おいて一の紙が二つ折りされて構成される、一方のページの画像である第1ページ画像と、他方のページの画像である第2ページ画像とが記憶される画像記憶部で記憶されている前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する位置決定部、前記位置決定部が決定した位置によって、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された前記一の紙に対応する画像である一枚画像を生成する画像生成部、前記画像生成部が生成した一枚画像を出力する画像出力部、として機能させるためのプログラムである。
In the above embodiment, each component may be configured by dedicated hardware, or a component that can be realized by software may be realized by executing a program. For example, each component can be realized by a program execution unit such as a CPU reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. Note that the software that implements the
また、このプログラムにおいて、コンピュータを、前記第1ページ画像に対応するページ上に基準点を配置して撮影された画像である第1撮影画像と、前記第2ページ画像に対応するページ上に基準点を配置して撮影された画像である第2撮影画像とを受け付ける画像受付部、前記画像受付部が受け付けた第1撮影画像及び第2撮影画像を、前記基準点を用いて撮影方向に関する補正を行うことによって、前記第1ページ画像及び前記第2ページ画像を生成し、前記画像記憶部に蓄積する画像補正部、としてさらに機能させてもよい。 Further, in this program, the computer is configured such that a reference is placed on a first photographed image that is a photograph taken by arranging a reference point on a page corresponding to the first page image, and on a page corresponding to the second page image. An image receiving unit that receives a second captured image that is an image captured by arranging points, and a correction related to the capturing direction of the first captured image and the second captured image received by the image receiving unit using the reference point By performing the above, the first page image and the second page image may be generated and further functioned as an image correction unit that accumulates in the image storage unit.
なお、上記プログラムにおいて、上記プログラムが実現する機能には、ハードウェアでしか実現できない機能は含まれない。例えば、情報を受け付ける受付部や、情報を出力する出力部などにおけるモデムやインターフェースカードなどのハードウェアでしか実現できない機能は、上記プログラムが実現する機能には少なくとも含まれない。 In the program, the functions realized by the program do not include functions that can be realized only by hardware. For example, functions that can be realized only by hardware such as a modem and an interface card in a reception unit that receives information and an output unit that outputs information are not included in at least the functions realized by the program.
また、このプログラムは、サーバなどからダウンロードされることによって実行されてもよく、所定の記録媒体(例えば、CD−ROMなどの光ディスクや磁気ディスク、半導体メモリなど)に記録されたプログラムが読み出されることによって実行されてもよい。また、このプログラムは、プログラムプロダクトを構成するプログラムとして用いられてもよい。 Further, this program may be executed by being downloaded from a server or the like, and a program recorded on a predetermined recording medium (for example, an optical disc such as a CD-ROM, a magnetic disc, a semiconductor memory, etc.) is read out. May be executed. Further, this program may be used as a program constituting a program product.
また、このプログラムを実行するコンピュータは、単数であってもよく、複数であってもよい。すなわち、集中処理を行ってもよく、あるいは分散処理を行ってもよい。 Further, the computer that executes this program may be singular or plural. That is, centralized processing may be performed, or distributed processing may be performed.
図16は、上記プログラムを実行して、上記実施の形態による画像生成装置1を実現するコンピュータの外観の一例を示す模式図である。上記実施の形態は、コンピュータハードウェア及びその上で実行されるコンピュータプログラムによって実現されうる。
FIG. 16 is a schematic diagram illustrating an example of an external appearance of a computer that executes the program and realizes the
図16において、コンピュータシステム900は、CD−ROM(Compact Disk Read Only Memory)ドライブ905、FD(Floppy(登録商標) Disk)ドライブ906を含むコンピュータ901と、キーボード902と、マウス903と、モニタ904とを備える。
In FIG. 16, a
図17は、コンピュータシステム900の内部構成を示す図である。図17において、コンピュータ901は、CD−ROMドライブ905、FDドライブ906に加えて、MPU(Micro Processing Unit)911と、ブートアッププログラム等のプログラムを記憶するためのROM912と、MPU911に接続され、アプリケーションプログラムの命令を一時的に記憶すると共に、一時記憶空間を提供するRAM(Random Access Memory)913と、アプリケーションプログラム、システムプログラム、及びデータを記憶するハードディスク914と、MPU911、ROM912等を相互に接続するバス915とを備える。なお、コンピュータ901は、LANへの接続を提供する図示しないネットワークカードを含んでいてもよい。
FIG. 17 is a diagram showing an internal configuration of the
コンピュータシステム900に、上記実施の形態による画像生成装置1の機能を実行させるプログラムは、CD−ROM921、またはFD922に記憶されて、CD−ROMドライブ905、またはFDドライブ906に挿入され、ハードディスク914に転送されてもよい。これに代えて、そのプログラムは、図示しないネットワークを介してコンピュータ901に送信され、ハードディスク914に記憶されてもよい。プログラムは実行の際にRAM913にロードされる。なお、プログラムは、CD−ROM921やFD922、またはネットワークから直接、ロードされてもよい。
A program that causes the
プログラムは、コンピュータ901に、上記実施の形態による画像生成装置1の機能を実行させるオペレーティングシステム(OS)、またはサードパーティプログラム等を必ずしも含んでいなくてもよい。プログラムは、制御された態様で適切な機能(モジュール)を呼び出し、所望の結果が得られるようにする命令の部分のみを含んでいてもよい。コンピュータシステム900がどのように動作するのかについては周知であり、詳細な説明は省略する。
The program does not necessarily include an operating system (OS) or a third-party program that causes the
また、本発明は、以上の実施の形態に限定されることなく、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。 Further, the present invention is not limited to the above-described embodiments, and various modifications are possible, and it goes without saying that these are also included in the scope of the present invention.
以上より、本発明による画像生成装置等によれば、袋とじ製本された書物を構成する一の紙に対応する画像を生成することができるという効果が得られ、例えば、袋とじ製本された古文書や旧土地台帳などのレプリカを作成するために用いることができる。 As described above, according to the image generating apparatus and the like according to the present invention, an effect that it is possible to generate an image corresponding to one piece of paper constituting a book bound by a book is obtained. It can be used to create a replica of a document or old land ledger.
1 画像生成装置
11 画像受付部
12 画像補正部
13 画像記憶部
14 位置決定部
15 画像生成部
16 画像出力部
21 位置関係変更手段
22 類似情報算出手段
23 類似情報記憶手段
24 位置関係特定手段
DESCRIPTION OF
Claims (8)
前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する位置決定部と、
前記位置決定部が決定した位置によって、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された前記一の紙に対応する画像である一枚画像を生成する画像生成部と、
前記画像生成部が生成した一枚画像を出力する画像出力部と、を備えた画像生成装置。 An image in which a first page image, which is an image of one page, and a second page image, which is an image of the other page, are stored in a book that is bound in a bag. A storage unit;
A position determination unit that determines a position at which the side of the first page image that is folded in two and the side of the second page image that is folded in two are connected;
According to the position determined by the position determination unit, the one sheet of paper that has been bound into a bag is connected to the side of the first page image that is folded in half and the side of the second page image that is folded in half. An image generation unit that generates a single image that is an image corresponding to
An image generation apparatus comprising: an image output unit that outputs a single image generated by the image generation unit.
前記位置決定部は、前記第1ページ画像に含まれる前記図形の部分と、前記第2ページ画像に含まれる前記図形の部分とがつながるように、位置の決定を行う、請求項1または請求項2記載の画像生成装置。 On the folded line of the one paper, there is a figure that spans both pages,
The position determination unit determines a position so that a part of the graphic included in the first page image and a part of the graphic included in the second page image are connected to each other. 2. The image generating apparatus according to 2.
前記第1ページ画像の二つ折りの側の辺上の画素列と、前記第2ページ画像の二つ折りの側の辺上の画素列との辺方向の位置関係を変更する位置関係変更手段と、
前記位置関係変更手段が位置関係を変更した両画素列の類似性に関する情報である類似情報を算出する類似情報算出手段と、
前記類似情報によって類似性が最も高くなる両画素列の位置関係を特定する位置関係特定手段と、を備え、
前記位置関係特定手段によって特定された両画素列の位置関係が、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置関係となる、請求項3記載の画像生成装置。 The position determination unit
A positional relationship changing means for changing a positional relationship in a side direction between the pixel row on the side of the first page image folded in two and the pixel row on the side of the second page image folded in two;
Similarity information calculation means for calculating similarity information that is information relating to the similarity between both pixel columns whose positional relationship has been changed by the positional relationship change means;
A positional relationship specifying means for specifying a positional relationship between both pixel columns having the highest similarity according to the similar information,
The positional relationship between the two pixel columns specified by the positional relationship specifying means is a positional relationship connecting the side of the first page image folded in two and the side of the second page image folded in half. The image generation apparatus according to claim 3.
前記画像受付部が受け付けた第1撮影画像及び第2撮影画像を、前記基準点を用いて撮影方向に関する補正を行うことによって、前記第1ページ画像及び前記第2ページ画像を生成し、前記画像記憶部に蓄積する画像補正部と、をさらに備えた、請求項1から請求項5のいずれか記載の画像生成装置。 A first captured image that is an image captured by placing a reference point on a page corresponding to the first page image, and an image that is captured by arranging a reference point on a page corresponding to the second page image An image receiving unit that receives the second captured image,
The first page image and the second page image are generated by correcting the first shot image and the second shot image received by the image receiving unit with respect to the shooting direction using the reference point, and the image The image generation apparatus according to claim 1, further comprising: an image correction unit that accumulates in the storage unit.
前記位置決定部が、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する位置決定ステップと、
前記画像生成部が、前記位置決定ステップで決定した位置によって、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された前記一の紙に対応する画像である一枚画像を生成する画像生成ステップと、
前記画像出力部が、前記画像生成ステップで生成した一枚画像を出力する画像出力ステップと、を備えた画像生成方法。 An image in which a first page image, which is an image of one page, and a second page image, which is an image of the other page, are stored in a book that is bound in a bag. An image generation method processed using a storage unit, a position determination unit, an image generation unit, and an image output unit,
A position determining step for determining a position at which the position determining unit connects the side of the first page image folded in two and the side of the second page image folded in two;
According to the position determined by the position determination step, the image generation unit connects the side of the first page image that is folded in two and the side of the second page image that is folded in two, thereby binding the booklet. An image generation step of generating a single image that is an image corresponding to the one paper that has been performed;
An image generation method comprising: an image output step in which the image output unit outputs a single image generated in the image generation step.
袋とじ製本された書物おいて一の紙が二つ折りされて構成される、一方のページの画像である第1ページ画像と、他方のページの画像である第2ページ画像とが記憶される画像記憶部で記憶されている前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とをつなげる位置を決定する位置決定部、
前記位置決定部が決定した位置によって、前記第1ページ画像の二つ折りの側の辺と、前記第2ページ画像の二つ折りの側の辺とつなげることによって、袋とじ製本された前記一の紙に対応する画像である一枚画像を生成する画像生成部、
前記画像生成部が生成した一枚画像を出力する画像出力部、として機能させるためのプログラム。 Computer
An image in which a first page image, which is an image of one page, and a second page image, which is an image of the other page, are stored in a book that is bound in a bag. A position determination unit that determines a position at which the side of the first page image stored in the storage unit that is folded in two and the side of the second page image that is folded in two are connected;
According to the position determined by the position determination unit, the one sheet of paper that has been bound into a bag is connected to the side of the first page image that is folded in half and the side of the second page image that is folded in half. An image generation unit that generates a single image that is an image corresponding to
A program for causing an image output unit to output a single image generated by the image generation unit.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008300323A JP4301526B1 (en) | 2008-11-26 | 2008-11-26 | Image generating apparatus, image generating method, and program |
CN200980146194.3A CN102217298B (en) | 2008-11-26 | 2009-11-24 | Image creating device, image creating method |
PCT/JP2009/006297 WO2010061568A1 (en) | 2008-11-26 | 2009-11-24 | Image creating device, image creating method, and program recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008300323A JP4301526B1 (en) | 2008-11-26 | 2008-11-26 | Image generating apparatus, image generating method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP4301526B1 JP4301526B1 (en) | 2009-07-22 |
JP2010130126A true JP2010130126A (en) | 2010-06-10 |
Family
ID=40972381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008300323A Active JP4301526B1 (en) | 2008-11-26 | 2008-11-26 | Image generating apparatus, image generating method, and program |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP4301526B1 (en) |
CN (1) | CN102217298B (en) |
WO (1) | WO2010061568A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016072791A (en) * | 2014-09-30 | 2016-05-09 | ブラザー工業株式会社 | Image processing device and computer program |
JP2018189728A (en) * | 2017-04-28 | 2018-11-29 | コニカミノルタ株式会社 | Image processing apparatus, image processing method, and program |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3437249B2 (en) * | 1994-04-04 | 2003-08-18 | キヤノン株式会社 | Image processing method and image processing apparatus |
JP3052870B2 (en) * | 1997-01-24 | 2000-06-19 | 日本電気株式会社 | Image correction method and image correction device |
KR100607018B1 (en) * | 1998-06-23 | 2006-08-01 | 샤프 가부시키가이샤 | Image processor, image processing method, and medium on which image processing program is recorded |
JP2002366947A (en) * | 2001-06-08 | 2002-12-20 | Jc System Inc | System for inputting pattern for apparel cad |
JP3981644B2 (en) * | 2003-03-26 | 2007-09-26 | 株式会社オーエムアイ | Original drawing transfer method and camera image correction processing apparatus used therefor |
-
2008
- 2008-11-26 JP JP2008300323A patent/JP4301526B1/en active Active
-
2009
- 2009-11-24 WO PCT/JP2009/006297 patent/WO2010061568A1/en active Application Filing
- 2009-11-24 CN CN200980146194.3A patent/CN102217298B/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016072791A (en) * | 2014-09-30 | 2016-05-09 | ブラザー工業株式会社 | Image processing device and computer program |
JP2018189728A (en) * | 2017-04-28 | 2018-11-29 | コニカミノルタ株式会社 | Image processing apparatus, image processing method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP4301526B1 (en) | 2009-07-22 |
CN102217298B (en) | 2013-11-06 |
CN102217298A (en) | 2011-10-12 |
WO2010061568A1 (en) | 2010-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7209149B2 (en) | Image cropping and synthesizing method, and imaging apparatus | |
US8004584B2 (en) | Method and apparatus for the creation of compound digital image effects | |
JP5452825B2 (en) | A method for reducing the size of each page of a multi-page document for rendering | |
JP5981789B2 (en) | Image processing apparatus, image processing method, and program | |
Farid | Seeing is not believing | |
JPWO2003085510A1 (en) | Apparatus for enabling printer to print desired design page and method of operating same | |
JP2004246868A (en) | Image extraction method and program for operating it on computer | |
JP5366699B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2002008350A (en) | Image recording method and device as well as recording medium | |
JP4301526B1 (en) | Image generating apparatus, image generating method, and program | |
JP3717661B2 (en) | Image processing system and computer-readable recording medium | |
JP2005210369A (en) | Image processing apparatus and image processing method | |
JP2000147685A (en) | Group printing sheet and image forming device | |
JP2001167265A (en) | Medium with recorded image processing program, device and method for processing image | |
JP2004258724A (en) | Document creation support device and method, program and recording medium | |
JP4507673B2 (en) | Image processing apparatus, image processing method, and program | |
JP4437996B2 (en) | Index print creation method, apparatus, and program | |
JP3240899B2 (en) | Document image input device | |
JP4264165B2 (en) | Image display device, image display system, image display method, and recording medium | |
JP5005882B2 (en) | Method and apparatus for outputting captured image with accompanying information | |
JP2005333519A (en) | Print forming system and print forming method | |
JP2004032247A (en) | Composite image output apparatus | |
JPH08118840A (en) | Processing method and indication method of image such as character | |
JP2006027228A (en) | Album printing method and apparatus | |
JP2005215763A (en) | Method, device and program for image processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090415 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090417 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120501 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4301526 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20170501 Year of fee payment: 8 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |