JPH04578A - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH04578A JPH04578A JP2101206A JP10120690A JPH04578A JP H04578 A JPH04578 A JP H04578A JP 2101206 A JP2101206 A JP 2101206A JP 10120690 A JP10120690 A JP 10120690A JP H04578 A JPH04578 A JP H04578A
- Authority
- JP
- Japan
- Prior art keywords
- image
- value
- pixel
- density
- emphasis
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 13
- 238000000034 method Methods 0.000 abstract description 8
- 238000010606 normalization Methods 0.000 abstract description 2
- 230000003287 optical effect Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000015654 memory Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004804 winding Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012888 cubic function Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000005375 photometry Methods 0.000 description 1
- 238000012887 quadratic function Methods 0.000 description 1
- 238000001454 recorded image Methods 0.000 description 1
- 230000032258 transport Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は画像処理方法に係り、特に、画像を鮮明にする
だめの強調処理を行う画像処理方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing method, and particularly to an image processing method that performs emphasis processing to make an image clearer.
リーダプリンタ等の画像処理装置では、マイクロフィル
ム等に記録された画像に光線を照射し、CCD等の光セ
ンサでスキャニングして画像を透過または反射した光線
の光量を検出する。この画像を透過または反射した光線
の光量は画像の濃度パターン(画素単位で異なる濃度の
パターン)に応じて変化している。従って、画像の濃度
パターンに対応した画像信号が光センサから出力され、
この画像信号に基づいて記録材料へ画像を記録する。In an image processing device such as a reader printer, an image recorded on a microfilm or the like is irradiated with light, and an optical sensor such as a CCD scans the image to detect the amount of light that has passed through or reflected the image. The amount of light transmitted through or reflected from this image changes depending on the density pattern of the image (pattern of density that varies from pixel to pixel). Therefore, an image signal corresponding to the density pattern of the image is output from the optical sensor,
An image is recorded on the recording material based on this image signal.
しかし、画像を透過または反射した光の光量を検出する
場合、光センサに人力される光量が光学系等の影響によ
って画像の濃度パターンに正確に対応しないことがある
。例として第6図(A)に示すように、画像中O隣接す
る画素の濃度が高濃度から低濃度・\急に変化する、ま
たは低濃度から高濃度へ急に変化するような所謂画像の
エツジ部分では、光センサに入力される光の光量の変化
が第6図(B)に−点鎖線で示すよ・うに濃度の変化に
正確に対応することが好ましい。し2かし、実際には回
折の影響を受け、光センサに人力される光の光量は実線
で示すように緩やかに変化する。従って、光センサから
出力される画像信号をそのまま用いて記録材料へ画像を
記録した場合、記録された画像はエツジ部分が鮮明でな
く、所謂ぼけが生ずることになる。このため、光センサ
から出力された画像信号が適正な値となるように処理す
る画像処理を行う必要がある。However, when detecting the amount of light transmitted or reflected from an image, the amount of light manually applied to the optical sensor may not correspond accurately to the density pattern of the image due to the influence of the optical system or the like. As an example, as shown in Fig. 6(A), there is a so-called image in which the density of adjacent pixels in the image suddenly changes from high density to low density, or from low density to high density. In the edge portion, it is preferable that the change in the amount of light input to the optical sensor corresponds accurately to the change in density, as shown by the dashed line in FIG. 6(B). However, in reality, due to the influence of diffraction, the amount of light input to the optical sensor changes gradually, as shown by the solid line. Therefore, if an image is recorded on a recording material using the image signal output from the optical sensor as it is, the edge portions of the recorded image will not be clear and so-called blur will occur. Therefore, it is necessary to perform image processing so that the image signal output from the optical sensor has an appropriate value.
画像信号に対して画像が鮮明になるように強調処理する
画像処理方法としては、ラプラシアンによる方法が一般
的である。以下ラプラシアンについて説明する。A Laplacian method is commonly used as an image processing method that performs emphasis processing on an image signal so that the image becomes clear. The Laplacian will be explained below.
第7図において中央画素の濃度値をり。、中央画素の8
近傍の画素の濃度値をDl、D2、D3、D4、D5、
D6、D7、D6とすると、中央画素の濃度値り。はラ
プラシアンでは以下のように定義される。In FIG. 7, the density value of the central pixel is shown. , center pixel 8
The density values of neighboring pixels are Dl, D2, D3, D4, D5,
If D6, D7, and D6 are the density values of the center pixel. is defined in Laplacian as follows.
・ ・ ・■
Y=K −X ’)
従って、中央画素の濃度値と中央画素の8近傍の画素の
濃度値との差の総和Xに係数Kを乗じた結果Yが中央画
素の濃度値に加えられ、このYは第8図にも示すように
中央画素の濃度値と近傍の画素の濃度値との差の総和の
大小に比例する。これにより、例えば中央画素の濃度値
が近傍の画素の濃度値よりも高い場合には0式のYの符
号がプラスとなり、より高濃度となるように強調され、
中央画素の濃度値が近傍の画素の濃度値よりも低い場合
には0式のYの符号がマイナスとなり、より低濃度とな
るように強調されることになる。なお、係数には強調す
る度合いに応じて定められている。上記処理を画像を構
成する全ての画素に対して行うことにより、画像のエツ
ジを強調することができる。・ ・ ・■ Y = K − As shown in FIG. 8, this Y is proportional to the sum of the differences between the density value of the central pixel and the density values of neighboring pixels. As a result, for example, if the density value of the central pixel is higher than the density value of neighboring pixels, the sign of Y in equation 0 becomes positive, and the density is emphasized to be higher.
If the density value of the central pixel is lower than the density value of the neighboring pixels, the sign of Y in equation 0 becomes negative, and the density is emphasized to be lower. Note that the coefficients are determined depending on the degree of emphasis. By performing the above processing on all pixels constituting the image, the edges of the image can be emphasized.
しかしながら、ラプラシアン等の画像のエツジを強調す
る画像処理では、従来、前記係数Kが一定値であり、X
の値の大小に応じて強調するので、処理を行う画像の全
体的な濃度の高低の影響を受け、好ましい強調が得られ
ないことがあった。また、強調を行う画像の種類によっ
ても好ましい強調が得られないことがあった。例えば、
一般に文字原稿の画像ではエツジを強調することによっ
て背景部分と文字部分との境界がはっきりして文字が読
みやすい画像となるので、強い強調をかけることが好ま
しい。しかし写真原稿の画像では強い強調をかけると、
ざらついた見苦しい画像となることがある。However, in image processing that emphasizes the edges of an image such as Laplacian, conventionally the coefficient K is a constant value and
Since the enhancement is performed according to the magnitude of the value of , it is affected by the overall density of the image to be processed, and desirable enhancement may not be obtained. Further, depending on the type of image to be enhanced, preferable enhancement may not be obtained. for example,
In general, in an image of a text document, by emphasizing the edges, the border between the background part and the text part becomes clear and the text becomes easy to read, so it is preferable to apply strong emphasis. However, when applying strong emphasis to images of photo manuscripts,
This may result in a grainy and unsightly image.
本発明は上記事実を考慮して成されたもので、画像の濃
度の影響を受けずに画像の種類に応じた適切な強さの強
調を行うことができる画像処理方法を得ることが目的で
ある。The present invention has been made in consideration of the above facts, and an object of the present invention is to obtain an image processing method that can perform appropriate intensity enhancement according to the type of image without being affected by the density of the image. be.
上記目的を達成するた於に本発明に係る画像処理方法は
、特定画素の画素値と特定画素の近傍の画素の画素値と
の差に基づいて求めた値に係数を乗じた結果を特定画素
の画素値に加えて画像を鮮明にするための強調処理を行
う画像処理方法において、各画素の画素値を正規化し、
正規化した各画素の画素値の中間値及び前記中間値から
の偏差を求め、この偏差が大きくなるに従って強調の度
合いが大きくなるように前記係数を変化させることを特
徴としている。In order to achieve the above object, an image processing method according to the present invention multiplies a value obtained based on the difference between a pixel value of a specific pixel and a pixel value of a pixel in the vicinity of the specific pixel by a coefficient. In an image processing method that performs enhancement processing to sharpen the image in addition to the pixel value of each pixel, the pixel value of each pixel is normalized,
The method is characterized in that the average value of the normalized pixel value of each pixel and the deviation from the average value are determined, and the coefficients are changed so that the degree of emphasis increases as the deviation increases.
本発明では、各画素の画素値を正規化し、正規化した各
画素の画素値の中間値及び前記中間値からの偏差を求め
、この偏差が大きくなるに従って強調の度合いが大きく
なるように係数を変化させる。各画素の画素値を正規化
することによって画像の全体的な濃度の高低の影響を受
けずに係数を求めることができる。また、正規化した画
素値の偏差が大きくなるに従って強調の度合いが大きく
なるように係数を変化させるので、画像の種類に応じた
適切な強さの強調を行うことができる。In the present invention, the pixel value of each pixel is normalized, the median value of the normalized pixel value of each pixel and the deviation from the median value are determined, and a coefficient is set such that the degree of emphasis increases as this deviation increases. change. By normalizing the pixel value of each pixel, the coefficients can be determined without being affected by the overall density of the image. Further, since the coefficients are changed so that the degree of emphasis increases as the deviation of the normalized pixel values increases, it is possible to perform emphasis with an appropriate strength depending on the type of image.
例えば、第9図(A)に示すように、標準的な文字原稿
の画像は画素の画素値(a度値または輝度値)が背景部
分の画素値と文字部分の画素値とに集中する。このため
、中間値からの偏差が太きくなる。一方、第9図(B)
に示すように、標準的な写真原稿の画像は画素の画素値
が画像中の最低濃度と最高濃度との間に広く分布する。For example, as shown in FIG. 9A, in the image of a standard text document, the pixel values (a value or luminance value) of pixels are concentrated in the pixel values of the background part and the pixel values of the text part. Therefore, the deviation from the intermediate value becomes large. On the other hand, Fig. 9(B)
As shown in the figure, in a standard photographic original image, the pixel values of the pixels are widely distributed between the lowest density and the highest density in the image.
このた袷、中間値からの偏差は小さくなる。従って、こ
の偏差が大きくなるに従って強調の度合いが大きくなる
ように係数を変化させて強調処理を行うことにより、文
字原稿の画像に対しては文字原稿に適した度合いの強い
強調を行うことができ、写真原稿の画像に対しては写真
原稿に適した度合いの弱い強調を行うことができる。As a result, the deviation from the median value becomes smaller. Therefore, by performing emphasis processing by changing the coefficient so that the degree of emphasis increases as this deviation increases, it is possible to perform strong emphasis on images of text originals to a degree suitable for text originals. , it is possible to perform weak emphasis on an image of a photographic original to a degree suitable for the photographic original.
以下、図面を参照して本発明の実施例を詳細に説明する
。Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図には、本発明の画像処理方法が適用可能なリーグ
プリンタ10が示されている。このり−ダプリンタ10
は、そのケーシング12前面(第1図右側面)に、マイ
クロフィルム14に記録された画像を投影するスクリー
ン16が配置されている。また、スクリーン16の裏面
側にはこのスクリーン16の縦方向に沿ってラインセン
サ17が配設されている。このラインセンサ17の長手
方向両端部は、スクリーン16の横方向へ延設されたガ
イドシャフト19に挿通されている。これにより、ライ
ンセンサ17は、図示しない駆動手段の駆動力によって
ガイドシャフト19の軸線方向へ移動され、スクリーン
16に投影された画像をスキャニングして測光すること
ができる。FIG. 1 shows a league printer 10 to which the image processing method of the present invention can be applied. Konori-da printer 10
A screen 16 for projecting the image recorded on the microfilm 14 is arranged on the front surface of the casing 12 (right side in FIG. 1). Further, on the back side of the screen 16, a line sensor 17 is arranged along the vertical direction of the screen 16. Both ends of the line sensor 17 in the longitudinal direction are inserted into a guide shaft 19 extending in the lateral direction of the screen 16 . Thereby, the line sensor 17 is moved in the axial direction of the guide shaft 19 by the driving force of a driving means (not shown), and can scan and photometer the image projected on the screen 16.
マイクロフィルム14が層状に巻き取られて収容されて
いるカートリッジ18は、スクリーン16よりも若干下
方に設けられた装填部20に装填されており、カートリ
ッジ18内のマイクロフィルム14の先端が、装置内部
の巻取リール22へ巻き取られている。カートリッジ]
8と巻取り−ル22との間には、マイクロフィルム14
に対応して光源24が設置されている。この光源24か
ら照射された光線は、光軸りへ配置された画像コマを透
過し、レンズ26及び複数の反射ミラー28で構成され
る光学系を介してスクリーン16方向へ案内されるよう
になっている。これにより、マイクロフィルム14に記
録された画像をスクリーン16に拡大して投影すること
ができる。A cartridge 18 containing a layered layer of microfilm 14 is loaded into a loading section 20 provided slightly below the screen 16, and the tip of the microfilm 14 inside the cartridge 18 is placed inside the device. is wound onto a take-up reel 22. cartridge]
8 and the winding wheel 22, a microfilm 14 is placed between the
A light source 24 is installed correspondingly. The light beam emitted from the light source 24 passes through image frames arranged along the optical axis, and is guided toward the screen 16 via an optical system composed of a lens 26 and a plurality of reflective mirrors 28. ing. Thereby, the image recorded on the microfilm 14 can be enlarged and projected onto the screen 16.
また、リーグプリンタ10には、デジタルプリンタ32
を備えている。このデジタルプリンタ32は、スクリー
ン16に投影された画像を記録する役目を有している。The league printer 10 also includes a digital printer 32.
It is equipped with This digital printer 32 has the role of recording the image projected on the screen 16.
すなわち、前記スキャニングによってラインセンサ17
から出力されるアナログの画像信号が制御装置38(第
2図(B)参照)内°でデジタルの画像データに変換さ
れて画像処理され、この処理された画像データに基づい
て記録材料(図示省略)へ画像を記録する構成である。That is, by the scanning, the line sensor 17
Analog image signals output from the controller 38 (see FIG. 2 (B)) are converted into digital image data and subjected to image processing, and based on this processed image data, the recording material (not shown) is ) is configured to record images.
第2図(A)、(B)には、装填部20の詳細が示され
ている。カー) IJツジ18は、その供給側リール3
4 (以下単にリール34という)がトルク制御部36
を介して制御装置38へ接続されたサプライモータ40
の回転軸42に連結されている。なお、サプライモータ
40は、一定の弱いトルクでリール34ヘマイクロフイ
ルム14を巻き取る方向へ回転されるようになっている
く第2図(A)及び(B)の矢印六方向)。リール34
に層状に巻き取られたマイクロフィルム14の先端は、
カートリッジ18に設けられた開口部44から図示しな
いローディング機構のローディングローラの駆動力によ
って引き出され、ガイドローラ46.48に巻掛けられ
た後、巻取り−ル22へ巻き取られている。ガイドロー
ラ46.48のそれぞれの近傍には、マイクロフィルム
14の有無を検出するフィルム検出センサ49.51が
配置されている。FIGS. 2A and 2B show details of the loading section 20. car) IJ Tsuji 18 is the supply side reel 3
4 (hereinafter simply referred to as the reel 34) is the torque control section 36
A supply motor 40 connected to the control device 38 via
The rotating shaft 42 is connected to the rotary shaft 42 of the The supply motor 40 is rotated with a constant, weak torque in the direction of winding the microfilm 14 onto the reel 34 (in the six directions of arrows in FIGS. 2A and 2B). reel 34
The tip of the microfilm 14 wound up in layers is
The cartridge 18 is pulled out from an opening 44 provided in the cartridge 18 by the driving force of a loading roller of a loading mechanism (not shown), wound around guide rollers 46 and 48, and then wound onto the winding wheel 22. Film detection sensors 49 and 51 for detecting the presence or absence of the microfilm 14 are arranged near each of the guide rollers 46 and 48.
巻取り−ル22の軸50には、無端の搬送ベルト52の
外周が接触されている。この搬送ベルト52は、弾性力
を備えており、ガイドローラ54.56.58に巻掛け
られている。また、この搬送ベルト52は、速度制御部
60を介して制御装置38へ接続されたテークアツプモ
ータ62の回転軸64に取付けられた駆動リール66に
巻掛けられている。従って、搬送ベルト52は、駆動り
−ル66の回転に応じて第2図(A)及び(B)の矢印
B方向及びその反対方向へ移動されるようになっている
。The outer periphery of an endless conveyor belt 52 is in contact with the shaft 50 of the take-up wheel 22 . This conveyor belt 52 has elasticity and is wound around guide rollers 54, 56, 58. Further, the conveyor belt 52 is wound around a drive reel 66 attached to a rotating shaft 64 of a take-up motor 62 connected to the control device 38 via a speed controller 60. Therefore, the conveyor belt 52 is moved in the direction of arrow B in FIGS. 2A and 2B and in the opposite direction in accordance with the rotation of the drive wheel 66.
マイクロフィルム14は、この搬送ベルト52と軸50
との間に挟持されており、搬送ベルト52の移動に応じ
て軸50へ巻取り、または軸50から引き出されるよう
になっている。The microfilm 14 is transported between the conveyor belt 52 and the shaft 50.
It is held between the conveyor belt 52 and is wound onto the shaft 50 or pulled out from the shaft 50 according to the movement of the conveyor belt 52.
搬送ベルト5C)には従動ローラ68が接触されている
。この従動ローラ68はエンコーダ70の回転軸72に
取付けられており、これにより、搬送ベルト52の駆動
状態をエンコーダ70によりパルス数として検出するこ
とができる。エンコーダ70は制御装置38へ接続され
ている。A driven roller 68 is in contact with the conveyor belt 5C). This driven roller 68 is attached to a rotating shaft 72 of an encoder 70, so that the driving state of the conveyor belt 52 can be detected by the encoder 70 as a pulse number. Encoder 70 is connected to control device 38 .
ガイドローラ46とガイドローラ48との間における前
記光軸りよりも若干ガイドローラ46側にはスリット板
74が設けられ、マイクロフィルム14の幅方向両端部
に対応して、一対の受光素子76が取付けられている。A slit plate 74 is provided between the guide roller 46 and the guide roller 48 slightly closer to the guide roller 46 than the optical axis, and a pair of light-receiving elements 76 are provided corresponding to both ends of the microfilm 14 in the width direction. installed.
この受光素子76に対応して、マイクロフィルム14の
反対側にはLED78が取付けられ、LED78から照
射され、マイクロフィルム14を透過した光線を受光素
子76で受光する構成となっている。受光素子76及び
LED78はそれぞれ制御装置38へ接続されている。Corresponding to the light receiving element 76, an LED 78 is attached to the opposite side of the microfilm 14, and the light receiving element 76 receives the light emitted from the LED 78 and transmitted through the microfilm 14. The light receiving element 76 and the LED 78 are each connected to the control device 38.
マイクロフィルム14の両端部には、ブリップマーク8
0が付されており、受光素子76での受光量の変化によ
りグリップマーク80の有無を検出することができるよ
うになっている。There are blip marks 8 on both ends of the microfilm 14.
0 is attached, and the presence or absence of the grip mark 80 can be detected based on a change in the amount of light received by the light receiving element 76.
受光素子76と光軸りとの開隔寸法Mは一定(本実施例
では75mrn)とされており、従って、この受光素子
76で指定された画像コマ14Aを検出後、寸法M分移
動させることにより、光軸りの位置へ位置決めすること
ができる。The distance M between the light receiving element 76 and the optical axis is constant (75 mrn in this embodiment). Therefore, after the image frame 14A specified by the light receiving element 76 is detected, it is moved by the distance M. This allows positioning along the optical axis.
制御装置38は、変換部39と、画像記憶部41と、画
像処理部42と、を備えている。変換部39はラインセ
ンサ17から出力されたアナログの画像信号(測光値)
を、画像の画素に対応するデジタルの画像データに変換
し画像記憶部41に出力する。画像記憶部41は複数の
画像メモリ等の記憶装置から構成され、変換部39から
出力された画像データ及び画像処理された後の画像デー
タを画素に対応させて記憶する。画像処理部42は画像
記憶部41に記憶された画像データを読み出すと共に本
発明の画像処理方法に係る画像のエツジ強調処理を含む
各種の画像処理を施して画像記イ;音部41へ書き込む
ようになっている。The control device 38 includes a conversion section 39, an image storage section 41, and an image processing section 42. The converter 39 converts the analog image signal (photometric value) output from the line sensor 17
is converted into digital image data corresponding to the pixels of the image and output to the image storage section 41. The image storage section 41 is composed of a plurality of storage devices such as image memories, and stores the image data output from the conversion section 39 and the image data after image processing in correspondence with pixels. The image processing section 42 reads out the image data stored in the image storage section 41, performs various image processing including image edge enhancement processing according to the image processing method of the present invention, and writes the image data into the sound section 41. It has become.
次に本実施例の作用を説明する2、
まず、リーダブリンク10による画像の検索動作につい
て説明する。Next, the operation of this embodiment will be explained.2 First, the image search operation by the reader link 10 will be explained.
カー) Qフジ18が装填されると(例えば、マイクロ
スインチ等のオンオフ状態で判断される)、ローディン
グ機構が働き、マイクロフィルム14の外周へローディ
ングローラが接触し、先端部を引き出す。引き出された
マイクロフィルム14は、ガ・イドリーラ46.48を
介して、巻取リール22へと至、搬送ベルト52と軸5
0との間に挟持される。これにより、マイクロフィルム
14が軸50へ所定量巻き取られると、搬送ベルト52
の移動は停止され、待機状態となる。When the Q-Fuji 18 is loaded (for example, determined by the on/off state of the micro-sinch, etc.), the loading mechanism is activated, and the loading roller comes into contact with the outer periphery of the micro-film 14 and pulls out the tip. The pulled-out microfilm 14 passes through guide rollers 46 and 48 to the take-up reel 22, and is connected to the conveyor belt 52 and shaft 5.
It is sandwiched between 0 and 0. As a result, when the microfilm 14 is wound up by a predetermined amount onto the shaft 50, the conveyor belt 52
The movement of the machine is stopped and the machine enters a standby state.
ここで、キーボード92により画像コマを指定すると、
テークアツプモータ62が駆動し、搬送ベルト52が移
動され、これと共にマイクロフィルム14が軸50へ巻
き取られる。Here, if you specify an image frame using the keyboard 92,
The take-up motor 62 is driven, the conveyor belt 52 is moved, and the microfilm 14 is taken up onto the shaft 50 at the same time.
受光素子76では、マイクロフィルム14の搬送時にL
E078と受光素子7Gとの間を通過する各ブリップマ
ーク80をカウントする。所定数のカウントがなされる
と、この受光素子76による検出点と光軸りとの間の距
離分搬送し、テークアツプモータ62の駆動を停止させ
る。これにより、指定コマの光軸り上への位置決約は完
了し、光源24による透過画像をスクリーン16へ投影
することができる。In the light receiving element 76, when the microfilm 14 is transported, the L
Each blip mark 80 passing between E078 and the light receiving element 7G is counted. When a predetermined number of counts have been made, the light receiving element 76 transports the light by the distance between the detection point and the optical axis, and the drive of the take-up motor 62 is stopped. Thereby, the positioning of the designated frame on the optical axis is completed, and the image transmitted by the light source 24 can be projected onto the screen 16.
次に、スクリーン16に投影された画像に対して本発明
にイ系る画像処理を施してデジタルプリンタ32・\1
画像データを出力する処理を、第3図のフローチャート
を参照して説明する。Next, the image projected on the screen 16 is subjected to image processing according to the present invention, and the digital printer 32.
The process of outputting image data will be explained with reference to the flowchart in FIG.
ステ′ンプ100では、ラインセンサ17(こよりスク
リーンlbに投影された画像の測光を行う。In the stamp 100, the line sensor 17 performs photometry of the image projected onto the screen lb.
これは、スクリーン]6に画像が投影された状態で、ラ
インセンサ17をガイドンヤフト19の軸線方向へ移動
させることにより行う。ステップ102ではラインセン
サ17から制御装置38内に入力されたアナログの画像
信号(測光値)を、変換部39において対数変換した後
、デジタル変換して各画素の濃度値に対応するデジタル
の画像データに変換する。ステップ104てはステップ
102で変換された画像データをn個の画素に対応させ
て画像データD1 ・・・D、とじて画像記憶部41
の画像メモリに格納する。This is done by moving the line sensor 17 in the axial direction of the guiding shaft 19 while the image is projected onto the screen]6. In step 102, the analog image signal (photometric value) input from the line sensor 17 into the control device 38 is logarithmically converted in the converter 39, and then digitally converted into digital image data corresponding to the density value of each pixel. Convert to In step 104, the image data converted in step 102 is made to correspond to n pixels to form image data D1...D, and the image storage unit 41
image memory.
以下、ステップ106乃至ステップ114では画像のエ
ツジ強調を行うための係数に1を本発明の画像処理方法
によって算出する。すなわち、ステップ106ではステ
ップ104で格納した各画素に対応する濃度値D1 ・
・・D、、の中から最大値D168及び最小値Dmih
を算出する。最大値DmaX及び最小値Da iイの算
出は、濃度値を昇順または降順にソートすることによっ
て求めることができ、また全ての濃度値の高低を比較す
ることによっても求めることもできる。Hereinafter, in steps 106 to 114, a coefficient of 1 is calculated for edge enhancement of the image by the image processing method of the present invention. That is, in step 106, the density value D1 corresponding to each pixel stored in step 104 is calculated.
・・Maximum value D168 and minimum value Dmih from among D, .
Calculate. The maximum value DmaX and the minimum value Da i can be calculated by sorting the density values in ascending or descending order, or by comparing the heights of all the density values.
ステップ108では濃度値D1 ・・・D、に対して
正規化を行い、正規化後の濃度データD1+・・・Dl
、を求める。この濃度値の正規化は、以下に示す式に従
って行われる。In step 108, the density values D1...D are normalized, and the normalized density data D1+...Dl
, find. This density value normalization is performed according to the formula shown below.
(ただし、Cは一定値)
これにより、各濃度値は正規化され、画像の全体的な濃
度の高低の影響を受けることなく係数に1を算出するこ
とができる。(However, C is a constant value.) As a result, each density value is normalized, and a coefficient of 1 can be calculated without being affected by the overall density of the image.
ステップ110ては正規化後の濃度データD1・・・D
l、、の中間値D 1.i、を求める。中間値D1..
I、は以下の式で求めることができる。In step 110, the normalized density data D1...D
Intermediate value D of l, 1. Find i. Intermediate value D1. ..
I can be determined by the following formula.
Dlつ、、、−DI、i。Dl,, -DI,i.
D1□8−
次にステップ112では中間値Di−yからC)偏差値
δを求める。中間値DI、idからの偏差値δは以下の
式で求めることができる。D1□8- Next, in step 112, C) the deviation value δ is determined from the intermediate value Di-y. The deviation value δ from the intermediate value DI, id can be determined using the following formula.
この中間値DI−yからの偏差値δは文字原稿の画像で
大きく、写真原稿で小さくなる。ステップ114ではこ
の中間値DI、、、からの偏差値δに基づいて係数に1
を求める。本実施例では以下に示す式によって係数に1
を求めている。The deviation value δ from the intermediate value DI-y is large for text original images and small for photographic original images. In step 114, the coefficient is set to 1 based on the deviation value δ from the intermediate value DI, .
seek. In this example, the coefficient is set to 1 by the formula shown below.
I'm looking for.
K1=K・δ
これにより、係数に1は、中間値D1イ1.偏差値δが
大きくなるに従って強調の度合いが大きくなるように変
化される。従って、画像が標準的な文字原稿の場合には
係数に1が大きな値となり、強調処理における強調の度
合いが大きくなる。また、画像が標準的な写真原稿の場
合には係数に1が小さい値となり、強調処理における強
調の度合いが小さくなる。K1=K・δ As a result, the coefficient 1 is the intermediate value D1i1. The degree of emphasis is changed to increase as the deviation value δ increases. Therefore, when the image is a standard text document, the coefficient has a large value of 1, and the degree of emphasis in the emphasis process becomes large. Furthermore, if the image is a standard photographic original, the coefficient 1 will be a small value, and the degree of emphasis in the emphasis process will be small.
次に、ステップ116乃至ステップ122ではステップ
106乃至ステップ114で求めた係数に1を用いて画
像のエツジ強調処理を行う。すなわち、ステップ116
では画像記憶部41に格納された画像データ(濃度値)
から特定画素の濃度値り。及び特定画素の近傍に存在す
る8画素、所謂8近傍の画素の濃度値り、 、D2、D
3 、D、、D9、D6、D7、D8(第7図参照)を
読出して画像処理部42に取り込む。ステップ118で
は、このステップ116で取り込んだ画素データに基づ
いて強調を行う特定画素の濃度値を演算する。この演算
は以下の式に基づいて行なわれる。Next, in steps 116 to 122, edge enhancement processing of the image is performed using 1 for the coefficients obtained in steps 106 to 114. That is, step 116
Now, the image data (density value) stored in the image storage section 41
From the density value of a specific pixel. and the density values of the 8 pixels existing in the vicinity of the specific pixel, the so-called 8 neighboring pixels, ,D2,D
3, D, , D9, D6, D7, and D8 (see FIG. 7) are read and taken into the image processing section 42. In step 118, the density value of the specific pixel to be emphasized is calculated based on the pixel data taken in in step 116. This calculation is performed based on the following formula.
Do +Kl ・ にiXl K2) ・X
Do +Y ・ ・ ・・■
Y=に1 ・ (iXi−に2) ・X)これによ
り、第5図にも示すように、特定画素の濃度値力で8近
傍の画素の濃度値よりも高く、かつ特定画素の濃度値と
8近傍の画素の濃度値との差が小さい(iXl<1K2
1>場合には、特定画素の濃度値り。に加算されるy
(3式参照)0丁)符号がマイナスとなるので濃度値が
減少されて、8近傍の画素の濃度値との差がさらに小さ
くなる。Do +Kl ・NiXl K2) ・X
Do + Y ・ ・ ・・■
Y = 1 ・ (iXi − 2) ・X) As a result, as shown in FIG. The difference between the density value and the density value of the 8th neighboring pixel is small (iXl<1K2
1>, the density value of the specific pixel. y added to
(Refer to Equation 3) 0) Since the sign is negative, the density value is decreased, and the difference with the density value of the 8 neighboring pixels becomes even smaller.
特定画素の濃度値が8近傍の画素の濃度値よりも低く、
かつ特定画素の濃度値と8近傍の画素の濃度値との差が
小さい(l X :’ < i K 2 l )場合に
も同様に、特定画素の濃度値り。に加算されるYの符号
がプラスとなるので濃度値が増加されで、8近傍の画素
の濃度値との差がさらに小さくなる。The density value of a specific pixel is lower than the density value of 8 neighboring pixels,
Similarly, when the difference between the density value of a specific pixel and the density value of eight neighboring pixels is small (lX:'<iK2l), the density value of the specific pixel is smaller than the density value of the specific pixel. Since the sign of Y added to is positive, the density value is increased, and the difference with the density value of the eight neighboring pixels becomes further smaller.
このため、画像の背景部分の濃度のむら等の濃度の小さ
なばらつきが減少する。Therefore, small variations in density, such as density unevenness in the background portion of the image, are reduced.
また、特定画素の濃度値が8近傍の画素の濃度値よりも
高く、かつ特定画素の濃度値と8近傍の画素の濃度値と
の差が大きい(IXI>1K21)場合には、特定画素
の濃度値Doに加算されるYの符号がプラスとなるので
濃度値が増加されて、8近傍の画素の濃度値との差がさ
らに大きくなる。Furthermore, if the density value of a specific pixel is higher than the density value of the 8 neighboring pixels, and the difference between the density value of the specific pixel and the density value of the 8 neighboring pixels is large (IXI>1K21), the density value of the specific pixel is Since the sign of Y added to the density value Do becomes positive, the density value is increased and the difference from the density values of the eight neighboring pixels becomes even larger.
特定画素の濃度値が8近傍の画素の濃度値よりも低く、
かつ特定画素の濃度値と8近傍の画素の濃度値との差が
大きい(IXI>1K21)場合にも同様に、特定画素
の濃度値り。に加算されるYの符号がマイナスとなるの
で濃度値が増加されて、8近傍の画素の濃度値との差が
さらに大きくなる。The density value of a specific pixel is lower than the density value of 8 neighboring pixels,
Similarly, when the difference between the density value of a specific pixel and the density value of 8 neighboring pixels is large (IXI>1K21), the density value of the specific pixel is the same. Since the sign of Y added to is negative, the density value is increased, and the difference with the density value of the eight neighboring pixels becomes even larger.
このため、画像のエツジ部分等の隣接する画素の濃度差
が大きい部分に対しては充分な強調が得られる。Therefore, sufficient emphasis can be obtained for areas where the difference in density between adjacent pixels is large, such as edge areas of an image.
ステップ120では■式によって求めた特定画素の濃度
値り。を、ステップ116で読出しを行った画像メモリ
と異なる画像メモリに格納する。In step 120, the density value of the specific pixel obtained by formula (2) is calculated. is stored in an image memory different from the image memory read out in step 116.
ステップ122では画像のエツジ強調処理が終了したか
否か判定する。第4図に示すように、本実施例では上記
エツジ強調処理を画像82のスキャンラインに対応させ
て行い(第4図矢印C方向)、1スキヤンラインに対し
ての処理終了後は次のスキャンラインに移動(第4図矢
印り方向)して同様に処理を行う。全てのスキャンライ
ンに対しての処理が終了していない場合にはステップ1
16へ戻り、前記処理順序に従ってステップ116乃至
ステップ122を繰り返して処理を行う。In step 122, it is determined whether the image edge enhancement process has been completed. As shown in FIG. 4, in this embodiment, the edge enhancement processing described above is performed in correspondence with the scan lines of the image 82 (in the direction of arrow C in FIG. 4), and after the processing for one scan line is completed, the next scan is performed. Move to the line (in the direction of the arrow in FIG. 4) and perform the same process. If processing has not been completed for all scan lines, proceed to step 1.
16, and repeats steps 116 to 122 according to the processing order.
全てのスキャンラインに対しての処理が終了すると、ス
テップ124ではステップ120で格納した画像データ
をデジタルプリンタ32へ出力する。これにより、デジ
タルプリンタ32ではエツジが強調されたぼけのない画
像を記録紙に記録することができる。When processing for all scan lines is completed, in step 124 the image data stored in step 120 is output to the digital printer 32. Thereby, the digital printer 32 can record a blur-free image with enhanced edges on the recording paper.
このように、本実施例では各画素の画素データを正規化
し、正規化した各画素の画素データD1□・・・Dl、
、の中間値D 1.i、及び中間値D1□16からの偏
差値δを求め、この中間値DI−0sからの偏差値δに
基づいて係数に1を求めて強調処理するようにしたので
、画像の濃度の影響を受けずに画像の種類に応じた適切
な強さの強調を行うことができる。In this way, in this embodiment, the pixel data of each pixel is normalized, and the normalized pixel data of each pixel D1□...Dl,
, the intermediate value D of 1. i, and the deviation value δ from the intermediate value D1□16, and the coefficient is set to 1 based on the deviation value δ from the intermediate value DI−0s for emphasis processing. It is possible to perform emphasis with appropriate intensity according to the type of image without having to
なお、本実施例では本発明の画像処理方法を、特定画素
の濃度値と特定画素の8近傍の画素の濃度値との差の総
和Xを求め、所定値に1と、総和Xと、総和の絶対値
XIから所定値に2を減算した差と、の積Yを求め、積
Yと前記特定画素の濃度値との和を特定画素の濃度値と
する画像処理に適用していたが、特定画素の濃度値と特
定画素の近傍の画素の濃度値との差に基づいて求めた値
に係数を乗じた結果を特定画素の濃度値に加えて強調処
理する画像処理、例えば前述のラプラシアン等に適用し
てもよい。In this embodiment, the image processing method of the present invention is implemented by calculating the total sum X of the differences between the density value of a specific pixel and the density values of eight neighboring pixels of the specific pixel, setting 1 to a predetermined value, adding the total sum absolute value of
The product Y of the difference obtained by subtracting 2 from a predetermined value from Image processing that performs emphasis processing by adding the result of multiplying a value obtained based on the difference between the density value and the density value of pixels in the vicinity of a specific pixel by a coefficient to the density value of a specific pixel, such as the aforementioned Laplacian, is applied. It's okay.
なお、本実施例では特定画素の近傍の画素を特定画素の
8近傍の画素としていたが、これに限定されるものでは
なく、特定画素の上下左右に隣接する所謂4近傍の画素
、特定画素に対してスキャンラインに沿った方向に隣接
する画素、特定画素に対してスキャンラインに直交する
方向に隣接する画素等を近傍の画素として採用してもよ
い。In this embodiment, the pixels near the specific pixel are the 8 neighboring pixels of the specific pixel, but the present invention is not limited to this. On the other hand, pixels adjacent to the scan line in the direction along the scan line, pixels adjacent to the specific pixel in the direction orthogonal to the scan line, etc. may be employed as the neighboring pixels.
また、本実施例ではラインセンサ17から出力される測
光値を濃度値に変換していたが、輝度値に変換して処理
を行うことも可能である。Further, in this embodiment, the photometric value output from the line sensor 17 is converted into a density value, but it is also possible to convert it into a luminance value and perform processing.
さらに、本実施例ではエツジの強調処理を施した画像デ
ータをデジタルプリンタ32へ出力して記録紙に記録す
るようにしていたが、さらに平滑化、2値化等の画像処
理を施した後でデジタルプリンタ32へ出力して記録紙
に記録するようにしてもよい。Furthermore, in this embodiment, the image data subjected to edge enhancement processing is outputted to the digital printer 32 and recorded on recording paper, but after further image processing such as smoothing and binarization is performed, The data may also be output to the digital printer 32 and recorded on recording paper.
また、上記では2次関数で強調を行ったが、3次関数を
用いて強調を行ってもよい。Further, although the emphasis is performed using a quadratic function in the above example, it is also possible to perform the emphasis using a cubic function.
以上説明したように本発明では、各画素の画素値を正規
化し、正規化した各画素の画素値の中間値及び前記中間
値からの偏差を求め、この偏差が大きくなるに従って強
調の度合いが大きくなるように係数を変化させるように
したので、画像の濃度の影響を受けずに画像の種類に応
じた適切な強さの強調を行うことができる、という優れ
た効果が得られる。As explained above, in the present invention, the pixel value of each pixel is normalized, the median value of the normalized pixel value of each pixel and the deviation from the median value are found, and as this deviation increases, the degree of emphasis increases. Since the coefficients are changed so as to be as follows, an excellent effect can be obtained in that an appropriate intensity of emphasis can be performed according to the type of image without being affected by the density of the image.
第1図は本実施例に係るリーダプリンタの概略構成図、
第2図(A)はカートリッジ装填部近傍の斜視図、第2
図(B)はカー) IJッジ装填部近傍の概略ブロック
図、第3図は本実施例の作用を説明するフローチャート
、第4図は処理順序を説明するための概念図、第5図は
本実施例の画像強調処理の作用を示す線図、第6図は光
センサに入力される光量を説明する説明図、第7図は近
傍の概念を示す概念図、第8図はラプラシアンにおける
強調の度合いを示す線図、第9図(A’)及び(B)は
画像の種類の相違による濃度値の分布(ヒストグラム)
の相違を示す線図である。
10・・・リーグプリンタ、
17・・・ラインセンサ、
32・・・デジタルプリンタ、
38・・・制御装置、
39・・・変換部、
41・・・画像記憶部、
42・・・画像処理部。FIG. 1 is a schematic configuration diagram of a reader printer according to this embodiment;
Figure 2 (A) is a perspective view of the vicinity of the cartridge loading section;
Figure (B) is a schematic block diagram of the vicinity of the IJ-judge loading section, Figure 3 is a flowchart for explaining the operation of this embodiment, Figure 4 is a conceptual diagram for explaining the processing order, and Figure 5 is a diagram for explaining the processing order. A diagram showing the effect of image enhancement processing in this embodiment, FIG. 6 is an explanatory diagram explaining the amount of light input to the optical sensor, FIG. 7 is a conceptual diagram showing the concept of neighborhood, and FIG. 8 is enhancement in Laplacian. Figure 9 (A') and (B) are diagrams showing the degree of density distribution (histogram) depending on the type of image.
FIG. DESCRIPTION OF SYMBOLS 10... League printer, 17... Line sensor, 32... Digital printer, 38... Control device, 39... Conversion part, 41... Image storage part, 42... Image processing part .
Claims (1)
値との差に基づいて求めた値に係数を乗じた結果を特定
画素の画素値に加えて画像を鮮明にするための強調処理
を行う画像処理方法において、各画素の画素値を正規化
し、正規化した各画素の画素値の中間値及び前記中間値
からの偏差を求め、この偏差が大きくなるに従って強調
の度合いが大きくなるように前記係数を変化させること
を特徴とする画像処理方法。(1) Enhancement to make the image clearer by adding the result of multiplying the value obtained based on the difference between the pixel value of a specific pixel and the pixel value of pixels near the specific pixel by a coefficient to the pixel value of the specific pixel. In an image processing method that performs processing, the pixel value of each pixel is normalized, the median value of the normalized pixel value of each pixel and the deviation from the median value are determined, and as this deviation increases, the degree of emphasis increases. An image processing method characterized by changing the coefficients as follows.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2101206A JPH04578A (en) | 1990-04-17 | 1990-04-17 | Image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2101206A JPH04578A (en) | 1990-04-17 | 1990-04-17 | Image processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04578A true JPH04578A (en) | 1992-01-06 |
Family
ID=14294453
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2101206A Pending JPH04578A (en) | 1990-04-17 | 1990-04-17 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04578A (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60171573A (en) * | 1984-02-17 | 1985-09-05 | Hitachi Ltd | Picture emphasis system in picture processing system |
-
1990
- 1990-04-17 JP JP2101206A patent/JPH04578A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60171573A (en) * | 1984-02-17 | 1985-09-05 | Hitachi Ltd | Picture emphasis system in picture processing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4659213A (en) | Method and apparatus for detecting and processing image information | |
| JP4428855B2 (en) | Image forming apparatus | |
| US7327877B2 (en) | Image processing apparatus and image processing method | |
| US4660965A (en) | Picture frame detecting and stopping method | |
| JP4239091B2 (en) | Image processing apparatus, method, and program | |
| JPS62272242A (en) | Photographic printing method | |
| US7400821B2 (en) | Device and method for reproducing photographic sound recordings | |
| JP2701961B2 (en) | Image processing method | |
| US4551023A (en) | System for recording information on photographic image density and process | |
| JPH11112715A (en) | Digital image processing system | |
| JPH0464055B2 (en) | ||
| JP4453001B2 (en) | Film reading method and film reading apparatus for carrying out the method | |
| JPH05319613A (en) | Image reader | |
| JPH03297269A (en) | Picture processing method | |
| JPH04865A (en) | Method of processing picture | |
| JP3430380B2 (en) | Image information recording device | |
| JPH0323897B2 (en) | ||
| JP2000156782A (en) | Image processing method and apparatus | |
| JPS6398644A (en) | Photographic printing device | |
| JPH01270040A (en) | Device and method for automatic opaquing | |
| JPH0319533B2 (en) | ||
| JPS61109040A (en) | Detecting and stopping method of image frame | |
| JPH055341B2 (en) | ||
| JPS64862A (en) | Information reader | |
| JP2000338615A (en) | Image reading method and apparatus |