JPH1155503A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH1155503A
JPH1155503A JP9204086A JP20408697A JPH1155503A JP H1155503 A JPH1155503 A JP H1155503A JP 9204086 A JP9204086 A JP 9204086A JP 20408697 A JP20408697 A JP 20408697A JP H1155503 A JPH1155503 A JP H1155503A
Authority
JP
Japan
Prior art keywords
image
pixels
subdivided
image processing
pixel
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
JP9204086A
Other languages
Japanese (ja)
Inventor
Shinichi Takarada
真一 宝田
Fumio Fujimura
文男 藤村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9204086A priority Critical patent/JPH1155503A/en
Publication of JPH1155503A publication Critical patent/JPH1155503A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

PROBLEM TO BE SOLVED: To apply proper processing even to an image where characters and a natural image are mixed without losing sharpness of the characters and gradation of the natural image in the case of applying resolution conversion to a digital image. SOLUTION: Let a ratio of resolution conversion be an integer ratio of M:N, an original image is divided into a minutely divided area of M×M pixels and when a kind of a color components of pixels included therein is >= a threshold level, it is discriminated to be a natural image and image processing by a linear interpolation circuit 104 is conducted and in the case that the kind is <= the threshold level, it is discriminated to be a character image, and the image processing by an adaptive interpolation circuit 105 is conducted depending on a correlation coefficient for each of M×M pixel area divided minutely as above and the image is reduced into N×N pixels.

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 having a feature in thinning means for converting resolution of an image.

【0002】[0002]

【従来の技術】近年コンピュータで画像を扱うことが多
くなり、画像をモニタやプリンタ等に表示することが多
くなってきた。その際、モニタやプリンタには種々の解
像度を持ったものがあり、表示したい画像をこれらの機
器で適正に出力するためには解像度の変換を行う必要が
ある。例えば、640×480の画素数を持つ画面や8
00×600の画素数を持つ画面をモニタに表示する場
合、ブラウン管を用いたモニタに対してであれば、それ
ぞれのドット数に応じた電子線の走査を行うことによ
り、解像度変換をすることなしに各画面をモニタ上に表
示することができる。しかし、640×480の画素を
持つ液晶モニタ上に800×600の画面を表示する際
には、元の画像を解像度変換して液晶の画素数に合わせ
てから表示する必要がある。この解像度変換の方法とし
ては、最近接画素置換法や線形補間法などが広く知られ
ている。
2. Description of the Related Art Recently, images are often handled by computers, and images are often displayed on monitors and printers. At this time, some monitors and printers have various resolutions, and the resolution needs to be converted in order to properly output an image to be displayed by these devices. For example, a screen having a pixel number of 640 × 480 or 8
When displaying a screen having the number of pixels of 00 × 600 on a monitor, if the monitor is a monitor using a CRT, the resolution is not converted by scanning an electron beam in accordance with the number of dots of each. Each screen can be displayed on the monitor. However, when displaying an 800 × 600 screen on a liquid crystal monitor having 640 × 480 pixels, it is necessary to convert the resolution of the original image to match the number of pixels of the liquid crystal before displaying. As a resolution conversion method, a nearest pixel replacement method, a linear interpolation method, and the like are widely known.

【0003】最近接画素置換法は、画像を単純に間引く
ことにより解像度変換を行うものであり、800×60
0から640×480に変換するときには縦横共に5画
素に1画素の割合で順次間引いていくことにより処理を
行うことができる。この方法は簡単で高速に行うことが
できるが、ライン毎に完全に間引いてしまうため、情報
の欠落や不連続が生じ、画質をかなり劣化させるという
問題がある。線形補間法は線形演算を行うことにより解
像度変換後の画素を作るものであり、この例では5×5
の画素から4×4の画素を補間演算により求めることに
より、800×600から640×480の解像度変換
を行うことができる。この方法は情報の欠落がかなり押
さえられ、自然画像などでは非常に良好な結果を得るこ
とができるが、その反面、多少演算量が増えることに加
え、文字や図形画像のようなエッジのはっきりした画像
を処理した場合には、エッジ部分の補間演算によりエッ
ジ部に文字と文字でない部分の中間の階調部分が生じ、
文字などがぼけてしまうという問題があった。
In the nearest pixel replacement method, resolution conversion is performed by simply thinning out an image.
When converting from 0 to 640 × 480, processing can be performed by sequentially thinning out one pixel every five pixels in the vertical and horizontal directions. This method is simple and can be performed at a high speed. However, since the data is completely thinned out for each line, there is a problem that information is lost or discontinuous and the image quality is considerably deteriorated. In the linear interpolation method, pixels after resolution conversion are created by performing a linear operation. In this example, 5 × 5 pixels are used.
The resolution conversion from 800 × 600 to 640 × 480 can be performed by obtaining 4 × 4 pixels from the pixels of the above by interpolation. With this method, the lack of information can be suppressed considerably, and very good results can be obtained with natural images, but on the other hand, the amount of computation is slightly increased, and edges such as characters and graphic images are clear. When an image is processed, an intermediate portion of a character and a portion other than a character is generated at the edge portion by the interpolation operation of the edge portion,
There was a problem that characters were blurred.

【0004】従って、画像の解像度変換においては、画
像中の自然画部分と文字部分の解像度変換処理方式を切
り換えることにより好適な処理を行うことができる。こ
の方式としては、特開平4−199477号公報が挙げ
られる。これは、元の画像における注目画素とその近傍
画素から注目画素が自然画部分であるか文字部分である
かを判定し、それが自然画部分と判断すれば階調性を維
持できる線形補間法により解像度変換を行い、それが文
字部分と判断すれば解像性を維持できる最近接画素置換
法により解像度変換を行うものである。
Therefore, in the resolution conversion of an image, a suitable process can be performed by switching the resolution conversion method between the natural image portion and the character portion in the image. As this method, JP-A-4-199477 can be mentioned. This is a linear interpolation method that determines whether the pixel of interest is a natural image portion or a character portion from the pixel of interest in the original image and its neighboring pixels, and if it is determined that the pixel of interest is a natural image portion, can maintain gradation. The resolution conversion is performed by the nearest pixel replacement method that can maintain the resolution if it is determined that the character portion is detected.

【0005】[0005]

【発明が解決しようとする課題】このように、従来の画
像処理装置には、2つの問題点があり、1つは自然画部
分と文字部分の判別法であり、もう1つは文字部分を解
像度変換するのに最近接画素置換法を用いていることで
ある。
As described above, the conventional image processing apparatus has two problems. One is a method for determining a natural image portion and a character portion, and the other is a method for determining a character portion. That is, the closest pixel replacement method is used for resolution conversion.

【0006】自然画部分と文字部分の判別法について
は、前記従来の画像処理装置においては注目画素近傍の
最大濃度と最小濃度の濃度差に着目し、これがしきい値
以下なら自然画部分、しきい値以上ならば文字部分とし
ている。これは、自然画はその連続性から限られた領域
内での濃度差は小さいことが多いという性質を利用して
いるものである。しかし現実には、例えば人間の顔など
の画像においては、目の部分の瞳と白目や、さらに黒い
瞳の中の白い光等のように、自然画でも近接した画素に
高濃度と低濃度が隣接することがあり、これを従来技術
で処理した場合には、目の部分を間引き処理して、場合
によっては瞳の無い画像を生成するなどという問題があ
った。
In the conventional image processing apparatus, the difference between the maximum density and the minimum density in the vicinity of the pixel of interest is focused on the method of discriminating between the natural image portion and the character portion. If it is above the threshold value, it is regarded as a character part. This utilizes the property that a natural image often has a small density difference within a limited area due to its continuity. However, in reality, for example, in an image such as a human face, high and low densities are close to pixels in a natural image, such as a pupil and a white eye of an eye portion, and a white light in a black pupil. There is a problem that, when this is processed by the conventional technology, the eye portion is thinned out and an image without a pupil is generated in some cases.

【0007】更に、文字部分の解像度変換について、従
来の画像処理装置は最近接画素置換法を用いているが、
この方法は周期的に決まったラインを無条件に間引いて
行くものである。この方法によれば、例えば明朝体の文
字のように横方向の線が1ラインのみの太さを持つ文字
などにおいても、その1ラインが間引かれる可能性があ
り、その場合には文字として画質劣化が著しく、判別が
困難となるという問題があった。
Further, for resolution conversion of a character portion, a conventional image processing apparatus uses a closest pixel replacement method.
This method is to unconditionally thin out periodically determined lines. According to this method, for example, even in a character such as a Mincho type character in which a horizontal line has a thickness of only one line, that one line may be thinned out. As a result, there is a problem that the image quality is remarkably deteriorated and the determination becomes difficult.

【0008】本発明の目的は、画像の解像度変換におい
て、自然画部分と文字部分の判別を確実に行い、特に文
字部分については、文字の特長をできるだけ失わないよ
うに処理を行うことである。
SUMMARY OF THE INVENTION It is an object of the present invention to surely discriminate a natural image portion and a character portion in resolution conversion of an image, and particularly to perform a process for a character portion so as not to lose the characteristics of the character as much as possible.

【0009】[0009]

【課題を解決するための手段】前記課題を解決するため
に、本発明の画像処理装置は、元の画像と変換される縮
小画像の画素数を整数比M:Nに対応づけ、前記元の画
像をM×Mの画素領域毎に細分化し、その細分化画像領
域M×M毎に縮小変換処理を行ってN×Nの縮小された
細分化画像を作成し、前記縮小された全ての細分化画像
N×Nを組み合わせて縮小画像を作成する画像処理装置
において、前記細分化画像領域毎の縮小処理は、行及び
列いずれの方向についてもM−N本のラインを間引く処
理であって、且つ間引くべきラインを前記細分化画像領
域毎に相関係数を計算し、計算された相関係数に応じて
間引きラインを決定することを特徴とするものである。
In order to solve the above-mentioned problems, an image processing apparatus according to the present invention associates the number of pixels of an original image and a reduced image to be converted with an integer ratio M: N, and The image is subdivided into M × M pixel regions, and a reduced conversion process is performed for each subdivided image region M × M to create an N × N reduced subdivided image. In the image processing apparatus that creates a reduced image by combining the segmented images N × N, the reduction process for each of the subdivided image regions is a process of thinning out MN lines in any of the row and column directions, Further, a correlation coefficient of a line to be thinned is calculated for each of the subdivided image areas, and a thinned line is determined according to the calculated correlation coefficient.

【0010】本発明によれば、画像を解像度変換する際
に、当該画像が文字と自然画を同時に含んでいる画像で
あっても、文字部分と自然画部分を確実に分離し、それ
ぞれに適した解像度変換を行うことにより、良好な解像
度変換後の画像を得ることができる。
According to the present invention, when converting the resolution of an image, even if the image includes both a character and a natural image at the same time, the character portion and the natural image portion are surely separated from each other, and are suitable for each. By performing the resolution conversion, it is possible to obtain a good image after the resolution conversion.

【0011】[0011]

【発明の実施の形態】本発明の請求項1に記載の画像処
理装置は、元の画像と変換される縮小画像の画素数を整
数比M:Nに対応づけ、前記元の画像をM×Mの画素領
域毎に細分化し、その細分化画像領域M×M毎に縮小変
換処理を行ってN×Nの縮小された細分化画像を作成
し、前記縮小された全ての細分化画像N×Nを組み合わ
せて縮小画像を作成する画像処理装置において、前記細
分化画像領域毎の縮小処理は、行及び列いずれの方向に
ついてもM−N本のラインを間引く処理であって、且つ
間引くべきラインを前記細分化画像領域毎に決定するこ
とを特徴としたものであり、画素間の線形演算を行わな
いことによりエッジのぼけを防ぐと共に、固定位置の間
引きによって重要な情報が失われ、画質が劣化するのを
防ぐという作用を持つ。
An image processing apparatus according to a first aspect of the present invention associates the number of pixels of an original image and a reduced image to be converted with an integer ratio M: N, and converts the original image to M × N. Each pixel area of M is subdivided, a reduced conversion process is performed for each subdivided image area M × M to create an N × N reduced subdivided image, and all of the reduced subdivided images N × In the image processing apparatus for creating a reduced image by combining N, the reduction processing for each of the subdivided image areas is processing for thinning out MN lines in any of the row and column directions, and the line to be thinned out. Is determined for each of the subdivided image areas.In addition to preventing the blurring of edges by not performing a linear operation between pixels, important information is lost by thinning out fixed positions, and image quality is reduced. Has the effect of preventing deterioration

【0012】次に、本発明の請求項2に記載の画像処理
装置は、請求項1において、前記細分化されたM×Mの
画素領域において、行方向ラインの相関係数は隣接する
行の隣合う画素の同じ色成分をもつ画素数をカウント
し、列方向ラインの相関係数は隣接する列の隣合う画素
の同じ色成分をもつ画素数をカウントすることにより作
成し、行方向及び列方向の各ライン間相関係数の最も高
いラインのどちらか片方のラインを間引くことを特徴と
したものであり、相関の高いラインのみを間引くことに
より、画像中の失われる情報量を低減させて画質の劣化
を最小限に押さえる事ができ、また、乗算等の処理時間
がかかる演算を行うことなく簡単に相関関係を算出出来
る。
Next, in the image processing apparatus according to a second aspect of the present invention, in the first aspect, in the subdivided M × M pixel area, a correlation coefficient of a row direction line is set to a value of an adjacent row. The number of pixels having the same color component of the adjacent pixels is counted, and the correlation coefficient of the column direction line is created by counting the number of pixels having the same color component of the adjacent pixels of the adjacent column. It is characterized by thinning out one of the lines with the highest correlation coefficient between each line in the direction.By thinning out only the lines with high correlation, the amount of information lost in the image is reduced. The deterioration of the image quality can be minimized, and the correlation can be easily calculated without performing an operation that takes a long processing time such as multiplication.

【0013】次に、本発明の請求項3に記載の画像処理
装置は、請求項2において、前記細分化されたM×Mの
画素領域において、行方向ラインの相関係数の最大値を
算出後、相関係数最大値のラインが前記画素領域の左に
隣接する細分化された画素領域の間引きラインと同じに
なれば、前記算出され相関係数に所定の重み付けをし、
列方向ラインの相関係数の最大値を算出後、相関係数最
大値のラインが前記画素領域の上に隣接する細分化され
た画素領域の間引きラインと同じになれば、前記算出さ
れた相関係数に所定の重み付けをすることを特徴とした
ものであり、左右及び上下に隣接して並ぶ画素領域毎に
間引くラインが異なったときに生ずる横及び縦方向の線
分の不連続を防ぐことが出来る。
Next, the image processing apparatus according to claim 3 of the present invention calculates the maximum value of the correlation coefficient of the row direction line in the subdivided M × M pixel region. Thereafter, if the line of the correlation coefficient maximum value becomes the same as the thinned line of the subdivided pixel region adjacent to the left of the pixel region, the calculated correlation coefficient is weighted with a predetermined weight,
After calculating the maximum value of the correlation coefficient of the column direction line, if the line of the maximum correlation coefficient becomes the same as the thinned line of the subdivided pixel area adjacent to the pixel area, the calculated phase is calculated. The present invention is characterized in that relation numbers are weighted in a predetermined manner, and to prevent discontinuities in horizontal and vertical line segments that occur when lines to be thinned out are different for each of pixel regions arranged side by side horizontally and vertically. Can be done.

【0014】次に、本発明の請求項4に記載された画像
処理装置は、元の画像と縮小後画像の画素数を整数比
M:Nに対応づけ、前記元の画像をM×Mの画素領域毎
に細分化し、その細分化画像領域M×M毎に縮小変換処
理を行う画像処理装置において、前記細分化された画素
領域毎に画素の色成分の種類の数をカウントし、そのカ
ウント値が予め定められた値より小さい場合は、第1の
縮小画像処理を、大きい場合は第2の縮小画像処理を行
って、前記細分化されたM×Mの画像領域をN×Nの画
像領域に縮小変換することを特徴としたものであり、画
像中の文字部分と自然画部分を分けることにより、それ
ぞれに適した解像度変換処理を行うことができる。
Next, the image processing apparatus according to claim 4 of the present invention associates the number of pixels of the original image and the reduced image with an integer ratio M: N, and converts the original image into an M × M image. In an image processing apparatus that subdivides each pixel region and performs a reduction conversion process for each subdivided image region M × M, the number of types of color components of pixels is counted for each subdivided pixel region, and the count is performed. If the value is smaller than a predetermined value, the first reduced image processing is performed, and if the value is larger, the second reduced image processing is performed to convert the subdivided M × M image area into an N × N image. It is characterized in that it is reduced and converted into an area. By separating a character portion and a natural image portion in an image, resolution conversion processing suitable for each can be performed.

【0015】次に、本発明の請求項5に記載の画像処理
装置は、請求項4において、前記第1の縮小画像処理
は、細分化されたM×Mの画素領域において、行方向ラ
インの相関係数は隣接する行の隣合う画素の同じ色成分
をもつ画素数をカウントし、列方向ラインの相関係数は
隣接する列の隣合う画素の同じ色成分をもつ画素数をカ
ウントすることにより作成し、行方向及び列方向の各ラ
イン間相関係数の最も高いラインのどちらか片方のライ
ンを間引くものであり、前記第2の縮小画像処理は線形
補間処理であることを特徴としたものであり、自然画部
分はスムーズさを保存する解像度変換を行い、文字部分
は鮮明さを保存する解像度変換を行うことができる。
Next, in the image processing apparatus according to a fifth aspect of the present invention, in the fourth aspect, the first reduced image processing is performed in a sub-divided M × M pixel area in a row direction line. The correlation coefficient is to count the number of pixels having the same color component of adjacent pixels in adjacent rows, and the correlation coefficient of the column direction line is to count the number of pixels having the same color component of adjacent pixels in adjacent columns. And thinning out one of the lines having the highest correlation coefficient between each line in the row direction and the column direction, and wherein the second reduced image processing is a linear interpolation processing. The resolution conversion for preserving the smoothness can be performed for the natural image portion, and the resolution conversion for preserving the sharpness can be performed for the character portion.

【0016】(実施の形態1)以下に、本発明の請求項
1から請求項4に記載された発明の実施の形態につい
て、図1から図4を用いて説明する。
(Embodiment 1) An embodiment of the present invention described in claims 1 to 4 of the present invention will be described below with reference to FIGS.

【0017】この実施の形態は、800×600画素の
表示信号を640×480画素をもつ液晶モニタに表示
するための解像度変換を行う画像処理装置である。図1
において、101は細分化画素領域作成回路である。こ
の解像度変換では、5×5の画素毎に4×4の画素に変
換すれば良いため、元の800×600画素の画像を5
×5毎に細分化し、160×120個の細分化画素領域
を作成する。102は色成分カウンタであり、注目して
いる5×5の画素それぞれのRGB成分を調べ、RGB
の色成分が全て同じ画素は同じ種類とし、何種類の色成
分が存在するかを調べる。全ての画素が異なっていれば
カウント値は25であり、全ての色成分が同じであれば
カウント数は1である。103は画像判別回路で、注目
している5×5の画素が文字部分か自然画部分であるか
を判別する。また、R、G、Bの色成分全てについてカ
ウントせずに1つの色成分あるいは、輝度成分のみで判
断しても、ほぼ同じような結果が得られる。
This embodiment is an image processing apparatus for performing resolution conversion for displaying a display signal of 800 × 600 pixels on a liquid crystal monitor having 640 × 480 pixels. FIG.
In the figure, reference numeral 101 denotes a subdivided pixel area creation circuit. In this resolution conversion, since it is sufficient to convert every 5 × 5 pixel into 4 × 4 pixels, the original 800 × 600 pixel image is converted into 5 × 5 pixels.
Subdivision is performed for each × 5, and 160 × 120 subdivided pixel regions are created. Reference numeral 102 denotes a color component counter that checks the RGB components of each of the 5 × 5 pixels of interest, and
Pixels having the same color component are all of the same type, and it is checked how many types of color components exist. If all the pixels are different, the count value is 25, and if all the color components are the same, the count number is 1. An image discrimination circuit 103 discriminates whether the focused 5 × 5 pixel is a character portion or a natural image portion. In addition, almost the same result can be obtained even if the determination is made based on only one color component or luminance component without counting all the R, G, and B color components.

【0018】画像判別回路103は、前記色成分カウン
タ102から出力されるカウント値が予め定められた
値、例えば、5以下であれば文字部分と判定し、5より
大きければ自然画部分と判定する。これは、自然画の場
合は、取り込みノイズ等の影響などにより、隣接する画
素であっても色成分が全て同じになる可能性は極めて低
いが、文字や図形などの画像の場合は、人工的に作った
画像であるため、背景や文字や図形など毎に全て同じ色
成分を持ち、その種類はあまり多くはない、ということ
に基づく。画像判別回路103にて自然画部分と判定さ
れた場合には、線形補間回路104により4×4画素の
画像に変換され、画像判別回路103にて文字部分と判
定された場合には、適応間引き回路105により4×4
画素の画像に変換される。線形補間回路104、適応間
引き回路105の処理方法については後述する。両処理
により4×4画像に変換された160×120個分の細
分化画素領域は画像再編成回路106により画像として
再編成され、640×480の画像となって液晶モニタ
の各画素に送られ、表示される。
The image discriminating circuit 103 judges that the count value output from the color component counter 102 is a character portion if the count value is equal to or less than a predetermined value, for example, 5 and judges a natural image portion if the count value is larger than 5. . This is because in the case of a natural image, it is extremely unlikely that all of the color components will be the same even in adjacent pixels due to the influence of capture noise and the like. This is based on the fact that each image has the same color component for every background, character, figure, etc., and there are not so many types. When the image discriminating circuit 103 determines that the image is a natural image portion, the image is converted into a 4 × 4 pixel image by the linear interpolation circuit 104, and when the image discriminating circuit 103 determines that the image is a character portion, adaptive thinning is performed. 4 × 4 by circuit 105
It is converted to a pixel image. The processing method of the linear interpolation circuit 104 and the adaptive thinning circuit 105 will be described later. The 160 × 120 subdivided pixel areas converted into a 4 × 4 image by both processes are reorganized as an image by the image reorganization circuit 106, and sent to each pixel of the liquid crystal monitor as a 640 × 480 image. ,Is displayed.

【0019】次に、線形補間回路104では5×5の画
素に線形演算を行い、4×4の画素に変換するが、次式
に示すように、Aij(i=1〜5,j=1〜5)から
Cij(i=1〜5,j=1〜4)を介して、Bij
(i=1〜4,j=1〜4)に変換する。ここで縦横順
に処理すると、 B1j=C1j B2j=(3×C2j+C3j)/4 B3j=(C3j+C4j)/2 B4j=(C4j+3×C5j)/4 ただし、 Ci1=Ai1 Ci2=(3×Ai2+Ai3)/4 Ci3=(Ai3+Ai4)/2 Ci4=(Ai4+3×Ai5)/4 により求められる。前述の式においては、5×5の画素
を5×4の画素を介して4×4の画素に変換するが、も
ちろん、4×5の画素を介して4×4の画素に変換して
も同様の処理が出来る。
Next, the linear interpolation circuit 104 performs a linear operation on 5 × 5 pixels to convert them into 4 × 4 pixels. As shown in the following equation, Aij (i = 1 to 5, j = 1) 5) through Cij (i = 1 to 5, j = 1 to 4) to Bij
(I = 1 to 4, j = 1 to 4). Here, when processing is performed vertically and horizontally, B1j = C1j B2j = (3 × C2j + C3j) / 4 B3j = (C3j + C4j) / 2 B4j = (C4j + 3 × C5j) / 4 where Ci1 = Ai1 Ci2 = (3 × Ai2 + Ai3) / 4 Ci3 = (Ai3 + Ai4) / 2 Ci4 = (Ai4 + 3 × Ai5) / 4. In the above equation, a 5 × 5 pixel is converted to a 4 × 4 pixel via a 5 × 4 pixel. Of course, a 4 × 4 pixel is converted to a 4 × 4 pixel via a 4 × 5 pixel. Similar processing can be performed.

【0020】次に、105の適応間引き回路について図
2を用いて説明する。図2は処理前の5×5画素と、こ
れを適応間引き回路により処理した後の4×4画素を示
したものである。この図では「ic」と表示されたもの
が処理後も「ic」と読め、情報の欠落無く処理されて
いる。これは5×5画素の第2列と第3行を間引くこと
により、実現することができる。この間引く行および列
を決定するのは次の手順による。まず列方向について、
各列の画素と右に隣合う画素とを比較し、同じ濃度値を
持つ画素数をカウントする。図2はR、G、Bの内のい
ずれかの成分の濃度値の場合を示し、第1列と第2列の
カウント数は1であり、第2列と第3列のカウント数は
5、第3列と第4列のカウント数は1、第4列と第5列
のカウント数は3である。この中で、最もカウント数が
大きいもの、すなわち、最も相関関係が高いものは第2
列と第3列であり、この場合カウント数が5で両者はま
ったく同じであるため、片方を間引いても情報の欠落は
ない。したがって、第2列を間引くものとする。
Next, the adaptive thinning circuit 105 will be described with reference to FIG. FIG. 2 shows 5 × 5 pixels before processing and 4 × 4 pixels after processing them by an adaptive thinning circuit. In this figure, what is displayed as "ic" can be read as "ic" even after the processing, and the processing is performed without loss of information. This can be realized by thinning out the second column and the third row of 5 × 5 pixels. The rows and columns to be thinned are determined according to the following procedure. First, in the column direction,
The pixels in each column are compared with the right neighboring pixels, and the number of pixels having the same density value is counted. FIG. 2 shows the case of a density value of any of R, G, and B components. The count number in the first and second columns is 1, and the count number in the second and third columns is 5. , The count number of the third and fourth columns is 1, and the count number of the fourth and fifth columns is 3. Among them, the one with the largest count number, that is, the one with the highest correlation is the second
In this case, the number of counts is 5 and both are exactly the same, so that even if one of them is thinned out, there is no loss of information. Therefore, the second column is thinned out.

【0021】同様に、行方向についても各画素と下に隣
合う画素との比較を行い、最も相関の高い第3行と第4
行のうち第3行を間引き行として決定する。なお、この
例では、第3行と第4行が全く同じであるため、どちら
を間引いても結果は同じであるが、第3行と第4行のい
ずれを間引くかを決定する際に、第3行と第2行の相関
と第4行と第5行の相関を調べ、相関の高い方の行を間
引くようにすることにより、一般に情報の欠落をさらに
押さえることもできる。この場合、第3行と第2行のカ
ウント値は3であり、第4行と第5行のカウント値は4
であるため、第4行と第5行の相関の方が高く、第4行
を間引き行と決定することになる。
Similarly, in the row direction, each pixel is compared with the adjacent pixel below, and the third row and the fourth row having the highest correlation are compared.
The third row among the rows is determined as a thinned row. In this example, since the third row and the fourth row are completely the same, the result is the same regardless of which row is thinned. However, when determining which of the third row and the fourth row is thinned, By checking the correlation between the third row and the second row and the correlation between the fourth row and the fifth row and thinning out the row having the higher correlation, it is generally possible to further suppress the lack of information. In this case, the count value of the third and second rows is 3, and the count value of the fourth and fifth rows is 4.
Therefore, the correlation between the fourth row and the fifth row is higher, and the fourth row is determined to be a thinned row.

【0022】以下、図3を用いて適応間引き回路におけ
る一般的な処理手順について説明する。図3は適応間引
き回路の処理フローチャートであり、変換前の画素Ai
j(i=1〜5,j=1〜5)から間引くべき行Xと列
Yを決定する手順を示している。201〜208は間引
く行Xを決定する手順であり、211〜218は間引く
列Yを決定する手順である。201ではi=1とし、第
1行から順に下の行との相関を調べていく。202では
Pi=0とし、カウント値を初期化する。203では第
1画素から順に5つの画素について相関を調べていく。
204では注目画素とこれと下に隣合う画素との色成分
の濃度値を調べ、同じであるなら205にてカウント値
を1増加し、違う場合は205をバイパスする。206
により204以下を5回繰り返す。以上の処理により、
下に隣合う行との相関係数がPiに入る。207では2
02以下の処理を4回繰り返し、各行における相関係数
を求める。208では、それらの相関係数のうちで最も
大きい値を持つ行を調べ、その行を間引くべき行として
決定する。
Hereinafter, a general processing procedure in the adaptive thinning circuit will be described with reference to FIG. FIG. 3 is a processing flowchart of the adaptive decimation circuit, and illustrates a pixel Ai before conversion.
A procedure for determining a row X and a column Y to be thinned out from j (i = 1 to 5, j = 1 to 5) is shown. 201 to 208 are procedures for determining a row X to be thinned, and 211 to 218 are procedures for determining a column Y to be thinned. In 201, i = 1 is set, and the correlation with the lower row is examined sequentially from the first row. At 202, Pi = 0 is set, and the count value is initialized. In 203, the correlation is checked for five pixels in order from the first pixel.
At step 204, the density values of the color components of the target pixel and the pixel adjacent to the target pixel are checked. 206
Is repeated 204 times five times. By the above processing,
The correlation coefficient between the lower adjacent row is included in Pi. 2 in 207
The processing of 02 or less is repeated four times, and the correlation coefficient in each row is obtained. At 208, a row having the largest value among the correlation coefficients is checked, and the row is determined as a row to be thinned.

【0023】211以下もこれと同様である。すなわ
ち、211ではj=1とし、第1列から順に右の列との
相関を調べていく。212ではPj=0とし、カウント
値を初期化する。213では第1画素から順に5つの画
素について相関を調べていく。214では注目画素とこ
れと下に隣合う画素との濃度値を調べ、同じであるなら
215にてカウント値を1増加し、違う場合は215を
バイパスする。216により214以下を5回繰り返
す。以上の処理により、右に隣合う列との相関係数がP
iに入る。217では212以下の処理を4回繰り返
し、各列における相関係数を求める。218では、それ
らの相関係数のうちで最も大きい値を持つ列を調べ、そ
の列を間引くべき列として決定する。
The same applies to 211 and below. That is, j = 1 is set in 211, and the correlation with the right column is checked in order from the first column. At 212, Pj = 0, and the count value is initialized. In 213, the correlation is checked for five pixels in order from the first pixel. At 214, the density value of the pixel of interest and the pixel adjacent to it are examined, and if they are the same, the count value is incremented by 1 at 215, and if not, 215 is bypassed. 216 and 214 or less are repeated 5 times. By the above processing, the correlation coefficient between the right adjacent column is P
Enter i. In 217, the processing of 212 or less is repeated four times, and the correlation coefficient in each column is obtained. At 218, the column having the largest value among the correlation coefficients is checked, and the column is determined as the column to be thinned.

【0024】以上により間引きラインを決定することが
できるが、このままでは各細分化画素領域毎に完全に個
別に間引くべきラインを決定しているため、隣合う画素
領域の間引く行が異なり且つライン方向に画素領域間に
またがる線分があった場合には、その線分が画素領域の
境界部で不連続になるなどという問題が生じることがあ
る。これを防ぐための適応間引き回路の実施の形態を図
4に示す。
The thinning line can be determined as described above. However, since the line to be thinned is completely individually determined for each subdivided pixel region in this state, the line to be thinned is different in the adjacent pixel region and the line direction is different. If there is a line segment extending between pixel regions, a problem may occur that the line segment becomes discontinuous at the boundary of the pixel region. FIG. 4 shows an embodiment of an adaptive thinning circuit for preventing this.

【0025】図4は適応間引き回路のもう1つの実施の
形態の処理フローチャートであり、図3との違いは40
1、402、411、412が追加されており、ステッ
プ401、ステップ411に用いられているlast
(X)、last(Y)はそれぞれ、左に接する細分化
画素領域の行番号、上に接する細分化画素領域の列番号
である。すなわち、各行間の相関係数Piを求めた後
に、401により現在相関係数を求めた行が左に隣合う
細分化画素領域で間引いた行であるかどうかを判断し、
そうであるときには402にて相関係数に0.5を足し
て重み付けしている。列に対しても同様に、411によ
り現在相関係数を求めた列が上に隣合う細分化画素領域
で間引いた列であるかどうかを判断し、そうであるとき
には412にて相関係数に0.5を足して重み付けして
いる。この重み付けにより、左(または上)に隣接する
細分化画素領域と同じ行(または列)を間引く可能性が
高くなり、不連続が生じる確率を低減させることができ
る。
FIG. 4 is a processing flowchart of another embodiment of the adaptive thinning circuit, and the difference from FIG.
1, 402, 411, and 412 are added, and the last used in steps 401 and 411
(X) and last (Y) are the row number of the subdivided pixel area adjacent to the left and the column number of the subdivided pixel area adjacent to the upper side. That is, after calculating the correlation coefficient Pi between each row, it is determined whether or not the row for which the current correlation coefficient is determined by 401 is a row thinned out in the subdivided pixel area adjacent to the left.
If so, at 402, the correlation coefficient is weighted by adding 0.5. Similarly, for the column, it is determined whether or not the column for which the current correlation coefficient has been obtained in 411 is a column thinned out in the subdivided pixel region adjacent to the upper portion. 0.5 is added and weighted. This weighting increases the possibility of thinning out the same row (or column) as the subdivided pixel region adjacent to the left (or above), thereby reducing the probability of discontinuity.

【0026】[0026]

【発明の効果】以上のように、本発明の画像処理装置に
よれば、文字および自然画が混在した画像に対して、文
字の先鋭度や自然画の階調性を失うことなく、解像度変
換処理を単純な処理で実現することが可能となる。
As described above, according to the image processing apparatus of the present invention, it is possible to convert the resolution of an image in which a character and a natural image are mixed without losing the sharpness of the character and the gradation of the natural image. Processing can be realized by simple processing.

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

【図1】本発明の実施の形態における画像処理装置のブ
ロックチャート
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態における画像処理装置に用
いる細分化画素領域を模式的に示す図
FIG. 2 is a diagram schematically showing a subdivided pixel area used in the image processing apparatus according to the embodiment of the present invention.

【図3】本発明の実施の形態における画像処理装置に用
いる適応間引きのフローチャート
FIG. 3 is a flowchart of adaptive thinning used in the image processing apparatus according to the embodiment of the present invention.

【図4】本発明の実施の形態における画像処理装置に用
いる適応間引きの他のフローチャート
FIG. 4 is another flowchart of adaptive thinning used in the image processing apparatus according to the embodiment of the present invention;

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

101 細分化画素領域作成回路 102 色成分カウンタ 103 画像判別回路 104 線形補間回路 105 適応間引き回路 106 画像再編成回路 Reference Signs List 101 Subdivided pixel region creation circuit 102 Color component counter 103 Image discrimination circuit 104 Linear interpolation circuit 105 Adaptive thinning circuit 106 Image reorganization circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 元の画像と変換される縮小画像の画素数
を整数比M:Nに対応づけ、前記元の画像をM×Mの画
素領域毎に細分化し、その細分化画像領域M×M毎に縮
小変換処理を行ってN×Nの縮小された細分化画像を作
成し、前記縮小された全ての細分化画像N×Nを組み合
わせて縮小画像を作成する画像処理装置において、 前記細分化画像領域毎の縮小処理は、行及び列いずれの
方向についてもM−N本のラインを間引く処理であっ
て、且つ間引くべきラインを前記細分化画像領域毎に決
定することを特徴とした画像処理装置。
1. An original image and the number of pixels of a reduced image to be converted are associated with an integer ratio M: N, and the original image is subdivided into M × M pixel regions. An image processing apparatus for performing a reduction conversion process for each M to generate an N × N reduced subdivided image and combining all of the reduced subdivided images N × N to generate a reduced image. The reduction process for each segmented image region is a process for thinning out MN lines in both the row and column directions, and determining a line to be thinned for each of the subdivided image regions. Processing equipment.
【請求項2】 前記細分化されたM×Mの画素領域にお
いて、行方向ラインの相関係数は隣接する行の隣合う画
素の同じ色成分をもつ画素数をカウントし、列方向ライ
ンの相関係数は隣接する列の隣合う画素の同じ色成分を
もつ画素数をカウントすることにより作成し、行方向及
び列方向の各ライン間相関係数の最も高いラインのどち
らか片方のラインを間引くことを特徴とする請求項1に
記載の画像処理装置。
2. In the subdivided M × M pixel area, the correlation coefficient of the row direction line is obtained by counting the number of pixels having the same color component of adjacent pixels in an adjacent row, and calculating the phase of the column direction line. The relation number is created by counting the number of pixels having the same color component of adjacent pixels in an adjacent column, and thinning out one of the lines having the highest correlation coefficient between each line in the row direction and the column direction. The image processing apparatus according to claim 1, wherein:
【請求項3】 前記細分化されたM×Mの画素領域にお
いて、行方向ラインの相関係数の最大値を算出後、相関
係数最大値のラインが前記画素領域の左に隣接する細分
化された画素領域の間引きラインと同じになれば、前記
算出され相関係数に所定の重み付けをし、列方向ライン
の相関係数の最大値を算出後、相関係数最大値のライン
が前記画素領域の上に隣接する細分化された画素領域の
間引きラインと同じになれば、前記算出された相関係数
に所定の重み付けをすることを特徴とする請求項2に記
載の画像処理装置。
3. In the subdivided M × M pixel region, after calculating the maximum value of the correlation coefficient of the row direction line, the line of the maximum correlation coefficient is adjacent to the left side of the pixel region. When the pixel area becomes the same as the thinned line of the pixel area, the calculated correlation coefficient is weighted in a predetermined manner, and the maximum value of the correlation coefficient of the column direction line is calculated. The image processing apparatus according to claim 2, wherein the calculated correlation coefficient is given a predetermined weight when it becomes the same as the thinned line of the subdivided pixel area adjacent to the area.
【請求項4】 元の画像と縮小後画像の画素数を整数比
M:Nに対応づけ、前記元の画像をM×Mの画素領域毎
に細分化し、その細分化画像領域M×M毎に縮小変換処
理を行う画像処理装置において、前記細分化された画素
領域毎に画素の色成分の種類の数をカウントし、そのカ
ウント値が予め定められた値より小さい場合は、第1の
縮小画像処理を、大きい場合は第2の縮小画像処理を行
って、前記細分化されたM×Mの画像領域をN×Nの画
像領域に縮小変換することを特徴とする画像処理装置。
4. The original image and the reduced image are associated with an integer ratio M: N, and the original image is subdivided into M × M pixel regions. In the image processing apparatus that performs the reduction conversion process, the number of types of color components of the pixels is counted for each of the subdivided pixel regions, and if the count value is smaller than a predetermined value, the first reduction is performed. An image processing apparatus, wherein the image processing is performed by performing a second reduced image processing when the image processing is large, and the reduced M × M image area is reduced and converted into an N × N image area.
【請求項5】 前記第1の縮小画像処理は、細分化され
たM×Mの画素領域において、行方向ラインの相関係数
は隣接する行の隣合う画素の同じ色成分をもつ画素数を
カウントし、列方向ラインの相関係数は隣接する列の隣
合う画素の同じ色成分をもつ画素数をカウントすること
により作成し、行方向及び列方向の各ライン間相関係数
の最も高いラインのどちらか片方のラインを間引くもの
であり、前記第2の縮小画像処理は線形補間処理である
ことを特徴とする請求項4に記載の画像処理装置。
5. In the first reduced image processing, in a subdivided M × M pixel area, the correlation coefficient of a row direction line is determined by calculating the number of pixels having the same color component of adjacent pixels in an adjacent row. Counting, the correlation coefficient of the column direction line is created by counting the number of pixels having the same color component of the adjacent pixel of the adjacent column, and the line having the highest correlation coefficient between each line in the row direction and the column direction is generated. 5. The image processing apparatus according to claim 4, wherein one of the lines is thinned out, and the second reduced image processing is a linear interpolation processing. 6.
JP9204086A 1997-07-30 1997-07-30 Image processing unit Pending JPH1155503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9204086A JPH1155503A (en) 1997-07-30 1997-07-30 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9204086A JPH1155503A (en) 1997-07-30 1997-07-30 Image processing unit

Publications (1)

Publication Number Publication Date
JPH1155503A true JPH1155503A (en) 1999-02-26

Family

ID=16484563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9204086A Pending JPH1155503A (en) 1997-07-30 1997-07-30 Image processing unit

Country Status (1)

Country Link
JP (1) JPH1155503A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007276270A (en) * 2006-04-06 2007-10-25 Fuji Xerox Co Ltd Image forming device
JP2010032644A (en) * 2008-07-25 2010-02-12 Sharp Corp Image forming apparatus
CN105407251A (en) * 2014-09-09 2016-03-16 佳能株式会社 Image processing apparatus and image processing method
US9734585B2 (en) 2014-05-14 2017-08-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium for determining whether a target pixel is a character
US9773319B2 (en) 2014-05-26 2017-09-26 Canon Kabushiki Kaisha Image processing apparatus, method, and medium
US9924046B2 (en) 2015-07-06 2018-03-20 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007276270A (en) * 2006-04-06 2007-10-25 Fuji Xerox Co Ltd Image forming device
JP2010032644A (en) * 2008-07-25 2010-02-12 Sharp Corp Image forming apparatus
US9734585B2 (en) 2014-05-14 2017-08-15 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium for determining whether a target pixel is a character
US9773319B2 (en) 2014-05-26 2017-09-26 Canon Kabushiki Kaisha Image processing apparatus, method, and medium
CN105407251A (en) * 2014-09-09 2016-03-16 佳能株式会社 Image processing apparatus and image processing method
US9369610B2 (en) 2014-09-09 2016-06-14 Canon Kabushiki Kaisha Image processing apparatus and image processing method
CN105407251B (en) * 2014-09-09 2018-11-09 佳能株式会社 Image processing apparatus and image processing method
US9924046B2 (en) 2015-07-06 2018-03-20 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium

Similar Documents

Publication Publication Date Title
US6421090B1 (en) Motion and edge adaptive deinterlacing
US5737455A (en) Antialiasing with grey masking techniques
JP2001238073A (en) Method and device for processing picture
KR20030007817A (en) Scalable resolution enhancement of a video image
US6175659B1 (en) Method and apparatus for image scaling using adaptive edge enhancement
Kao et al. Image quality improvement for electrophoretic displays by combining contrast enhancement and halftoning techniques
KR100524072B1 (en) Method for improving image quality
JP3176195B2 (en) Image processing device
US20090016633A1 (en) Image processor, display device, image processing method, and program
US6738159B2 (en) Method and apparatus for implementing a trapping operation on a digital image
JPH03131173A (en) Picture processing system
US6185334B1 (en) Method for reconstructing a dithered image
KR20050085355A (en) Method and apparatus for removing false edges from a segmented image
US20010048771A1 (en) Image processing method and system for interpolation of resolution
JPH10171440A (en) Image reducing device and control method therefor
JPH1155503A (en) Image processing unit
KR100400375B1 (en) Display Apparatus with the pseudo-contour noise detector using skin-color filter and Method of processing an image Thereof
JP3026706B2 (en) Image processing device
JP3314556B2 (en) Image display device
US6347160B1 (en) Increasing the bit depth of and filtering dithered images for the purpose of inverse dithering
US6222945B1 (en) Selective filtering of a dithered image for the purpose of inverse dithering
JP2920635B2 (en) Image processing device
JP3262425B2 (en) Image processing device
US20030112255A1 (en) Method to upscale single-pixel wide text without loss of image sharpness
JPH0793563A (en) Image processor