JP5206529B2 - Image processing apparatus, information processing apparatus, image reading apparatus, and program - Google Patents

Image processing apparatus, information processing apparatus, image reading apparatus, and program Download PDF

Info

Publication number
JP5206529B2
JP5206529B2 JP2009068913A JP2009068913A JP5206529B2 JP 5206529 B2 JP5206529 B2 JP 5206529B2 JP 2009068913 A JP2009068913 A JP 2009068913A JP 2009068913 A JP2009068913 A JP 2009068913A JP 5206529 B2 JP5206529 B2 JP 5206529B2
Authority
JP
Japan
Prior art keywords
circumscribed
processing
image
connected component
unit
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.)
Expired - Fee Related
Application number
JP2009068913A
Other languages
Japanese (ja)
Other versions
JP2010224678A (en
Inventor
和宏 大谷
あゆみ 大西
裕義 上條
勝也 小柳
博 新名
臻瑞 張
ちひろ 松隈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2009068913A priority Critical patent/JP5206529B2/en
Publication of JP2010224678A publication Critical patent/JP2010224678A/en
Application granted granted Critical
Publication of JP5206529B2 publication Critical patent/JP5206529B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置、情報処理装置、画像読取装置およびプログラムに関する。   The present invention relates to an image processing apparatus, an information processing apparatus, an image reading apparatus, and a program.

例えば画像読取装置で読み取った画像について、その画像に含まれる線・文字・図形・写真画像などの属性ごとに画像領域を区切るという、いわゆる像域分離と呼ばれる技術がある(例えば特許文献1参照)。画像全体に含まれる連結成分に対応する画像を例えばJPEG(Joint Photographic Experts Group)などのデータ形式で表現する場合には、その連結成分の外接矩形の領域全体が、画像を構成する要素の一単位として取り扱われるようになっている。   For example, for an image read by an image reading apparatus, there is a technique called image area separation in which an image area is divided for each attribute such as a line, a character, a figure, or a photographic image included in the image (see, for example, Patent Document 1). . When an image corresponding to a connected component included in the entire image is expressed in a data format such as JPEG (Joint Photographic Experts Group), the entire circumscribed rectangular area of the connected component is a unit of elements constituting the image. It has come to be treated as.

特開平9−167233号公報JP-A-9-167233

本発明は、連結成分が外接する図形である外接図形が複数重なった場合であっても、いずれかの外接図形内の連結成分に対応する画像が見えなくならないようにすることを目的とする。   An object of the present invention is to prevent an image corresponding to a connected component in any circumscribed figure from becoming invisible even when a plurality of circumscribed figures that are circumscribed figures of the connected components overlap.

上述した課題を解決するため、本願の請求項1に係る画像処理装置は、各画素の画素値が記述された画像データから連結成分を抽出する抽出手段と、前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段とを具備することを特徴とする。   In order to solve the above-described problem, an image processing apparatus according to claim 1 of the present application includes an extracting unit that extracts a connected component from image data in which a pixel value of each pixel is described, and a connected component extracted by the extracting unit. Storage means for storing image data corresponding to a unit of elements constituting the image, and one circumscribed figure region among circumscribed figures that are circumscribed by each connected component extracted by the extracting means, A circumscribed figure extracting unit that extracts a circumscribed figure that overlaps with a connected component in the other circumscribed figure, and a pixel that is not the connected component among the pixels included in each circumscribed figure extracted by the circumscribed figure extracting unit. A first processing means for performing a process of converting a pixel overlapping behind the pixel into a pixel meaning that the pixel is transmitted to the front surface of the own pixel; and one of the one extracted by the circumscribed figure extracting means Second processing means for performing processing for superimposing one circumscribed graphic on the front of the other circumscribed graphic so that the connected graphic region and the connected component in the other circumscribed graphic do not overlap when viewed from the front A circumscribed figure that circumscribes a connected component in at least one of the circumscribed figures extracted by the circumscribed figure extracting unit and includes all the extracted circumscribed figures, and identifies the circumscribed figure A third processing unit that performs processing for storing the image data corresponding to the one and the other connected component included in the storage unit as a unit of the element, the first processing unit, and the second processing unit. In accordance with a condition for selecting either the first processing means or the third processing means, the first processing means, the second processing means, or the third processing means is selected and selected. Processing hand In, characterized by comprising a process selecting means for causing the processing for the circumscribed figure extracted by the circumscribing figure extraction means.

本願の請求項2に係る画像処理装置は、請求項1に係る画像処理装置において、画像の画質を優先することの有無に関する動作状態及び処理の速度を優先することの有無に関する動作状態を指定する指定手段を備え、前記処理選択手段は、前記指定手段により指定された動作状態が画像の画質を優先する動作状態ではない場合には、前記第1の処理手段を選択し、前記指定手段により指定された動作状態が、画像の画質を優先する動作状態であり、且つ、処理の速度を優先する動作状態でない場合には、前記第2の処理手段を選択し、前記指定手段により指定された動作状態が、画像の画質を優先する動作状態であり、かつ、処理の速度を優先する動作状態である場合、または、前記第2の処理手段により前記一方の外接図形の領域と前記他方の外接図形内の連結成分とが重なり合わないようにして前記一方の外接図形と前記他方の外接図形とを重ねることができない場合に、前記第3の処理手段を選択することを特徴とする。   An image processing apparatus according to claim 2 of the present application specifies an operation state relating to whether or not priority is given to image quality and an operation state relating to whether or not priority is given to processing speed in the image processing apparatus according to claim 1. And a processing unit that selects the first processing unit when the operating state specified by the specifying unit is not an operating state that prioritizes the image quality of the image, and that is specified by the specifying unit. If the selected operation state is an operation state that prioritizes the image quality of the image and is not an operation state that prioritizes the processing speed, the second processing means is selected and the operation designated by the designation means When the state is an operation state giving priority to the image quality of the image and an operation state giving priority to the processing speed, or the area of the one circumscribed figure and the other by the second processing means If the Not circumscribed so as not to overlap and the connected components in the figures can be overlapped and the other of the circumscribed graphic and the one of the circumscribed figure above, and selects the third processing means.

また、本願の請求項3に係る画像処理装置は、請求項1に係る画像処理装置において、画像データのデータ量を制限することの有無に関する動作状態を指定する指定手段を備え、前記指定手段により画像データのデータ量を制限する動作状態が指定されている場合に前記処理選択手段が前記第3の処理手段を選択したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させて、当該一方又は当該他方の連結成分に対応する画像データのうち少なくともいずれか1つを削除し、前記指定手段により画像データのデータ量を制限しない動作状態が指定されている場合に前記処理選択手段が前記第3の処理手段を選択したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させるほか、当該一方の連結成分及び当該他方の連結成分をそれぞれ前記要素の一単位として記憶手段に記憶させることを特徴とする。   An image processing apparatus according to claim 3 of the present application is the image processing apparatus according to claim 1, further comprising designation means for designating an operation state relating to whether or not to limit the data amount of the image data. When an operation state that restricts the amount of image data is specified and the processing selection unit selects the third processing unit, the third processing unit selects the one and the other connected components. Corresponding image data is stored in the storage means as one unit of the element, at least one of the image data corresponding to the one or the other connected component is deleted, and the data of the image data is specified by the specifying means. When the processing selection means selects the third processing means when an operation state that does not limit the amount is specified, the third processing means And the image data corresponding to the other connected component is stored in the storage means as one unit of the element, and the one connected component and the other connected component are each stored in the storage means as one unit of the element. It is characterized by.

また、本願の請求項4に係る画像処理装置は、請求項3に係る画像処理装置において、前記指定手段により画像データのデータ量を制限する動作状態が指定されている場合に前記処理抽出手段が前記第3の処理手段を抽出したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させるほか、当該一方又は当該他方の連結成分に対応する画像データのうち、データ量の大きいほうの画像データを前記記憶手段から削除することを特徴とする。   According to a fourth aspect of the present invention, in the image processing apparatus according to the third aspect, the processing extracting unit is configured to operate when the operation state that restricts the data amount of the image data is specified by the specifying unit. When the third processing unit is extracted, the third processing unit stores the image data corresponding to the one and the other connected component in the storage unit as one unit of the element, Of the image data corresponding to the other connected component, the image data having the larger data amount is deleted from the storage means.

また、本願の請求項5に係る情報処理装置は、上述の画像処理装置と、利用者によって操作される操作手段と、前記画像処理装置の記憶手段に記憶された連結成分に対応する画像データを画像を構成する要素の一単位として、当該画像データを用いて前記操作手段における操作に応じた処理を行う処理手段とを具備することを特徴とする。   An information processing apparatus according to claim 5 of the present application stores image data corresponding to the above-described image processing apparatus, operation means operated by a user, and connected components stored in the storage means of the image processing apparatus. A processing unit that performs processing corresponding to an operation in the operation unit using the image data as a unit of an element constituting the image is provided.

また、本願の請求項6に係る画像読取装置は、記録媒体に描かれた画像を読み取り、当該画像を構成する各画素の画素値が記述された画像データを出力する読取手段と、前記読取手段から出力された画像データから連結成分を抽出する抽出手段と、前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段とを具備することを特徴とする。   An image reading apparatus according to claim 6 of the present application reads an image drawn on a recording medium and outputs image data in which pixel values of each pixel constituting the image are described; and the reading unit Extracting means for extracting connected components from the image data output from the storage, storage means for storing image data corresponding to the connected components extracted by the extracting means as a unit of elements constituting the image, and the extracting means A circumscribed figure extracting means for extracting a circumscribed figure in which a region of one circumscribed figure and a connected component in the other circumscribed figure overlap among the circumscribed figures that are circumscribed by each connected component extracted by Means that the pixels that are not the connected components among the pixels included in each circumscribed figure extracted by the extracting means are transmitted through the front surface of the self-pixel through the pixel that overlaps the self-pixel. The first processing means for performing the process of converting to a pixel and the circumscribed figure area extracted by the circumscribed figure extracting means and the connected component in the other circumscribed figure do not overlap when viewed from the front. Thus, circumscribing the connected component in at least one circumscribed figure extracted by the circumscribed figure extracting means, the second processing means for performing processing for superimposing one of the circumscribed figures on the front of the other circumscribed figure And the circumscribed figure which is a figure including all the extracted circumscribed figures is specified, and the image data corresponding to the one and the other connected components included in the specified circumscribed figure is set as one unit of the element In accordance with a condition for selecting any one of a third processing unit that performs processing to be stored in the storage unit, and the first processing unit, the second processing unit, or the third processing unit. Selecting the processing means, the second processing means, or the third processing means, and causing the selected processing means to perform processing on the circumscribed graphic extracted by the circumscribed graphic extracting means; It is characterized by comprising.

また、本願の請求項7に係るプログラムは、コンピュータを、各画素の画素値が記述された画像データから連結成分を抽出する抽出手段と、前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段として実現させるためのプログラムである。   According to a seventh aspect of the present invention, there is provided a program for extracting a connected component from image data in which a pixel value of each pixel is described, and image data corresponding to the connected component extracted by the extracting unit. Among a circumscribed figure and a circumscribed figure of one circumscribed figure among circumscribed figures that circumscribe each connected component extracted by the extracting means. Circumscribing figure extraction means for extracting circumscribing figures that overlap with the connected components of pixels, and pixels that are not connected components among pixels included in each of the circumscribed figures extracted by the circumscribing figure extraction means overlap behind the own pixels. A first processing means for performing a process of converting the pixel into a pixel which means that the pixel is transmitted to the front surface of the own pixel; and one circumscribed figure extracted by the circumscribed figure extracting means A second processing means for performing processing for superimposing one circumscribed graphic on the front of the other circumscribed graphic so that the region and the connected component in the other circumscribed graphic do not overlap when viewed from the front; A circumscribed figure that is circumscribed with at least one of the connected components in the circumscribed figure extracted by the circumscribed figure extracting means and that includes all the extracted circumscribed figures is identified, and is included in the identified circumscribed figure Third processing means for performing processing for storing the image data corresponding to the one and the other connected component in the storage means as one unit of the element, the first processing means, and the second processing means Or, according to the condition for selecting any of the third processing means, the first processing means, the second processing means, or the third processing means is selected, and the selected processing means ,Previous It is a program for implementing a process selecting means for causing the processing for the circumscribed figure extracted by the circumscribing figure extraction means.

本発明の請求項1に係る画像処理装置によれば、連結成分が外接する図形である外接図形が複数重なった場合であっても、いずれかの外接図形内の連結成分に対応する画像が見えなくならないようにすることができる。
本発明の請求項2に係る画像処理装置によれば、指定された動作状態が画像の画質を優先する動作状態であるか、処理の速度を優先する動作状態であるかに応じて、いずれかの外接図形内の連結成分に対応する画像が見えなくならないように処理手段を選択することができる。
本発明の請求項3に係る画像処理装置によれば、指定された動作状態が画像データのデータ量を制限する動作状態であるときは、画像データのデータ量を低減することができる。
本発明の請求項4に係る画像処理装置によれば、指定された動作状態が画像データのデータ量を制限する動作状態であるときは、画像データのデータ量を低減することができる。
本発明の請求項5に係る情報処理装置によれば、連結成分が外接する図形である外接図形が複数重なった場合であっても、いずれかの外接図形内の連結成分に対応する画像が見えなくならないようにすることができる。
本発明の請求項6に係る画像読取装置によれば、連結成分が外接する図形である外接図形が複数重なった場合であっても、いずれかの外接図形内の連結成分に対応する画像が見えなくならないようにすることができる。
本発明の請求項7に係るプログラムによれば、連結成分が外接する図形である外接図形が複数重なった場合であっても、いずれかの外接図形内の連結成分に対応する画像が見えなくならないようにすることができる。
According to the image processing apparatus of the first aspect of the present invention, an image corresponding to a connected component in any circumscribed figure can be seen even when a plurality of circumscribed figures that are circumscribed figures of the connected components overlap. It can be prevented from disappearing.
According to the image processing apparatus of the second aspect of the present invention, either the designated operation state is an operation state that prioritizes image quality or an operation state that prioritizes processing speed. The processing means can be selected so that the image corresponding to the connected component in the circumscribed figure is not invisible.
According to the image processing apparatus of the third aspect of the present invention, when the designated operation state is an operation state that restricts the data amount of the image data, the data amount of the image data can be reduced.
According to the image processing apparatus of the fourth aspect of the present invention, when the designated operation state is an operation state that restricts the data amount of the image data, the data amount of the image data can be reduced.
According to the information processing apparatus of the fifth aspect of the present invention, an image corresponding to a connected component in any circumscribed figure can be seen even when a plurality of circumscribed figures that are circumscribed figures of the connected components overlap. It can be prevented from disappearing.
According to the image reading apparatus of the sixth aspect of the present invention, an image corresponding to a connected component in any circumscribed figure can be seen even when a plurality of circumscribed figures that are circumscribed figures of the connected components overlap. It can be prevented from disappearing.
According to the program of claim 7 of the present invention, even when a plurality of circumscribed figures that are circumscribed figures of the connected components overlap, an image corresponding to the connected components in any of the circumscribed figures does not disappear. Can be.

画像処理装置のハードウェア構成を説明するためのブロック図である。It is a block diagram for demonstrating the hardware constitutions of an image processing apparatus. 情報処理部の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of an information processing part. 連結成分が外接する外接矩形と重畳する複数の外接矩形の例を表した図である。It is a figure showing the example of the several circumscribed rectangle which overlaps with the circumscribed rectangle which a connection component circumscribes. 並べ替えの判断を説明するための図である。It is a figure for demonstrating the judgment of rearrangement. 各外接矩形に順序が割り当てられてられていることを示す図である。It is a figure which shows that order is assigned to each circumscribed rectangle. 統合領域を説明するための図である。It is a figure for demonstrating an integrated area | region. 統合領域が他の外接矩形と重畳する場合があることを説明するための図である。It is a figure for demonstrating that an integrated area | region may overlap with another circumscribed rectangle. 情報処理部におけるCPUの動作の流れを説明するためのフロー図である。It is a flowchart for demonstrating the flow of operation | movement of CPU in an information processing part.

1.定義
以下の実施形態において、「ラスター方式」とは、格子状に配列された各画素の画素値をその画素ごとに記述する方式である。
「ラスター画像」とは、ラスター方式で表現された画像である。
「ベクトル情報」とは、描画対象である線・面領域・文字等の各要素を抽象空間上に定義し、各要素を描画する処理を数値又は数式によって記述した情報である。このベクトル情報の記述には、例えばベジエ曲線のパラメータなどが用いられる。
「ベクトル方式」とは、ベクトル情報により定義された要素をその要素ごとに描画する方式である。具体的には、ベクトル方式とは、線の起終点の座標、色、太さ、曲がり方や、線に囲まれた面の色、文字コードと文字属性(サイズやフォント)等を、数値や数式で表す方式である。
「ベクトル画像」とは、ベクトル方式で表現された画像である。
「ベクトル化」とは、ラスター画像をベクトル画像に変換することをいう。
「連結成分」とは、画像に対応する二値画像において、同じ値を持つ画素が互いに連結して一つの塊を形成するものをいう。
「写真画像」とは、主に自然物を光学的手法により撮影して得られるラスター画像、および、これに準ずるラスター画像であって、ベクトル化が困難なものをいう。
1. Definitions In the following embodiments, the “raster system” is a system that describes the pixel values of each pixel arranged in a grid pattern for each pixel.
A “raster image” is an image expressed in a raster format.
“Vector information” is information in which each element such as a line, a surface area, and a character to be drawn is defined in an abstract space, and a process of drawing each element is described by a numerical value or a mathematical expression. For example, a Bezier curve parameter is used for the description of the vector information.
The “vector method” is a method for drawing an element defined by vector information for each element. Specifically, the vector method means the coordinates of the start and end points of the line, color, thickness, how to bend, the color of the surface surrounded by the line, character code and character attributes (size and font), etc. This is a method expressed by a mathematical formula.
A “vector image” is an image expressed by a vector method.
“Vectorization” refers to converting a raster image into a vector image.
The “connected component” refers to a binary image corresponding to an image in which pixels having the same value are connected to each other to form one lump.
A “photographic image” refers to a raster image obtained by photographing natural objects mainly by an optical technique, and a raster image equivalent thereto, which is difficult to vectorize.

2.構成
2−1.全体構成
本発明の一実施形態である画像処理装置10の構成を説明する。
図1は、画像処理装置10のハードウェア構成を説明するためのブロック図である。
図1に示すように、画像処理装置10は、情報処理部1、スキャナ2、および画像形成部3を含む。図1の二点鎖線で囲んだ内側は、情報処理部1を示している。CPU11は、ROM12に記憶されているコンピュータプログラム(以下、単にプログラムという)を読み出して実行することにより、バス19を介して接続された、情報処理部1の各部を制御する。ROM12は半導体素子等で構成された読み出し専用の不揮発性記憶装置である。このROM12には、種々のプログラムやBIOS(Basic Input/Output System)が記憶されている。RAM13はCPU11がプログラムを実行する際のワークエリアとして利用される。このRAM13には、ベクトル画像を表すデータ(以下、ベクトル画像データという)やラスター画像を表すデータ(以下、ラスター画像データという)が記憶される。VRAM(Video RAM)14は、ラスター画像データを記憶するRAMである。入力部15は、スキャナやコンピュータなどの外部入力装置とのインターフェースであり、CPU11の制御の下で、画像データの入力を受け付ける。出力部16は、CPU11の制御の下で、画像データを、画像形成部や液晶表示媒体などの外部装置へ出力する。
2. Configuration 2-1. Overall Configuration A configuration of an image processing apparatus 10 according to an embodiment of the present invention will be described.
FIG. 1 is a block diagram for explaining a hardware configuration of the image processing apparatus 10.
As shown in FIG. 1, the image processing apparatus 10 includes an information processing unit 1, a scanner 2, and an image forming unit 3. The inner side surrounded by a two-dot chain line in FIG. The CPU 11 controls each unit of the information processing unit 1 connected via the bus 19 by reading out and executing a computer program (hereinafter simply referred to as a program) stored in the ROM 12. The ROM 12 is a read-only nonvolatile storage device composed of a semiconductor element or the like. The ROM 12 stores various programs and BIOS (Basic Input / Output System). The RAM 13 is used as a work area when the CPU 11 executes a program. The RAM 13 stores data representing a vector image (hereinafter referred to as vector image data) and data representing a raster image (hereinafter referred to as raster image data). A VRAM (Video RAM) 14 is a RAM that stores raster image data. The input unit 15 is an interface with an external input device such as a scanner or a computer, and receives input of image data under the control of the CPU 11. The output unit 16 outputs the image data to an external device such as an image forming unit or a liquid crystal display medium under the control of the CPU 11.

2−2.機能構成
図2は、情報処理部1の機能的構成を示すブロック図である。
図2の二点鎖線の枠11aおよび枠11bで囲まれた各手段は、情報処理部1のCPU11により実現される。ラスター画像データG0は、取得手段110によって取得され、連結成分抽出手段111により二値化されて、ラスター画像データG0によって表わされる画像から連結成分が抽出される。抽出された連結成分を含む画像領域は、属性判定手段112によって、その画像領域内にある画像の属性が判定される。
2-2. Functional Configuration FIG. 2 is a block diagram illustrating a functional configuration of the information processing unit 1.
Each means surrounded by the two-dot chain line frame 11 a and the frame 11 b in FIG. 2 is realized by the CPU 11 of the information processing unit 1. The raster image data G0 is acquired by the acquisition unit 110, binarized by the connected component extraction unit 111, and a connected component is extracted from the image represented by the raster image data G0. The attribute determination unit 112 determines the attribute of the image in the image area including the extracted connected component.

ここで、図3(a)は、画像の一例として、野球選手がバットをボールに当てた瞬間を撮影した写真を表すラスター画像を二値化した二値画像を示している。二値化前のラスター画像において、描画対象である野球選手、バット、およびボールはそれぞれの描画色で描かれているが、二値化後は、黒又は白の2色で描かれることになる。連結成分抽出手段111は、二値化後のラスター画像データから、図中黒色で示した領域である連結成分を抽出する。次に、属性判定手段112は、二値化後のラスター画像データから抽出した連結成分の領域に対応する二値化前のラスター画像データの内容、例えば画素値のヒストグラムや隣接する画素値間の色替わり回数などの条件に応じて、その領域内の画像が、ベクトル化が可能な画像、テキスト化が可能な画像、又は、写真画像に相当する画像のうちのいずれであるかといった画像の属性を判定する。   Here, FIG. 3A shows, as an example of the image, a binary image obtained by binarizing a raster image representing a photograph of the moment when the baseball player hits the ball with the bat. In the raster image before binarization, baseball players, bats, and balls to be drawn are drawn in the respective drawing colors, but after binarization, they are drawn in two colors of black or white. . The connected component extracting unit 111 extracts a connected component that is a region shown in black in the drawing from the binarized raster image data. Next, the attribute determination unit 112 includes the content of the raster image data before binarization corresponding to the connected component region extracted from the raster image data after binarization, for example, a histogram of pixel values or between adjacent pixel values. Depending on conditions such as the number of color changes, image attributes such as whether the image in the area is an image that can be vectorized, an image that can be converted to text, or an image corresponding to a photographic image Determine.

属性判定手段112によりベクトル化が可能な画像と判定された領域に対応する画像データは、属性判定手段112によりベクトル方式の画像データに変換されてRAM13に記憶される。また、属性判定手段112によりテキスト化が可能な画像と判定された領域に対応する画像データは、属性判定手段112により文字コード等にテキスト化されてRAM13に記憶される。これらはそれぞれ、画像を構成する要素の一単位として記憶され、画像データを用いて処理を行う際の一単位として取り扱われる。   Image data corresponding to an area determined as an image that can be vectorized by the attribute determining unit 112 is converted into vector image data by the attribute determining unit 112 and stored in the RAM 13. Further, the image data corresponding to the area determined as an image that can be converted into text by the attribute determination unit 112 is converted into a text code or the like by the attribute determination unit 112 and stored in the RAM 13. Each of these is stored as a unit of elements constituting the image, and is handled as a unit when processing is performed using image data.

一方、属性判定手段112により写真画像と判定された領域に対応する画像データは、属性判定手段112によりJPEG(Joint Photographic Experts Group)形式で表現されてから、RAM13に記憶される。JPEG形式では、画像が矩形で取り扱われるため、RAM13に記憶される画像データの画像領域は、図3(a)に示す連結成分D1が外接する外接矩形R1の領域となる。従って、複数の写真画像に相当する画像がお互いに近い位置にあると、それぞれの画像の外接矩形が重なり合うことがある。   On the other hand, image data corresponding to an area determined as a photographic image by the attribute determination unit 112 is expressed in JPEG (Joint Photographic Experts Group) format by the attribute determination unit 112 and then stored in the RAM 13. In the JPEG format, the image is handled as a rectangle, so the image area of the image data stored in the RAM 13 is a circumscribed rectangle R1 circumscribed by the connected component D1 shown in FIG. Therefore, if images corresponding to a plurality of photographic images are close to each other, circumscribed rectangles of the respective images may overlap.

例えば、図3(b)に示す外接矩形R5,R6,R7は、いずれも他の2つの外接矩形と重畳している。また、図3(c)に示す外接矩形R8は外接矩形R9と重畳しているが、外接矩形R10や外接矩形R11とは重畳していない。また、図3(d)では、一方の外接矩形R12が他方の外接矩形R13に包含されているが、このような状態の重畳もあり得る。このように、外接矩形どうしが重なり合っていると、それぞれの外接矩形内の連結成分(写真画像)のいずれか一方が見えなくなることがある。例えば、図4(b)に例示するように、外接矩形R2の前面に外接矩形R1を配置して表現した場合には、外接矩形R2内の連結成分(写真画像)が、外接矩形R1に含まれる背景画素によって見えなくなる。なお、ここでいう前面とは、複数の画像が階層構造を採った場合における、利用者にとっての手前側のことである。   For example, the circumscribed rectangles R5, R6, and R7 shown in FIG. 3B are overlapped with the other two circumscribed rectangles. In addition, the circumscribed rectangle R8 illustrated in FIG. 3C overlaps with the circumscribed rectangle R9, but does not overlap with the circumscribed rectangle R10 and the circumscribed rectangle R11. Further, in FIG. 3D, one circumscribed rectangle R12 is included in the other circumscribed rectangle R13, but such superposition may also occur. Thus, if the circumscribed rectangles overlap each other, one of the connected components (photographic images) in each circumscribed rectangle may not be visible. For example, as illustrated in FIG. 4B, when the circumscribed rectangle R1 is arranged in front of the circumscribed rectangle R2, the connected component (photographic image) in the circumscribed rectangle R2 is included in the circumscribed rectangle R1. It disappears because of the background pixels. Note that the front here refers to a front side for the user when a plurality of images have a hierarchical structure.

重畳外接矩形抽出手段113は、複数の外接矩形のうち、一方の外接矩形の領域と他方の外接矩形内の連結成分とが重なり合うような関係にある外接矩形を抽出する。例えば図4(b)の例で言えば、重畳外接矩形抽出手段113は、外接矩形R1,R2を抽出する。そして、重畳外接矩形抽出手段113は、これらの外接矩形R1,R2を関連付けてRAM13に記憶する。これらはそれぞれ、画像を構成する要素の一単位として記憶され、画像データを用いて処理を行う際の一単位として取り扱われる。   The superposed circumscribed rectangle extracting means 113 extracts a circumscribed rectangle having a relationship such that one circumscribed rectangle region and a connected component in the other circumscribed rectangle overlap among a plurality of circumscribed rectangles. For example, in the example of FIG. 4B, the superposed circumscribed rectangle extracting means 113 extracts circumscribed rectangles R1 and R2. The superposed circumscribed rectangle extracting means 113 stores these circumscribed rectangles R1 and R2 in the RAM 13 in association with each other. Each of these is stored as a unit of elements constituting the image, and is handled as a unit when processing is performed using image data.

動作状態指定手段115は、画像処理装置10の動作状態を指定する手段である。動作状態とは、例えば動作モードとも呼ばれており、利用者による操作や画像処理装置10自らの判断によって設定される。ここでは、動作状態として、「画質」「速度」「データサイズ(データ量)」の3つの項目について、それぞれ優先するか否かが設定される。処理選択手段114は、動作状態指定手段115による動作状態の指定に応じて、第1の処理手段である変換手段116、第2の処理手段である並べ替え手段117、又は、第3の処理手段である統合手段118のいずれかを、重畳外接矩形抽出手段113によって抽出された外接矩形に対して処理を行う手段として選択する。   The operation state designation unit 115 is a unit that designates the operation state of the image processing apparatus 10. The operation state is also called, for example, an operation mode, and is set by a user operation or judgment of the image processing apparatus 10 itself. Here, whether or not to give priority to each of the three items of “image quality”, “speed”, and “data size (data amount)” is set as the operation state. The processing selection unit 114 is a conversion unit 116 that is a first processing unit, a rearrangement unit 117 that is a second processing unit, or a third processing unit, depending on the operation state designation by the operation state designation unit 115. Is selected as a means for processing the circumscribed rectangle extracted by the superposed circumscribed rectangle extracting means 113.

処理選択手段114は、以下の条件に従って、変換手段116、並べ替え手段117、又は、統合手段118のいずれかを選択する。即ち、処理選択手段114は、動作状態指定手段115により指定された動作状態が画像の画質を優先する動作状態ではない場合には、変換手段116を選択する。また、処理選択手段114は、動作状態指定手段115により指定された動作状態が、画像の画質を優先する動作状態であり、且つ、処理の速度を優先する動作状態でない場合には、並べ替え手段117を選択する。また、処理選択手段114は、動作状態指定手段115により指定された動作状態が、画像の画質を優先する動作状態であり、かつ、処理の速度を優先する動作状態である場合、または、並べ替え手段117により一方の外接矩形の領域と他方の外接矩形内の連結成分とが重なり合わないような並び替えができない場合に、統合手段118を選択する。   The process selection unit 114 selects any of the conversion unit 116, the rearrangement unit 117, and the integration unit 118 according to the following conditions. That is, the process selection unit 114 selects the conversion unit 116 when the operation state designated by the operation state designation unit 115 is not an operation state in which the image quality of the image is prioritized. Further, the process selecting unit 114 is a reordering unit when the operation state specified by the operation state specifying unit 115 is an operation state in which priority is given to the image quality of the image, and is not an operation state in which priority is given to the processing speed. 117 is selected. In addition, the process selection unit 114 is an operation state in which the operation state specified by the operation state specifying unit 115 is an operation state in which priority is given to the image quality of the image and an operation state in which priority is given to the processing speed, or rearrangement. When the means 117 cannot perform rearrangement so that one circumscribed rectangle region and the connected component in the other circumscribed rectangle do not overlap, the integration means 118 is selected.

変換手段116は、重畳外接矩形抽出手段113によって抽出された2以上の外接矩形の各々に含まれる画素のうち、連結成分ではない画素(つまり背景画素)を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う。自画素の背後に重なる画素を自画素の前面に透過させるようにする方法としては、例えば、αチャンネルを有するPNG(Portable Network Graphics)フォーマットへ変換する方法が挙げられる。   The converting unit 116 converts pixels that are not connected components (that is, background pixels) among pixels included in each of the two or more circumscribed rectangles extracted by the superposed circumscribed rectangle extracting unit 113 into pixels that overlap behind the own pixels. A process of converting into a pixel that means transmission through the front surface of the pixel is performed. An example of a method of transmitting a pixel overlapping behind the own pixel to the front of the own pixel is a method of converting to a PNG (Portable Network Graphics) format having an α channel.

並べ替え手段117は、重畳外接矩形抽出手段113によって抽出された2以上の外接矩形のうち、一方の外接矩形の領域と他方の外接矩形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接矩形を他方の外接矩形の前面に重ねる処理を行う。
図4(a)は、外接矩形R1の右下に、外接矩形R2が配置されている例である。外接矩形R2に描かれた画像は、サッカー選手がボールを蹴り上げた瞬間を撮影した写真のラスター画像であり、図では二値化したときの連結成分で表現している。外接矩形R1と外接矩形R2は、重畳領域Rpで重畳している。この例では、重畳領域Rpには、外接矩形R2内の写真画像(連結成分)が含まれるが、外接矩形R1内の写真画像(連結成分)が含まれていない。
図5は、RAM13において、各外接矩形に順序が割り当てられてられていることを示す図である。同図において、順序とは外接矩形の前後を表しており、順序の値が小さいほど、より前面に位置し、順序の値が大きいほど、より背後に位置することを意味している。図5(a)では、外接矩形R1に順序「1」が割り当てられ、外接矩形R2に順序「2」が割り当てられていることが示されている。すなわち、図5(a)において、外接矩形R1は、外接矩形R2の前面にある。外接矩形R1が外接矩形R2より前面にあると、図4(b)に示すように、外接矩形R2内の連結成分(写真画像)が、外接矩形R1に含まれる背景画素によって見えなくなる。
The rearrangement unit 117 does not overlap the region of one circumscribed rectangle and the connected component in the other circumscribed rectangle among the two or more circumscribed rectangles extracted by the superposed circumscribed rectangle extracting unit 113 when viewed from the front. As described above, the process of superimposing one of the circumscribed rectangles on the front surface of the other circumscribed rectangle is performed.
FIG. 4A shows an example in which a circumscribed rectangle R2 is arranged at the lower right of the circumscribed rectangle R1. The image drawn on the circumscribed rectangle R2 is a raster image of a photograph of the moment when a soccer player kicks up the ball, and is represented by a connected component when binarized in the figure. The circumscribed rectangle R1 and the circumscribed rectangle R2 are overlapped in the overlapping region Rp. In this example, the superimposed region Rp includes a photographic image (connected component) in the circumscribed rectangle R2, but does not include a photographic image (connected component) in the circumscribed rectangle R1.
FIG. 5 is a diagram showing that the order is assigned to each circumscribed rectangle in the RAM 13. In the same figure, the order represents the front and back of the circumscribed rectangle, and the smaller the order value, the closer to the front, and the larger the order value, the closer to the back. FIG. 5A shows that the order “1” is assigned to the circumscribed rectangle R1, and the order “2” is assigned to the circumscribed rectangle R2. That is, in FIG. 5A, the circumscribed rectangle R1 is in front of the circumscribed rectangle R2. When the circumscribed rectangle R1 is in front of the circumscribed rectangle R2, as shown in FIG. 4B, the connected component (photographic image) in the circumscribed rectangle R2 becomes invisible due to the background pixels included in the circumscribed rectangle R1.

一方、図5(b)では、外接矩形R1に順序「2」が割り当てられ、外接矩形R2に順序「1」が割り当てられていることが示されている。外接矩形R1は、外接矩形R2の背後にある。この場合には、図4(c)に示すように、外接矩形R2内の連結成分(写真画像)が、外接矩形R1に含まれる背景画素によって見えなくなるということはない。並べ替え手段117は、重畳する部分の写真画像(連結成分)が全て表示されるように外接矩形を並び替えるよう試みる。そして、並べ替え手段117は、その並び替えができたときは、そのときの各外接矩形の前後を表す順序を、これらの外接矩形R1,R2を関連付けてRAM13に記憶する。一方、並べ替え手段117は、その並び替えができなかったとき、つまり、外接矩形の前後をどのように入れ替えたとしても、それらの外接矩形のいずれかに含まれる写真画像(連結成分)が見えなくなるようなときには、その旨を処理選択手段114に通知する。   On the other hand, FIG. 5B shows that the order “2” is assigned to the circumscribed rectangle R1 and the order “1” is assigned to the circumscribed rectangle R2. The circumscribed rectangle R1 is behind the circumscribed rectangle R2. In this case, as shown in FIG. 4C, the connected component (photographic image) in the circumscribed rectangle R2 is not invisible by the background pixels included in the circumscribed rectangle R1. The rearrangement unit 117 attempts to rearrange the circumscribed rectangles so that all the photographic images (connected components) of the overlapping part are displayed. Then, when the rearrangement means 117 has been rearranged, the rearrangement unit 117 stores the order representing the front and rear of each circumscribed rectangle at that time in the RAM 13 in association with the circumscribed rectangles R1 and R2. On the other hand, the rearrangement unit 117 can see the photographic images (connected components) included in any of the circumscribed rectangles when the rearrangement cannot be performed, that is, no matter how the circumscribed rectangles are replaced. When it disappears, the process selection means 114 is notified to that effect.

統合手段118は、重畳外接矩形抽出手段113によって抽出された2以上の外接矩形のうち、少なくともいずれかの外接矩形内の連結成分に外接し、且つ、抽出された全ての外接矩形を含む矩形である外接矩形を特定し、特定した当該外接矩形に含まれる一方及び他方の連結成分に対応する画像データをRAM13に記憶する。この画像データは、画像を構成する要素の一単位として記憶され、画像データを用いて処理を行う際の一単位として取り扱われる。
図6(a)に示すような位置関係で外接矩形R1aと外接矩形R2aとが配置されていると、これら2つの外接矩形が重畳する領域である重畳領域Rpaには、外接矩形R1a内の写真画像(連結成分)も、外接矩形R2a内の写真画像(連結成分)も、ともに含まれている。よって、どちらの外接矩形を前面にしたとしても、背後にある外接矩形の写真画像が見えなくなる。この場合、統合手段118は、外接矩形R1aと外接矩形R2aの4隅のxy座標をそれぞれ比較し、少なくともいずれかの外接矩形内の連結成分に外接し、且つ、全ての外接矩形を含む矩形を統合領域R3aとして生成する。以下、この処理を「外接矩形を統合する」と呼び、この統合により、各外接矩形の連結成分の全てが外接する外接矩形が特定される。
The integrating unit 118 is a rectangle that circumscribes at least one of the circumscribed rectangles of the two or more circumscribed rectangles extracted by the superimposed circumscribed rectangle extracting unit 113 and includes all the extracted circumscribed rectangles. A circumscribed rectangle is specified, and image data corresponding to one and the other connected components included in the specified circumscribed rectangle is stored in the RAM 13. This image data is stored as one unit of elements constituting the image, and is handled as one unit when processing is performed using the image data.
When the circumscribed rectangle R1a and the circumscribed rectangle R2a are arranged in a positional relationship as shown in FIG. 6A, a photograph in the circumscribed rectangle R1a is included in the overlapping region Rpa where these two circumscribed rectangles overlap. Both the image (connected component) and the photographic image (connected component) in the circumscribed rectangle R2a are included. Therefore, regardless of which circumscribed rectangle is set to the front, the photographic image of the circumscribed rectangle in the back cannot be seen. In this case, the integration unit 118 compares the xy coordinates of the four corners of the circumscribed rectangle R1a and the circumscribed rectangle R2a, and circumscribes the connected component in at least one of the circumscribed rectangles and includes a rectangle including all the circumscribed rectangles. It generates as integrated field R3a. Hereinafter, this process is referred to as “integrating circumscribed rectangles”, and the circumscribed rectangle to which all the connected components of each circumscribed rectangle are circumscribed is specified by this integration.

また、統合手段118は、指定された動作状態が速度を優先する動作状態である場合にも、外接矩形を統合する。これにより、図6(c)に示すような位置関係にある外接矩形R1と外接矩形R2とが統合されることになる。
図7は、統合手段118により統合された統合領域が、さらに、他の外接矩形と重畳する場合があることを説明するための図である。図7(a)に示すように、外接矩形R1と外接矩形R2とを統合して生成された統合領域R3には、外接矩形R1,R2に含まれていなかった領域Rs1,Rs2(以下、これらを追加領域という)が追加される。ここで、図7(b)に示すように、外接矩形R4が、外接矩形R1,R2の近傍に配置されていたとする。この外接矩形R4には、野球選手がボールを投げた瞬間を撮影した写真のラスター画像が描かれている。外接矩形R1と外接矩形R4は互いに重畳しておらず、外接矩形R2と外接矩形R4も、互いに重畳していない。しかし、統合領域R3には、追加領域Rs2が追加されており、この追加領域Rs2の一部と外接矩形R4とは重畳するため、統合領域R3と外接矩形R4とは、互いに重畳する。したがって、統合領域が生成される度に、新たに重畳外接矩形抽出手段113が、外接矩形の重畳関係が判断するように、処理が行われる。
The integration unit 118 also integrates circumscribed rectangles even when the designated operation state is an operation state in which speed is prioritized. As a result, the circumscribed rectangle R1 and the circumscribed rectangle R2 having a positional relationship as shown in FIG. 6C are integrated.
FIG. 7 is a diagram for explaining that the integrated region integrated by the integration unit 118 may further overlap with other circumscribed rectangles. As shown in FIG. 7A, the integrated region R3 generated by integrating the circumscribed rectangle R1 and the circumscribed rectangle R2 includes regions Rs1, Rs2 (hereinafter referred to as these regions) that were not included in the circumscribed rectangles R1, R2. Is referred to as an additional area). Here, as shown in FIG. 7B, it is assumed that the circumscribed rectangle R4 is disposed in the vicinity of the circumscribed rectangles R1 and R2. In the circumscribed rectangle R4, a raster image of a photograph of the moment when the baseball player throws the ball is drawn. The circumscribed rectangle R1 and the circumscribed rectangle R4 do not overlap each other, and the circumscribed rectangle R2 and the circumscribed rectangle R4 do not overlap each other. However, since the additional region Rs2 is added to the integrated region R3, and a part of the additional region Rs2 and the circumscribed rectangle R4 overlap, the integrated region R3 and the circumscribed rectangle R4 overlap each other. Therefore, every time an integrated region is generated, processing is performed so that the superimposed circumscribed rectangle extracting unit 113 newly determines the superimposed relationship of circumscribed rectangles.

3.動作
図8は、情報処理部1におけるCPU11がプログラムを実行したときの動作の流れを説明するためのフロー図である。
図8において、まず、スキャナ2から送信されるラスター画像データG0が入力部15によって受け付けられ、バス19を介してCPU11へ入力される。すなわち、CPU11は、ラスター画像データG0を取得し、RAM13にいったん記憶する(ステップS101)。次に、CPU11は、取得したラスター画像データの各画素と、予め定められた閾値とを比較して、閾値を超えた画素と閾値を超えない画素の二値から構成される二値画像データを生成する(ステップS102)。次に、CPU11は、ステップS102で生成した二値画像データに基づき、「閾値を超えた画素」のうち、隣接しているもの同士にラベルを付す、ラベリング処理を行う(ステップS103)。次に、CPU11は、ラベリング処理の結果に基づいて、画像を、同一のラベルが付された画素群、つまり連結成分を抽出し、さらに、その連結成分が外接する矩形、すなわち外接矩形を特定する(ステップS104)。
3. Operation FIG. 8 is a flowchart for explaining the flow of operation when the CPU 11 in the information processing unit 1 executes a program.
In FIG. 8, first, raster image data G0 transmitted from the scanner 2 is received by the input unit 15 and input to the CPU 11 via the bus 19. That is, the CPU 11 acquires raster image data G0 and temporarily stores it in the RAM 13 (step S101). Next, the CPU 11 compares each pixel of the acquired raster image data with a predetermined threshold value, and obtains binary image data composed of binary values of a pixel that exceeds the threshold value and a pixel that does not exceed the threshold value. Generate (step S102). Next, based on the binary image data generated in step S <b> 102, the CPU 11 performs a labeling process in which adjacent pixels among “pixels exceeding the threshold” are labeled (step S <b> 103). Next, based on the result of the labeling process, the CPU 11 extracts a group of pixels with the same label, that is, a connected component, and specifies a rectangle that circumscribes the connected component, that is, a circumscribed rectangle. (Step S104).

ステップS104において各外接矩形が特定されると、CPU11は、各外接矩形について逐次処理を開始する。まず、CPU11は、判定の対象である外接矩形のうち、互いに重畳する外接矩形が存在するか否かを調べ、互いに重畳する外接矩形が存在する場合にはさらに、これらのうちの一方の外接矩形の領域と他方の外接矩形内の連結成分とが重なり合うような関係にある外接矩形を抽出する(ステップS105)。これにより、一方の外接矩形の領域と他方の外接矩形内の連結成分とが重なり合うような関係にある、1組又は複数組の外接矩形が抽出される。ここで、このような関係にある外接矩形がないと判定した場合には(ステップS105;NO)、CPU11は、処理をステップS115へ進める。一方、このような関係にある外接矩形があると判定した場合には(ステップS105;YES)、CPU11は、その時点での動作状態を調べる(ステップS106)。   When each circumscribed rectangle is specified in step S104, the CPU 11 starts sequential processing for each circumscribed rectangle. First, the CPU 11 checks whether or not there are circumscribed rectangles that overlap each other among the circumscribed rectangles to be determined. If there are circumscribed rectangles that overlap each other, the CPU 11 further determines one of the circumscribed rectangles. A circumscribing rectangle having a relationship such that the connected component in the other circumscribing rectangle and the other circumscribing rectangle overlap is extracted (step S105). As a result, one or a plurality of sets of circumscribed rectangles having a relationship in which the region of one circumscribed rectangle overlaps the connected components in the other circumscribed rectangle are extracted. If it is determined that there is no circumscribed rectangle having such a relationship (step S105; NO), the CPU 11 advances the process to step S115. On the other hand, when it is determined that there is a circumscribed rectangle having such a relationship (step S105; YES), the CPU 11 checks the operation state at that time (step S106).

そして、CPU11は、動作状態が画質を優先する動作状態であるか否かを判断する(ステップS107)。動作状態が画質を優先する動作状態ではないと判断した場合には(ステップS107;NO)、CPU11は、ステップS105で抽出した1組の外接矩形の全てを、αチャンネルを有するPNGフォーマットへ変換し(ステップS108)、その後、処理をステップS105に戻して、次の1組の外接矩形を処理の対象とする。一方、ステップS106において指定された動作状態が画質を優先する動作状態であると判断した場合には(ステップS107;YES)、CPU11は、処理をステップS109に進める。   Then, the CPU 11 determines whether or not the operation state is an operation state that prioritizes image quality (step S107). If it is determined that the operation state is not an operation state that prioritizes image quality (step S107; NO), the CPU 11 converts all of the set of circumscribed rectangles extracted in step S105 into a PNG format having an α channel. (Step S108) Then, the process returns to Step S105, and the next set of circumscribed rectangles is set as a processing target. On the other hand, when determining that the operation state designated in step S106 is an operation state in which image quality is given priority (step S107; YES), the CPU 11 advances the process to step S109.

ステップS109において、CPU11は、動作状態が処理の速度を優先する動作状態であるか否かを判断する。指定された動作状態が処理の速度を優先する動作状態であると判断した場合には(ステップS109;YES)、CPU11は、ステップS105で抽出した1組の外接矩形の全てを統合した統合領域を、これらの外接矩形の前面に生成する(ステップS112)。これにより、統合される前の各外接矩形は、統合領域の背後に相当する順序が割り当てられて記憶されるため、統合領域により覆い隠されて見えなくなる。その後、CPU11は、処理をステップS105に戻して、次の1組の外接矩形を処理の対象とする。   In step S109, the CPU 11 determines whether or not the operation state is an operation state that prioritizes the processing speed. When it is determined that the designated operation state is an operation state in which the processing speed is prioritized (step S109; YES), the CPU 11 determines an integrated region in which all of the set of circumscribed rectangles extracted in step S105 are integrated. These are generated in front of these circumscribed rectangles (step S112). As a result, the circumscribed rectangles before being integrated are assigned and stored in the order corresponding to the back of the integrated area, and thus are hidden by the integrated area and cannot be seen. Thereafter, the CPU 11 returns the process to step S105, and sets the next set of circumscribed rectangles as the processing target.

一方、動作状態が処理の速度を優先する動作状態ではないと判断した場合には(ステップS109;NO)、CPU11は、ステップS105で抽出した1組の外接矩形のうち、一方の外接矩形の領域と他方の外接矩形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接矩形を他方の外接矩形の前面に重ねる処理を試みる(ステップS110)。CPU11は、その並べ替えができた場合には(ステップS111;YES)、そのときの各外接矩形の前後を表す順序を、これらの外接矩形を関連付けてRAM13に記憶する。そして、CPU11は、処理をステップS105に戻して、次の1組の外接矩形を処理の対象とする。一方、並べ替え手段117は、その並び替えができなかったとき(ステップS111;NO)、CPU11は、処理をステップS112に進めて、外接矩形を統合する。   On the other hand, when it is determined that the operation state is not an operation state in which the processing speed is prioritized (step S109; NO), the CPU 11 is a region of one circumscribed rectangle among the set of circumscribed rectangles extracted in step S105. In order to prevent the connected components in the other circumscribed rectangle from overlapping each other when viewed from the front, an attempt is made to superimpose one circumscribed rectangle on the front of the other circumscribed rectangle (step S110). If the rearrangement has been completed (step S111; YES), the CPU 11 stores the order representing the front and rear of each circumscribed rectangle in the RAM 13 in association with these circumscribed rectangles. Then, the CPU 11 returns the process to step S105 and sets the next set of circumscribed rectangles as the processing target. On the other hand, when the rearrangement unit 117 cannot perform the rearrangement (step S111; NO), the CPU 11 advances the process to step S112 and integrates the circumscribed rectangles.

CPU11は、ステップS112の処理を経た後、動作状態が画像データのデータサイズを優先する動作状態であるか否かを判断する(ステップS113)。ここで、「画像データのデータサイズを優先する」とは、画像データが記憶媒体に記憶される際に必要とする記憶容量を小さく抑えることを意味する。動作状態が画像データのデータサイズを優先する動作状態ではないと判断した場合(ステップS113;NO)、CPU11は、ステップS105の処理に戻り、次の1組の外接矩形を処理の対象とする。一方、動作状態が画像データのデータサイズを優先する動作状態であると判断した場合(ステップS113;YES)、CPU11は、生成した統合領域の基となった外接矩形を全て削除し(ステップS114)、その後、処理をステップS105に戻す。つまり、図6(a)、(b)の例で言えば、統合領域である外接矩形R3aに含まれる連結成分に対応する画像データがRAM13に記憶されたまま、外接矩形R1a、R2aにそれぞれ含まれる連結成分に対応する画像データがRAM13から消去される。   After the processing of step S112, the CPU 11 determines whether or not the operation state is an operation state that prioritizes the data size of the image data (step S113). Here, “prioritize the data size of the image data” means that the storage capacity required when the image data is stored in the storage medium is kept small. If the CPU 11 determines that the operation state is not an operation state that prioritizes the data size of the image data (step S113; NO), the CPU 11 returns to the process of step S105 and sets the next set of circumscribed rectangles as the processing target. On the other hand, when it is determined that the operation state is an operation state that prioritizes the data size of the image data (step S113; YES), the CPU 11 deletes all circumscribed rectangles that are the basis of the generated integrated region (step S114). Thereafter, the process returns to step S105. That is, in the example of FIGS. 6A and 6B, the image data corresponding to the connected component included in the circumscribed rectangle R3a that is the integrated region is included in the circumscribed rectangles R1a and R2a while being stored in the RAM 13. The image data corresponding to the connected component is erased from the RAM 13.

以上の処理が進行するにつれて、各外接矩形に含まれる連結成分に対応する画像データが、画像を構成する要素の一単位としてRAM13に記憶される。よって、これらの個々の画像データを用いた処理を行うことが可能となる。例えば、利用者によって操作される操作手段と、記憶された連結成分に対応する画像データを画像を構成する要素の一単位として、当該画像データを用いて操作手段における操作に応じた処理を行う処理手段とを具備する情報処理装置によって、これらの個々の画像データを用いた処理を行うことが可能となる。   As the above processing proceeds, image data corresponding to the connected component included in each circumscribed rectangle is stored in the RAM 13 as one unit of elements constituting the image. Therefore, it is possible to perform processing using these individual image data. For example, the operation means operated by the user and the image data corresponding to the stored connected component as a unit of the elements constituting the image, and processing according to the operation on the operation means using the image data It is possible to perform processing using these individual image data by an information processing apparatus including the means.

4.変形例
以上が実施形態の説明であるが、この実施形態の内容は以下のように変形し得る。また、以下の変形例を組み合わせてもよい。
(1)上述した実施形態において、CPU11は、動作状態が画像データのデータサイズを優先する動作状態であると判断した場合に、生成した統合領域の基となった外接矩形を全て削除していたが、CPU11が削除する外接矩形は一部でもよい。例えば、生成した統合領域の基となった全ての外接矩形について、それぞれのデータサイズを比較し、最もデータサイズが大きい外接矩形を選択して削除するようにしてもよい。これにより、最もデータサイズが大きくない方の外接矩形については、統合領域から切り出すことにより再利用することができる。
4). Modification The above is the description of the embodiment, but the contents of this embodiment can be modified as follows. Further, the following modifications may be combined.
(1) In the above-described embodiment, when the CPU 11 determines that the operation state is an operation state that prioritizes the data size of the image data, the CPU 11 deletes all circumscribed rectangles that are the basis of the generated integrated region. However, the circumscribed rectangle deleted by the CPU 11 may be a part. For example, the data sizes of all the circumscribed rectangles that are the basis of the generated integrated region may be compared, and the circumscribed rectangle having the largest data size may be selected and deleted. As a result, the circumscribed rectangle having the smallest data size can be reused by cutting out from the integrated area.

また、統合領域の生成と、統合領域の基となった外接矩形の削除は同時に行われてもよい。
また、動作状態が画像データのデータサイズを優先する動作状態であるか否かの判断は、行わなくてもよい。この場合、統合の基となったデータは必ず削除するようにしてもよいし、統合領域の背後に相当する順序を割り当てて必ず記憶するようにしてもよい。
The generation of the integrated area and the deletion of the circumscribed rectangle that is the basis of the integrated area may be performed simultaneously.
Further, it is not necessary to determine whether or not the operation state is an operation state that prioritizes the data size of the image data. In this case, the data that is the basis of integration may be deleted without fail, or an order corresponding to the back of the integration area may be assigned and stored.

(2)上述した実施形態において、重畳外接矩形抽出手段113が複数の外接矩形の重畳関係を判定する際に、互いに重なり合う2以上の外接矩形を全て関連付けていたが、外接矩形を2つずつ選択して重畳関係を判断し、重畳している場合に、選択したこの2つの外接矩形について処理してもよい。この場合であっても、逐次、図2において枠11bに囲んだ内側の手段により調整処理が行われ、その後の外接矩形群について、さらに重畳判定が行われるので、全ての外接矩形は、その内部の写真画像が表示されるよう順序が割り当てられるとともに、個別に処理可能な状態でRAM13に個別に記憶される。 (2) In the above-described embodiment, when the superposition circumscribed rectangle extracting unit 113 determines the superposition relationship of a plurality of circumscribed rectangles, all the two or more circumscribed rectangles that overlap each other are associated. Then, when the superposition relationship is determined and the superposition is performed, the two circumscribed rectangles selected may be processed. Even in this case, the adjustment processing is sequentially performed by the inner means surrounded by the frame 11b in FIG. 2, and further superimposition determination is performed for the subsequent circumscribed rectangle group. The order is assigned so that the photographic images are displayed, and the photographic images are individually stored in the RAM 13 so that they can be processed individually.

(3)上述した実施形態において、情報処理部1は、画像処理装置10に内蔵されたものであったが、情報処理部1は、パーソナルコンピュータで実現してもよい。
また、図2の二点鎖線で囲んだ各手段は、情報処理部1のCPU11により実現される機能であったが、これら各手段は、CPU11以外によって実現されてもよい。例えば、これら各手段は専用の画像処理プロセッサによって実現されてもよい。
(3) In the above-described embodiment, the information processing unit 1 is built in the image processing apparatus 10, but the information processing unit 1 may be realized by a personal computer.
2 is a function realized by the CPU 11 of the information processing unit 1, but these means may be realized by other than the CPU 11. For example, each of these means may be realized by a dedicated image processor.

(4)連結成分が外接する図形は、矩形でなくても、連結成分が外接する図形であれば、その形状は問わない。 (4) Even if the figure that circumscribes the connected component is not a rectangle, the figure does not matter as long as it is a figure that circumscribes the connected component.

1…情報処理部、2…スキャナ、3…画像形成部、10…画像処理装置、11…CPU、12…ROM、13…RAM、15…入力部、16…出力部、19…バス、110…取得手段、111…連結成分抽出手段、112…属性判定手段、113…重畳外接矩形抽出手段、114…処理選択手段、115…動作状態指定手段、116…変換手段、117…並べ替え手段、118…統合手段。 DESCRIPTION OF SYMBOLS 1 ... Information processing part, 2 ... Scanner, 3 ... Image forming part, 10 ... Image processing apparatus, 11 ... CPU, 12 ... ROM, 13 ... RAM, 15 ... Input part, 16 ... Output part, 19 ... Bus, 110 ... Obtaining means 111 ... Connected component extracting means 112 ... Attribute determining means 113 ... Superposed circumscribed rectangle extracting means 114 ... Process selecting means 115 ... Operating state specifying means 116 ... Converting means 117 ... Sorting means 118 ... Integration means.

Claims (7)

各画素の画素値が記述された画像データから連結成分を抽出する抽出手段と、
前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、
前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、
前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、
前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、
前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、
前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段と
を具備することを特徴とする画像処理装置。
Extracting means for extracting a connected component from image data in which a pixel value of each pixel is described;
Storage means for storing image data corresponding to the connected component extracted by the extraction means as a unit of elements constituting the image;
A circumscribed figure extracting means for extracting a circumscribed figure in which a region of one circumscribed figure and a connected component in the other circumscribed figure are overlapped among the circumscribed figures in which each connected component extracted by the extracting means is circumscribed,
Of the pixels included in each circumscribed graphic extracted by the circumscribed graphic extracting means, a pixel that is not the connected component is converted into a pixel that means that a pixel overlapping behind the own pixel is transmitted to the front of the own pixel. First processing means for performing processing;
One circumscribing figure of the other circumscribing figure is not overlapped so that the area of one circumscribing figure extracted by the circumscribing figure extracting means and the connected component in the other circumscribing figure do not overlap when viewed from the front. Second processing means for performing processing to be superimposed on the front surface;
A circumscribed figure that is circumscribed with a connected component in at least one of the circumscribed figures extracted by the circumscribed figure extracting means and that includes all the extracted circumscribed figures is specified and included in the identified circumscribed figure Third processing means for performing processing for storing the image data corresponding to the one and the other connected components in the storage means as one unit of the element;
The first processing means, the second processing means, or the third processing according to a condition for selecting any one of the first processing means, the second processing means, and the third processing means. An image processing apparatus comprising: processing selecting means for selecting any of the means and causing the selected processing means to perform processing on the circumscribed graphic extracted by the circumscribed graphic extracting means.
画像の画質を優先することの有無に関する動作状態及び処理の速度を優先することの有無に関する動作状態を指定する指定手段を備え、
前記処理選択手段は、
前記指定手段により指定された動作状態が画像の画質を優先する動作状態ではない場合には、前記第1の処理手段を選択し、
前記指定手段により指定された動作状態が、画像の画質を優先する動作状態であり、且つ、処理の速度を優先する動作状態でない場合には、前記第2の処理手段を選択し、
前記指定手段により指定された動作状態が、画像の画質を優先する動作状態であり、かつ、処理の速度を優先する動作状態である場合、または、前記第2の処理手段により前記一方の外接図形の領域と前記他方の外接図形内の連結成分とが重なり合わないようにして前記一方の外接図形と前記他方の外接図形とを重ねることができない場合に、前記第3の処理手段を選択する
ことを特徴とする請求項1記載の画像処理装置。
A designating unit for designating an operation state regarding whether or not to prioritize image quality and an operation state regarding whether or not to prioritize processing speed;
The processing selection means includes
If the operating state specified by the specifying means is not an operating state that prioritizes the image quality of the image, the first processing means is selected,
If the operating state specified by the specifying means is an operating state that prioritizes image quality and is not an operating state that prioritizes processing speed, the second processing means is selected,
When the operating state specified by the specifying means is an operating state that prioritizes the image quality of the image and an operating state that prioritizes the processing speed, or the one circumscribed figure by the second processing means Selecting the third processing means when the one circumscribed figure and the other circumscribed figure cannot be overlaid so that the connected component in the other circumscribed figure does not overlap with the connected component in the other circumscribed figure. The image processing apparatus according to claim 1.
画像データのデータ量を制限することの有無に関する動作状態を指定する指定手段を備え、
前記指定手段により画像データのデータ量を制限する動作状態が指定されている場合に前記処理選択手段が前記第3の処理手段を選択したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させて、当該一方又は当該他方の連結成分に対応する画像データのうち少なくともいずれか1つを削除し、
前記指定手段により画像データのデータ量を制限しない動作状態が指定されている場合に前記処理選択手段が前記第3の処理手段を選択したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させるほか、当該一方の連結成分及び当該他方の連結成分をそれぞれ前記要素の一単位として記憶手段に記憶させる
ことを特徴とする請求項1に記載の画像処理装置。
A designation means for designating an operation state related to whether or not to limit the amount of image data;
When the processing selecting unit selects the third processing unit when an operation state that restricts the data amount of the image data is specified by the specifying unit, the third processing unit selects the one and the other Image data corresponding to the connected component is stored in the storage means as one unit of the element, and at least one of the image data corresponding to the one or the other connected component is deleted,
When the processing selecting unit selects the third processing unit when an operation state that does not limit the amount of image data is specified by the specifying unit, the third processing unit selects the one and the other The image data corresponding to the connected component is stored in the storage means as one unit of the element, and the one connected component and the other connected component are each stored in the storage means as one unit of the element. The image processing apparatus according to claim 1.
前記指定手段により画像データのデータ量を制限する動作状態が指定されている場合に前記処理抽出手段が前記第3の処理手段を抽出したときには、前記第3の処理手段は、前記一方及び前記他方の連結成分に対応する画像データを前記要素の1単位として記憶手段に記憶させるほか、当該一方又は当該他方の連結成分に対応する画像データのうち、データ量の大きいほうの画像データを前記記憶手段から削除する
ことを特徴とする請求項3に記載の画像処理装置。
When the processing extracting unit extracts the third processing unit when an operation state that restricts the data amount of the image data is specified by the specifying unit, the third processing unit extracts the one and the other The image data corresponding to the connected component is stored in the storage means as one unit of the element, and the image data having the larger data amount among the image data corresponding to the one or the other connected component is stored in the storage means. The image processing apparatus according to claim 3, wherein the image processing apparatus is deleted from the image processing apparatus.
請求項1乃至請求項4のいずれかに記載の画像処理装置と、
利用者によって操作される操作手段と、
前記画像処理装置の記憶手段に記憶された連結成分に対応する画像データを画像を構成する要素の一単位として、当該画像データを用いて前記操作手段における操作に応じた処理を行う処理手段と
を具備することを特徴とする情報処理装置。
An image processing apparatus according to any one of claims 1 to 4,
An operation means operated by a user;
Processing means for performing processing in accordance with an operation in the operation means using the image data, with the image data corresponding to the connected component stored in the storage means of the image processing apparatus as a unit of an element constituting the image. An information processing apparatus comprising the information processing apparatus.
記録媒体に描かれた画像を読み取り、当該画像を構成する各画素の画素値が記述された画像データを出力する読取手段と、
前記読取手段から出力された画像データから連結成分を抽出する抽出手段と、
前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、
前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、
前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、
前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、
前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、
前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段と
を具備することを特徴とする画像読取装置。
Reading means for reading an image drawn on a recording medium and outputting image data in which pixel values of respective pixels constituting the image are described;
Extraction means for extracting a connected component from the image data output from the reading means;
Storage means for storing image data corresponding to the connected component extracted by the extraction means as a unit of elements constituting the image;
A circumscribed figure extracting means for extracting a circumscribed figure in which a region of one circumscribed figure and a connected component in the other circumscribed figure are overlapped among the circumscribed figures in which each connected component extracted by the extracting means is circumscribed,
Of the pixels included in each circumscribed graphic extracted by the circumscribed graphic extracting means, a pixel that is not the connected component is converted into a pixel that means that a pixel overlapping behind the own pixel is transmitted to the front of the own pixel. First processing means for performing processing;
One circumscribing figure of the other circumscribing figure is not overlapped so that the area of one circumscribing figure extracted by the circumscribing figure extracting means and the connected component in the other circumscribing figure do not overlap when viewed from the front. Second processing means for performing processing to be superimposed on the front surface;
A circumscribed figure that is circumscribed with a connected component in at least one of the circumscribed figures extracted by the circumscribed figure extracting means and that includes all the extracted circumscribed figures is specified and included in the identified circumscribed figure Third processing means for performing processing for storing the image data corresponding to the one and the other connected components in the storage means as one unit of the element;
The first processing means, the second processing means, or the third processing according to a condition for selecting any one of the first processing means, the second processing means, and the third processing means. An image reading apparatus comprising: processing selecting means for selecting any of the means and causing the selected processing means to perform processing on the circumscribed graphic extracted by the circumscribed graphic extracting means.
コンピュータを、
各画素の画素値が記述された画像データから連結成分を抽出する抽出手段と、
前記抽出手段により抽出された連結成分に対応する画像データを、画像を構成する要素の一単位として記憶する記憶手段と、
前記抽出手段により抽出された各連結成分が外接する図形である外接図形のうち、一方の外接図形の領域と他方の外接図形内の連結成分とが重なり合う外接図形を抽出する外接図形抽出手段と、
前記外接図形抽出手段により抽出された外接図形の各々に含まれる画素のうち前記連結成分ではない画素を、自画素の背後に重なる画素を自画素の前面に透過させることを意味する画素に変換する処理を行う第1の処理手段と、
前記外接図形抽出手段により抽出された一方の外接図形の領域と他方の外接図形内の連結成分とが前面から見たときに重なり合わないように、いずれか一方の外接図形を他方の外接図形の前面に重ねる処理を行う第2の処理手段と、
前記外接図形抽出手段により抽出された少なくともいずれかの外接図形内の連結成分に外接し、且つ、抽出された全ての外接図形を含む図形である外接図形を特定し、特定した当該外接図形に含まれる前記一方及び前記他方の連結成分に対応する画像データを、前記要素の1単位として前記記憶手段に記憶させる処理を行う第3の処理手段と、
前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択するための条件に従い、前記第1の処理手段、前記第2の処理手段又は前記第3の処理手段のいずれかを選択し、選択した処理手段に、前記外接図形抽出手段により抽出された外接図形に対する処理を行わせる処理選択手段と
して実現させるためのプログラム。
Computer
Extracting means for extracting a connected component from image data in which a pixel value of each pixel is described;
Storage means for storing image data corresponding to the connected component extracted by the extraction means as a unit of elements constituting the image;
A circumscribed figure extracting means for extracting a circumscribed figure in which a region of one circumscribed figure and a connected component in the other circumscribed figure are overlapped among the circumscribed figures in which each connected component extracted by the extracting means is circumscribed,
Of the pixels included in each circumscribed graphic extracted by the circumscribed graphic extracting means, a pixel that is not the connected component is converted into a pixel that means that a pixel overlapping behind the own pixel is transmitted to the front of the own pixel. First processing means for performing processing;
One circumscribing figure of the other circumscribing figure is not overlapped so that the area of one circumscribing figure extracted by the circumscribing figure extracting means and the connected component in the other circumscribing figure do not overlap when viewed from the front. Second processing means for performing processing to be superimposed on the front surface;
A circumscribed figure that is circumscribed with a connected component in at least one of the circumscribed figures extracted by the circumscribed figure extracting means and that includes all the extracted circumscribed figures is specified and included in the identified circumscribed figure Third processing means for performing processing for storing the image data corresponding to the one and the other connected components in the storage means as one unit of the element;
The first processing means, the second processing means, or the third processing according to a condition for selecting any one of the first processing means, the second processing means, and the third processing means. A program for selecting one of the means and causing the selected processing means to execute as processing selection means for performing processing on the circumscribed graphic extracted by the circumscribed graphic extracting means.
JP2009068913A 2009-03-19 2009-03-19 Image processing apparatus, information processing apparatus, image reading apparatus, and program Expired - Fee Related JP5206529B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009068913A JP5206529B2 (en) 2009-03-19 2009-03-19 Image processing apparatus, information processing apparatus, image reading apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009068913A JP5206529B2 (en) 2009-03-19 2009-03-19 Image processing apparatus, information processing apparatus, image reading apparatus, and program

Publications (2)

Publication Number Publication Date
JP2010224678A JP2010224678A (en) 2010-10-07
JP5206529B2 true JP5206529B2 (en) 2013-06-12

Family

ID=43041826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009068913A Expired - Fee Related JP5206529B2 (en) 2009-03-19 2009-03-19 Image processing apparatus, information processing apparatus, image reading apparatus, and program

Country Status (1)

Country Link
JP (1) JP5206529B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774579A (en) * 1995-08-11 1998-06-30 Canon Kabushiki Kaisha Block selection system in which overlapping blocks are decomposed
JP3720892B2 (en) * 1995-12-15 2005-11-30 株式会社東芝 Image processing method and image processing apparatus
JP2003179738A (en) * 2001-12-11 2003-06-27 Minolta Co Ltd Image processor

Also Published As

Publication number Publication date
JP2010224678A (en) 2010-10-07

Similar Documents

Publication Publication Date Title
JP4821869B2 (en) Character recognition device, image reading device, and program
JP4875470B2 (en) Color correction apparatus and color correction program
JP4730775B2 (en) Image processing device
JP4419876B2 (en) Image processing device
JP2006303707A (en) Image processing apparatus and image processing method
US8533590B2 (en) Information processing apparatus and layout processing method
JP5206529B2 (en) Image processing apparatus, information processing apparatus, image reading apparatus, and program
US6496198B1 (en) Color editing system
JP4334981B2 (en) Image processing apparatus and image processing method
JP6294572B2 (en) Image processing apparatus, image processing method, and program
JP4148165B2 (en) Image composition to create a composite image by overlaying images
EP2713334B1 (en) Product image processing apparatus, product image processing method, information storing medium, and program
JP5672168B2 (en) Image processing apparatus, image processing method, and program
JP2001092952A (en) Method for combining device independent bit maps by preventing artifact
JP4911585B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP6711031B2 (en) Image processing apparatus, image processing method, image processing system and program
JP5648340B2 (en) Image processing apparatus and program
JP2006054817A (en) Document processor
JP2011186906A (en) Image processing apparatus and program
JP7392341B2 (en) Information processing device and information processing program
JP2009075805A (en) Image forming apparatus
JP2009070103A (en) Image processor and image processing method
JP5207941B2 (en) Image processing apparatus, image processing method, and program
JP2011134035A (en) Image processing device, control method therefor and program
JP2008225653A (en) Image processing method, image processor, program, and program storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130111

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: 20130122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130204

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160301

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5206529

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees