JPH07160897A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH07160897A
JPH07160897A JP5308851A JP30885193A JPH07160897A JP H07160897 A JPH07160897 A JP H07160897A JP 5308851 A JP5308851 A JP 5308851A JP 30885193 A JP30885193 A JP 30885193A JP H07160897 A JPH07160897 A JP H07160897A
Authority
JP
Japan
Prior art keywords
image
area
image processing
writing
closed area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5308851A
Other languages
Japanese (ja)
Inventor
Yukio Yamaguchi
幸男 山口
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP5308851A priority Critical patent/JPH07160897A/en
Publication of JPH07160897A publication Critical patent/JPH07160897A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To apply an appropriate area processing such as painting-out, etc., to the closed area of an original line to form the closed area by executing thickening processing to a read original picture at the time when a writing means writes the original picture in a storage means. CONSTITUTION:First of all, one arbitrary point in the desired closed area existing on the original is designated by using a digitizer 104. Next, in a picture reading part 101, the original picture is read by executing pre-scanning, and is inputted as binary data to a bit map memory. Next, the coordinates of a contour tracing starting point for extracting the contour line are determined and the tracing of the contour line is executed from the determined contour tracing starting point, and contour information is acquired. Area data is calculated on the basis of the acquired contour information, and this area data is written in the bit map memory. The data of the read binary data given the thickening processing is stored in the bit map memory through this processing. Accordingly, as for the inner boundary of the contour line, the inner boundary is formed at the inside of the inner boundary of the closed area in the actual original.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は画像処理装置、特に入
力された画像データに対して指定した閉領域に任意の画
像処理を施して出力するデジタル複写機、プリンタ等の
画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus such as a digital copying machine, a printer or the like for performing arbitrary image processing on a designated closed area of input image data and outputting the image data.

【0002】[0002]

【従来の技術】従来より、デジタル複写機等の画像処理
装置において、通常の複写動作の他に原稿画像に対して
特定の画像処理を施す機能を持つものが知られている。
またこのような装置において、原稿画像中の任意の閉領
域を指定し、この指定した閉領域に対して他の領域と異
なる画像処理を行うことができるものがある。
2. Description of the Related Art Conventionally, there is known an image processing apparatus such as a digital copying machine having a function of performing a specific image processing on a document image in addition to a normal copying operation.
Further, in such an apparatus, there is a device capable of designating an arbitrary closed region in a document image and performing image processing on the designated closed region different from other regions.

【0003】このような画像処理装置の従来技術とし
て、特公平2−45227号公報に画像データに対して
指定した閉領域内の塗り潰し処理を行う発明が記載され
ている。この発明は、指定閉領域内の塗り潰しを行う際
に、塗り残しを防止することを目的としたものである。
そのため閉領域を形成する輪郭線を抽出する際、実際の
輪郭線よりも大きく輪郭線を近似し、近似した輪郭線に
基づいて塗り潰し処理を行うことにより、指定閉領域内
について塗り残しのない塗り潰し処理を行う構成を採用
している。
As a conventional technique of such an image processing apparatus, Japanese Patent Publication No. 2-45227 discloses an invention for performing a filling process in a specified closed region for image data. An object of the present invention is to prevent unpainted portions from being left behind when filling a designated closed area.
Therefore, when extracting the contour line forming the closed area, the contour line is approximated to be larger than the actual contour line, and the filling process is performed based on the approximated contour line, so that the unfilled fill in the specified closed region is performed. It adopts a configuration that performs processing.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の技術によれば、輪郭線を抽出する際に実際の輪郭線
よりも大きく輪郭を近似することにより輪郭線情報を抽
出するため、以下のような不具合が生じる。例えば図1
2に示した表の指定した記入欄(閉領域に該当する)の
内部を白塗り潰し処理し、図14に示すような表枠のみ
にすることによって表枠を再利用しようとする場合、指
定した記入欄を形成する表枠自体も塗り潰してしまい、
図13のような表枠の一部が塗りつぶされた出力結果と
なってしまいうという不具合が生じる。本発明は上記不
具合に鑑みてなされたもので、原稿の閉領域を、閉領域
を形成する輪郭線を消すことなく、適切な塗り潰し等の
エリア処理を施すことができる画像処理装置を提供する
ことを目的とする。
However, according to the above-mentioned conventional technique, when the contour line is extracted, the contour line information is extracted by approximating the contour line by a degree larger than the actual contour line. Trouble occurs. Figure 1
When the inside of the designated entry column (corresponding to the closed area) in the table shown in 2 is filled with white and only the table frame as shown in FIG. The table frame itself that forms the entry field is also filled,
There is a problem that the output result is as shown in FIG. 13 in which a part of the table frame is filled. The present invention has been made in view of the above problems, and provides an image processing apparatus capable of performing an appropriate area processing such as filling in a closed area of a document without erasing a contour line forming the closed area. With the goal.

【0005】[0005]

【課題を解決するための手段】本発明では上記課題を解
決するために、読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、原稿画像を読み取
る読取手段と、読取手段により読み取った原稿画像を記
憶する記憶手段と、原稿画像を該記憶手段に書き込む書
込み手段と、記憶手段に記憶された原稿画像から閉領域
を抽出する閉領域抽出手段と、閉領域内の画像に対して
画像処理を行う画像処理手段を有し、書込み手段が原稿
画像を記憶手段に書き込む際、読み取った原稿画像に対
して太らせ処理を行う構成を採用した。
According to the present invention, in order to solve the above-mentioned problems, in an image processing apparatus for performing image processing on a closed region of a read original image, a reading unit for reading the original image and a reading unit A storage unit that stores the read original image, a writing unit that writes the original image in the storage unit, a closed region extraction unit that extracts a closed region from the original image stored in the storage unit, and an image in the closed region An image processing unit that performs image processing is provided, and when the writing unit writes the document image in the storage unit, the read document image is thickened.

【0006】また、閉領域抽出手段による輪郭線の検出
は閉領域を形成する輪郭線の内側を抽出する構成を採用
した。さらに、読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、原稿画像を読み取
る読取手段と、読取手段により読み取った原稿画像を記
憶する第1の記憶手段と、第1の記憶手段に原稿画像を
書き込む第1の書込み手段と、第1の記憶手段に記憶さ
れた原稿画像から閉領域を抽出する閉領域抽出手段と、
抽出された閉領域の外周を表すデータを記憶する第2の
記憶手段と、第2の記憶手段にデータを書き込む第2の
書込み手段と、第2の記憶手段に記憶された外周を表す
データに基づいて閉領域内の画像に対して画像処理を行
う画像処理手段を有し、第2の書込み手段が第2の記憶
手段にデータを書き込む際、外周を表すデータを閉領域
の内側方向に修正して書き込む構成を採用した。
Further, the closed area extracting means employs a structure for extracting the inside of the outline forming the closed area. Further, in an image processing apparatus that performs image processing on a closed area of a read document image, a reading unit that reads the document image, a first storage unit that stores the document image read by the reading unit, and a first storage. First writing means for writing the original image in the means, closed area extracting means for extracting the closed area from the original image stored in the first storage means,
Second storage means for storing data representing the outer circumference of the extracted closed region, second writing means for writing data into the second storage means, and data representing the outer circumference stored in the second storage means. An image processing unit that performs image processing on the image in the closed region based on the second writing unit writes data in the second storage unit. Then, the configuration for writing is adopted.

【0007】また、上記画像処理手段が画像処理を行う
際、第2の記憶手段が記憶する外周を表すデータによっ
て表される閉領域よりも内側の領域について画像処理を
施す構成を採用した。また、上記画像処理手段が画像処
理を行う際、第2の記憶手段が記憶する閉領域よりも内
側の領域について画像処理を施すこと構成を採用した。
Further, when the image processing means carries out the image processing, the image processing is carried out for the area inside the closed area represented by the data representing the outer circumference stored in the second storage means. Further, when the image processing means performs the image processing, the image processing is performed on the area inside the closed area stored in the second storage means.

【0007】[0007]

【作用】本発明は上記構成を採用したので、請求項1に
係る発明では、読み取った原稿画像に対して太らせ処理
を行うため、表枠の内部を白塗り潰し処理した場合、表
枠を消すことなく白塗り潰しする作用がある。請求項2
に係る発明では、輪郭線の追跡は閉領域を形成する輪郭
線の内側を輪郭として検出するため、同様の作用があ
る。請求項3に係る発明では、閉領域を示すデータを記
憶手段に書き込む際、閉領域の外周を表すデータを閉領
域の内側方向に修正して書き込むので、同様の作用があ
る。請求項4に係る発明では、画像処理手段が画像処理
を行う際、記憶手段が記憶する閉領域の外周を表すデー
タにより表される閉領域よりも内側の領域について画像
処理を施すので、同様の効果がある。
Since the present invention employs the above configuration, in the invention according to claim 1, since the read document image is thickened, when the inside of the table frame is white-painted, the table frame is erased. It has the effect of filling in white without. Claim 2
In the invention according to, the contour line tracking has the same effect because the inside of the contour line forming the closed region is detected as the contour. According to the third aspect of the present invention, when the data indicating the closed area is written in the storage means, the data indicating the outer circumference of the closed area is corrected and written in the inward direction of the closed area, so that there is a similar effect. In the invention according to claim 4, when the image processing means performs the image processing, the image processing is performed on the area inside the closed area represented by the data representing the outer circumference of the closed area stored in the storage means. effective.

【0008】[0008]

【実施例】 以下、この発明の実施例を添付の図面に
基づいて具体的に説明する。 (1)全体構成 図1に本発明を用いたディジタル複写機の構成を示すブ
ロック図を示す。画像読取部101は照明ランプ、ミラ
ーおよびレンズ、CCD等で構成され、不図示の原稿を
光学的に読み取り、読み取った画像データを画像処理部
102に出力する。
Embodiments of the present invention will be specifically described below with reference to the accompanying drawings. (1) Overall Configuration FIG. 1 is a block diagram showing the configuration of a digital copying machine using the present invention. The image reading unit 101 includes an illumination lamp, a mirror, a lens, a CCD, and the like, optically reads a document (not shown), and outputs the read image data to the image processing unit 102.

【0009】画像処理部102では入力された画像デー
タに対して、閉領域の塗り潰し処理等のエリア処理を含
む各種画像処理を施し、処理後の画像データを画像記録
部103に出力する。画像記録部103は入力される画
像データに基づいて、各種画像処理が施された画像を所
定の記録紙へ出力する。また、デジタイザ104は画像
処理部でエリア処理を行う際、所望のエリアを指定摺る
ための座標データの入力等に用いるものである。さらに
各ブロックは、システム制御部105に接続されてお
り、システム制御部105は所望の処理を行うように各
ブロックを制御する。
The image processing unit 102 performs various image processing including area processing such as filling processing of a closed area on the input image data, and outputs the processed image data to the image recording unit 103. The image recording unit 103 outputs an image subjected to various image processings to a predetermined recording paper based on the input image data. The digitizer 104 is used for inputting coordinate data for designating a desired area when the image processing unit performs area processing. Further, each block is connected to the system control unit 105, and the system control unit 105 controls each block so as to perform desired processing.

【0010】本発明は、上述したブロックの中で特に画
像処理部102に関するものであり、他の構成は公知の
技術を用いることができる。次に、図1の装置の画像処
理部102について説明する。
The present invention particularly relates to the image processing unit 102 among the above-mentioned blocks, and a publicly known technique can be used for other configurations. Next, the image processing unit 102 of the apparatus shown in FIG. 1 will be described.

【0011】図2に画像処理部102の構成を示す。画
像読取部101が出力する原稿画像の画像データは、フ
ィルタ処理部201およびビットマップメモリ205に
入力される。符号201から204で示す各ブロック
は、エリア処理制御部206の指示に基づいて画像読取
部101から入力される画像データに対して各画像処理
を施す機能を有するものであり、フィルタ処理部201
は空間フィルタ処理、図形加工処理部202は網掛け処
理、中間調処理部203は濃度調整処理、カラー加工処
理部204はペイント(塗り潰し)処理、をそれぞれ行
う。
FIG. 2 shows the configuration of the image processing unit 102. The image data of the original image output by the image reading unit 101 is input to the filter processing unit 201 and the bitmap memory 205. Each block denoted by reference numerals 201 to 204 has a function of performing each image processing on the image data input from the image reading unit 101 based on an instruction from the area processing control unit 206.
Performs a spatial filtering process, the graphic processing unit 202 performs a halftone process, the halftone processing unit 203 performs a density adjustment process, and the color processing unit 204 performs a paint (painting) process.

【0012】符号205で示すものは1あるいは複数の
エリアの画像データおよび各エリアにおける処理の内容
を示すエリアデータを記憶するビットマップメモリであ
る。エリア処理制御部206はエリア処理に関する制御
を行うブロックであり、ビットマップメモリ205への
エリアデータの書き込み制御、エリアデータに基づく各
エリアの処理の制御等を行う。RAM207はビットマ
ップメモリ205に記憶されたデータより抽出した画像
データの輪郭情報を記憶するブロックである。図3はエ
リア処理に使用するエリアデータのデータ構造を示す。
本実施例ではエリアデータを1アドレス当たり深さ方向
に4ビットで構成し、この4つのビットで上述した4つ
の画像処理ブロック、フィルタ処理部201、図形加工
処理部202、中間調処理部203およびカラー加工処
理部204の動作のON/OFFを制御する。
Reference numeral 205 is a bit map memory for storing image data of one or a plurality of areas and area data indicating the contents of processing in each area. The area processing control unit 206 is a block that performs control related to area processing, and controls writing of area data to the bitmap memory 205, control of processing of each area based on the area data, and the like. The RAM 207 is a block that stores contour information of image data extracted from the data stored in the bitmap memory 205. FIG. 3 shows a data structure of area data used for area processing.
In this embodiment, the area data is composed of 4 bits per address in the depth direction, and the 4 image processing blocks, the filter processing unit 201, the graphic processing unit 202, the halftone processing unit 203, and ON / OFF of the operation of the color processing unit 204 is controlled.

【0013】(2)閉領域指定 次に、本実施例の閉領域指定について説明する。閉領域
指定とは、操作者が原稿上の1点を指定することによ
り、指定した1点を含む閉領域を指定することをいい、
この指定により各処理を行う閉領域を特定するデータを
システムに入力するものである。
(2) Closed Area Designation Next, the closed area designation of the present embodiment will be described. The closed area designation means that the operator designates one point on the document to designate a closed area including the designated one point.
By this designation, data that specifies the closed region in which each process is performed is input to the system.

【0014】図1〜4及び図5のフローチャートを用い
て説明する。図4において、まず原稿上に存在する所望
の閉領域内の任意の1点401をデジタイザ104(図
1)を用いて指定する。次に画像読取部101において
プレスキャンを行い原稿画像を読み取り二値化データと
して図2のビットマップメモリ205に入力する(S5
01)。
This will be described with reference to the flow charts of FIGS. In FIG. 4, first, an arbitrary point 401 within a desired closed area existing on the original is designated using the digitizer 104 (FIG. 1). Next, the image reading unit 101 performs pre-scanning, reads the original image, and inputs it as binary data to the bitmap memory 205 of FIG. 2 (S5).
01).

【0015】次に、輪郭線を抽出するための輪郭追跡開
始点の座標を求め(S502)、求めた輪郭追跡開始点
から輪郭追跡を行い輪郭情報を取得する(S503)。
取得した輪郭情報に基づいてエリアデータを算出しこの
エリアデータをビットマップメモリ205に書き込む
(S504)。
Next, the coordinates of the contour tracing start point for extracting the contour line are obtained (S502), and the contour tracing is performed from the obtained contour tracing starting point to obtain contour information (S503).
Area data is calculated based on the acquired contour information, and this area data is written to the bitmap memory 205 (S504).

【0016】以下、各ステップについて詳細に説明す
る。 原稿画像読取 S501 画像読取部101において原稿をプレスキャンし、原稿
画像を2値データとして読み取り、16×16のOR処
理を施した後、ビットマップメモリ205に書き込む。
この処理により図12に示すように、読み取った2値デ
ータに対してを太らせ処理を施したデータがビットマッ
プメモリ205に記憶される。例えば、画像データの分
解能が400DPIである場合、上記太らせ処理によ
り、最大約1mmだけ輪郭の境界線が内外に広がること
になる。従って、輪郭線の内境界は実際の原稿における
閉領域の内境界よりも内側に内境界が生じる。
Each step will be described in detail below. Document Image Reading S501 The document is pre-scanned in the image reading unit 101, the document image is read as binary data, 16 × 16 OR processing is performed, and then written in the bitmap memory 205.
As a result of this processing, as shown in FIG. 12, the read binary data is thickened and stored in the bitmap memory 205. For example, when the resolution of the image data is 400 DPI, the thickening process causes the boundary line of the contour to expand to the inside and outside by a maximum of about 1 mm. Therefore, the inner boundary of the contour line is inside the inner boundary of the closed area in the actual document.

【0017】輪郭追跡開始点の決定 S502 図6に輪郭追跡開始点の決定のフローチャートを示す。
輪郭追跡開始点の決定では、まずデジタイザ104を用
いて指定された指定座標に応じてビットマップメモリ2
05から指定座標位置に対応する2値データを取得する
(S601)。次にS602で指定座標の画素が黒か否
かを判定する。指定座標の画素が黒のときはエラーとし
てシステム制御部105にエラーコードを出力して(S
603)、処理を終了する。
Determination of Contour Tracking Start Point S502 FIG. 6 shows a flowchart for determining the contour tracking start point.
In determining the contour tracing start point, first, the bitmap memory 2 is selected according to the designated coordinates designated using the digitizer 104.
Binary data corresponding to the designated coordinate position is acquired from 05 (S601). Next, in step S602, it is determined whether the pixel of the designated coordinate is black. When the pixel at the designated coordinate is black, an error code is output to the system control unit 105 as an error (S
603), and the process ends.

【0018】一方、指定座標の画素が黒ではない場合に
は、指定座標の画素を注目画素に設定し(S604)、
注目画素の左隣の画素が黒か否かを判定する(S60
5)。注目画素の左隣が黒画素ならばそのときの注目画
素を輪郭追跡開始点とし、その座標を輪郭情報としてR
AM207にスタックして(S606)、処理を終了す
る。注目画素の左隣の画素が白ならば注目画素を1画素
左へ移動し(S608)、原稿左端に相当する座標ま
で、新たな注目画素が黒か否かを判定する処理を継続し
(S607、S605、S608)する。最左端の座標
まで注目画素を移動したにも関わらず黒画素が検出され
なかった場合にはエラーとしてシステム制御部105に
エラーコードを出力して(S603)、終了する。
On the other hand, if the pixel at the designated coordinate is not black, the pixel at the designated coordinate is set as the pixel of interest (S604),
It is determined whether or not the pixel on the left of the pixel of interest is black (S60).
5). If the pixel to the left of the pixel of interest is a black pixel, the pixel of interest at that time is used as the contour tracking start point, and its coordinates are used as the contour information.
It is stacked in the AM 207 (S606), and the process ends. If the pixel to the left of the pixel of interest is white, the pixel of interest is moved to the left by one pixel (S608), and the process of determining whether or not the new pixel of interest is black is continued until the coordinates corresponding to the left edge of the document (S607). , S605, S608). When the black pixel is not detected even though the pixel of interest has been moved to the leftmost coordinate, an error code is output to the system control unit 105 as an error (S603), and the process ends.

【0019】輪郭追跡 S503 図7に輪郭追跡のフローチャートを示す。まず、S50
2で決定した輪郭追跡開始点を注目画素に指定する(S
701)。つぎに注目画素の右隣の画素が白か否かを判
定する(S702)。S702において黒画素を検出し
た場合は、注目画素の右隣を始点として時計回りに8近
接画素の最初の白画素を検出する(S703)。一方、
S702において白画素を検出した場合は、注目画素の
右隣を始点として反時計回りに8近接画素の最初の黒画
素の前の白画素を検出する(S704)。
Contour Tracking S503 FIG. 7 shows a flowchart of contour tracking. First, S50
The contour tracking start point determined in 2 is designated as the pixel of interest (S
701). Next, it is determined whether the pixel to the right of the pixel of interest is white (S702). When a black pixel is detected in S702, the first white pixel of the eight adjacent pixels is detected clockwise starting from the adjacent point on the right of the pixel of interest (S703). on the other hand,
When a white pixel is detected in S702, the white pixel before the first black pixel of the eight adjacent pixels is detected counterclockwise starting from the adjacent point on the right of the target pixel (S704).

【0020】S703、S704にて白画素の検出に失
敗した場合、すなわち8近接画素のまわりが全て白画
素、あるいは全て黒画素であった場合には(S70
5)、エラーとしてシステム制御部105にエラーコー
ドを出力し(S706)、処理を終了する。ただし一度
白画素として検出された画素は再度白画素として検出し
ないものとする。白画素の検出に成功した場合(S70
5)、検出した白画素と注目画素との相対位置より図8
に示すチェインコードを求めて、そのコード値を輪郭情
報としてRAM207にスタックする(S710)。
When the detection of the white pixels fails in S703 and S704, that is, when the eight neighboring pixels are all white pixels or all black pixels (S70)
5), an error code is output to the system control unit 105 as an error (S706), and the process ends. However, a pixel once detected as a white pixel is not detected as a white pixel again. If the white pixels are successfully detected (S70
5) From the relative position between the detected white pixel and the pixel of interest, FIG.
The chain code shown in is obtained and the code value is stacked in the RAM 207 as contour information (S710).

【0021】次に、検出した白画素を新たな注目画素と
して(S708)、注目画素と上記輪郭追跡開始点が一
致するまでステップS702以下を繰り返す(S70
9)。新たな注目画素と輪郭追跡開始点が一致したら処
理を終了する。
Next, the detected white pixel is set as a new target pixel (S708), and steps S702 and thereafter are repeated until the target pixel and the contour tracking start point match (S70).
9). When the new pixel of interest and the contour tracking start point match, the process ends.

【0022】上記処理にり、図9に示すように、閉領域
の内側において指定座標が指定され、指定座標から輪郭
追跡開始点が得られた場合には、閉領域の1画素分内側
で輪郭追跡が実施され、輪郭情報がRAM207にスタ
ックされる(図9参照)。
According to the above processing, as shown in FIG. 9, when the designated coordinates are designated inside the closed area and the contour tracing start point is obtained from the designated coordinates, the contour is located inside one pixel of the closed area. Tracking is performed and contour information is stacked in the RAM 207 (see FIG. 9).

【0024】(3)エリアデータの書込み S504 エリアデータの書込みについて説明する。エリアデータ
とは、上述した処理により取得されRAM207にスタ
ックされている輪郭情報に基づいて生成される、指定閉
領域毎の施す処理を表すデータである。エラーコードが
発生することなく上記処理が終了した場合、正しく輪郭
情報が取得できたものと判断し、エリア処理制御部20
6は以下の処理を行う。
(3) Writing Area Data S504 Writing area data will be described. The area data is data representing the processing to be performed for each designated closed area, which is generated based on the contour information acquired by the above-described processing and stacked in the RAM 207. When the above processing ends without generating an error code, it is determined that the contour information has been correctly acquired, and the area processing control unit 20
6 performs the following processing.

【0023】まず、ビットマップメモリ205の内容を
クリアする。続いてRAM207にスタックされている
輪郭情報に基づいて、エリアデータを原稿の閉領域の輪
郭位置になるようにビットマップメモリ205に書き込
む。図10にエリアデータ書き込みのフローチャートを
示す。
First, the contents of the bit map memory 205 are cleared. Then, based on the contour information stacked in the RAM 207, the area data is written in the bitmap memory 205 so as to be the contour position of the closed area of the document. FIG. 10 shows a flowchart of area data writing.

【0024】エリア処理制御部206は、RAM207
に記憶されている輪郭情報を読みだし、注目位置におけ
る輪郭情報のチェインコードを検出する(S100
1)。もし、チェインコードが上向き成分あるいは下向
き成分を有していた場合(上、右上、左上あるいは下、
右下、左下)、主走査方向沿って閉領域の内側に向かっ
て4画素書き込み位置を補正する(S1002)。
The area processing control unit 206 has a RAM 207.
The contour information stored in is read and the chain code of the contour information at the target position is detected (S100).
1). If the chain code has an upward component or a downward component (upper, upper right, upper left or lower,
(Lower right, lower left), the four-pixel writing position is corrected toward the inside of the closed region along the main scanning direction (S1002).

【0025】上記補正を施した後、ビットマップメモリ
205において書き込み位置にエリアデータが既に書き
込まれているか否かを検出する(S1006)。S90
3において既存のエリアデータが検出された場合には書
き込むべきエリアデータの書き込み位置の補正を行う
(S1007)。ここでの書き込み位置の補正量は主走
査方向に1画素分とする
After the above correction, it is detected whether the area data has already been written in the write position in the bit map memory 205 (S1006). S90
When the existing area data is detected in 3, the writing position of the area data to be written is corrected (S1007). The correction amount of the writing position here is one pixel in the main scanning direction.

【0026】上記の書き込み位置の補正をした後、エリ
アデータをビットマップメモリ205に書き込む(S1
008)。その後、RAM上のチェインコードにより注
目画素位置をインクリメントし(S1010)、全ての
エリアデータの書き込みが終了するまで上記処理を繰り
返し、全てのエリアデータの書き込みが終了したら終了
する(S1009)。
After the above correction of the writing position, the area data is written in the bitmap memory 205 (S1).
008). After that, the position of the pixel of interest is incremented by the chain code on the RAM (S1010), and the above processing is repeated until the writing of all area data is completed, and is finished when the writing of all area data is completed (S1009).

【0027】以上の処理により、主走査方向に沿って4
画素分閉領域の内側の位置にエリアデータが書き込まれ
る。尚、エリア処理制御部206は、エリアの指定順序
に応じてエリア番号を割りつけてエリアデータを書き込
むとともに、各エリアの画像に対して行う処理を対応付
けるために、各エリア番号に対応する処理の内容を表す
テーブルを内部のメモリに記憶する。
By the above processing, 4 along the main scanning direction
Area data is written at a position inside the pixel-closed region. The area processing control unit 206 assigns area numbers according to the order in which the areas are designated and writes the area data, and in order to correlate the processing to be performed on the image of each area, the area processing control unit 206 The table showing the contents is stored in the internal memory.

【0028】(4)エリア処理 次に、エリア処理制御部によるエリアデータに応じたエ
リア処理について説明する。エリア処理制御部206
は、ビットマップメモリ205に書き込まれているエリ
アデータを主走査1ラインずつ読みだしてエリアデータ
を検出する。次に検出したエリアデータのエリア番号に
対応するエリア処理の内容を、エリアデータの書き込み
時に作成したテーブルを参照して特定し、フィルタ処理
部201、図形加工処理部202、中間調処理部203
およびカラー加工処理部204を制御し、各エリア毎に
指定された画像処理を実行する。
(4) Area Processing Next, area processing according to area data by the area processing control unit will be described. Area processing control unit 206
Reads the area data written in the bit map memory 205 for each main scanning line and detects the area data. Next, the content of the area processing corresponding to the area number of the detected area data is specified by referring to the table created when writing the area data, and the filter processing unit 201, the graphic processing unit 202, and the halftone processing unit 203 are specified.
Also, the color processing unit 204 is controlled to execute the image processing designated for each area.

【0029】図11にエリア処理のフローチャートを示
す。ビットマップメモリ205より1ライン分のデータ
を読みだし(S1101)、エリアフラグと注目画素位
置を初期化(左端位置に設定)する(S1102)。次
に注目画素上にエリアデータが存在するか否かを検出し
(S1103)、検出されない場合には注目画素を主走
査方向に一画素移動して(S1104)、S1103に
もどる。
FIG. 11 shows a flowchart of the area processing. Data for one line is read from the bitmap memory 205 (S1101), and the area flag and the target pixel position are initialized (set to the left end position) (S1102). Next, it is detected whether or not area data exists on the target pixel (S1103), and if not detected, the target pixel is moved by one pixel in the main scanning direction (S1104), and the process returns to S1103.

【0030】注目画素にエリアデータが存在した場合に
は、注目画素より主走査方向に連続してエリアデータが
存在するかを検出し(S1105)、検出された場合に
は最後のエリアデータの位置に注目画素を設定する(S
1106)。
If area data exists in the pixel of interest, it is detected whether area data exists continuously from the pixel of interest in the main scanning direction (S1105), and if detected, the position of the last area data. Set the pixel of interest to (S
1106).

【0031】エリアデータが存在する注目画素を検出し
たら、エリアフラグがセットされているかを検出する
(S1107)。エリアフラグがセットされていない場
合は、その位置より主走査方向に4画素離れた位置より
エリアデータに応じたエリア処理を実行してエリアフラ
グをセットする(S1108)。エリアフラグがセット
されていた場合には現在実行中のエリア処理を注目画素
位置より主走査方向に対して4画素手前で終了させてエ
リアフラグを初期化する(S1109)。
When the target pixel containing the area data is detected, it is detected whether the area flag is set (S1107). If the area flag is not set, the area flag is set by performing area processing according to the area data from a position 4 pixels away from that position in the main scanning direction (S1108). If the area flag is set, the area process currently being executed is ended 4 pixels before the target pixel position in the main scanning direction and the area flag is initialized (S1109).

【0034】1ライン全ての画素を処理するまで上記S
1103〜S1108を繰り返し(S1110)、1ラ
イン全ての画素を処理したら終了する。上記の処理を各
ラインに独立に施すことにより、ビットマップメモリ2
05に書き込まれているエリアデータの位置よりも内側
の領域に対して、指定のエリア処理を実行することがで
きる。
The above S is executed until all pixels on one line are processed.
Steps 1103 to S1108 are repeated (S1110), and when all the pixels in one line have been processed, the process ends. By applying the above processing to each line independently, the bitmap memory 2
The specified area processing can be executed on the area inside the position of the area data written in 05.

【0032】尚、本実施例では、原稿画像の2値データ
を記憶するビットマップメモリとエリア処理用のエリア
データを書き込むビットマップメモリとが共通であった
が、各々個別にメモリを有する構成であってもよい。ま
た、本実施例では、原稿画像の2値データをビットマッ
プメモリに記憶する際、16×16のOR処理を施して
いるが、他の手段によって二値化データに対して太らせ
処理を施すような構成であってもよい。
In this embodiment, the bit map memory for storing the binary data of the original image and the bit map memory for writing the area data for area processing are common, but each has a memory individually. It may be. Further, in the present embodiment, when the binary data of the original image is stored in the bit map memory, 16 × 16 OR processing is performed. However, another means is used to perform thickening processing on the binary data. Such a configuration may be adopted.

【0033】また、本実施例では、原稿の二値化データ
に対して輪郭抽出処理を施す際、輪郭線の一画素内側の
白画素の位置を検出するようにしているが、その他の手
段によってさらに内側の位置に輪郭を抽出するようにす
る構成であってもよい。また、本実施例では、エリアデ
ータをビットマップメモリに書き込む際、注目画素にお
けるチェインコードから主走査方向にエリアデータの書
き込み位置を内側に4画素分、補正しているが、他の手
段にて主走査だけでなく副走査方向に対しても補正を加
える構成にし、補正量が4画素以上であってもよい。
Further, in the present embodiment, when the contour extraction processing is performed on the binary data of the original, the position of the white pixel inside one pixel of the contour line is detected, but by other means. Further, the contour may be extracted at an inner position. Further, in the present embodiment, when the area data is written in the bit map memory, the writing position of the area data is corrected by 4 pixels inward in the main scanning direction from the chain code of the pixel of interest. The correction amount may be 4 pixels or more in addition to the main scanning direction in addition to the main scanning direction.

【0034】また、本実施例では、ビットマップメモリ
に書き込まれたエリアデータにより、入力画像データに
対してエリアデータに応じた画像処理を施す際、エリア
データの書き込み位置より常に主走査方向に4画素分内
側の領域に対して所定の画像処理を施しているが、他の
手段にて主走査だけでなく副走査方向に対しても同様な
補正を加える構成にしてもよい。 また、補正量が4画
素以上であってもよい。
Further, in this embodiment, when the image processing according to the area data is applied to the input image data by the area data written in the bit map memory, the area data writing position is always 4 in the main scanning direction. Although the predetermined image processing is performed on the area inside the pixel, the same correction may be applied not only to the main scanning but also to the sub-scanning direction by other means. Further, the correction amount may be 4 pixels or more.

【0035】また、本実施例では、処理すべき領域をビ
ットマップメモリに記憶させる際、エリアデータに挟ま
れた領域に対して所定の画像処理が施される構成になっ
ているが、例えば処理すべき領域をそのエリアデータで
全て塗りつぶす等の他の方法によりエリア処理をおこな
うような構成であってもよい。
Further, in this embodiment, when the area to be processed is stored in the bitmap memory, the area sandwiched by the area data is subjected to predetermined image processing. The area processing may be performed by another method such as filling all areas to be filled with the area data.

【0036】[0036]

【発明の効果】以上説明したように、この発明によれ
ば、読み取った原稿画像の閉領域に対して画像処理を施
す画像処理装置において、原稿画像を読み取る読取手段
と、読取手段により読み取った原稿画像を記憶する記憶
手段と、原稿画像を該記憶手段に書き込む書込み手段
と、記憶手段に記憶された原稿画像から閉領域を抽出す
る閉領域抽出手段と、閉領域内の画像に対して画像処理
を行う画像処理手段を有し、書込み手段が原稿画像を記
憶手段に書き込む際、読み取った原稿画像に対して太ら
せ処理を行う構成を備えるので、表枠の内部のみを白塗
り潰し処理した場合、表枠を消すことなく内部だけを白
塗り潰しすることができる効果がある。また、閉領域抽
出手段による輪郭線の検出は閉領域を形成する輪郭線の
内側を抽出する構成を採用した、同様の効果がある。
As described above, according to the present invention, in the image processing apparatus for performing the image processing on the closed area of the read original image, the reading means for reading the original image and the original read by the reading means. Storage means for storing an image, writing means for writing an original image in the storage means, closed area extracting means for extracting a closed area from the original image stored in the storage means, and image processing for an image in the closed area When the writing unit writes the document image in the storage unit, the writing unit is configured to perform thickening processing on the read document image. Therefore, when only the inside of the table frame is white-filled, There is an effect that only the inside can be painted white without erasing the table frame. Further, the detection of the contour line by the closed region extraction means has a similar effect by adopting a configuration of extracting the inside of the contour line forming the closed region.

【0037】さらに、読み取った原稿画像の閉領域に対
して画像処理を施す画像処理装置において、原稿画像を
読み取る読取手段と、読取手段により読み取った原稿画
像を記憶する第1の記憶手段と、第1の記憶手段に原稿
画像を書き込む第1の書込み手段と、第1の記憶手段に
記憶された原稿画像から閉領域を抽出する閉領域抽出手
段と、抽出された閉領域の外周を表すデータを記憶する
第2の記憶手段と、第2の記憶手段にデータを書き込む
第2の書込み手段と、第2の記憶手段に記憶された外周
を表すデータに基づいて閉領域内の画像に対して画像処
理を行う画像処理手段を有し、第2の書込み手段が第2
の記憶手段にデータを書き込む際、外周を表すデータを
閉領域の内側方向に修正して書き込む構成を採用したの
で、同様の効果がある。また、上記画像処理手段が画像
処理を行う際、第2の記憶手段が記憶する閉領域よりも
内側の領域について画像処理を施すこと構成を採用した
ので同様の効果がある。
Further, in the image processing apparatus for performing the image processing on the closed area of the read original image, the reading means for reading the original image, the first storing means for storing the original image read by the reading means, A first writing unit for writing an original image in the first storage unit; a closed region extracting unit for extracting a closed region from the original image stored in the first storage unit; and data representing the outer circumference of the extracted closed region. An image for the image in the closed region based on the second storage means for storing, the second writing means for writing data in the second storage means, and the data representing the outer circumference stored in the second storage means Image processing means for performing processing, the second writing means is the second
When the data is written in the storage means, since the data representing the outer circumference is corrected and written in the inner direction of the closed region, the same effect can be obtained. Further, when the image processing means performs the image processing, the image processing is performed on the area inside the closed area stored in the second storage means, so that the same effect can be obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明を採用したデジタル複写機の構成図であ
る。
FIG. 1 is a block diagram of a digital copying machine adopting the present invention.

【図2】画像処理部のブロック図である。FIG. 2 is a block diagram of an image processing unit.

【図3】エリアデータの構成を示す説明図である。FIG. 3 is an explanatory diagram showing a structure of area data.

【図4】輪郭追跡開始点の指定方法を示す説明図であ
る。
FIG. 4 is an explanatory diagram showing a method of specifying a contour tracking start point.

【図5】閉領域指定処理を示す流れ図である。FIG. 5 is a flowchart showing a closed region designation process.

【図6】輪郭追跡開始点の指定方法を示す流れ図であ
る。
FIG. 6 is a flowchart showing a method of designating a contour tracking start point.

【図7】輪郭追跡処理を示す流れ図である。FIG. 7 is a flowchart showing contour tracking processing.

【図8】チェインコードの説明図である。FIG. 8 is an explanatory diagram of a chain code.

【図9】輪郭追跡処理の説明図である。FIG. 9 is an explanatory diagram of contour tracking processing.

【図10】エリアデータ書込み処理を示す流れ図であ
る。
FIG. 10 is a flowchart showing an area data writing process.

【図11】エリア処理を示す流れずである。FIG. 11 is a flow chart showing area processing.

【図12】原稿画像の例の表画像である。FIG. 12 is a front image of an example of a document image.

【図13】従来技術による表枠の白塗り潰し処理の出力
画像である。
FIG. 13 is an output image of white filling processing for a table frame according to a conventional technique.

【図14】本発明による表枠の白塗り潰し処理の出力画
像である。
FIG. 14 is an output image of a white-filling process for a table frame according to the present invention.

【図15】太らせ処理の説明図である。FIG. 15 is an explanatory diagram of a thickening process.

【符号の説明】[Explanation of symbols]

101 画像読取部101 102 画像処理部102 103 画像記録部103 104 デジタイザ104 105 システム制御部105 201 フィルタ処理部201 202 図形加工処理部202 203 中間調処理部203 204 カラー加工処理部204 205 ビットマップメモリ205 206 エリア処理制御部206 207 RAM207 101 image reading unit 101 102 image processing unit 102 103 image recording unit 103 104 digitizer 104 105 system control unit 105 201 filter processing unit 201 202 graphic processing unit 202 203 halftone processing unit 203 204 color processing unit 204 205 205 bitmap memory 205 206 Area processing control unit 206 207 RAM 207

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/36 530 X 9471−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/36 530 X 9471-5G

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、 原稿画像を読み取る読取手段と、 該読取手段により読み取った原稿画像を記憶する記憶手
段と、 原稿画像を該記憶手段に書き込む書込み手段と、 該記憶手段に記憶された原稿画像から閉領域を抽出する
閉領域抽出手段と、 閉領域内の画像に対して画像処理を行う画像処理手段を
有し、 上記書込み手段が原稿画像を記憶手段に書き込む際、読
み取った原稿画像に対して太らせ処理を行うことを特徴
とする画像処理装置。
1. An image processing apparatus for performing image processing on a closed region of a read original image, a reading unit for reading the original image, a storage unit for storing the original image read by the reading unit, and an original image for storing the original image. And a writing means for writing to the storage means, a closed area extraction means for extracting a closed area from an original image stored in the storage means, and an image processing means for performing image processing on an image in the closed area, An image processing apparatus, wherein when a writing unit writes a document image in a storage unit, a thickening process is performed on the read document image.
【請求項2】 読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、 原稿画像を読み取る読取手段と、 該読取手段により読み取った原稿画像を記憶する記憶手
段と、 記憶手段に原稿画像を書き込む書込み手段と、 該記憶手段に記憶された原稿画像から閉領域を形成する
輪郭線を検出することにより閉領域を抽出する閉領域抽
出手段と、 閉領域内の画像に対して画像処理を行う画像処理手段を
有し、 上記閉領域抽出手段による輪郭線の検出は閉領域を形成
する輪郭線の内側を抽出することを特徴とする画像処理
装置。
2. An image processing apparatus for performing image processing on a closed region of a read original image, a reading unit for reading the original image, a storage unit for storing the original image read by the reading unit, and a storage unit. Writing means for writing an original image, closed area extracting means for extracting a closed area by detecting a contour line forming a closed area from the original image stored in the storage means, and an image for an image in the closed area An image processing apparatus comprising image processing means for performing processing, wherein the closed area extraction means detects the contour line by extracting the inside of the contour line forming the closed area.
【請求項3】 読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、 原稿画像を読み取る読取手段と、 該読取手段により読み取った原稿画像を記憶する第1の
記憶手段と、 該第1の記憶手段に原稿画像を書き込む第1の書込み手
段と、 該第1の記憶手段に記憶された原稿画像から閉領域を形
成する輪郭線を検出することにより閉領域を抽出する閉
領域抽出手段と、 抽出された閉領域の外周を表すデータを記憶する第2の
記憶手段と、 該第2の記憶手段にデータを書き込む第2の書込み手段
と、 該第2の記憶手段に記憶された閉領域の外周を表すデー
タに基づいて閉領域内の画像に対して画像処理を行う画
像処理手段を有し、 上記第2の書込み手段が第2の記憶手段に閉領域の外周
を表すデータを書き込む際、外周を表すデータを閉領域
の内側方向に修正して書き込むことを特徴とする画像処
理装置。
3. An image processing apparatus for performing image processing on a closed area of a read original image, a reading unit for reading the original image, and a first storage unit for storing the original image read by the reading unit. First writing means for writing an original image in the first storage means, and a closed area for extracting the closed area by detecting a contour line forming the closed area from the original image stored in the first storage means Extraction means, second storage means for storing data representing the outer circumference of the extracted closed region, second writing means for writing data in the second storage means, and second storage means for storing the data. The second writing means stores the data representing the outer circumference of the closed area in the second storage means, the image processing means performing image processing on the image in the closed area based on the data representing the outer circumference of the closed area. When writing The image processing apparatus characterized by writing to modify the inside direction of the closed region data representative.
【請求項4】 読み取った原稿画像の閉領域に対して画
像処理を施す画像処理装置において、 原稿画像を読み取る読取手段と、 該読取手段により読み取った原稿画像を記憶する第1の
記憶手段と、 該第1の記憶手段に原稿画像を書き込む第1の書込み手
段と、 該第1の記憶手段に記憶された原稿画像から閉領域を形
成する輪郭線を検出することにより閉領域を抽出する閉
領域抽出手段と、 抽出された閉領域の外周を表すデータを記憶する第2の
記憶手段と、 該第2の記憶手段にデータを書き込む第2の書込み手段
と、 該第2の記憶手段に記憶された外周を表すデータに基づ
いて閉領域内の画像に対して画像処理を行う画像処理手
段を有し、 上記画像処理手段が画像処理を行う際、第2の記憶手段
が記憶する外周を表すデータによって表される閉領域よ
りも内側の領域について画像処理を施すことを特徴とす
る画像処理装置。
4. An image processing apparatus for performing image processing on a closed region of a read original image, a reading unit for reading the original image, and a first storage unit for storing the original image read by the reading unit. First writing means for writing an original image in the first storage means, and a closed area for extracting the closed area by detecting a contour line forming the closed area from the original image stored in the first storage means Extraction means, second storage means for storing data representing the outer circumference of the extracted closed region, second writing means for writing data in the second storage means, and second storage means for storing the data. Data indicating the outer circumference stored in the second storage means when the image processing means performs image processing on the image in the closed region based on the data indicating the outer circumference. Represented by The image processing apparatus according to claim image processing applying the area inside the closed region that.
JP5308851A 1993-12-09 1993-12-09 Picture processor Pending JPH07160897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5308851A JPH07160897A (en) 1993-12-09 1993-12-09 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5308851A JPH07160897A (en) 1993-12-09 1993-12-09 Picture processor

Publications (1)

Publication Number Publication Date
JPH07160897A true JPH07160897A (en) 1995-06-23

Family

ID=17986037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5308851A Pending JPH07160897A (en) 1993-12-09 1993-12-09 Picture processor

Country Status (1)

Country Link
JP (1) JPH07160897A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073997A (en) * 2010-09-01 2012-04-12 Ricoh Co Ltd Object tracking device, object tracking method, and program thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012073997A (en) * 2010-09-01 2012-04-12 Ricoh Co Ltd Object tracking device, object tracking method, and program thereof

Similar Documents

Publication Publication Date Title
US5086497A (en) Image output command method for image processing system
JPH04192671A (en) Pin hole delete method
GB2124055A (en) Picture image input/output system
EP0410771A2 (en) Image processing apparatus
JPH0581424A (en) Noise eliminating method
JPH07160897A (en) Picture processor
JP3221516B2 (en) Image processing method and apparatus
US5583955A (en) Image processing apparatus
JP2648030B2 (en) Image editing method and image editing device
JPH09120450A (en) Image processor
JPH07168938A (en) Digital copying machine
JPH01177272A (en) Picture processor
JP3354629B2 (en) Image processing device
EP0418868B1 (en) Image processing system
JP3088495B2 (en) Image processing device
JPH0546718A (en) Picture editing device
JP2559710B2 (en) Image processing method
JPH02253377A (en) Picture editing device
JP2841492B2 (en) Image processing method
JPH07334675A (en) Method and device for cutting out pattern
JPH09135331A (en) Image processor
JP2800254B2 (en) Image single character processing device
JPH01236770A (en) Image editing device
JP2926710B2 (en) Image processing device
JP2957050B2 (en) Image data enlarger