JPH0955847A - Pixel density conversion method and pixel density conversion device - Google Patents

Pixel density conversion method and pixel density conversion device

Info

Publication number
JPH0955847A
JPH0955847A JP7204531A JP20453195A JPH0955847A JP H0955847 A JPH0955847 A JP H0955847A JP 7204531 A JP7204531 A JP 7204531A JP 20453195 A JP20453195 A JP 20453195A JP H0955847 A JPH0955847 A JP H0955847A
Authority
JP
Japan
Prior art keywords
pixel
pixels
black pixel
black
distance
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
JP7204531A
Other languages
Japanese (ja)
Inventor
Koichi Yoshizawa
孝一 吉澤
Naoki Kuwata
直樹 鍬田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP7204531A priority Critical patent/JPH0955847A/en
Publication of JPH0955847A publication Critical patent/JPH0955847A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

(57)【要約】 【課題】 疑似中間調処理された低濃度の画像を投影法
を用いて縦横とも拡大すると、変換後の画像は黒画素が
偏った状態で存在することになる。このような場合、黒
画素が画像のエッジ部に存在する画素でなければ、黒画
素を画像全体に散らばらせた方がより好ましい画像が得
られる。 【解決手段】 原画像の画素数を縦方向および横方向に
任意の倍率で変換して得られる変換画像を生成し、この
変換画像と前記原画像とを所定の関係に基づいて対応付
けすることで、原画像に存在するそれぞれの黒画素に対
応する変換画像の画素を特定し、これにより特定された
変換画像の画素を黒画素a〜iとし、原画像に対応づけ
られることにより所定の画素が黒画素とされた前記変換
画像において、前記黒画素とされた画素a〜i以外の各
画素について、その画素とその画素に最も近い黒画素と
の間の距離を求め、この求めた距離に基づいて新たな黒
画素を生成する。
(57) Abstract: When a low density image subjected to pseudo halftone processing is enlarged both vertically and horizontally by using a projection method, the converted image exists in a state in which black pixels are biased. In such a case, if the black pixels are not the pixels existing in the edge portion of the image, it is possible to obtain a more preferable image in which the black pixels are scattered over the entire image. SOLUTION: A converted image obtained by converting the number of pixels of an original image in the vertical direction and the horizontal direction at an arbitrary magnification is generated, and the converted image and the original image are associated with each other based on a predetermined relationship. Then, the pixels of the converted image corresponding to the respective black pixels existing in the original image are specified, and the pixels of the converted image specified by the black pixels are defined as black pixels a to i. In the converted image in which is a black pixel, for each pixel other than the pixels a to i that are black pixels, the distance between that pixel and the black pixel closest to that pixel is calculated, and the calculated distance is Based on this, a new black pixel is generated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2値画像、特に疑
似中間調画像の変倍処理に適した画素密度変換方法およ
び画素密度変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pixel density conversion method and a pixel density conversion device suitable for variable-magnification processing of binary images, especially pseudo-halftone images.

【0002】[0002]

【従来の技術】たとえば、図16(a)に示すような2
値の原画像があって、この原画像を構成する画素数を縦
横ともに所定の倍率で変換することで、原画像を変倍す
ることが行われる。同図(b)は、原画像の画素数を縦
横ともに2倍にした例を示している。つまり、原画像の
画素G1を例に説明すると、この画素G1は変換後には
画素G11,G12,G13,G14の4つの画素で構
成される。なお、この図16において、斜線部分が黒画
素であり、この図では、「0」という文字を表してい
る。
2. Description of the Related Art For example, as shown in FIG.
There is an original image of a value, and the original image is scaled by converting the number of pixels forming this original image in both the vertical and horizontal directions by a predetermined magnification. FIG. 2B shows an example in which the number of pixels of the original image is doubled in both vertical and horizontal directions. That is, taking the pixel G1 of the original image as an example, this pixel G1 is composed of four pixels G11, G12, G13, and G14 after conversion. In addition, in FIG. 16, the shaded portion is a black pixel, and in this figure, the character “0” is represented.

【0003】このような2値画像の変倍処理を行う方法
の1つに投影法がある。この投影法は、たとえば拡大処
理を行う場合、原画像を解像度の異なる拡大後の画像面
に投影し、拡大後の1画素の面積に対して原画像の黒の
割合がどの程度占めているかを求め、拡大後の画素の1
つ1つについて白、黒を決定する。
A projection method is one of the methods for performing the scaling processing of such a binary image. In the projection method, for example, when performing enlargement processing, the original image is projected on an enlarged image plane having different resolutions, and the ratio of black of the original image to the area of one pixel after enlargement is determined. 1 of the pixel after obtaining and enlarging
White and black are determined for each one.

【0004】この投影法は、文字や線を表す画像の場合
は、拡大前の画像がそのまま保存された状態で拡大され
るので余り問題はない。
In this projection method, in the case of an image representing a character or a line, there is no problem because the image before enlargement is enlarged as it is stored.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、写真な
どの疑似中間調処理された画像の場合は、以下に示すよ
うな問題が生じてくる。
However, in the case of a pseudo-halftone processed image such as a photograph, the following problems occur.

【0006】すなわち、疑似中間調処理された画像は、
或る面積内のドットの数で濃度を表す。たとえば、図1
7(a)に示す画像は、全体的には横方向(i方向)お
よび縦方向(j方向)ともに8画素の8画素×8画素で
構成された画像であり、画像全体を縦横とも2分割、つ
まり、4画素×4画素で構成される4つのブロックに分
けて考えると、それぞれのブロックのうち、1画素だけ
が黒画素(斜線が施されている)である画像となってい
る。したがって、この画像は画像全体に4個の黒画素が
均等に散在した状態で存在している画像であり、このよ
うな画像は全体としては薄いグレーのようなきわめて低
濃度の画像である。
That is, the pseudo-halftone processed image is
The density is represented by the number of dots in a certain area. For example, FIG.
The image shown in 7 (a) is an image composed of 8 pixels × 8 pixels of 8 pixels in the horizontal direction (i direction) and the vertical direction (j direction) as a whole. That is, when divided into four blocks composed of 4 pixels × 4 pixels, only one pixel in each block is an image having black pixels (hatched). Therefore, this image is an image in which four black pixels are evenly distributed in the entire image, and such an image is a very low-density image such as light gray as a whole.

【0007】このような低濃度の画像を投影法を用いて
画素数を縦横ともに2倍に拡大すると、同図(b)のよ
うになる。 この図17(b)の画像は 全体的には16
画素×16画素の画像であって、黒画素数は原画像に比
べて、4倍の16画素となるが、黒画素の位置は同図
(a)と同様となっている。このとき、画素数は4倍の
16個となっているので、濃度は保存されるが、この図
17(b)の画像は、同図(a)と同様の考え方で、画
像全体を4つのブロックに分けて、8画素×8画素で構
成される1つずつのブロック内で考えると、1つずつの
ブロック毎に存在する4個の黒画素は一箇所に偏った状
態で存在することになり、画像全体で見ても黒画素が偏
った状態で存在してしまうという問題があった。
When such a low-density image is enlarged in the number of pixels in the vertical and horizontal directions by the projection method, the result is as shown in FIG. The image of FIG. 17 (b) is 16 in total.
In an image of pixels × 16 pixels, the number of black pixels is four times as many as 16 pixels as compared with the original image, but the positions of black pixels are the same as in FIG. At this time, the number of pixels is quadrupled to 16, so the density is preserved. However, the image of FIG. 17B has four images in the same way as in FIG. 17A. When divided into blocks and considered within one block composed of 8 pixels × 8 pixels, four black pixels existing in each block exist in one state in a biased manner. Therefore, there is a problem that black pixels exist in a biased state even when viewed in the entire image.

【0008】この場合、原画像の画素数を縦横2倍に拡
大した例であり、黒画素数も4倍となった例であるか
ら、同図(c)に示すように、黒画素を画像全体に散ら
ばらせた方がより好ましい画像が得られると考えられ
る。
In this case, the number of pixels of the original image is doubled vertically and horizontally, and the number of black pixels is also four times. Therefore, as shown in FIG. It is considered that a more preferable image can be obtained by making it scattered all over.

【0009】本発明は、このような課題を解決するため
になされたもので、原画像の画素数を縦横ともに任意の
倍率で変換する場合、原画像に存在する黒画素が変換画
像において偏った状態で存在することなく、黒画素を画
像全体に散らばらせることで、良好な画像を得ることが
でき、また、黒画素がエッジ部に存在する画素であるか
否かの判定を行い、エッジ部に存在する画素であると判
定された場合は、その黒画素に対応して新たに生成され
る黒画素は、黒画素に隣接して生成することで、変換画
像においてもエッジ部のシャープさを維持することがで
きるようにした画素密度変換方法および画素密度変換装
置を提供することを目的としている。
The present invention has been made in order to solve such a problem. When the number of pixels of the original image is converted at any magnification in both vertical and horizontal directions, black pixels existing in the original image are biased in the converted image. A good image can be obtained by scattering the black pixels over the entire image without existing in the state. Also, it is determined whether the black pixels are pixels existing in the edge portion, and If it is determined that the pixel is a pixel that exists in the area, the black pixel newly generated corresponding to the black pixel is generated adjacent to the black pixel, so that the sharpness of the edge part is generated even in the converted image. It is an object of the present invention to provide a pixel density conversion method and a pixel density conversion device capable of maintaining the above.

【0010】[0010]

【課題を解決するための手段】本発明の画素密度変換方
法は、原画像の画素数を縦方向および横方向に任意の倍
率で変換して画素密度を変換する画素密度変換方法にお
いて、原画像の画素数を縦方向および横方向に任意の倍
率で変換して得られる変換画像を生成し、この変換画像
と前記原画像とを所定の関係に基づいて対応付けするこ
とで、原画像に存在するそれぞれの黒画素に対応する変
換画像の画素を特定し、これにより特定された変換画像
の画素を黒画素とし、原画像に対応づけられることによ
り所定の画素が黒画素とされた前記変換画像において、
前記黒画素とされた画素以外の画素と各黒画素との間の
距離を計算し、各画素について、その画素とその画素に
最も近い黒画素との間の距離を求め、この求めた距離に
基づいて新たな黒画素を生成するようにしている。
The pixel density conversion method of the present invention is a pixel density conversion method for converting the pixel density by converting the number of pixels of an original image in the vertical direction and the horizontal direction at an arbitrary magnification. Existing in the original image by generating a converted image obtained by converting the number of pixels in the vertical direction and the horizontal direction at an arbitrary magnification and associating the converted image with the original image based on a predetermined relationship. The converted image in which the pixels of the converted image corresponding to the respective black pixels are specified, the pixels of the converted image specified thereby are made black pixels, and the predetermined pixels are made black pixels by being associated with the original image. At
The distance between each black pixel and a pixel other than the black pixel is calculated, and for each pixel, the distance between that pixel and the black pixel closest to that pixel is calculated, and the calculated distance is Based on this, a new black pixel is generated.

【0011】前記或る画素とその画素に最も近い黒画素
との間の距離は、ユークリッド距離、4近傍距離、8近
傍距離のいずれかを用いる。
As the distance between the certain pixel and the black pixel closest to the pixel, any one of the Euclidean distance, the 4-neighbor distance, and the 8-neighbor distance is used.

【0012】また、前記或る画素とその画素に最も近い
黒画素との間の距離を求める処理において、求める距離
に予め最大値を設定し、その最大値の距離以内に黒画素
が見つからない場合にはその画素に対する距離は求めな
いようにする。
Further, in the process of obtaining the distance between the certain pixel and the black pixel closest to the pixel, a maximum value is set in advance for the obtained distance, and a black pixel is not found within the distance of the maximum value. Does not calculate the distance to that pixel.

【0013】そして、前記距離に基づいて新たな黒画素
を生成する処理は、或る黒画素を注目する黒画素とした
ときに、その注目する黒画素に最も近いとされた画素の
集団を前記求めた距離から探索し、その画素の集団の中
で、前記注目する黒画素から最も遠い位置に存在する画
素を新たな黒画素とする。
Then, in the process of generating a new black pixel based on the distance, when a certain black pixel is set as a target black pixel, the group of pixels which is the closest to the target black pixel is set as A search is performed from the calculated distance, and a pixel existing at the farthest position from the target black pixel in the group of pixels is set as a new black pixel.

【0014】この距離に基づいて新たな黒画素を生成す
る処理の他の例として、或る黒画素を注目する黒画素と
したときに、その注目する黒画素に最も近いとされた画
素の集団を前記求めた距離から探索し、その画素の集団
の或る一部分に注目し、その注目した部分の中で、前記
注目する黒画素から最も遠い位置に存在する画素を新た
な黒画素とする方法、あるいは、注目する黒画素に最も
近いとされた画素の集団を前記求めた距離から探索し、
その画素の集団の輪郭を形成する画素のつながりの中
で、或る1つの画素をランダムに選び、その選ばれた画
素を新たな黒画素とする方法、さらには、注目する黒画
素に最も近いとされた画素の集団を前記求めた距離から
探索し、その画素の集団の輪郭を形成する画素のつなが
りの或る一部に注目し、その注目した部分の中で、或る
1つの画素をランダムに選び、その選ばれた画素を新た
な黒画素とする方法がある。
As another example of the process of generating a new black pixel based on this distance, when a certain black pixel is set as a target black pixel, a group of pixels that are considered to be closest to the target black pixel. From the obtained distance, paying attention to a part of the group of pixels, and in the focused part, the pixel farthest from the focused black pixel is set as a new black pixel. , Or, a group of pixels that are said to be closest to the black pixel of interest is searched from the obtained distance,
A method of randomly selecting a certain pixel from among the connections of the pixels forming the outline of the group of pixels and setting the selected pixel as a new black pixel, and further, the method closest to the black pixel of interest. Is searched for from the determined distance, and a certain part of the connection of pixels forming the outline of the pixel group is focused, and a certain pixel is selected from the focused part. There is a method of randomly selecting the selected pixel as a new black pixel.

【0015】以上のような方法を採用することにより、
原画像の画素数を縦横ともに任意の倍率で変換する場
合、原画像に存在する黒画素が変換画像において偏った
状態で存在することなく、黒画素を画像全体に散らばら
せることができ、良好な画像を得ることができる。
By adopting the above method,
When converting the number of pixels of the original image vertically and horizontally at any magnification, black pixels existing in the original image do not exist in a biased state in the converted image, and black pixels can be scattered over the entire image, which is good. It is possible to obtain a clear image.

【0016】また、本発明の画素密度変換方法は、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て画素密度を変換する画素密度変換方法において、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て得られる変換画像を生成し、この変換画像と前記原画
像とを所定の関係に基づいて対応付けすることで、原画
像に存在するそれぞれの黒画素に対応する変換画像の画
素を特定し、これにより特定された変換画像の画素を黒
画素とし、原画像に対応づけられることにより所定の画
素が黒画素とされた前記変換画像において、前記黒画素
とされた画素以外の画素と黒画素との間の距離を計算
し、各画素について、その画素とその画素に最も近い黒
画素との間の距離を求め、この変換画像内の或る黒画素
を注目する黒画素としたときに、その注目する黒画素が
画像のエッジ部に存在するか否かを判定し、注目する黒
画素がエッジ部に存在していないと判定された場合は、
前記求められた距離値を基にして、注目する黒画素から
離れた位置に存在する画素を選び、この選ばれた画素を
新たな黒画素とし、前記注目する黒画素がエッジ部に存
在していると判定された場合は、その注目する黒画素に
隣接する画素のうちのいずれかを新たな黒画素とする方
法としている。
In the pixel density conversion method of the present invention, the number of pixels of the original image is converted in the pixel density conversion method of converting the number of pixels of the original image in the vertical direction and the horizontal direction at an arbitrary magnification to convert the pixel density. By generating a converted image obtained by converting in the vertical direction and the horizontal direction at an arbitrary magnification and associating the converted image with the original image on the basis of a predetermined relationship, each black existing in the original image is generated. In the converted image in which the pixels of the converted image corresponding to the pixels are specified, the pixels of the converted image specified thereby are made black pixels, and the predetermined pixels are made black pixels by being associated with the original image, The distance between a pixel other than the pixel set as the pixel and a black pixel is calculated, and for each pixel, the distance between the pixel and the black pixel closest to the pixel is calculated, and a certain black in this converted image is calculated. Black pixels that focus on pixels When the determines whether black pixels that interest exists in an edge portion of the image, if the black pixel of interest is determined to not exist in the edge portion,
Based on the obtained distance value, a pixel existing at a position away from the black pixel of interest is selected, the selected pixel is set as a new black pixel, and the black pixel of interest exists in the edge portion. If it is determined that the black pixel of interest exists, one of the pixels adjacent to the black pixel of interest is set as a new black pixel.

【0017】前記注目する黒画素が画像のエッジ部に存
在するか否かの判定は、その注目する黒画素に最も近い
とされた画素の集団を前記求めた距離から探索し、その
画素の集団の輪郭を形成する画素のつながりの中で、注
目する黒画素から最も遠い位置に存在する画素の注目す
る黒画素までの距離と、注目する黒画素から最も近い位
置に存在する画素の注目する黒画素までの距離との比を
求め、その比の大きさを基に、注目する黒画素がエッジ
部に属する画素であるか否かを判定する。
To determine whether or not the black pixel of interest exists at the edge portion of the image, a group of pixels that are considered to be closest to the black pixel of interest is searched from the obtained distance, and the group of pixels is searched. In the connection of pixels forming the contour of the, the distance from the target black pixel to the target black pixel at the farthest position, and the target black pixel at the closest position from the target black pixel The ratio to the distance to the pixel is obtained, and based on the size of the ratio, it is determined whether or not the black pixel of interest belongs to the edge portion.

【0018】そして、前記注目する黒画素がエッジ部に
存在しないと判定された場合の新たな黒画素を生成する
処理は、その注目する黒画素に最も近いとされた画素の
集団を前記求めた距離から探索し、その画素の集団の中
で、前記注目する黒画素から最も遠い位置に存在する画
素を新たな黒画素とするようにする。
Then, in the process of generating a new black pixel when it is determined that the black pixel of interest does not exist in the edge portion, the group of pixels which is the closest to the black pixel of interest is obtained. A search is performed from the distance, and the pixel existing farthest from the target black pixel in the group of pixels is set as a new black pixel.

【0019】この注目する黒画素がエッジ部に存在しな
いと判定された場合の新たな黒画素を生成する処理は、
その他の方法として、注目する黒画素に最も近いとされ
た画素の集団を前記求めた距離から探索し、その画素の
集団の或る一部分に注目し、その注目した部分の中で、
前記注目する黒画素から最も遠い位置に存在する画素を
新たな黒画素とする方法、あるいは、注目する黒画素に
最も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の輪郭を形成する画素のつながりの
中で、或る1つの画素をランダムに選び、その選ばれた
画素を新たな黒画素とする方法、さらには、注目する黒
画素に最も近いとされた画素の集団を前記求めた距離か
ら探索し、その画素の集団の輪郭を形成する画素のつな
がりの或る一部に注目し、その注目した部分の中で、或
る1つの画素をランダムに選び、その選ばれた画素を新
たな黒画素とする方法がある。
The process of generating a new black pixel when it is determined that the black pixel of interest does not exist in the edge portion is
As another method, a group of pixels that are said to be closest to the target black pixel is searched from the obtained distance, and a certain part of the group of pixels is focused, and in the focused part,
A method in which a pixel existing at the farthest position from the target black pixel is set as a new black pixel, or a group of pixels that are considered to be closest to the target black pixel is searched from the obtained distance, and the group of pixels is searched. A method of randomly selecting a certain pixel from among the pixels forming the outline of the pixel and setting the selected pixel as a new black pixel, and further, a pixel that is the closest to the black pixel of interest. A group of pixels is searched from the obtained distance, a certain part of the connection of pixels forming the outline of the pixel group is focused, and a certain pixel is randomly selected in the focused part. There is a method of setting the selected pixel as a new black pixel.

【0020】以上のような方法を採用することにより、
注目する黒画素がエッジ部に存在する画素であるか否か
の判定を行い、エッジ部に存在する画素であると判定さ
れた場合は、その黒画素に対応して新たに生成される黒
画素は、遠くに散らせた位置に生成するのではなく、黒
画素に隣接して生成するようにする。これにより、変換
画像においてもエッジ部のシャープさを維持することが
できる。また、エッジ部に存在する画素でないと判定さ
れた場合は、その黒画素に対応して新たに生成される黒
画素は、遠くに散らせた位置に生成することができ、原
画像に存在する黒画素が変換画像において偏った状態で
存在することなく、黒画素を画像全体に散らばらせるこ
とができ、良好な画像を得ることができる。
By adopting the above method,
It is determined whether the black pixel of interest is a pixel existing in the edge portion, and when it is determined that the black pixel is an edge portion, a black pixel newly generated corresponding to the black pixel. Should be generated adjacent to the black pixel instead of being generated at positions scattered far away. Thereby, the sharpness of the edge portion can be maintained even in the converted image. Further, when it is determined that the pixel is not the pixel existing in the edge portion, the black pixel newly generated corresponding to the black pixel can be generated at positions scattered far, and exists in the original image. It is possible to disperse black pixels in the entire image without the black pixels existing in a biased state in the converted image, and it is possible to obtain a good image.

【0021】また、本発明の画素密度変換装置は、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て画素密度を変換する画素密度変換装置において、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て得られた変換画像と原画像の対応関係をもとに、原画
像の黒画素と変換画像の画素とを対応付けし、対応づけ
られた変換画像の画素を黒画素とする手段と、原画像に
対応づけられることにより所定の画素が黒画素とされた
前記変換画像において、前記黒画素とされた画素以外の
各画素と各黒画素との間の距離を計算し、各画素につい
て、その画素とその画素に最も近い黒画素との間の距離
を求める距離計算手段と、この距離計算手段により求め
られた距離に基づいて新たな黒画素を生成する黒画素生
成手段と、を有した構成としている。
The pixel density conversion device of the present invention is a pixel density conversion device for converting the pixel number of an original image in the vertical direction and the horizontal direction at an arbitrary magnification to convert the pixel density. Based on the correspondence relationship between the converted image and the original image obtained by converting in the vertical direction and the horizontal direction at an arbitrary magnification, the black pixels of the original image and the pixels of the converted image are associated with each other, and the associated conversion is performed. In the conversion image in which a pixel of an image is a black pixel and a predetermined pixel is a black pixel by being associated with an original image, each pixel other than the pixel that is the black pixel and each black pixel A distance calculation means for calculating the distance between the pixels and a distance between the pixel and the black pixel closest to the pixel, and a new black pixel based on the distance calculated by the distance calculation means. Black pixel generation means for generating It has a configuration.

【0022】前記距離計算手段によって求められる或る
画素とその画素に最も近い黒画素との間の距離は、ユー
クリッド距離、4近傍距離、8近傍距離のいずれかを用
いるようにする。
As the distance between a pixel and the black pixel closest to the pixel calculated by the distance calculating means, any one of the Euclidean distance, the 4-neighbor distance and the 8-neighbor distance is used.

【0023】そして、前記距離計算手段によって或る画
素とその画素に最も近い黒画素との間の距離を求める処
理は、求める距離に予め最大値を設定し、その最大値の
距離以内に黒画素が見つからない場合にはその画素に対
する距離は求めないようにする。
Then, in the process of obtaining the distance between a pixel and the black pixel closest to the pixel by the distance calculating means, a maximum value is set in advance to the obtained distance, and the black pixel is within the distance of the maximum value. If is not found, the distance to that pixel is not calculated.

【0024】また、前記黒画素生成手段は、或る黒画素
を注目する黒画素としたときに、その注目する黒画素に
最も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の中で、前記注目する黒画素から最
も遠い位置に存在する画素を新たな黒画素とするもので
ある。
Further, when a certain black pixel is set as the black pixel of interest, the black pixel generation means searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, Among the group of pixels, the pixel existing farthest from the target black pixel is set as a new black pixel.

【0025】この黒画素生成手段は、その他にも、注目
する黒画素に最も近いとされた画素の集団を前記求めた
距離から探索し、その画素の集団の或る一部分に注目
し、その注目した部分の中で、前記注目する黒画素から
最も遠い位置に存在する画素を新たな黒画素とするもの
でもよく、あるいは、注目する黒画素に最も近いとされ
た画素の集団を前記求めた距離から探索し、その画素の
集団の輪郭を形成する画素の繋がりの中で、ランダムに
或1つの画素を選び、その画素を新たな黒画素とするも
のでもよく、さらには、注目する黒画素に最も近いとさ
れた画素の集団を前記求めた距離から探索し、その画素
の集団の輪郭を形成する画素の繋がりの或る一部に注目
し、その注目した部分の中で、ランダムに或1つの画素
を選び、その画素を新たな黒画素とするものであっても
よい。
In addition to this, the black pixel generating means searches for a group of pixels that are considered to be closest to the black pixel of interest from the obtained distance, focuses on a part of the group of pixels, and Among the above-mentioned portions, the pixel existing at the farthest position from the target black pixel may be set as a new black pixel, or a group of pixels which are considered to be closest to the target black pixel may be obtained as the distance It is also possible to randomly select one pixel from among the connections of pixels forming the outline of the group of pixels and select that pixel as a new black pixel. A group of pixels determined to be the closest is searched from the obtained distance, attention is paid to a part of connection of pixels forming the contour of the group of pixels, and a random one of Select one pixel and select that pixel Or it may be a Tana black pixels.

【0026】以上のような構成とすることにより、原画
像の画素数を縦横ともに任意の倍率で変換する場合、原
画像に存在する黒画素が変換画像において偏った状態で
存在することなく、黒画素を画像全体に散らばらせるこ
とができ、良好な画像を得ることができる。
With the above configuration, when the number of pixels of the original image is converted at an arbitrary magnification both vertically and horizontally, black pixels existing in the original image do not exist in a biased state in the converted image and black Pixels can be scattered throughout the image, and a good image can be obtained.

【0027】また、本発明の画素密度変換装置は、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て画素密度を変換する画素密度変換装置において、原画
像の画素数を縦方向および横方向に任意の倍率で変換し
て得られた変換画像と原画像の対応関係を基に、原画像
の黒画素と変換画像の画素とを対応付けし、対応づけら
れた変換画像の画素を黒画素とする手段と、原画像に対
応づけられることにより所定の画素が黒画素とされた前
記変換画像において、前記黒画素とされた画素以外の各
画素と各黒画素との間の距離を計算し、各画素につい
て、その画素とその画素に最も近い黒画素との間の距離
を求める距離計算手段と、前記変換画像内の或る黒画素
を注目する黒画素としたときに、その注目する黒画素が
画像のエッジ部に存在するか否かを判定するエッジ判定
手段と、このエッジ判定手段により、前記注目する黒画
素がエッジ部に存在していないと判定された場合は、前
記求められた距離値を基にして、注目する黒画素から離
れた位置に存在する画素を選び、この選ばれた画素を新
たな黒画素とする第1の黒画素生成手段と、前記エッジ
判定手段により、前記注目する黒画素がエッジ部に存在
していると判定された場合は、その注目する黒画素に隣
接する画素のうちのいずれかを新たな黒画素とする第2
の黒画素生成手段と、を有した構成としている。
Further, the pixel density conversion device of the present invention is a pixel density conversion device for converting the pixel density of an original image in the vertical direction and the horizontal direction at an arbitrary magnification to convert the pixel density. Based on the correspondence between the converted image obtained by converting at any magnification in the vertical and horizontal directions and the original image, the black pixels of the original image and the pixels of the converted image are associated with each other, and the associated converted image Between the black pixel and each black pixel in the converted image in which a predetermined pixel is made a black pixel by being associated with the original image. Distance calculation means for calculating the distance between the pixel and the black pixel closest to the pixel for each pixel, and when a certain black pixel in the converted image is set as the black pixel of interest , The black pixel of interest exists at the edge of the image. And an edge determining unit that determines whether the black pixel of interest does not exist in the edge portion, the edge determining unit based on the obtained distance value. A pixel existing at a position distant from the black pixel is selected, and the first black pixel generation unit that makes the selected pixel a new black pixel and the edge determination unit cause the target black pixel to be an edge portion. When it is determined that the black pixel of interest exists, one of the pixels adjacent to the black pixel of interest is set as a new black pixel.
And a black pixel generating means.

【0028】前記エッジ判定手段は、前記注目する黒画
素に最も近いとされた画素の集団を前記求めた距離から
探索し、その画素の集団の輪郭を形成する画素のつなが
りの中で、注目する黒画素から最も遠い位置に存在する
画素の注目する黒画素までの距離と、注目する黒画素か
ら最も近い位置に存在する画素の注目する黒画素までの
距離との比を求め、その比の大きさを基に、注目する黒
画素がエッジ部に属する画素であるか否かを判定するも
のである。
The edge determining means searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, and pays attention in the connection of pixels forming the contour of the group of pixels. Find the ratio of the distance from the black pixel to the black pixel of interest at the farthest pixel and the distance to the black pixel of interest from the black pixel at the closest position, and calculate the ratio Based on this, it is determined whether or not the black pixel of interest is a pixel belonging to the edge portion.

【0029】また、前記第1の黒画素生成手段は、前記
注目する黒画素に最も近いとされた画素の集団の中で、
前記注目する黒画素から最も遠い位置に存在する画素を
新たな黒画素とするものである。
In addition, the first black pixel generation means may be arranged such that, in the group of pixels that are closest to the target black pixel,
The pixel existing farthest from the target black pixel is set as a new black pixel.

【0030】この第1の黒画素生成手段は、その他に
も、注目した部分の中で、前記注目する黒画素から最も
遠い位置に存在する画素を新たな黒画素とするものでも
よく、あるいは、注目する黒画素に最も近いとされた画
素の集団の輪郭を形成する画素のつながりの中で、或る
1つの画素をランダムに選び、その選ばれた画素を新た
な黒画素とするものでもよく、さらには、注目する黒画
素に最も近いとされた画素の集団の輪郭を形成する画素
のつながりの或る一部に注目し、その注目した部分の中
で、或る1つの画素をランダムに選び、その選ばれた画
素を新たな黒画素とするものであってもよい。
In addition, the first black pixel generating means may be a new black pixel which is the pixel farthest from the black pixel of interest in the part of interest. It is also possible to randomly select a certain pixel from among the connections of the pixels forming the outline of the group of pixels that are considered to be closest to the black pixel of interest, and select that selected pixel as the new black pixel. , And further, paying attention to a part of the connection of the pixels forming the contour of the group of pixels that are said to be closest to the black pixel of interest, and randomly selecting one pixel in the focused part. The pixel may be selected and the selected pixel may be a new black pixel.

【0031】以上のような構成とすることにより、注目
する黒画素がエッジ部に存在する画素であるか否かの判
定を行い、エッジ部に存在する画素であると判定された
場合は、その黒画素に対応して新たに生成される黒画素
は、遠くに散らせた位置に生成するのではなく、隣接し
て生成するようにする。これにより、変換画像において
もエッジ部のシャープさを維持することができる。ま
た、エッジ部に存在する画素でないと判定された場合
は、その黒画素に対応して新たに生成される黒画素は、
遠くに散らせた位置に生成することができ、原画像に存
在する黒画素が変換画像において偏った状態で存在する
ことなく、黒画素を画像全体に散らばらせることがで
き、良好な画像を得ることができる。
With the above configuration, it is determined whether the black pixel of interest is the pixel existing in the edge portion, and if it is determined that the black pixel is the pixel existing in the edge portion, the determination is made. The black pixels newly generated corresponding to the black pixels are generated adjacent to each other instead of being generated at positions scattered far away. Thereby, the sharpness of the edge portion can be maintained even in the converted image. If it is determined that the pixel does not exist in the edge portion, the black pixel newly generated corresponding to the black pixel is
It is possible to generate at a position scattered far away, the black pixels existing in the original image do not exist in a biased state in the converted image, and the black pixels can be scattered throughout the image, and a good image can be obtained. Obtainable.

【0032】[0032]

【発明の実施の形態】2値画像の変倍処理においては、
たとえば、画素数を縦横とも2倍に変換する場合を考え
ると、変換後の画像において出現する黒画素の数は4倍
になるはずである。普通の使い方としては、縦横とも2
倍に変換する場合には、変換後の画像において出現する
黒画素の数を原画像に対して4倍とすればよい。しか
し、変換画像の解像度は任意の倍率であり、その変換後
の画像に出現させる黒画素の数を任意の数とすることが
できるようにする必要もある。たとえば、プリンタなど
の出力機器の特性によっては、解像度は縦横ともに2倍
とするが、黒画素の数は4倍ではなく2倍にしたいとい
うような場合もある。たとえば、原画像を出力する機器
の黒画素のドット径と変換画像を出力する出力機器のド
ット径の面積の比が、2:1である場合は、黒画素の数
の比は1:2とすることによって濃度は保たれる。
BEST MODE FOR CARRYING OUT THE INVENTION In the scaling processing of a binary image,
For example, considering the case where the number of pixels is doubled both vertically and horizontally, the number of black pixels appearing in the converted image should be four times. The usual way to use it is 2 in both length and width.
In the case of double conversion, the number of black pixels appearing in the converted image may be four times that of the original image. However, the resolution of the converted image is an arbitrary magnification, and it is also necessary that the number of black pixels appearing in the image after the conversion can be an arbitrary number. For example, depending on the characteristics of an output device such as a printer, the resolution may be doubled both vertically and horizontally, but in some cases it may be desired to double the number of black pixels instead of four. For example, if the ratio of the area of the dot diameter of the black pixel of the device that outputs the original image to the area of the dot diameter of the output device that outputs the converted image is 2: 1, the ratio of the number of black pixels is 1: 2. By doing so, the concentration is maintained.

【0033】このような場合に対処した一例として、以
下に述べる発明の実施の形態では、画素数を縦横ともに
2倍とし、変換後の画像において出現する黒画素の数は
2倍とする例について説明する。
As an example of dealing with such a case, in the embodiment of the invention described below, the number of pixels is doubled both vertically and horizontally, and the number of black pixels appearing in the converted image is doubled. explain.

【0034】(第1の実施の形態)この第1の実施の形
態においては、図1に示すような疑似中間調処理された
原画像の画素数を縦横とも2倍に拡大し、その拡大に伴
って黒画素数を2倍とする例について説明する。図1で
示す原画像は説明の便宜上、縦横が10画素×10画素
で構成されており、この原画像の画素数を縦横ともに2
倍にし、20画素×20画素の変換画像を生成する。な
お、以下の説明においては、ある特定の画素を表す場
合、i方向およびj方向の座標値で表す。たとえば、図
1における黒画素Aは(i1,j1)というように表す
ものとする。以下、処理手順を幾つかの工程に分けて順
を追って説明する 〔1〕第1の処理工程 まず、図1に示す原画像の画素数を縦横ともに2倍に
し、図2に示すように、20画素×20画素の変換画像
を生成する(図2参照)。したがって、原画像の1つの
画素は変換画像の4つの画素に対応する。たとえば、原
画像の(i1,j1)の画素は、変換画像の(i1,j
1)、(i2,j1)、(i1,j2)、(i2,j
2)の4つの画素に対応することになる。なお、この時
点では変換画像には黒画素は存在していない。そして、
原画像の各黒画素(斜線が施されている)について、変
換画像の各画素との間で、両者の中心間距離が最も近い
変換画像の画素を特定し、その特定した画素を黒画素と
する。この処理により、変換画像は原画像(図1)の黒
画素部分に対応した位置の画素が黒画素となる。この様
子を図3に示す。図3において、斜線を施した部分の画
素が黒画素とされた部分である。
(First Embodiment) In the first embodiment, the number of pixels of a pseudo halftone original image as shown in FIG. Accordingly, an example in which the number of black pixels is doubled will be described. For the sake of convenience of explanation, the original image shown in FIG. 1 is composed of 10 pixels × 10 pixels, and the number of pixels of this original image is 2 vertically and horizontally.
Doubled to generate a converted image of 20 pixels × 20 pixels. In the following description, when a specific pixel is represented, it is represented by coordinate values in the i direction and the j direction. For example, the black pixel A in FIG. 1 is represented as (i1, j1). Hereinafter, the processing procedure will be divided into several steps and will be described in order. [1] First processing step First, the number of pixels of the original image shown in FIG. 1 is doubled vertically and horizontally, and as shown in FIG. A converted image of 20 pixels × 20 pixels is generated (see FIG. 2). Therefore, one pixel of the original image corresponds to four pixels of the converted image. For example, the pixel of (i1, j1) of the original image is (i1, j1) of the converted image.
1), (i2, j1), (i1, j2), (i2, j
This corresponds to the four pixels of 2). At this point, there are no black pixels in the converted image. And
For each black pixel (shaded) of the original image, specify the pixel of the converted image that has the closest center distance between the pixels of the converted image and each pixel of the converted image, and designate the specified pixel as the black pixel. To do. By this processing, in the converted image, the pixel at the position corresponding to the black pixel portion of the original image (FIG. 1) becomes the black pixel. This state is shown in FIG. In FIG. 3, the pixels in the shaded areas are black pixels.

【0035】この原画像に対応する変換画像の画素を黒
画素とする処理は、具体的には次のようにして行う。前
記したように、原画像における各黒画素の各中心点に最
も近い中心点を有する変換画像の画素を黒画素とする
が、これを原画像の(i1,j1)に存在する黒画素A
を例にとって説明する。
The process of converting the pixels of the converted image corresponding to the original image into black pixels is specifically performed as follows. As described above, the pixel of the converted image having the center point closest to each center point of each black pixel in the original image is defined as a black pixel, and this is the black pixel A existing in (i1, j1) of the original image.
Will be described as an example.

【0036】この原画像における黒画素Aの中心点をp
1とすると、この中心点p1に最も近い変換画像の画素
は、図1の画像と図2の画像を重ね合わせて考えると、
この場合、中心点p1は、(i1,j1)、(i2,j
1)、(i1,j2)、(i2,j2)の4つの画素の
境界点に位置してしまい、或る1つの画素を特定するこ
とができない。したがって、このような場合は、図1の
原画像を図2の変換画像に対して、図示斜め左上方向に
わずかだけずらした状態で重ね合わせる。これにより、
原画像の黒画素Aの中心点p1は、図2の変換画像の
(i1,j1)の画素上に位置するため、黒画素Aの中
心点に対して、変換画像における(i1,j1)の画素
の中心点p2が最も近い位置に存在することになり、原
画像の黒画素Aの中心点に最も近い中心点を有する変換
画像における画素は、変換画像において(i1、j1)
の画素ということになる。このような状態で、原画像の
他の黒画素B,C,D,・・・,Iのそれぞれの中心点
に最も近い変換画素における画素を特定する。
The central point of the black pixel A in this original image is p
If the pixel of the converted image closest to the center point p1 is 1, the image of FIG. 1 and the image of FIG.
In this case, the center point p1 is (i1, j1), (i2, j
1), (i1, j2), and (i2, j2) are located at the boundary points of the four pixels, and one pixel cannot be specified. Therefore, in such a case, the original image of FIG. 1 is superimposed on the converted image of FIG. 2 with a slight shift in the diagonally upper left direction in the drawing. This allows
Since the center point p1 of the black pixel A of the original image is located on the pixel (i1, j1) of the converted image of FIG. 2, the center point of the black pixel A is (i1, j1) of the converted image. Since the center point p2 of the pixel exists at the closest position, the pixel in the converted image having the center point closest to the center point of the black pixel A in the original image is (i1, j1) in the converted image.
That means the pixel. In such a state, the pixel in the conversion pixel closest to the center point of each of the other black pixels B, C, D, ..., I of the original image is specified.

【0037】図3はこのようにして特定された画素を黒
画素とした場合を示すもので、黒画素には斜線が施さ
れ、黒画素Aに対しては黒画素a、画素Bに対しては黒
画素b、黒画素Cに対しては黒画素c、黒画素Dに対し
ては黒画素d、黒画素Eに対しては黒画素eというよう
に、変換画像において原画像の黒画素A〜Iに対応する
黒画素a〜iが生成される。
FIG. 3 shows a case in which the pixel specified in this way is a black pixel. The black pixel is shaded and black pixel A is black pixel a and pixel B is black. Is black pixel b, black pixel C is black pixel c, black pixel D is black pixel d, black pixel E is black pixel e, and so on. Black pixels a to i corresponding to ~ I are generated.

【0038】なお、以上説明した処理は、中心点間距離
を判定しやすくするために、原画像を変換画像に対して
わずかだけずらした状態で、最も近い中心点間距離を求
めるようにした。これは、前記したように、原画像の或
る中心点が変換画像における各画素の境界点に位置して
しまい、或る1つの画素を特定することができないこと
に対処するための措置である。このように、原画像の或
る中心点が変換画素の境界点に位置する例は、画素数を
縦横とも偶数倍に変換する場合はすべて同じようなこと
が生じるので、この場合は、前記したようにしたような
処理を行うことで、変換画像において原画像に対応する
黒画素を特定する。
In the processing described above, in order to make it easier to determine the distance between the center points, the closest distance between the center points is obtained while the original image is slightly displaced from the converted image. This is a measure for coping with the fact that a certain center point of the original image is located at the boundary point of each pixel in the converted image and one certain pixel cannot be specified, as described above. . In this way, in the example in which a certain center point of the original image is located at the boundary point of the converted pixels, the same thing occurs when the number of pixels is converted to an even multiple in both the vertical and horizontal directions. By performing the processing as described above, the black pixel corresponding to the original image is specified in the converted image.

【0039】〔2〕第2の処理工程 次に、以上のようにして求めた変換画像における黒画素
a〜iに対して、変換画像の各画素(黒に変換されなか
った各画素)がどの黒画素に最も近く、どのくらいの距
離が有るかを1つ1つの画素毎に距離計算する。この距
離としては、ユークリッド距離、4近傍距離、8近傍距
離の3種類の距離を用いることができる。ここでは、ユ
ークリッド距離を用いた例について説明する。このユー
クリッド距離は、2点p1、p2間の距離をdとし、p
1の座標を(pi1,pj1)、p2の座標を(pi
2,pj2)とすると、
[2] Second Processing Step Next, for each of the black pixels a to i in the converted image obtained as described above, which pixel of the converted image (each pixel not converted to black) is The distance that is closest to the black pixel and is the distance is calculated for each pixel. As this distance, three types of distances such as Euclidean distance, 4-neighbor distance, and 8-neighbor distance can be used. Here, an example using the Euclidean distance will be described. This Euclidean distance is defined as the distance between two points p1 and p2, and p
The coordinate of 1 is (pi1, pj1), and the coordinate of p2 is (pi
2, pj2)

【0040】[0040]

【数1】 [Equation 1]

【0041】によって求められる距離である。Is the distance obtained by

【0042】図3において、たとえば、(i4,j1)
の画素は黒画素aに対して、(1)式により、9の平方
根(=3)だけ離れていると求められる。このようにし
て、黒画素a〜i以外の各画素ごとに、その画素と最も
近い黒画素までの距離が計算され、その計算結果が各画
素に記載されたものを図4に示す。なお、図4に記載さ
れた数値は、図面の都合上、(1)式により平方根を求
める前の値が示されている。たとえば、(i4,j1)
の画素は黒画素aに対して、(1)式により、9の平方
根だけ離れていると求められた場合は、「9」という数
値が示されている。したがって、実際の値は、図示され
た値の平方根である。たとえば、(i4,j1)の画素
は実際には「3」だけ黒画素aから離れた距離にある。
また、(i7,j6)の画素は、黒画素cに対して、図
4では、「13」と記載されているが、実際には、「1
3」の平方根(≒3.6)だけ離れていることを示してい
る。なお、この(i7,j6)の画素は、黒画素eに対
しても、「13」の平方根(≒3.6)だけ離れているこ
とになる。また、図4において、横線で示された画素は
黒画素eにもっとも近いとされる画素の集団の輪郭部を
形成する画素であるが、これについては後に説明する。
In FIG. 3, for example, (i4, j1)
The pixel of is calculated to be apart from the black pixel a by the square root (= 3) of 9 according to the equation (1). In this way, for each pixel other than the black pixels a to i, the distance to the black pixel closest to that pixel is calculated, and the calculation result is described in each pixel is shown in FIG. It should be noted that the numerical values shown in FIG. 4 are the values before the square root is calculated by the equation (1) for the convenience of the drawing. For example, (i4, j1)
When the pixel of is calculated to be apart from the black pixel a by the square root of 9 by the formula (1), the numerical value of “9” is shown. Therefore, the actual value is the square root of the value shown. For example, the pixel (i4, j1) is actually at a distance of "3" from the black pixel a.
Further, the pixel of (i7, j6) is described as “13” in FIG. 4 with respect to the black pixel c, but in reality, it is “1”.
It shows that they are separated by the square root of 3 ”(≈3.6). The pixel of (i7, j6) is separated from the black pixel e by the square root of "13" (≈3.6). Further, in FIG. 4, the pixel indicated by the horizontal line is a pixel forming an outline portion of a group of pixels which is the closest to the black pixel e, which will be described later.

【0043】このようにして、、黒画素a〜iに対し
て、変換画像の各画素(黒に変換されなかった各画素)
がどの黒画素に最も近く、どのくらいの距離が有るかを
1つ1つの画素毎に距離計算する。その求められた距離
の値が図4の各画素に示されている。なお、この値は前
記したように、(1)式において平方根を計算する前の
値が示されている。
In this way, for the black pixels a to i, each pixel of the converted image (each pixel not converted to black)
Is calculated for each pixel to determine which black pixel is closest to the pixel and how far the pixel is. The value of the obtained distance is shown in each pixel of FIG. As described above, this value is the value before calculating the square root in the equation (1).

【0044】ところで、このように距離を求める処理に
おいて、求めるべき距離に最大値を設定し、その最大値
以内に黒画素a〜iのいずれも見つからない場合は、そ
の画素については距離を求めないようにする。
By the way, in the process for obtaining the distance in this way, if the maximum value is set for the distance to be obtained and none of the black pixels a to i is found within the maximum value, the distance is not obtained for that pixel. To do so.

【0045】たとえば、最大値として「8」を設定した
とすると、図5に示すように、距離値が記載されていな
い空白部分に存在するすべての画素は、どの黒画素(こ
こでは、斜線を施した4つの黒画素)までの距離が
「8」(図面上では、平方根を求める前の値であるか
ら、“64”)よりも大きい値の位置に存在しているた
め、これらの画素については距離を求める処理を行わな
いようにする。これにより、全体の計算量を少なくする
ことができる。
For example, if "8" is set as the maximum value, as shown in FIG. 5, all the pixels existing in the blank portion where the distance value is not described are all black pixels (here, shaded areas are shaded). Since the distance to the four black pixels that have been applied is greater than “8” (in the drawing, the value before the square root is calculated, it is “64”). Does not perform the process of obtaining the distance. As a result, the total calculation amount can be reduced.

【0046】〔3〕第3の処理工程 以上のようにして、変換画像内の各画素毎に最も近い黒
画素との間の距離が計算されると、次の処理工程とし
て、その求められた距離を基に、黒画素a〜iそれぞれ
に対してどの画素を新たな黒画素とするかを決定する。
この処理を図4により説明する。図4において、ここで
は、黒画素eに対する新たな黒画素を決定する例につい
て説明する。まず、黒画素a〜iのなかで黒画素eを最
も近い黒画素とする画素の集団を考える。この画素の集
団は求められた距離をもとに考えると、図4の横線を施
した画素に囲まれた範囲内の画素であることがわかる。
そして、この画素の集団の中で、黒画素eから最も遠い
距離に存在する画素を見つける。この処理について以下
に説明する。
[3] Third Processing Step When the distance between each pixel in the converted image and the closest black pixel is calculated as described above, it is obtained as the next processing step. Based on the distance, which of the black pixels a to i is to be a new black pixel is determined.
This process will be described with reference to FIG. In FIG. 4, an example of determining a new black pixel for the black pixel e will be described here. First, consider a group of pixels in which the black pixel e is the closest black pixel among the black pixels a to i. Considering the obtained distance, this group of pixels is found to be the pixels within the range surrounded by the pixels with the horizontal lines in FIG.
Then, in the group of pixels, the pixel existing at the farthest distance from the black pixel e is found. This processing will be described below.

【0047】図4からもわかるように、黒画素eに最も
近いとされた画素の集団の中で、最も遠い距離は、この
場合、「26」(≒5.1)であり、その位置に存在する
画素は(i10,j8)の画素である。したがって、こ
の画素を新たに黒画素とする画素であると決定する。た
だし、この(i10,j8)の画素は、この場合、黒画
素eに最も近いとして処理されたが、実際には、黒画素
cに最も近いとされる画素の集団(図4には示されてい
ない)の中で、最も遠い距離に位置している画素でもあ
る(つまり、黒画素eと黒画素cに対して同距離「2
6」に存在している)。このように、2つ以上の黒画素
に対して同距離に存在している画素がある場合は、現
在、注目している黒画素側の集団として考える。したが
って、この場合、(i10,j8)の画素は、黒画素e
に最も近い集団に属すると判断する。
As can be seen from FIG. 4, the farthest distance in the group of pixels determined to be the closest to the black pixel e is “26” (≈5.1), which exists at that position. The pixel is a pixel of (i10, j8). Therefore, it is determined that this pixel is a pixel that is newly made a black pixel. However, the pixel of (i10, j8) was processed as being closest to the black pixel e in this case, but in reality, it is a group of pixels that are closest to the black pixel c (shown in FIG. 4). Of the black pixel e and the black pixel c are the same distance “2”.
6 ”). In this way, when there are pixels that are present at the same distance with respect to two or more black pixels, it is considered as a group on the black pixel side that is currently focused. Therefore, in this case, the pixel (i10, j8) is the black pixel e
Judged to belong to the group closest to.

【0048】このようにして、黒画素eに最も近いとさ
れた画素の集団の中で、最も遠い位置に存在する(i1
0,j8)の画素を新たに黒画素とする画素として決定
する。
In this way, the pixel is closest to the black pixel e and is present at the farthest position (i1).
The pixel of 0, j8) is determined as a pixel to be a new black pixel.

【0049】なお、以上の処理において、注目する黒画
素に最も近いとされた画素の集団の中で、最も遠い位置
に存在する画素が複数存在する場合は、予め何らかの規
則を決めておき、その規則に基づいていずれか1つの画
素を決定する。この例を以下に説明する。
In the above processing, if there are a plurality of pixels at the furthest position in the group of pixels that are considered to be closest to the black pixel of interest, some rule is determined in advance and Any one pixel is determined based on the rule. This example will be described below.

【0050】図4の場合、注目黒画素eに対しては、
「26」という距離が最も遠い距離であり、この距離は
黒画素eに対しては1つしか存在しなかったが、今、こ
の「26」がなかったとすると、「25」が最も遠い距
離となり、この「25」の距離に位置する画素は図4か
らもわかるように、(i1,j6)、(i10,j
9)、(i8,j13)の3つの画素が存在する。この
ように、注目黒画素に対して、最も遠い画素が複数個存
在する場合の処理を、図6を参照しながら説明する。
In the case of FIG. 4, for the target black pixel e,
The distance "26" is the farthest distance, and there is only one distance for the black pixel e, but if "26" is not present, "25" becomes the farthest distance. , The pixels located at the distance of “25” are (i1, j6), (i10, j) as can be seen from FIG.
9), there are three pixels of (i8, j13). As described above, the processing when a plurality of pixels farthest from the target black pixel are present will be described with reference to FIG.

【0051】図6は黒画素eを注目画素としたとき、こ
の黒画素eに最も近いとされた画素の集団(横線を施し
た画素で囲まれた範囲内の画素)を示すものである。こ
こでは、前記したように、黒画素eに最も近いとされた
画素の集団の中で、最も遠い位置に存在する画素は図6
からもわかるように、(i1,j6)、(i10,j
9)、(i8,j13)の3つの画素が存在している。
FIG. 6 shows a group of pixels that are closest to the black pixel e (pixels within a range surrounded by horizontal lines) when the black pixel e is the target pixel. Here, as described above, the pixel located at the farthest position in the group of pixels that is the closest to the black pixel e is the pixel shown in FIG.
As can be seen from (i1, j6), (i10, j
9) and three pixels of (i8, j13) exist.

【0052】このような場合、予め定められる規則は幾
つか考えられるが、まず第1の規則として、たとえば、
図6において、(i1,j6)、(i10,j9)、
(i8,j13)の3つの画素のうち、ランダムに或る
画素を選択し、その選択した画素を新たな黒画素とする
画素として決定する。また、第2の規則として、たとえ
ば、黒画素eに最も近いとされた画素の集団を図6に示
すように、3つのエリアZ1,Z2,Z3に分けて考
え、まず、エリアZ1において、黒画素eから右方向に
のびる行L1を基点にして、時計方向に行L2,L3,
・・・というように、各行単位でその行に属する画素の
中で最も距離値の大きい画素を探索して行く。そして、
この場合、行L5まで探索すると、次に、エリアZ2に
移って、今度は、最も下に位置する行L6を基点に、行
L6,L7,L8,・・・というように各行単位でその
行に属する画素の中で最も距離値の大きい画素を探索し
て行く。そして、この場合、行L13まで探索すると、
次に、エリアZ3に移って、今度は、最も上に位置する
行Ll4を基点に、行L15,L16,・・・,L17
というように、各行単位でその行に属する画素の中で最
も距離値の大きい画素を探索して行く。このような探索
順序を決めておき、最初に、探索された最も距離値の大
きい画素を新たな黒画素とする画素として決定する。こ
の場合は、(i10,j9)の画素が新たな黒画素とす
る画素として決定される。このようにして或る注目黒画
素に対する新たな黒画素とする画素の決定がなされると
その画素を黒画素とする処理を行う。
In such a case, there may be some predetermined rules, but first, for example,
In FIG. 6, (i1, j6), (i10, j9),
A pixel is randomly selected from the three pixels (i8, j13), and the selected pixel is determined as a pixel to be a new black pixel. Further, as a second rule, for example, a group of pixels that are considered to be closest to the black pixel e is divided into three areas Z1, Z2, and Z3 as shown in FIG. Starting from the row L1 extending from the pixel e to the right, the rows L2, L3, and C3 are clockwise.
..., the pixel having the largest distance value among the pixels belonging to the row is searched for in each row. And
In this case, when the search is performed up to the row L5, the area is moved to the area Z2, and this time, the row L6 located at the bottom is used as a base point and the rows L6, L7, L8, ... The pixel having the largest distance value among the pixels belonging to is searched. And in this case, when searching up to the line L13,
Next, moving to the area Z3, this time, with the row Ll4 located at the uppermost position as a base point, the rows L15, L16, ..., L17.
In this way, the pixel having the largest distance value among the pixels belonging to the row is searched for in each row. Such a search order is determined in advance, and the pixel having the largest distance value searched is first determined as a pixel to be a new black pixel. In this case, the pixel of (i10, j9) is determined as a pixel to be a new black pixel. In this way, when a pixel to be a new black pixel for a certain black pixel of interest is determined, the pixel is processed as a black pixel.

【0053】〔4〕第4の処理工程 以上のようにして或る注目黒画素に対する新たな黒画素
を生成する処理を行ったのち、次の処理工程として、新
たな黒画素をも考慮した距離計算を行う。すなわち、図
4の例では、(i10,j8)の画素が新たに黒画素と
なったので、この新たな黒画素をも考慮して距離計算を
行う。その結果を図7に示す。図7において、横線を施
した画素で囲まれた部分が新たな黒画素(これをe1で
表す)に最も近いとされた画素の集団であり、この部分
が新たな黒画素e1の出現により図5に対して修正され
た部分である。なお、第4の処理行程は、省略可能であ
る。
[4] Fourth Processing Step After the processing of generating a new black pixel for a certain black pixel of interest is performed as described above, the distance that also considers the new black pixel is taken as the next processing step. Calculate. That is, in the example of FIG. 4, since the pixel of (i10, j8) has become a new black pixel, the distance calculation is performed by also considering this new black pixel. FIG. 7 shows the result. In FIG. 7, a portion surrounded by a horizontal line pixel is a group of pixels that are the closest to a new black pixel (which is represented by e1), and this portion is shown by the appearance of the new black pixel e1. This is a modified part of 5. The fourth processing step can be omitted.

【0054】〔5〕第5の処理工程 そして、次に、この図7の状態で、次の黒画素、たとえ
ば、黒画素fに対して、前記したような第2〜第4の処
理工程を行い、この黒画素fに対する新たな黒画素生成
処理が終了したら、次は黒画素gに対して、前記したよ
うな第2〜第4の処理工程を行うというように、最後の
黒画素iまで前記第2〜第4の処理工程を繰り返し行
う。
[5] Fifth Processing Step Then, in the state of FIG. 7, the second to fourth processing steps as described above are applied to the next black pixel, for example, the black pixel f. When the new black pixel generation processing for this black pixel f is completed, the black pixel g is then subjected to the above-described second to fourth processing steps until the last black pixel i. The second to fourth processing steps are repeated.

【0055】このとき、新たに生成されたそれぞれの黒
画素は、始めからの黒画素a〜iと区別をしておき、こ
の新たに生成された黒画素に対する新たな黒画素を生成
することは行わない。
At this time, each newly generated black pixel is distinguished from the original black pixels a to i, and a new black pixel for this newly generated black pixel is not generated. Not performed.

【0056】以上のような処理を行うことにより、黒画
素a〜iに対応して、1つづつ新たな黒画素が生成さ
れ、しかも、それぞれの新たな黒画素は、始めから存在
する黒画素a〜iのいずれからも離れた位置に存在する
ことになる。つまり、黒画素a〜iの近隣の黒画素間の
ほぼ中間となるような位置に存在することになる。した
がって、図1のような原画像を任意の倍率で変換する場
合、原画像に存在する黒画素が変換画像において偏った
状態で存在することなく、黒画素を画像全体に散らばら
せることができ、良好な画像を得ることができる。
By performing the above-described processing, one new black pixel is generated corresponding to each of the black pixels a to i, and each new black pixel is a black pixel existing from the beginning. It will exist in a position away from any of a to i. That is, the black pixels a to i are present at positions approximately in the middle between neighboring black pixels. Therefore, when the original image as shown in FIG. 1 is converted at an arbitrary magnification, the black pixels existing in the original image do not exist in a biased state in the converted image, and the black pixels can be scattered over the entire image. , A good image can be obtained.

【0057】なお、この第1の実施の形態では、画素数
を縦横ともに2倍とし、黒画素を4倍ではなく2倍とす
る例について説明でしているが、画素数を縦横ともに2
倍とし、それに伴って黒画素を4倍とする場合は、ま
ず、第2〜第4の処理工程を行った後、新たに生成され
た黒画素をも考慮して、もう一度、第2〜第4の処理工
程を行えばよい。
In the first embodiment, the number of pixels is doubled vertically and horizontally, and the number of black pixels is doubled instead of four. However, the number of pixels is doubled vertically and horizontally.
In the case of doubling the number of black pixels and accordingly quadrupling the number of black pixels, firstly, after performing the second to fourth processing steps, the newly generated black pixels are also taken into consideration, and the second to second processing steps are performed again. 4 may be performed.

【0058】また、前記第3の処理工程における新たな
黒画素とする画素を決定する処理は、以上の説明では、
注目する黒画素に最も近い画素の集団の中で、注目する
黒画素から最も遠い画素とするという方法を用いたが、
この方法の他に、次に示すような第1〜第3の3つの方
法を用いても良い。
The process of determining a new black pixel in the third processing step has been described above.
In the group of pixels closest to the target black pixel, the method of setting the pixel farthest from the target black pixel was used.
In addition to this method, the following first to third methods may be used.

【0059】第1の方法は、注目する黒画素に最も近い
画素の集団の中の、或る一部分に注目し、その中で一番
遠い位置にある画素を黒画素とするという方法である。
この方法は、たとえば、図4において、注目する黒画素
(たとえば、黒画素e)に最も近い集団を、幾つかのエ
リアに分け、幾つかのエリアのうちの或る1つのエリア
に注目し、その注目したエリア内で黒画素eに対して最
も遠い位置に存在する画素を新たな黒画素とするという
方法である。
The first method is a method of paying attention to a part of a group of pixels closest to the target black pixel and selecting the pixel at the farthest position as the black pixel.
In this method, for example, in FIG. 4, the group closest to the black pixel of interest (for example, black pixel e) is divided into several areas, and one area out of several areas is focused, This is a method in which a pixel existing at a position farthest from the black pixel e in the noted area is set as a new black pixel.

【0060】また、第2の方法は、注目する黒画素に最
も近い画素の集団と、当該注目する黒画素の周辺に存在
する黒画素に最も近い画素の集団との境界上に存在する
画素の中からいずれか1つの画素をランダムに選択し、
その選択した画素を黒画素とする方法である。ここでい
う境界上とは、図4を例に取ると、黒画素eにもっとも
近い画素の集団の輪郭を形成する画素のつながりである
(図4において、横線を施した画素群)。そして、これ
らの輪郭を形成する画素のつながりの中で、或る1つの
画素をランダムに選択し、それを黒画素とするものであ
る。
In the second method, the pixels existing on the boundary between the group of pixels closest to the black pixel of interest and the group of pixels closest to the black pixels existing around the black pixel of interest. Randomly select any one pixel from the
This is a method of making the selected pixel a black pixel. The boundary here is, for example, in FIG. 4, a connection of pixels forming an outline of a group of pixels closest to the black pixel e (a pixel group with horizontal lines in FIG. 4). Then, in the connection of pixels forming these contours, a certain one pixel is randomly selected and made to be a black pixel.

【0061】また、第3の方法は、注目する黒画素に最
も近い画素の集団と、当該注目する黒画素の周辺に存在
する黒画素に最も近い画素の集団との境界上に存在する
画素のつながり(図4において、横線を施した画素群)
を考え、その境界上に存在する画素のつながりを幾つか
のブロックに分割し、或る1つのブロックに注目し、そ
の注目したブロック内の画素の中からいずれか1つの画
素をランダムに選択し、その選択した画素を黒画素とす
る方法である。
In the third method, the pixels existing on the boundary between the group of pixels closest to the black pixel of interest and the group of pixels closest to the black pixels existing around the black pixel of interest. Connection (pixel group with horizontal lines in Fig. 4)
, The connection of pixels existing on the boundary is divided into several blocks, attention is paid to a certain block, and one of the pixels in the focused block is randomly selected. The selected pixel is a black pixel.

【0062】これらの方法を用いて新たな黒画素を決定
するようにしてもよい。
A new black pixel may be determined using these methods.

【0063】ところで、以上説明した第1の実施の形態
を実現するための手段について、以下に簡単に説明す
る。
By the way, the means for realizing the above-described first embodiment will be briefly described below.

【0064】図8は第1の実施の形態の全体的な概略構
成図であり、最短距離画素探索部1、距離計算部2、黒
画素生成部3、変換画素バッファ4などから構成されて
いる。最短距離画素探索部1は原画像データを入力して
変換画像バッファ4の内容を基に、前記第1の処理工程
で説明した処理を行うもので、この最短距離画素探索部
1により、原画像の或る黒画素が変換画像のどの画素に
最も近いかが検出され、対応する変換画像の画素が黒画
素とされる(図3参照)。また、距離計算部2は前記第
2の処理工程で説明した処理を行うもので、変換画像に
おける黒画素a〜iに対して、変換画像の各画素(黒に
変換されなかった各画素)がどの黒画素に最も近く、ど
のくらいの距離が有るかを1つ1つの画素毎に距離計算
する。また、黒画素生成部3は、前記第3〜第5の処理
工程で説明した処理を行うもので、距離計算部2で求め
られた内容をもとに、各黒画素a〜iのそれぞれの黒画
素に最も近い画素の集団を求め、これに基づいて新たな
黒画素を生成する。
FIG. 8 is an overall schematic configuration diagram of the first embodiment, which comprises a shortest distance pixel search unit 1, a distance calculation unit 2, a black pixel generation unit 3, a conversion pixel buffer 4 and the like. . The shortest distance pixel search unit 1 inputs the original image data and performs the processing described in the first processing step based on the content of the converted image buffer 4. It is detected to which pixel in the converted image a certain black pixel of is closest, and the pixel of the corresponding converted image is set as the black pixel (see FIG. 3). Further, the distance calculation unit 2 performs the processing described in the second processing step, and for each black pixel a to i in the converted image, each pixel of the converted image (each pixel that has not been converted to black) is The distance is calculated for each pixel, which black pixel is closest to the black pixel and how much the distance is. Further, the black pixel generation unit 3 performs the processing described in the third to fifth processing steps, and based on the content obtained by the distance calculation unit 2, each of the black pixels a to i. A group of pixels closest to the black pixel is obtained, and a new black pixel is generated based on this.

【0065】また、図9は黒画素生成部3の概略的な構
成を示すものである。図9(a)は、注目する黒画素に
最も近い画素の集団の中で、注目する黒画素から最も遠
い画素を黒画素とする方法、または、注目する黒画素に
最も近い画素の集団の中の或る一部分に注目し、その中
で一番遠い位置にある画素を黒画素とするという方法を
実現するための概略構成を示すもので、黒画素検出部3
1、近傍画素検出部32、最長距離画素検出部33など
から構成されている。なお、変換画像バッファ4および
距離計算部2は図8で示したものと同じである。このよ
うな構成において、黒画素検出部31では変換画像バッ
ファ4の内容に基づいて黒画素(前記した例では、黒画
素a〜i)を検出し、近傍画素検出部32によって、そ
れぞれの黒画素毎にその黒画素に最も近いとされる画素
の集団を検出する。そして、これらの画素の集団の中か
ら、最長距離画素検出部33によって最長距離画素を新
たな黒画素とするための画素として検出する。
Further, FIG. 9 shows a schematic configuration of the black pixel generation unit 3. FIG. 9A shows a method of setting a pixel farthest from a black pixel of interest as a black pixel in a group of pixels closest to the black pixel of interest, or a group of pixels closest to the black pixel of interest. 3 shows a schematic configuration for realizing a method in which a pixel at the farthest position among them is set as a black pixel by paying attention to a part of the black pixel detecting unit 3.
1, a neighboring pixel detection unit 32, a longest distance pixel detection unit 33, and the like. The converted image buffer 4 and the distance calculator 2 are the same as those shown in FIG. In such a configuration, the black pixel detection unit 31 detects black pixels (black pixels a to i in the above example) based on the contents of the converted image buffer 4, and the neighboring pixel detection unit 32 detects each black pixel. Each time, a group of pixels that is considered to be closest to the black pixel is detected. Then, from the group of these pixels, the longest distance pixel detection unit 33 detects the longest distance pixel as a pixel for making a new black pixel.

【0066】図9(b)は、注目する黒画素に最も近い
画素の集団と、当該注目する黒画素の周辺に存在する黒
画素に最も近い画素の集団との境界上に存在する画素の
中からいずれか1つの画素をランダムに選択し、その選
択した画素を黒画素とする方法、または、その境界上に
存在する画素を幾つかのブロックに分割し、或る1つの
ブロックに注目し、その注目したブロック内の画素の中
からいずれか1つの画素をランダムに選択し、その選択
した画素を黒画素とする方法を実現するための概略構成
を示すものであり、黒画素検出部31、近傍画素検出部
32、境界画素検出部34、ランダム画素選択部35な
どから構成されている。なお、変換画像バッファ4は図
8で示したものと同じである。このような構成におい
て、黒画素検出部31では変換画像バッファ4の内容に
基づいて黒画素(前記した例では、黒画素a〜i)を検
出し、近傍画素検出部32によって、それぞれの黒画素
毎にその黒画素に最も近いとされる画素の集団を検出す
る。そして、これらの画素の集団の中から、他の黒画素
に最も近いとされる画素の集団との境界となる画素を、
境界画素検出部位34により検出し、これにより検出さ
れた境界画素の中で、ランダムに或1つの画素を新たな
黒画素とするための画素として検出する。
FIG. 9B shows pixels among the pixels existing on the boundary between the group of pixels closest to the target black pixel and the group of pixels closest to the black pixel existing around the target black pixel. From the above, a method of randomly selecting any one pixel from the above and setting the selected pixel as a black pixel, or dividing the pixels existing on the boundary into several blocks, and paying attention to one certain block, 1 shows a schematic configuration for realizing a method of randomly selecting any one pixel from the pixels in the block of interest and setting the selected pixel as a black pixel. It is composed of a neighboring pixel detection unit 32, a boundary pixel detection unit 34, a random pixel selection unit 35, and the like. The converted image buffer 4 is the same as that shown in FIG. In such a configuration, the black pixel detection unit 31 detects black pixels (black pixels a to i in the above example) based on the contents of the converted image buffer 4, and the neighboring pixel detection unit 32 detects each black pixel. Each time, a group of pixels that is considered to be closest to the black pixel is detected. Then, from the group of these pixels, the pixel that becomes the boundary with the group of pixels that is the closest to the other black pixels is
The boundary pixel detection part 34 detects the pixel, and randomly detects one of the boundary pixels detected as a pixel to be a new black pixel.

【0067】なお、以上の第1の実施の形態における様
々な処理を行うためのプログラムは、フロッピィディス
クなどの記憶媒体に記憶させておき、本発明はその記憶
媒体をも含むものである。
The programs for performing the various processes in the first embodiment described above are stored in a storage medium such as a floppy disk, and the present invention also includes the storage medium.

【0068】(第2の実施の形態)以上説明した第1の
実施の形態は、原画像において黒画素が散在している場
合における処理であったが、この第2の実施の形態は、
原画像に画像のエッジ部が存在しているか否かを判断し
て、エッジが存在していると判断された場合における処
理について説明する。すなわち、画像にエッジ部が存在
しない図1のような画像の場合は、第1の実施の形態で
説明した黒画素を散らす処理が良いが、エッジ部が存在
している場合は、そのエッジ部の黒画素を変換後の画像
において散らすと、エッジのシャープさが低下すること
になり好ましい結果が得られないからである。
(Second Embodiment) The first embodiment described above is the processing in the case where the black pixels are scattered in the original image, but the second embodiment is
A process will be described in which it is determined whether or not the edge portion of the image exists in the original image, and it is determined that the edge exists. That is, in the case of an image as shown in FIG. 1 in which the edge portion does not exist in the image, the process of scattering the black pixels described in the first embodiment is good, but when the edge portion exists, the edge portion does not exist. This is because if the black pixels of are scattered in the converted image, the sharpness of the edge is reduced, and a desirable result cannot be obtained.

【0069】この第2の実施の形態の概略的な処理を図
10のフローチャートで説明する。図10において、ま
ず、原画像に黒画素が有るか否かの判定を行い(ステッ
プs1)、黒画素が有る場合は、原画像の或る黒画素が
変換画像のどの画素に最も近いかを検出して、対応する
変換画像の画素を黒画素とする(ステップs2)。この
ステップs1とs2の処理は原画像の全ての黒画素につ
いて行われ、これは、前記第1の実施の形態で説明した
第1の処理工程に相当する処理である。そして、変換画
像において原画像の黒画素に対応した黒画素が存在する
か否かの判定(ステップs3)を行った後、黒画素が存
在すれば、その黒画素がエッジ部であるか否かの判定を
行う(ステップs4)。この判定において、エッジ部で
ないと判定された場合は、第1の黒画素生成処理を行い
(ステップs5)、エッジであると判定された場合は第
2の黒画素生成処理を行う(ステップs6)。なお、エ
ッジがない場合の処理、つまり、ステップs1からステ
ップs5の処理は、前記第1の実施の形態で説明した処
理に対応する。
The schematic processing of the second embodiment will be described with reference to the flowchart of FIG. In FIG. 10, first, it is determined whether or not there are black pixels in the original image (step s1). If there are black pixels, it is determined to which pixel in the converted image a certain black pixel is closest. The pixel of the corresponding converted image is detected and set as a black pixel (step s2). The processes of steps s1 and s2 are performed for all black pixels of the original image, which is a process corresponding to the first processing step described in the first embodiment. Then, after determining whether or not there is a black pixel corresponding to the black pixel of the original image in the converted image (step s3), if there is a black pixel, it is determined whether or not the black pixel is an edge portion. Is determined (step s4). In this determination, if it is determined that it is not an edge portion, the first black pixel generation processing is performed (step s5), and if it is determined that it is an edge, the second black pixel generation processing is performed (step s6). . The processing when there is no edge, that is, the processing of steps s1 to s5 corresponds to the processing described in the first embodiment.

【0070】以下ではエッジ判定処理と第2の黒画素生
成処理について説明する。
The edge determination processing and the second black pixel generation processing will be described below.

【0071】まず、エッジ判定処理について説明する。
たとえば、図11のような変換画像があったとする。こ
の変換画像において、斜線を施した画素は、前記第1の
実施の形態で説明した第1の処理工程によって、原画像
に対応して黒画素とされた黒画素部分であり、これら黒
画素部分以外の画素に付された数値は、最も近い黒画素
までの距離値を表している。ここでは今、(i9,j
9)の黒画素(これをmで表す)を注目する黒画素と
し、この黒画素mがエッジ部に存在している画素である
か否かを判定する例について説明する。
First, the edge determination process will be described.
For example, assume that there is a converted image as shown in FIG. In this converted image, the shaded pixels are black pixel portions that have been made black pixels corresponding to the original image by the first processing step described in the first embodiment, and these black pixel portions Numerical values given to pixels other than represent the distance value to the nearest black pixel. Here, (i9, j
An example will be described in which the black pixel (9) (represented by m) is set as the target black pixel, and it is determined whether or not the black pixel m is a pixel existing in the edge portion.

【0072】始めに、注目している黒画素mに最も近い
画素の集団を求め、この集団の中で、黒画素mの周辺に
存在する黒画素に最も近い画素の集団との境界上に存在
する画素を求める。すなわち、黒画素mに最も近い画素
の集団の輪郭を形成する画素のつながりを求める(図1
1において、横線を施した画素)。次に、黒画素mに最
も近い画素の集団の輪郭を形成する画素のつながりの中
で、黒画素mに最も遠い画素と最も近い画素までの距離
をそれぞれ求める。そして、それぞれの距離の比と予め
定められたしきい値との比較を行い、黒画素mがエッジ
に属する画素であるか否かの判断を行う。以下、この判
断について説明する。
First, a group of pixels closest to the black pixel m of interest is found, and in this group, the group of pixels existing near the black pixel m and closest to the black pixel exists. Find the pixel to be used. That is, the connection of the pixels forming the contour of the group of pixels closest to the black pixel m is obtained (FIG. 1).
1, the pixel with the horizontal line). Next, the distances between the pixel farthest from the black pixel m and the pixel closest to the black pixel m are obtained from the connections of the pixels forming the contour of the group of pixels closest to the black pixel m. Then, the ratio of the respective distances is compared with a predetermined threshold value to determine whether or not the black pixel m is a pixel belonging to an edge. Hereinafter, this determination will be described.

【0073】今、注目する黒画素に最も近い画素の集団
の輪郭を形成する画素のつながりの中で、注目する黒画
素に最も遠い画素までの距離をd1、最も近い画素まで
の距離をd2とし、しきい値をth1とすると、 (d1/d2)>th1のときはその黒画素はエッジに
属する (d1/d2)≦th1のときはその黒画素はエッジで
はない との判定を行う。
Now, in the connection of the pixels forming the contour of the group of pixels closest to the target black pixel, the distance to the pixel farthest from the target black pixel is d1, and the distance to the closest pixel is d2. If the threshold value is th1, it is determined that the black pixel belongs to an edge when (d1 / d2)> th1 and the black pixel is not an edge when (d1 / d2) ≦ th1.

【0074】たとえば、黒画素mを例にして考えると、
この黒画素mに最も近い画素の集団の輪郭を形成する画
素のつながりの中で、黒画素mに最も遠い画素(i1
3,j11)までの距離d1は「20」の平方根(=4.
47)、最も近い画素たとえば(i9,j8)の画素まで
の距離は「1」の平方根(=1)である。また、しきい
値th1はth1=2〜3とすると良い結果が得られる
ことがわかった。従って、この場合は、(d1/d2)
>th1となるので、黒画素mはエッジであると判定さ
れる。
For example, considering the black pixel m as an example,
Among the connections of pixels forming the outline of the group of pixels closest to the black pixel m, the pixel farthest from the black pixel m (i1
The distance d1 to (3, j11) is the square root of "20" (= 4.
47), the distance to the nearest pixel, for example, the pixel of (i9, j8) is the square root (= 1) of "1". Further, it has been found that a good result is obtained when the threshold value th1 is th1 = 2 to 3. Therefore, in this case, (d1 / d2)
Since> th1, the black pixel m is determined to be an edge.

【0075】ところで、注目する黒画素に最も遠い画素
までの距離d1と最も近い画素までの距離d2との比を
もとにして、その注目する黒画素がエッジであるか否か
を判定できるのは次のような理由によるものである。す
なわち、注目する画素がエッジである場合には、画素の
集団の輪郭を形成する画素のつながりの描く閉ループの
中心付近に注目する黒画素が位置せず、注目する黒画素
は図11からもわかるように、閉ループの中で必ず偏っ
た位置に存在するからであり、注目する黒画素に最も遠
い画素までの距離d1と最も近い画素までの距離d2と
の比は必然的に大きくなる。したがって、距離d1とd
2の比をとることにより、その黒画素がエッジであるか
否かを判定できるのである。
By the way, based on the ratio of the distance d1 to the pixel farthest from the black pixel of interest and the distance d2 to the closest pixel, it can be determined whether or not the black pixel of interest is an edge. Is due to the following reasons. That is, when the pixel of interest is an edge, the black pixel of interest is not located near the center of the closed loop drawn by the connections of the pixels forming the outline of the pixel group, and the black pixel of interest can be seen from FIG. As described above, since it always exists in a biased position in the closed loop, the ratio of the distance d1 to the pixel farthest from the target black pixel and the distance d2 to the closest pixel inevitably becomes large. Therefore, the distances d1 and d
By taking the ratio of 2, it is possible to determine whether or not the black pixel is an edge.

【0076】このようにして、注目する黒画素がエッジ
であることが判定されると、第2の黒画素生成処理を行
うことによって黒画素が生成される。この第2の黒画素
生成処理は、そのときの注目する黒画素に隣接する8個
の画素のうち、そのときの状態に応じて、いずれかの画
素を新たな黒画素とする処理を行う。この隣接する8個
のどれを新たな黒画素とするかは、予め規則を設定し、
たとえば、注目する黒画素の位置を(i,j)とした場
合、(i+1、j+1)の画素を新たな黒画素とすると
いうように決めてもよいし、隣接する8個のうち、いず
れかをランダムに決めるようにしてもよい。たとえば、
(i+1、j+1)の画素を新たな黒画素とするという
ように決めたとすれば、図11の場合は、注目する黒画
素mはこの場合、(i9,j9)であるから、(i1
0,j10)の画素が新たな黒画素となる。
In this way, when it is determined that the black pixel of interest is an edge, the black pixel is generated by performing the second black pixel generation processing. In the second black pixel generation processing, one of the eight pixels adjacent to the black pixel of interest at that time is set as a new black pixel according to the state at that time. A rule is set in advance to determine which of the eight adjacent black pixels is to be a new black pixel,
For example, when the position of the black pixel of interest is (i, j), the pixel of (i + 1, j + 1) may be determined as a new black pixel, or any of the eight adjacent black pixels may be selected. May be determined at random. For example,
If the pixel of (i + 1, j + 1) is decided to be a new black pixel, the black pixel m of interest in this case is (i9, j9) in the case of FIG.
The pixel of 0, j10) becomes a new black pixel.

【0077】以上のようにして或る注目黒画素mに対す
る新たな黒画素を生成する処理を行ったのち、次の処理
工程として、新たな黒画素をも考慮した距離計算を行
う。そして次に、次の黒画素、たとえば、黒画素nに対
して、前記したようなエッジ判定処理の後、この黒画素
nに対する新たな黒画素生成処理を行い、その後、次は
黒画素に対して、前記同様の処理工程を行うというよう
に、最後の黒画素まで前記した処理工程を繰り返し行
う。
After the process of generating a new black pixel for a certain target black pixel m is performed as described above, the distance calculation considering the new black pixel is performed as the next process step. Then, the next black pixel, for example, the black pixel n, is subjected to the above-described edge determination processing, and then a new black pixel generation processing is performed for this black pixel n. Then, the above-described processing steps are repeated until the last black pixel, such as performing the same processing steps as described above.

【0078】このとき、新たに生成されたそれぞれの黒
画素は、始めから存在する黒画素と区別をしておき、こ
の新たに生成された黒画素に対する新たな黒画素を生成
することは行わない。
At this time, each newly generated black pixel is distinguished from the existing black pixel, and a new black pixel is not generated for this newly generated black pixel. .

【0079】以上のような処理を行うことにより、黒画
素m,n,・・・に対応して1つづつ新たな黒画素が生
成される。しかも、それぞれの新たな黒画素は、黒画素
m,n,・・・がエッジ部に存在する黒画素であれば、
その黒画素に隣接して生成される。
By performing the above processing, new black pixels are generated one by one corresponding to the black pixels m, n, .... Moreover, if each new black pixel is a black pixel m, n, ...
It is generated adjacent to the black pixel.

【0080】なお、この第2の実施の形態では、画素数
を縦横ともに2倍とし、黒画素を4倍ではなく2倍とす
る例について説明でしているが、画素数を縦横ともに2
倍とし、それに伴って黒画素を4倍とする場合は、第1
の実施の形態と同様、前記した処理を2度繰り返して行
えばよい。
In the second embodiment, an example in which the number of pixels is doubled vertically and horizontally and the number of black pixels is doubled instead of four times, the number of pixels is doubled vertically and horizontally.
If you want to double the number of black pixels,
Similar to the above embodiment, the above-mentioned processing may be repeated twice.

【0081】以上のように、この第2の実施の形態で
は、注目する黒画素がエッジ部に存在する画素であると
判定された場合は、その黒画素に対応して新たに生成さ
れる黒画素は、遠くに散らせた位置に生成するのではな
く、隣接して生成するようにする。これにより、変換画
像においてもエッジ部のシャープさを維持することがで
きる。
As described above, in the second embodiment, if it is determined that the black pixel of interest is the pixel existing in the edge portion, the black newly generated corresponding to the black pixel. Pixels are generated adjacent to each other instead of being generated at positions scattered far away. Thereby, the sharpness of the edge portion can be maintained even in the converted image.

【0082】ところで、以上説明した第2の実施の形態
を実現するための手段について、以下に簡単に説明す
る。
Means for realizing the above-described second embodiment will be briefly described below.

【0083】図12は第2の実施の形態の全体的な概略
構成図である。図12において、最短距離画素探索部
1、距離計算部2、変換画素バッファ4は、前記第1の
実施の形態の説明において用いた図8に示されたものと
同じものであり、この第2の実施の形態の場合は、これ
らの他に、エッジ判定部5、第1の黒画素生成部6、第
2の黒画素生成部7などが設けられている。なお、第1
の黒画素生成部6は図8における黒画素生成部3に相当
するものである。また、第2の黒画素生成部7は、前述
した第2の黒画素生成処理を行うもので、エッジ判定部
5により注目する黒画素がエッジ部に存在する黒画素で
あると判定された場合に、前述したような黒画素生成処
理を行う。
FIG. 12 is an overall schematic configuration diagram of the second embodiment. In FIG. 12, the shortest distance pixel search unit 1, the distance calculation unit 2, and the conversion pixel buffer 4 are the same as those shown in FIG. 8 used in the description of the first embodiment. In the case of the embodiment, in addition to these, the edge determination unit 5, the first black pixel generation unit 6, the second black pixel generation unit 7, and the like are provided. The first
The black pixel generation unit 6 corresponds to the black pixel generation unit 3 in FIG. In addition, the second black pixel generation unit 7 performs the above-described second black pixel generation processing, and when the edge determination unit 5 determines that the black pixel of interest is the black pixel existing in the edge portion. Then, the black pixel generation processing as described above is performed.

【0084】また、図13は前記エッジ判定部5の概略
的な構成を示すものであり、近傍画素検出部51、境界
画素検出部52、境界最長距離画素検出部53、境界最
短距離画素検出部54、距離比比較部55などから構成
されている。なお、変換画像バッファ4は図12で示し
たものと同じものである。このような構成において、注
目する黒画素に対する最も近い画素の集団を近傍画素検
出部51にて検出し、その集団の輪郭を形成する画素を
境界画素検出部52により検出する。そして、境界最長
距離画素検出部53にて注目する黒画素から最も遠い位
置にある画素を検出するとともに、境界最短距離画素検
出部54にて注目する黒画素から最も近い位置にある画
素を検出し、距離比比較部55にてそれぞれの距離d
1,d2を求めるとともに、両者の比をとり、しきい値
th1と比較して、エッジに存在する画素であるか否か
の判定結果を出力する。
FIG. 13 shows a schematic structure of the edge determination section 5, which includes a neighboring pixel detection section 51, a boundary pixel detection section 52, a boundary longest distance pixel detection section 53, and a boundary shortest distance pixel detection section. 54, a distance ratio comparison unit 55, and the like. The converted image buffer 4 is the same as that shown in FIG. In such a configuration, the closest pixel detection unit 51 detects a group of pixels closest to the target black pixel, and the boundary pixel detection unit 52 detects pixels forming the contour of the group. Then, the longest boundary distance pixel detection unit 53 detects the pixel at the farthest position from the black pixel of interest, and the shortest boundary distance pixel detection unit 54 detects the pixel at the closest position to the black pixel of interest. , The respective distances d in the distance ratio comparison unit 55.
1 and d2 are obtained, the ratio between them is calculated, and the result is compared with the threshold value th1 to output the determination result as to whether or not the pixel exists at the edge.

【0085】なお、以上の第2の実施の形態における様
々な処理を行うためのプログラムは、フロッピィディス
クなどの記憶媒体に記憶させておき、本発明はその記憶
媒体をも含むものである。
The programs for performing the various processes in the above-described second embodiment are stored in a storage medium such as a floppy disk, and the present invention also includes the storage medium.

【0086】以上説明したように、この第2の実施の形
態では、注目する黒画素がエッジ部に存在する画素であ
るか否かを判定し、エッジ部に存在していないと判定さ
れた場合は、第1の黒画素生成処理により、前記第1の
実施の形態で説明したように、新たな黒画素を散らばら
せて生成するようにし、エッジ部に存在する画素である
と判定された場合は、新たに生成される黒画素は、その
注目する黒画素に隣接して生成するようにする。これに
より、画像のエッジ部を変換後においてもシャープさを
保つことができる。
As described above, in the second embodiment, it is determined whether the black pixel of interest is the pixel existing in the edge portion, and if it is determined that the black pixel is not present in the edge portion. Are generated by the first black pixel generation processing by dispersing new black pixels as described in the first embodiment, and are determined to be pixels existing in the edge portion. In this case, the newly generated black pixel is generated adjacent to the target black pixel. Thereby, the sharpness can be maintained even after the edge portion of the image is converted.

【0087】なお、以上説明した第1及び第2の実施の
形態において、変換画像において、注目する黒画素に対
する距離は、ユークリッド距離を用いた例で説明した
が、ユークリッド距離に限られるものではなく、たとえ
ば、4近傍距離、あるいは8近傍距離を用いても同様に
実施できる。
In the first and second embodiments described above, the distance to the black pixel of interest in the converted image is explained by using the Euclidean distance, but the distance is not limited to the Euclidean distance. For example, the same operation can be performed using a 4-neighbor distance or 8-neighbor distance.

【0088】4近傍距離は、2点1、p2間の距離をd
とし、p1の座標を(pi1,pj1)、p2の座標を
(pi2,pj2)とすると、 d=|pi1−pi2|+|pj1−pj2|・・・(2) によって求められる距離である。また、8近傍距離は、
同様に、2点p1、p2間の距離をdとし、p1の座標
を(pi1,pj1)、p2の座標を(pi2,pj
2)とすると、 d=max(|pi1−pi2|,|pj1−pj2|)・・・(3) によって求められる距離である。なお、(3)式は、|
pi1-pi2|と|pj1-pj2|を求めその最大値を2点間の距
離とするというものである。
The four-neighborhood distance is the distance between two points 1 and p2.
And the coordinates of p1 are (pi1, pj1) and the coordinates of p2 are (pi2, pj2), d = | pi1-pi2 | + | pj1-pj2 | ... (2). Also, the 8 neighborhood distance is
Similarly, the distance between two points p1 and p2 is d, the coordinates of p1 are (pi1, pj1), and the coordinates of p2 are (pi2, pj).
2), d = max (| pi1-pi2 |, | pj1-pj2 |) ... (3). The expression (3) is
pi1-pi2 | and | pj1-pj2 | are calculated and the maximum value is set as the distance between two points.

【0089】図14は図4を4近傍距離を用いて表した
ものであり、図15は図4を8近傍距離を用いて表した
ものである。この図14、図15に記載された距離を表
す数値は、図4の数値の表し方とは異なって、数値その
ものが距離を表している。このような、4近傍距離また
は8近傍距離を用いた場合でも、前記第1、第2の実施
の形態で説明したユークリッド距離を用いた場合と距離
を表す数値は異なるが、その処理は前記第1、第2の実
施の形態で説明したと同様に実施することができる。
FIG. 14 shows FIG. 4 using the four-neighbor distance, and FIG. 15 shows FIG. 4 using the eight-neighbor distance. The numerical values representing the distances shown in FIGS. 14 and 15 are different from the numerical expressions shown in FIG. 4, and the numerical values themselves represent the distances. Even when such a 4-neighborhood distance or 8-neighborhood distance is used, the numerical value representing the distance is different from the case where the Euclidean distance described in the first and second embodiments is used, but the processing is the same as in the first embodiment. It can be implemented in the same manner as described in the first and second embodiments.

【0090】[0090]

【発明の効果】以上説明したように本発明によれば、原
画像を任意の倍率で変換する場合、変換画像において、
倍率が変換されることにより新たに生成される黒画素
は、始めから存在する黒画素のいずれからも離れた位置
に生成されるようにしたので、原画像が倍率変換された
とき、原画像に存在する黒画素が倍率変換後の変換画像
において偏った状態で存在することなく、黒画素を画像
全体に散らばらせることができ、良好な画像を得ること
ができる。
As described above, according to the present invention, when converting an original image at an arbitrary magnification, in the converted image,
The black pixel newly generated by the magnification conversion is generated at a position away from any of the black pixels existing from the beginning, so when the original image is scale-converted, it is converted into the original image. The existing black pixels do not exist in a biased state in the converted image after the magnification conversion, the black pixels can be scattered over the entire image, and a good image can be obtained.

【0091】また、本発明は、原画像の黒画素に対応す
る変換画像における黒画素が画像のエッジ部分に存在す
るか否かを変換画像において判断し、エッジ部分に存在
する画素でないと判断された場合は、前記したように、
倍率変換後の変換画像において黒画素が偏った状態で存
在することなく、黒画素を画像全体に散らばらせるする
処理を行い、黒画素がエッジ部に存在すると判定された
場合は、その黒画素に対応して新たに生成される黒画素
を、始めから存在する黒画素に隣接した位置に生成する
ようにする。これにより、変換画像においてもエッジ部
のシャープさを保つことができる。
Further, according to the present invention, it is judged in the converted image whether the black pixel in the converted image corresponding to the black pixel in the original image exists in the edge portion of the image, and it is judged that the pixel is not the pixel existing in the edge portion. If, as described above,
If black pixels do not exist in a biased state in the converted image after magnification conversion, the black pixels are scattered over the entire image, and if it is determined that black pixels exist in the edge part, the black pixels The black pixel newly generated corresponding to is generated at a position adjacent to the black pixel existing from the beginning. Thereby, the sharpness of the edge portion can be maintained even in the converted image.

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

【図1】本発明の第1の実施の形態を説明する原画像の
一例を示す図。
FIG. 1 is a diagram showing an example of an original image for explaining a first embodiment of the present invention.

【図2】原画像に対して画素数を縦横ともに2倍とした
変換画像を示す図。
FIG. 2 is a diagram showing a converted image in which the number of pixels is doubled vertically and horizontally with respect to the original image.

【図3】原画像の黒画素の中心点に最も近い変換画像の
画素を黒画素とした例を示す図。
FIG. 3 is a diagram showing an example in which a pixel of a converted image closest to a center point of a black pixel of an original image is a black pixel.

【図4】図3で定められた各黒画素に対して、変換画像
の各画素(黒に変換されなかった各画素)がどの黒画素
に最も近く、どのくらいの距離が有るかを1つ1つの画
素毎に距離計算した結果および或る注目する黒画素に最
も近いとされる画素の集団の例を示す図。
FIG. 4 shows for each black pixel defined in FIG. 3, each pixel of the converted image (each pixel that has not been converted to black) is closest to which black pixel and how much distance there is. The figure which shows the result of distance calculation for every one pixel, and the example of the group of pixels which are the closest to a certain black pixel of interest.

【図5】或る注目する黒画素に最も近い画素の集団を求
める場合、注目する黒画素までの距離を求めるときの範
囲を限定する例を説明する図。
FIG. 5 is a diagram illustrating an example of limiting a range for obtaining a distance to a black pixel of interest when a group of pixels closest to a certain black pixel of interest is obtained.

【図6】或る注目する黒画素に対する新たな黒画素を決
定する場合の規則例を説明する図。
FIG. 6 is a diagram illustrating an example of a rule for determining a new black pixel for a certain target black pixel.

【図7】新たな黒画素をも考慮して距離計算を行った結
果を示す図。
FIG. 7 is a diagram showing a result of distance calculation in consideration of a new black pixel.

【図8】第1の実施の形態の全体的な構成を示すブロッ
ク図。
FIG. 8 is a block diagram showing the overall configuration of the first embodiment.

【図9】第1の実施の形態における黒画素生成部の構成
を示すブロック図。
FIG. 9 is a block diagram showing a configuration of a black pixel generation unit according to the first embodiment.

【図10】第2の実施の形態の全体的な処理の概略を説
明するフローチャート。
FIG. 10 is a flowchart illustrating the outline of the overall processing according to the second embodiment.

【図11】第2の実施の形態において、エッジ判定を説
明するための画像例を示す図。
FIG. 11 is a diagram showing an example of an image for explaining edge determination in the second embodiment.

【図12】第2の実施の形態の全体的な構成を示すブロ
ック図。
FIG. 12 is a block diagram showing an overall configuration of a second embodiment.

【図13】第2の実施の形態におけるエッジ判定部の構
成を示すブロック図。
FIG. 13 is a block diagram showing a configuration of an edge determination unit according to the second embodiment.

【図14】距離として4近傍距離を用いた場合の変換画
像の一例を示す図。
FIG. 14 is a diagram showing an example of a converted image when four neighboring distances are used as a distance.

【図15】距離として8近傍距離を用いた場合の変換画
像の一例を示す図。
FIG. 15 is a diagram showing an example of a converted image when 8 neighboring distances are used as a distance.

【図16】投影法を用いて文字や線画などの画像を拡大
する例を説明する図。
FIG. 16 is a diagram illustrating an example of enlarging an image such as a character or a line drawing by using a projection method.

【図17】投影法を用いて疑似中間調処理された画像の
従来の拡大方法の一例を説明する図。
FIG. 17 is a diagram illustrating an example of a conventional method of enlarging an image that has been pseudo-halftone processed using the projection method.

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

A,B,・・・,I・・・原画像に存在する黒画素 a,b,・・・,i・・・変換画像における原画像に対
応した黒画素 e1・・・変換画像における黒画素aに対する新たな黒
画素 1・・・最短距離画素探索部 2・・・距離計算部 3・・・黒画素生成部 4・・・変換画像バッファ 5・・・エッジ判定部 6・・・第1の黒画素生成部 7・・・第2の黒画素生成部 31・・・黒画素検出部 32・・・近傍画素検出部 33・・・最長距離画素検出部 34・・・境界画素検出部 35・・・ランダム画素選択部 53・・・境界最長距離画素検出部 54・・・境界最短距離画素検出部 55・・・距離比比較部 Z1,Z2,Z3・・・エリア L1,l2,・・・,L17・・・行
A, B, ..., I ... Black pixels existing in the original image a, b, ..., i ... Black pixels corresponding to the original image in the converted image e1 ... Black pixels in the converted image New black pixel for a 1 ... Shortest distance pixel search unit 2 ... Distance calculation unit 3 ... Black pixel generation unit 4 ... Converted image buffer 5 ... Edge determination unit 6 ... First Black pixel generation unit 7 ... second black pixel generation unit 31 ... black pixel detection unit 32 ... neighboring pixel detection unit 33 ... longest distance pixel detection unit 34 ... boundary pixel detection unit 35 ... Random pixel selection section 53 ... Longest boundary distance pixel detection section 54 ... Shortest boundary distance pixel detection section 55 ... Distance ratio comparison section Z1, Z2, Z3 ... Area L1, 12, ...・ 、 L17 ・ ・ ・ Line

Claims (26)

【特許請求の範囲】[Claims] 【請求項1】 原画像の画素数を縦方向および横方向に
任意の倍率で変換して画素密度を変換する画素密度変換
方法において、 原画像の画素数を縦方向および横方向に任意の倍率で変
換して得られる変換画像を生成し、この変換画像と前記
原画像とを所定の関係に基づいて対応付けすることで、
原画像に存在するそれぞれの黒画素に対応する変換画像
の画素を特定し、これにより特定された変換画像の画素
を黒画素とし、 原画像に対応づけられることにより所定の画素が黒画素
とされた前記変換画像において、前記黒画素とされた画
素以外の画素と各黒画素との間の距離を計算し、各画素
について、その画素とその画素に最も近い黒画素との間
の距離を求め、この求めた距離に基づいて新たな黒画素
を生成するようにしたことを特徴とする画素密度変換方
法。
1. A pixel density conversion method for converting a pixel density by converting the number of pixels of an original image in a vertical direction and a horizontal direction at an arbitrary scale factor. By generating a converted image obtained by converting in, by associating the converted image and the original image based on a predetermined relationship,
The pixels of the converted image corresponding to each black pixel existing in the original image are specified, and the pixels of the converted image specified by this are made black pixels, and the predetermined pixels are made black pixels by being associated with the original image. In the converted image, the distance between each black pixel and each pixel other than the black pixel is calculated, and the distance between that pixel and the black pixel closest to that pixel is calculated for each pixel. A pixel density conversion method characterized in that a new black pixel is generated based on the obtained distance.
【請求項2】 前記或る画素とその画素に最も近い黒画
素との間の距離は、ユークリッド距離、4近傍距離、8
近傍距離のいずれかを用いることを特徴とする請求項1
記載の画素密度変換方法。
2. A distance between the certain pixel and a black pixel closest to the certain pixel is a Euclidean distance, a neighborhood distance, 8
2. Any one of the near distances is used.
The described pixel density conversion method.
【請求項3】 前記或る画素とその画素に最も近い黒画
素との間の距離を求める処理において、求める距離に予
め最大値を設定し、その最大値の距離以内に黒画素が見
つからない場合にはその画素に対する距離は求めないよ
うにしたことを特徴とする請求項1記載の画素密度変換
方法。
3. In a process of obtaining a distance between the certain pixel and a black pixel closest to the pixel, a maximum value is set in advance for the obtained distance, and a black pixel is not found within the distance of the maximum value. The pixel density conversion method according to claim 1, wherein the distance to the pixel is not calculated.
【請求項4】 前記距離に基づいて新たな黒画素を生成
する処理は、或る黒画素を注目する黒画素としたとき
に、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の中で、
前記注目する黒画素から最も遠い位置に存在する画素を
新たな黒画素とすることを特徴とする請求項1記載の画
素密度変換方法。
4. The process of generating a new black pixel based on the distance is such that, when a certain black pixel is set as a target black pixel, a group of pixels that are the closest to the target black pixel is set as the target pixel. Search from the obtained distance, in the group of pixels,
The pixel density conversion method according to claim 1, wherein a pixel existing at a position farthest from the black pixel of interest is set as a new black pixel.
【請求項5】 前記距離に基づいて新たな黒画素を生成
する処理は、或る黒画素を注目する黒画素としたとき
に、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の或る一
部分に注目し、その注目した部分の中で、前記注目する
黒画素から最も遠い位置に存在する画素を新たな黒画素
とすることを特徴とする請求項1記載の画素密度変換方
法。
5. The process of generating a new black pixel based on the distance, when a certain black pixel is set as a target black pixel, sets a group of pixels that are the closest to the target black pixel as the target black pixel. Searching from the obtained distance, paying attention to a certain part of the group of pixels, and in the focused part, a pixel farthest from the focused black pixel is set as a new black pixel. The pixel density conversion method according to claim 1.
【請求項6】 前記距離に基づいて新たな黒画素を生成
する処理は、或る黒画素を注目する黒画素としたとき
に、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の輪郭を
形成する画素のつながりの中で、或る1つの画素をラン
ダムに選び、その選ばれた画素を新たな黒画素とするこ
とを特徴とする請求項1記載の画素密度変換方法。
6. The process of generating a new black pixel based on the distance is such that, when a certain black pixel is set as a target black pixel, a group of pixels that is the closest to the target black pixel is set as the target pixel. The present invention is characterized in that a certain one pixel is randomly selected in the connection of pixels forming the contour of the group of pixels by searching from the obtained distance, and the selected pixel is set as a new black pixel. The pixel density conversion method according to claim 1.
【請求項7】 前記距離に基づいて新たな黒画素を生成
する処理は、或る黒画素を注目する黒画素としたとき
に、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の輪郭を
形成する画素のつながりの或る一部に注目し、その注目
した部分の中で、或る1つの画素をランダムに選び、そ
の選ばれた画素を新たな黒画素とすることを特徴とする
請求項1記載の画素密度変換方法。
7. The process of generating a new black pixel based on the distance is such that, when a certain black pixel is set as a target black pixel, a group of pixels which is closest to the target black pixel is set as the Searching from the obtained distance, paying attention to a certain part of the connection of pixels forming the outline of the pixel group, randomly selecting a certain pixel in the focused part, and selecting it. The pixel density conversion method according to claim 1, wherein the pixel is a new black pixel.
【請求項8】 原画像の画素数を縦方向および横方向に
任意の倍率で変換して画素密度を変換する画素密度変換
方法において、 原画像の画素数を縦方向および横方向に任意の倍率で変
換して得られる変換画像を生成し、この変換画像と前記
原画像とを所定の関係に基づいて対応付けすることで、
原画像に存在するそれぞれの黒画素に対応する変換画像
の画素を特定し、これにより特定された変換画像の画素
を黒画素とし、 原画像に対応づけられることにより所定の画素が黒画素
とされた前記変換画像において、前記黒画素とされた画
素以外の画素と黒画素との間の距離を計算し、各画素に
ついて、その画素とその画素に最も近い黒画素との間の
距離を求め、この変換画像内の或る黒画素を注目する黒
画素としたときに、その注目する黒画素が画像のエッジ
部に存在するか否かを判定し、注目する黒画素がエッジ
部に存在していないと判定された場合は、前記求められ
た距離値を基にして、注目する黒画素から離れた位置に
存在する画素を選び、この選ばれた画素を新たな黒画素
とし、前記注目する黒画素がエッジ部に存在していると
判定された場合は、その注目する黒画素に隣接する画素
のうちのいずれかを新たな黒画素とすることを特徴とす
る画素密度変換方法。
8. A pixel density conversion method for converting the number of pixels of an original image in the vertical direction and the horizontal direction at an arbitrary magnification to convert the pixel density, wherein the number of pixels of the original image is arbitrarily adjusted in the vertical direction and the horizontal direction. By generating a converted image obtained by converting in, by associating the converted image and the original image based on a predetermined relationship,
The pixels of the converted image corresponding to each black pixel existing in the original image are specified, and the pixels of the converted image specified by this are made black pixels, and the predetermined pixels are made black pixels by being associated with the original image. In the converted image, the distance between a pixel other than the black pixel and the black pixel is calculated, and for each pixel, the distance between the pixel and the black pixel closest to the pixel is calculated. When a certain black pixel in this converted image is set as the black pixel of interest, it is determined whether the black pixel of interest exists in the edge portion of the image, and the black pixel of interest exists in the edge portion. If it is determined that there is not, a pixel existing at a position away from the black pixel of interest is selected based on the obtained distance value, the selected pixel is set as a new black pixel, and the black of interest is selected. It is determined that the pixel exists at the edge. If determined, one of the pixels adjacent to the target black pixel is set as a new black pixel, and the pixel density conversion method is characterized.
【請求項9】 前記注目する黒画素が画像のエッジ部に
存在するか否かの判定は、その注目する黒画素に最も近
いとされた画素の集団を前記求めた距離から探索し、そ
の画素の集団の輪郭を形成する画素のつながりの中で、
注目する黒画素から最も遠い位置に存在する画素の注目
する黒画素までの距離と、注目する黒画素から最も近い
位置に存在する画素の注目する黒画素までの距離との比
を求め、その比の大きさを基に、注目する黒画素がエッ
ジ部に属する画素であるか否かを判定することを特徴と
する請求項8記載の画素密度変換方法。
9. The determination of whether or not the black pixel of interest is present at an edge portion of an image is performed by searching a group of pixels that are said to be closest to the black pixel of interest from the obtained distance and In the connection of pixels forming the outline of the group of
Find the ratio of the distance from the target black pixel to the target black pixel at the farthest pixel and the distance from the target black pixel to the closest black pixel to the target black pixel, and calculate the ratio. 9. The pixel density conversion method according to claim 8, wherein it is determined whether or not the black pixel of interest is a pixel belonging to an edge portion based on the size of.
【請求項10】 前記注目する黒画素がエッジ部に存在
しないと判定された場合の新たな黒画素を生成する処理
は、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の中で、
前記注目する黒画素から最も遠い位置に存在する画素を
新たな黒画素とすることを特徴とする請求項8記載の画
素密度変換方法。
10. The process of generating a new black pixel when it is determined that the black pixel of interest does not exist in the edge portion, the group of pixels determined to be closest to the black pixel of interest is obtained. Search from the distance, within the group of pixels,
The pixel density conversion method according to claim 8, wherein a pixel existing at a position farthest from the black pixel of interest is set as a new black pixel.
【請求項11】 前記注目する黒画素がエッジ部に存在
しないと判定された場合の新たな黒画素を生成する処理
は、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の或る一
部分に注目し、その注目した部分の中で、前記注目する
黒画素から最も遠い位置に存在する画素を新たな黒画素
とすることを特徴とする請求項8記載の画素密度変換方
法。
11. A process of generating a new black pixel when it is determined that the black pixel of interest does not exist in an edge portion, the group of pixels determined to be closest to the black pixel of interest is obtained. It is characterized in that a search is performed from a distance, attention is paid to a certain part of the group of pixels, and a pixel existing at a position farthest from the noted black pixel in the noted part is set as a new black pixel. The pixel density conversion method according to claim 8.
【請求項12】 前記注目する黒画素がエッジ部に存在
しないと判定された場合の新たな黒画素を生成する処理
は、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の輪郭を
形成する画素のつながりの中で、或る1つの画素をラン
ダムに選び、その選ばれた画素を新たな黒画素とするこ
とを特徴とする請求項8記載の画素密度変換方法。
12. The process of generating a new black pixel when it is determined that the black pixel of interest does not exist in the edge portion, the group of pixels determined to be closest to the black pixel of interest is obtained. 7. A method of searching from a distance, randomly selecting a certain pixel from among the connections of pixels forming the contour of the group of pixels, and selecting the selected pixel as a new black pixel. 8. The pixel density conversion method as described in 8.
【請求項13】 前記注目する黒画素がエッジ部に存在
しないと判定された場合の新たな黒画素を生成する処理
は、その注目する黒画素に最も近いとされた画素の集団
を前記求めた距離から探索し、その画素の集団の輪郭を
形成する画素のつながりの或る一部に注目し、その注目
した部分の中で、或る1つの画素をランダムに選び、そ
の選ばれた画素を新たな黒画素とすることを特徴とする
請求項8記載の画素密度変換方法。
13. The process of generating a new black pixel when it is determined that the black pixel of interest does not exist in the edge portion, the group of pixels that is the closest to the black pixel of interest is obtained. Searching from the distance, paying attention to a part of the connection of pixels forming the outline of the pixel group, randomly selecting one pixel in the focused part, and selecting the selected pixel. The pixel density conversion method according to claim 8, wherein a new black pixel is used.
【請求項14】 原画像の画素数を縦方向および横方向
に任意の倍率で変換して画素密度を変換する画素密度変
換装置において、 原画像の画素数を縦方向および横方向に任意の倍率で変
換して得られた変換画像と原画像の対応関係をもとに、
原画像の黒画素と変換画像の画素とを対応付けし、対応
づけられた変換画像の画素を黒画素とする手段と、 原画像に対応づけられることにより所定の画素が黒画素
とされた前記変換画像において、前記黒画素とされた画
素以外の各画素と各黒画素との間の距離を計算し、各画
素について、その画素とその画素に最も近い黒画素との
間の距離を求める距離計算手段と、 この距離計算手段により求められた距離に基づいて新た
な黒画素を生成する黒画素生成手段と、 を有したことを特徴とする画素密度変換装置。
14. A pixel density conversion device for converting the number of pixels of an original image in the vertical direction and the horizontal direction at an arbitrary scale factor to convert the pixel density. Based on the correspondence between the converted image and the original image obtained by
Means for associating the black pixels of the original image with the pixels of the converted image and setting the associated pixels of the converted image as black pixels; In the converted image, the distance between each black pixel and each pixel other than the black pixel is calculated, and the distance between each pixel and the black pixel closest to that pixel is calculated. A pixel density conversion device comprising: a calculation means; and a black pixel generation means for generating a new black pixel based on the distance obtained by the distance calculation means.
【請求項15】 前記距離計算手段によって求められる
或る画素とその画素に最も近い黒画素との間の距離は、
ユークリッド距離、4近傍距離、8近傍距離のいずれか
を用いることを特徴とする請求項14記載の画素密度変
換装置。
15. The distance between a pixel and a black pixel closest to the pixel calculated by the distance calculation means is
15. The pixel density conversion device according to claim 14, wherein any one of Euclidean distance, 4 neighborhood distance, and 8 neighborhood distance is used.
【請求項16】 前記距離計算手段によって或る画素と
その画素に最も近い黒画素との間の距離を求める処理
は、求める距離に予め最大値を設定し、その最大値の距
離以内に黒画素が見つからない場合にはその画素に対す
る距離は求めないようにしたことを特徴とする請求項1
4記載の画素密度変換装置。
16. The process of obtaining the distance between a pixel and a black pixel closest to the pixel by the distance calculating means sets a maximum value in advance to the obtained distance, and sets the black pixel within the distance of the maximum value. 2. If the distance is not found, the distance to the pixel is not calculated.
4. The pixel density conversion device described in 4.
【請求項17】 前記黒画素生成手段は、或る黒画素を
注目する黒画素としたときに、その注目する黒画素に最
も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の中で、前記注目する黒画素から最
も遠い位置に存在する画素を新たな黒画素とすることを
特徴とする請求項14記載の画素密度変換装置。
17. The black pixel generation means, when a certain black pixel is set as a black pixel of interest, searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, 15. The pixel density conversion device according to claim 14, wherein a pixel existing farthest from the black pixel of interest in the group of pixels is set as a new black pixel.
【請求項18】 前記黒画素生成手段は、或る黒画素を
注目する黒画素としたときに、その注目する黒画素に最
も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の或る一部分に注目し、その注目し
た部分の中で、前記注目する黒画素から最も遠い位置に
存在する画素を新たな黒画素とすることを特徴とする請
求項14記載の画素密度変換装置。
18. The black pixel generation means, when a certain black pixel is set as a black pixel of interest, searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, 15. The pixel according to claim 14, wherein a certain part of a group of pixels is focused on, and a pixel existing at a position farthest from the focused black pixel is set as a new black pixel in the focused part. Density converter.
【請求項19】 前記黒画素生成手段は、或る黒画素を
注目する黒画素としたときに、その注目する黒画素に最
も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の輪郭を形成する画素の繋がりの中
で、ランダムに或1つの画素を選び、その画素を新たな
黒画素とすることを特徴とする請求項14記載の画素密
度変換装置。
19. The black pixel generation means, when a certain black pixel is set as a black pixel of interest, searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, 15. The pixel density conversion device according to claim 14, wherein one of the pixels forming a contour of the group of pixels is randomly selected and a new black pixel is selected as the pixel.
【請求項20】 前記黒画素生成手段は、或る黒画素を
注目する黒画素としたときに、その注目する黒画素に最
も近いとされた画素の集団を前記求めた距離から探索
し、その画素の集団の輪郭を形成する画素の繋がりの或
る一部に注目し、その注目した部分の中で、ランダムに
或1つの画素を選び、その画素を新たな黒画素とするこ
とを特徴とする請求項14記載の画素密度変換装置。
20. When the black pixel of interest is a black pixel of interest, the black pixel generation means searches for a group of pixels that are said to be closest to the black pixel of interest from the obtained distance, and A feature is that attention is paid to a certain part of the connection of pixels forming the outline of a group of pixels, and one pixel is randomly selected in the attention part and the pixel is set as a new black pixel. The pixel density conversion device according to claim 14.
【請求項21】 原画像の画素数を縦方向および横方向
に任意の倍率で変換して画素密度を変換する画素密度変
換装置において、 原画像の画素数を縦方向および横方向に任意の倍率で変
換して得られた変換画像と原画像の対応関係を基に、原
画像の黒画素と変換画像の画素とを対応付けし、対応づ
けられた変換画像の画素を黒画素とする手段と、 原画像に対応づけられることにより所定の画素が黒画素
とされた前記変換画像において、前記黒画素とされた画
素以外の各画素と各黒画素との間の距離を計算し、各画
素について、その画素とその画素に最も近い黒画素との
間の距離を求める距離計算手段と、 前記変換画像内の或る黒画素を注目する黒画素としたと
きに、その注目する黒画素が画像のエッジ部に存在する
か否かを判定するエッジ判定手段と、 このエッジ判定手段により、前記注目する黒画素がエッ
ジ部に存在していないと判定された場合は、前記求めら
れた距離値を基にして、注目する黒画素から離れた位置
に存在する画素を選び、この選ばれた画素を新たな黒画
素とする第1の黒画素生成手段と、 前記エッジ判定手段により、前記注目する黒画素がエッ
ジ部に存在していると判定された場合は、その注目する
黒画素に隣接する画素のうちのいずれかを新たな黒画素
とする第2の黒画素生成手段と、 を有したことを特徴とする画素密度変換装置。
21. A pixel density conversion device for converting the number of pixels of an original image in the vertical direction and the horizontal direction at an arbitrary ratio to convert the pixel density. A means for associating the black pixels of the original image with the pixels of the converted image based on the correspondence relationship between the converted image and the original image obtained by converting the pixels of the associated converted image to black pixels; , In the converted image in which predetermined pixels are black pixels by being associated with the original image, the distance between each black pixel and each pixel other than the black pixel is calculated, and for each pixel , A distance calculating means for obtaining a distance between the pixel and a black pixel closest to the pixel, and, when a certain black pixel in the converted image is set as the target black pixel, the target black pixel is Edge judgment to determine whether or not the edge exists The determining unit and the edge determining unit determine that the black pixel of interest does not exist in the edge portion, and the position is separated from the black pixel of interest based on the obtained distance value. It is determined by the first black pixel generation unit that selects an existing pixel and uses the selected pixel as a new black pixel and the edge determination unit that the target black pixel is present in the edge portion. In this case, the pixel density conversion device further includes a second black pixel generation unit that makes any of the pixels adjacent to the target black pixel a new black pixel.
【請求項22】 前記エッジ判定手段は、前記注目する
黒画素に最も近いとされた画素の集団を前記求めた距離
から探索し、その画素の集団の輪郭を形成する画素のつ
ながりの中で、注目する黒画素から最も遠い位置に存在
する画素の注目する黒画素までの距離と、注目する黒画
素から最も近い位置に存在する画素の注目する黒画素ま
での距離との比を求め、その比の大きさを基に、注目す
る黒画素がエッジ部に属する画素であるか否かを判定す
ることを特徴とする請求項21記載の画素密度変換装
置。
22. The edge determining means searches for a group of pixels that is said to be closest to the black pixel of interest from the obtained distance, and in a connection of pixels forming an outline of the group of pixels, Find the ratio of the distance from the target black pixel to the target black pixel at the farthest pixel and the distance from the target black pixel to the closest black pixel to the target black pixel, and calculate the ratio. 22. The pixel density conversion device according to claim 21, wherein it is determined whether or not the black pixel of interest is a pixel belonging to an edge portion based on the size of the.
【請求項23】 前記第1の黒画素生成手段は、前記注
目する黒画素に最も近いとされた画素の集団の中で、前
記注目する黒画素から最も遠い位置に存在する画素を新
たな黒画素とすることを特徴とする請求項21記載の画
素密度変換装置。
23. The first black pixel generation means selects a pixel existing farthest from the black pixel of interest from among a group of pixels closest to the black pixel of interest as a new black pixel. The pixel density conversion device according to claim 21, wherein the pixel density conversion device is a pixel.
【請求項24】 前記第1の黒画素生成手段は、前記注
目する黒画素に最も近いとされた画素の集団の或る一部
分に注目し、その注目した部分の中で、前記注目する黒
画素から最も遠い位置に存在する画素を新たな黒画素と
することを特徴とする請求項21記載の画素密度変換装
置。
24. The first black pixel generation means focuses on a portion of a group of pixels that is said to be closest to the focused black pixel, and the focused black pixel is included in the focused portion. 22. The pixel density conversion device according to claim 21, wherein a pixel existing at a position farthest from is a new black pixel.
【請求項25】 前記第1の黒画素生成手段は、前記注
目する黒画素に最も近いとされた画素の集団の輪郭を形
成する画素のつながりの中で、或る1つの画素をランダ
ムに選び、その選ばれた画素を新たな黒画素とすること
を特徴とする請求項21記載の画素密度変換装置。
25. The first black pixel generation means randomly selects a certain pixel from among the connections of pixels forming an outline of a group of pixels that are the closest to the target black pixel. 22. The pixel density conversion device according to claim 21, wherein the selected pixel is a new black pixel.
【請求項26】 前記第1の黒画素生成手段は、前記注
目する黒画素に最も近いとされた画素の集団の輪郭を形
成する画素のつながりの或る一部に注目し、その注目し
た部分の中で、或る1つの画素をランダムに選び、その
選ばれた画素を新たな黒画素とすることを特徴とする請
求項21記載の画素密度変換装置。
26. The first black pixel generation means pays attention to a part of a connection of pixels forming an outline of a group of pixels that are the closest to the black pixel of interest, and the focused part 22. The pixel density conversion device according to claim 21, wherein one of the pixels is randomly selected, and the selected pixel is set as a new black pixel.
JP7204531A 1995-08-10 1995-08-10 Pixel density conversion method and pixel density conversion device Pending JPH0955847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7204531A JPH0955847A (en) 1995-08-10 1995-08-10 Pixel density conversion method and pixel density conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7204531A JPH0955847A (en) 1995-08-10 1995-08-10 Pixel density conversion method and pixel density conversion device

Publications (1)

Publication Number Publication Date
JPH0955847A true JPH0955847A (en) 1997-02-25

Family

ID=16492089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7204531A Pending JPH0955847A (en) 1995-08-10 1995-08-10 Pixel density conversion method and pixel density conversion device

Country Status (1)

Country Link
JP (1) JPH0955847A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method

Similar Documents

Publication Publication Date Title
US6185341B1 (en) Image processing using vector data to reduce noise
JP2022091270A (en) Method, system, and computer program
JP5653141B2 (en) Image processing method, image processing apparatus, and program
JPH05334427A (en) Image scaling method
CN101488129B (en) Image retrieval apparatus and method
CN115187994B (en) A target detection method based on lightweight target detection convolutional neural network
CN1088869C (en) Character processing apparatus and character processing method
JP2000339449A (en) Image processing apparatus and method
JP4111190B2 (en) Image processing device
JP4392082B2 (en) Engraving style halftone image generation method and apparatus
JPH0955847A (en) Pixel density conversion method and pixel density conversion device
JP4623290B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP2008054271A (en) Image processing apparatus and program
JP2000022943A (en) Device and method for discriminating image area, and recording medium recorded with image area discriminating program
JP5297347B2 (en) Pixel number conversion method, program for executing the same, and pixel number conversion apparatus
JP4517288B2 (en) Image processing apparatus, image processing method, and program thereof
JPH0652304A (en) Image processing apparatus and method thereof
JP4517287B2 (en) Image processing apparatus, image processing method, and program thereof
JP2006050481A (en) Image processing apparatus, image processing method and program thereof
JP3760634B2 (en) Image processing apparatus, image processing method, and recording medium
JP2009122841A (en) Image list image construction apparatus, recording medium, and image forming apparatus
CN102377895B (en) Image cropping method
JP2001230929A (en) Binary image reduction processing method and apparatus
JP2780405B2 (en) Digital image processing equipment
JP4506954B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium