JP3455397B2 - Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing - Google Patents
Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processingInfo
- Publication number
- JP3455397B2 JP3455397B2 JP18442297A JP18442297A JP3455397B2 JP 3455397 B2 JP3455397 B2 JP 3455397B2 JP 18442297 A JP18442297 A JP 18442297A JP 18442297 A JP18442297 A JP 18442297A JP 3455397 B2 JP3455397 B2 JP 3455397B2
- Authority
- JP
- Japan
- Prior art keywords
- gradation
- image
- contour
- type
- level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【0001】[0001]
【発明の属する技術分野】この発明は、多階調画像の階
調を補間する技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for interpolating the gradation of a multi-gradation image.
【0002】[0002]
【従来の技術】コンピュータを用いた画像処理の一種と
して、多階調画像に対する種々の階調変換が行なわれ
る。この際、多階調画像の階調変換に伴って階調のジャ
ンプが発生するという問題がある。「階調のジャンプ」
とは、隣接する領域の画像レベルが階段状に変化して、
少なくとも1つの画像レベルが抜けている現象を言う。
このような階調のジャンプを肉眼で観察すると、擬似的
な輪郭として見えることがある。すなわち、元の画像に
は輪郭が存在していなかったにも係わらず、階調のジャ
ンプのために、あたかも輪郭が存在するように見えてし
まう、という不具合がある。2. Description of the Related Art As one type of image processing using a computer, various gradation conversion is performed on a multi-gradation image. At this time, there is a problem that a gradation jump occurs due to the gradation conversion of the multi-gradation image. "Jump of gradation"
Means that the image level of the adjacent area changes stepwise,
A phenomenon in which at least one image level is missing.
When such a gradation jump is observed with the naked eye, it may appear as a pseudo contour. In other words, there is a problem that the original image does not have a contour, but the gradation jumps to make it look as if a contour were present.
【0003】[0003]
【発明が解決しようとする課題】従来は、このような階
調のジャンプが存在した場合に、画素データを平均化す
ることによって階調ジャンプを緩和していた。しかし、
画素データの平均化処理を行なうと、画像がボケてしま
うという問題があった。Conventionally, when such a gradation jump exists, the gradation jump is alleviated by averaging the pixel data. But,
When averaging the pixel data, the image is blurred.
【0004】この発明は、従来技術における上述の課題
を解決するためになされたものであり、平均化処理を行
なわずに多階調画像の階調ジャンプを解消する技術を提
供することを目的とする。The present invention has been made to solve the above-mentioned problems in the prior art, and an object thereof is to provide a technique for eliminating the gradation jump of a multi-gradation image without performing averaging processing. To do.
【0005】[0005]
【課題を解決するための手段およびその作用・効果】上
述の課題の少なくとも一部を解決するため、第1の発明
は、多階調画像の階調ジャンプを補間する方法であっ
て、(a)多階調画像を表わす多階調画像データの階調
を変換することによって、階調変換画像データを生成す
る工程と、(b)前記階調変換画像データに含まれる画
像レベルの中で、中間に階調ジャンプが存在する第1と
第2の画像レベルを特定する工程と、(c)前記階調変
換画像データを処理することによって、前記第1の画像
レベルを有する領域と前記第1の画像レベル未満の画像
レベルを有する他の領域との境界を示すAタイプの輪郭
線を表わす第1の輪郭データを求める工程と、(d)前
記階調変換画像データを処理することによって、前記第
1の画像レベルを有する領域と前記第2の画像レベル以
上の画像レベルを有する他の領域との境界を示すBタイ
プの輪郭線を表わす第2の輪郭データを求める工程と、
(e)前記第1と第2の輪郭データに基づいて前記Aタ
イプとBタイプの輪郭線の相互の包含関係を判断するこ
とによって、前記第1の画像レベルを有する領域の中で
前記第2の画像レベルを有する画像領域に隣接する領域
を階調補間の対象領域として検出し、前記対象領域の輪
郭を示す少なくとも1組の輪郭線セットを前記Aタイプ
とBタイプの輪郭線の中から抽出する工程と、(f)前
記対象領域内において、前記1組の輪郭線セットの中の
前記Aタイプの輪郭線と前記Bタイプの輪郭線との間を
(N+1)個(Nは1以上の整数)の区分領域に区分
し、前記(N+1)個の区分領域の中で前記第2の画像
レベルの画像領域に近いN個の区分領域に前記N個の中
間画像レベルを順次割り当てる工程と、を備える。In order to solve at least a part of the above-mentioned problems, a first invention is a method for interpolating gradation jump of a multi-gradation image. ) Generating the gradation-converted image data by converting the gradation of the multi-gradation image data representing the multi-gradation image, and (b) among the image levels included in the gradation-conversion image data, Identifying first and second image levels with intermediate tone jumps; and (c) processing the tone-converted image data to obtain regions having the first image level and the first image level. Determining first contour data representing an A-type contour line indicating a boundary with another region having an image level lower than the image level of (d) by processing the gradation-converted image data, With first image level And obtaining a second contour data representing the B type of contour line indicating a boundary between the other regions having area and said second image levels above image level that,
(E) determining the second inclusion in the area having the first image level by determining the mutual inclusion relationship between the A-type and B-type outlines based on the first and second outline data. A region adjacent to the image region having the image level of 10 is detected as a target region for gradation interpolation, and at least one set of contour lines indicating the contour of the target region is extracted from the A and B type contour lines. And (f) (N + 1) (N is 1 or more) between the A-type contour line and the B-type contour line in the one contour line set in the target region. An integer number of divided areas, and sequentially assigning the N intermediate image levels to N divided areas near the image area of the second image level among the (N + 1) divided areas, Equipped with.
【0006】第1の発明によれば、階調変換後の階調変
換データに含まれる画像レベルの中で階調ジャンプが存
在する第1と第2の画像レベルを特定することによっ
て、階調補間の対象とする第1と第2の画像レベルを決
定することができる。また、この第1と第2の画像レベ
ルに関連して求められるAタイプとBタイプの輪郭線の
中から、階調補間の対象領域を抽出し、この対象領域を
(N+1)個の区分領域に区分して、N個の中間画像レ
ベルを順次割り当てている。従って、画素データの平均
化処理を行なうことなく、対象領域の階調を補間するこ
とができる。According to the first aspect of the present invention, by specifying the first and second image levels in which the gradation jump exists among the image levels included in the gradation conversion data after the gradation conversion, The first and second image levels to be interpolated can be determined. Further, a target area for gradation interpolation is extracted from the A-type and B-type contour lines obtained in association with the first and second image levels, and the target area is (N + 1) segmented areas. , And N intermediate image levels are sequentially assigned. Therefore, the gradation of the target area can be interpolated without performing the averaging process of the pixel data.
【0007】上記第1の発明において、前記工程(b)
は、前記工程(a)における階調変換特性を用いて、前
記多階調画像データが取り得るすべての画像レベルを変
換することによって、各画像レベルの変換後のデータで
構成される全レベル変換データを生成する工程と、前記
全レベル変換データに存在する階調ジャンプを検出する
とともに、前記階調ジャンプを挟む下側および上側の画
像レベルを、前記第1の画像レベルおよび前記第2の画
像レベルとしてそれぞれ決定する工程と、を含む、こと
が好ましい。In the first invention, the step (b)
Is a full level conversion configured by the converted data of each image level by converting all possible image levels of the multi-tone image data using the gradation conversion characteristic in the step (a). A step of generating data, detecting gradation jumps existing in the all-level converted data, and detecting lower and upper image levels sandwiching the gradation jumps from the first image level and the second image. It is preferable to include a step of determining each as a level.
【0008】こうすれば、階調変換画像データ自身を調
べることなく、全レベル変換データを調べるだけで、階
調補間の対象となる第1と第2の画像レベルを特定する
ことができる。In this way, it is possible to specify the first and second image levels to be subjected to gradation interpolation only by examining all level conversion data without examining the gradation conversion image data itself.
【0009】上記第1の発明において、前記工程(f)
は、前記対象領域内の各画素の画像レベルを、数式1に
従って決定することによって、前記(N+1)個の区分
領域を形成する工程を備えることが好ましい。In the first invention, the step (f)
It is preferable that the method further includes the step of forming the (N + 1) segmented regions by determining the image level of each pixel in the target region according to Equation 1.
【0010】数式1に従って各画素の画像レベル(すな
わち画素データ)を決定すれば、対象領域が、互いに異
なる画像レベルを有する(N+1)個の区分領域に実質
的に区分される。すなわち、(N+1)個の区分領域の
間の境界線(中間輪郭線)を設定せずに、対象領域の階
調補間を実現することができる。If the image level (ie, pixel data) of each pixel is determined according to Equation 1, the target area is substantially divided into (N + 1) divided areas having different image levels. That is, it is possible to realize gradation interpolation of the target area without setting a boundary line (intermediate contour line) between the (N + 1) number of divided areas.
【0011】あるいは、上記第1の発明において、前記
工程(f)は、(f1)前記対象領域内において、前記
1組の輪郭線セットの中の前記Aタイプの輪郭線への最
短距離と、前記Bタイプの輪郭線への最短距離とが所定
の関係を有する位置にN本の中間輪郭線が作成されるよ
うに前記(N+1)個の区分領域を形成する工程を備え
ることが好ましい。Alternatively, in the above-mentioned first invention, the step (f) comprises: (f1) a shortest distance to the A type contour line in the one contour line set in the target region; It is preferable to include a step of forming the (N + 1) segmented areas so that N intermediate contour lines are created at positions having a predetermined relationship with the shortest distance to the B type contour line.
【0012】ここで、「N本の中間輪郭線が作成される
ように」とは、実際に中間輪郭線を作成する場合に限ら
ず、(N+1)個の区分領域を形成することによって仮
想的な中間輪郭線が形成される場合も含んでいる。Here, "so that N intermediate contour lines are created" is not limited to the case where the intermediate contour lines are actually created, but (N + 1) divided areas are formed to create a virtual region. It also includes the case where a different intermediate contour line is formed.
【0013】なお、前記所定の関係を有する位置は、前
記1組の輪郭線セットの中の前記Aタイプの輪郭線への
最短距離と、前記Bタイプの輪郭線への最短距離とがm
対n(m,nは1以上N以下の整数で、m,nのN個の
組み合わせはm+n=N+1を満足する)の関係にある
位置であることがことが好ましい。In the position having the above-mentioned predetermined relationship, the shortest distance to the A-type contour line and the shortest distance to the B-type contour line in the one contour set are m.
It is preferable that the positions are in a relationship of pair n (m, n is an integer of 1 or more and N or less, and N combinations of m and n satisfy m + n = N + 1).
【0014】こうすれば、2種類の最短距離の関係がm
対nの関係にある位置におけるN本の中間輪郭線で、対
象領域を(N+1)個の区分領域に区分することができ
る。In this way, the relationship between the two types of shortest distances is m
The target region can be divided into (N + 1) divided regions by N intermediate contour lines at positions having a pair n relationship.
【0015】前記工程(e)は、(e1)前記Aタイプ
の輪郭線を、その内部領域が前記第1の画像レベル以上
の画像レベルを有するA+タイプの輪郭線と、その内部
領域が前記第1の画像レベル未満の画像レベルを有する
A−タイプの輪郭線とに分類する工程と、(e2)前記
Bタイプの輪郭線を、その内部領域が前記第2の画像レ
ベル以上の画像レベルを有するB+タイプの輪郭線と、
その内部領域が前記第2の画像レベル未満の画像レベル
を有するB−タイプの輪郭線とに分類する工程と、(e
3)少なくとも前記A+タイプの輪郭線と前記B+タイ
プの輪郭線とに挟まれた領域と、前記B−タイプの輪郭
線と前記A−タイプの輪郭線とに挟まれた領域と、の少
なくとも一方を前記対象領域として検出する工程と、を
備えることが好ましい。In the step (e), (e1) the A type contour line is defined as an A + type contour line whose inner region has an image level higher than the first image level, and the inner region is the first contour line. Classifying into an A-type contour having an image level less than one image level, and (e2) the B-type contour having an internal region having an image level greater than or equal to the second image level. B + type contour line,
Classifying the interior region into a B-type contour having an image level less than the second image level; and (e
3) At least one of an area sandwiched between at least the A + type outline and the B + type outline, and an area sandwiched between the B- type outline and the A- type outline. Is detected as the target area.
【0016】このように輪郭線を分類することによっ
て、「第1の画像レベルを有する領域の中で第2の画像
レベルを有する画像領域に隣接する領域」である対象領
域を検出することが可能である。By classifying the contour lines in this way, it is possible to detect a target area which is "a region adjacent to an image region having a second image level in a region having a first image level". Is.
【0017】上記第1の発明において、さらに、(g)
前記(N+1)個の区分領域の境界に存在するN本の中
間輪郭線を抽出する工程と、(h)前記N本の中間輪郭
線にゆらぎを付加する工程と、を備えることが好まし
い。In the above first invention, further, (g)
It is preferable to include a step of extracting N intermediate contour lines existing at the boundaries of the (N + 1) divided areas, and (h) adding a fluctuation to the N intermediate contour lines.
【0018】こうして、中間輪郭線のゆらぎの程度を、
元のAタイプの輪郭線やBタイプの輪郭線のゆらぎの程
度と調和させることによって、より自然な多階調画像を
得ることが可能である。Thus, the degree of fluctuation of the intermediate contour line is
It is possible to obtain a more natural multi-gradation image by matching the degree of fluctuation of the original A type contour line and the original B type contour line.
【0019】上記第1の発明において、さらに、前記工
程(c)の前に、前記多階調画像領域を拡大する工程を
備えることが好ましい。In the first invention, it is preferable that a step of enlarging the multi-tone image area is further provided before the step (c).
【0020】こうすれば、対象領域が比較的小さな場合
にも、その階調を滑らかに補間することができる。In this way, even if the target area is relatively small, the gradation can be smoothly interpolated.
【0021】第2の発明は、多階調画像の階調ジャンプ
を補間する装置であって、多階調画像を表わす多階調画
像データの階調を変換することによって、階調変換画像
データを生成する階調変換手段と、前記階調変換画像デ
ータに含まれる画像レベルの中で、中間に階調ジャンプ
が存在する第1と第2の画像レベルを特定する補間階調
検出手段と、前記階調変換画像データを処理することに
よって、前記第1の画像レベルを有する領域と前記第1
の画像レベル未満の画像レベルを有する他の領域との境
界を示すAタイプの輪郭線を表わす第1の輪郭データを
求めるとともに、前記階調変換画像データを処理するこ
とによって、前記第1の画像レベルを有する領域と前記
第2の画像レベル以上の画像レベルを有する他の領域と
の境界を示すBタイプの輪郭線を表わす第2の輪郭デー
タを求める輪郭線検出手段と、前記第1と第2の輪郭デ
ータに基づいて前記AタイプとBタイプの輪郭線の相互
の包含関係を判断することによって、前記第1の画像レ
ベルを有する領域の中で前記第2の画像レベルを有する
画像領域に隣接する領域を階調補間の対象領域として検
出し、前記対象領域の輪郭を示す少なくとも1組の輪郭
線セットを前記AタイプとBタイプの輪郭線の中から抽
出する対象輪郭線抽出手段と、前記対象領域内におい
て、前記1組の輪郭線セットの中の前記Aタイプの輪郭
線と前記Bタイプの輪郭線との間を(N+1)個(Nは
1以上の整数)の区分領域に区分し、前記(N+1)個
の区分領域の中で前記第2の画像レベルの画像領域に近
いN個の区分領域に前記N個の中間画像レベルを順次割
り当てる補間手段と、を備える。A second invention is an apparatus for interpolating a gradation jump of a multi-gradation image, wherein the gradation conversion image data is converted by converting the gradation of the multi-gradation image data representing the multi-gradation image. And a gradation conversion unit that specifies first and second image levels having gradation jumps in the middle among the image levels included in the gradation conversion image data. By processing the gradation-converted image data, the region having the first image level and the first
The first converted image data by processing the gradation-converted image data while obtaining first outline data representing an A-type outline indicating a boundary with another region having an image level lower than the image level of Contour line detecting means for obtaining second contour data representing a B-type contour line indicating a boundary between a region having a level and another region having an image level equal to or higher than the second image level; By determining the mutual inclusion relationship between the A-type and B-type contour lines based on the second contour data, an image area having the second image level is determined in the area having the first image level. A target contour line that detects an adjacent region as a target region for gradation interpolation and extracts at least one set of contour lines indicating the contour of the target region from the A-type and B-type contour lines (N + 1) (N is an integer of 1 or more) between the output means and the outline of the type A and the outline of the type B in the set of outlines in the target area. An interpolating unit that divides the image into the divided areas and sequentially assigns the N intermediate image levels to the N divided areas near the image area of the second image level among the (N + 1) divided areas. .
【0022】第3の発明は、多階調画像の階調ジャンプ
を補間するためのコンピュータプログラムを記録したコ
ンピュータ読み取り可能な記録媒体であって、多階調画
像を表わす多階調画像データの階調を変換することによ
って、階調変換画像データを生成する階調変換機能と、
前記階調変換画像データに含まれる画像レベルの中で、
中間に階調ジャンプが存在する第1と第2の画像レベル
を特定する補間階調検出機能と、前記階調変換画像デー
タを処理することによって、前記第1の画像レベルを有
する領域と前記第1の画像レベル未満の画像レベルを有
する他の領域との境界を示すAタイプの輪郭線を表わす
第1の輪郭データを求めるとともに、前記階調変換画像
データを処理することによって、前記第1の画像レベル
を有する領域と前記第2の画像レベル以上の画像レベル
を有する他の領域との境界を示すBタイプの輪郭線を表
わす第2の輪郭データを求める輪郭線検出機能と、前記
第1と第2の輪郭データに基づいて前記AタイプとBタ
イプの輪郭線の相互の包含関係を判断することによっ
て、前記第1の画像レベルを有する領域の中で前記第2
の画像レベルを有する画像領域に隣接する領域を階調補
間の対象領域として検出し、前記対象領域の輪郭を示す
少なくとも1組の輪郭線セットを前記AタイプとBタイ
プの輪郭線の中から抽出する対象輪郭線抽出機能と、前
記対象領域内において、前記1組の輪郭線セットの中の
前記Aタイプの輪郭線と前記Bタイプの輪郭線との間を
(N+1)個(Nは1以上の整数)の区分領域に区分
し、前記(N+1)個の区分領域の中で前記第2の画像
レベルの画像領域に近いN個の区分領域に前記N個の中
間画像レベルを順次割り当てる補間機能と、をコンピュ
ータに実現させるためのコンピュータプログラムを記録
したコンピュータ読み取り可能な記録媒体である。A third aspect of the present invention is a computer-readable recording medium in which a computer program for interpolating a gradation jump of a multi-gradation image is recorded, which is a floor of multi-gradation image data representing a multi-gradation image. A tone conversion function that generates tone-converted image data by converting the tone,
Among the image levels included in the gradation conversion image data,
An interpolation gradation detection function for specifying first and second image levels in which a gradation jump exists in the middle, and a region having the first image level and the first and second image levels by processing the gradation conversion image data. The first contour data representing an A-type contour line indicating a boundary with another area having an image level less than one image level is obtained, and the gradation conversion image data is processed to obtain the first contour data. A contour line detecting function for obtaining second contour data representing a B-type contour line indicating a boundary between an area having an image level and another area having an image level higher than the second image level; By determining the mutual inclusion relation between the A-type and B-type contour lines based on the second contour data, the second contour is determined in the area having the first image level.
A region adjacent to the image region having the image level of 10 is detected as a target region for gradation interpolation, and at least one set of contour lines indicating the contour of the target region is extracted from the A and B type contour lines. (N + 1) (N is 1 or more) between the A-type contour line and the B-type contour line in the one set of contour line sets in the target area. An interpolating function for sequentially assigning the N intermediate image levels to N segmental regions near the image region of the second image level among the (N + 1) segmental regions. And a computer-readable recording medium in which a computer program for causing a computer to execute is recorded.
【0023】第2および第3の発明によっても、第1の
発明と同様に、階調補間の対象とする第1と第2の画像
レベルを決定することができる、また、画素データの平
均化処理を行なうことなく対象領域の階調を補間するこ
とができる。According to the second and third inventions, as in the first invention, the first and second image levels to be subjected to gradation interpolation can be determined, and the pixel data can be averaged. It is possible to interpolate the gradation of the target area without performing processing.
【0024】[0024]
【発明の他の態様】この発明は、以下のような他の態様
も含んでいる。第1の態様は、コンピュータシステムの
マイクロプロセッサによって実行されることによって、
上記の発明の各工程または各手段を実現するコンピュー
タプログラムを通信経路を介して供給するプログラム供
給装置である。Other Embodiments of the Invention The present invention also includes the following other embodiments. The first aspect is by being executed by a microprocessor of a computer system,
It is a program supply device for supplying a computer program for realizing each step or each means of the above invention through a communication path.
【0025】[0025]
A.階調補間方法の概要:次に、本発明の実施の形態を
実施例に基づき説明する。図1は、この発明による階調
補間方法の概要を示す説明図である。図1(a)は、多
階調画像と、その画像レベルの変化を示している。この
多階調画像は、3つの領域R1〜R3に区分されてい
る。この例では、図示の便宜上、各領域の輪郭が矩形で
表わされているが、一般の画像では、輪郭は任意の形状
を有していてもよい。輪郭が矩形以外の任意の形状を有
する場合にも、以下の処理は同じである。A. Outline of gradation interpolation method: Next, an embodiment of the present invention will be described based on examples. FIG. 1 is an explanatory diagram showing an outline of a gradation interpolation method according to the present invention. FIG. 1A shows a multi-tone image and changes in the image level thereof. This multi-tone image is divided into three regions R1 to R3. In this example, the outline of each region is represented by a rectangle for convenience of illustration, but the outline may have an arbitrary shape in a general image. The following processing is the same when the contour has any shape other than a rectangle.
【0026】図1(a)の下部に示すように、領域R2
はAレベル、領域R3はBレベルの領域である。Aレベ
ルとBレベルの間には、階調ジャンプが存在する。この
実施例では、まず、図1(a)のような多階調画像か
ら、図1(b)のような各領域R1〜R3の輪郭を表わ
す輪郭線L1〜L3を検出する。そして、これらの輪郭
線L1〜L3の中から、Aレベルを有し、かつ、Bレベ
ルの領域に隣接する領域R2を階調補間の対象領域とし
て認識し、この対象領域R2と他の領域との境界を示す
輪郭線セット{L2,L3}を抽出する。輪郭線L2
は、Aレベルの領域R2と、Aレベル未満の画像レベル
の領域R1との境界を示す輪郭線(「Aタイプの輪郭
線」と呼ぶ)である。また、輪郭線L3は、Aレベルの
領域R2と、Bレベル以上の画像レベルの領域R3との
境界を示す輪郭線(「Bタイプの輪郭線」と呼ぶ)であ
る。このような2つのタイプの輪郭線で囲まれた領域R
2が、階調レベル(画像レベル)の補間の対象となる対
象領域となる。As shown in the lower part of FIG. 1A, the region R2
Is an A level region, and the region R3 is a B level region. There is a gradation jump between the A level and the B level. In this embodiment, first, the contour lines L1 to L3 representing the contours of the regions R1 to R3 as shown in FIG. 1B are detected from the multi-tone image as shown in FIG. Then, of these contour lines L1 to L3, a region R2 having an A level and adjacent to a B level region is recognized as a target region for gradation interpolation, and this target region R2 and other regions are recognized. The contour line set {L2, L3} indicating the boundary of is extracted. Contour line L2
Is a contour line (referred to as “A type contour line”) indicating a boundary between the area R2 of A level and the area R1 of image level lower than A level. Further, the contour line L3 is a contour line (referred to as “B type contour line”) indicating a boundary between the area R2 at the A level and the area R3 at the image level higher than the B level. Region R surrounded by two types of contour lines
2 is the target area that is the target of interpolation of the gradation level (image level).
【0027】この対象領域R2の内部において、Aタイ
プの輪郭線L2からの最短距離と、Bタイプの輪郭線L
3からの最短距離が等しい位置に、中間輪郭線Lint が
形成されるように、対象領域R2が2つの区分領域R2
a,R2bに区分される(図1(b))。なお、後で詳
述するように、この実施例では、中間輪郭線Lint は実
際には形成されず、各区分領域R2a,R2b内の各画
素の画像レベルを決定することによって、仮想的な中間
輪郭線Lint が形成されるだけである。Inside the target area R2, the shortest distance from the A type contour L2 and the B type contour L
The target region R2 is divided into two divided regions R2 so that the intermediate contour line Lint is formed at a position where the shortest distance from 3 is equal.
It is divided into a and R2b (FIG. 1 (b)). As will be described in detail later, in this embodiment, the intermediate contour line Lint is not actually formed, and the virtual intermediate point Lint is determined by determining the image level of each pixel in each divided area R2a, R2b. Only the contour Lint is formed.
【0028】これらの2つの区分領域R2a,R2bの
中で、Bレベルの領域R3に近い側の区分領域R2bの
各画素に対しては、図1(c)に示すように、Aレベル
とBレベルの中間的な画像レベル(Mレベル)が割り当
てられる。図1(a)の元の多階調画像と比較すれば解
るように、図1(c)の多階調画像では、階調ジャンプ
が緩和されている。図1に示す処理は、画素データ(画
像データ)の平均化処理を含まないので、画像をボカス
ことなく多階調画像の階調ジャンプを解消することがで
きる。Of the two divided areas R2a and R2b, the pixels of the divided area R2b on the side closer to the B level area R3 are, as shown in FIG. An intermediate image level (M level) of the levels is assigned. As can be seen by comparing with the original multi-tone image of FIG. 1A, the tone jump is alleviated in the multi-tone image of FIG. 1C. Since the processing shown in FIG. 1 does not include the averaging processing of pixel data (image data), it is possible to eliminate the gradation jump of a multi-gradation image without blurring the image.
【0029】ところで、一般の多階調画像では、Aレベ
ルを有する対象領域R2を囲むような輪郭線セット{L
2,L3}を抽出することは必ずしも容易ではない。そ
こで、この実施例では、後述するように、多階調画像の
複数の輪郭線を複数のタイプ(A+,A−,B+,B−
の各タイプ)に分類し、かつ、各輪郭線の包含関係を判
断することによって、対象領域と他の画像領域との境界
を表わす少なくとも1組の輪郭線セットを抽出してい
る。そして、各組の輪郭線セットで囲まれる対象領域に
対して、図1に示すような処理を行なうことによって、
階調の補間を行なっている。By the way, in a general multi-gradation image, a contour line set {L that surrounds the target region R2 having the A level is set.
2, L3} is not always easy to extract. Therefore, in this embodiment, as will be described later, a plurality of contour lines of a multi-tone image are provided in a plurality of types (A +, A-, B +, B-).
Of each type) and by determining the inclusion relation of each contour line, at least one contour line set representing the boundary between the target region and another image region is extracted. Then, by performing the processing as shown in FIG. 1 on the target area surrounded by each set of contour lines,
The gradation is interpolated.
【0030】図2は、複数階調の補間方法の概要を示す
説明図である。図2(a)では、領域R2の画像レベル
(Aレベル)と領域R3の画像レベル(Bレベル)との
中間に、複数(具体的には2つ)の階調のジャンプがあ
る。すなわち、B=A+3である。そこで、図2(b)
の工程では、Aレベルである対象領域R2を取り囲む2
つの輪郭線L2,L3からの最短距離の比が、1:2お
よび2:1の位置に中間輪郭線Lint1,Lint2が生成さ
れるように、対象領域R2を3つの区分領域R2a〜R
2cに区分する。図2(c)に示されているように、B
レベルの領域R3に近い側の区分領域R2b,R2c
に、中間的な画像レベルM1,M2がそれぞれ割り当て
られる。FIG. 2 is an explanatory diagram showing an outline of a method of interpolating a plurality of gradations. In FIG. 2A, there are a plurality of (specifically two) gradation jumps between the image level (A level) of the region R2 and the image level (B level) of the region R3. That is, B = A + 3. Therefore, FIG. 2 (b)
In the process of 2, the target region R2 which is the A level is surrounded by 2
The target region R2 is divided into three divided regions R2a to R2 so that the intermediate contour lines Lint1 and Lint2 are generated at the positions where the shortest distances from the two contour lines L2 and L3 are 1: 2 and 2: 1.
It is classified into 2c. As shown in FIG. 2 (c), B
Areas R2b and R2c on the side closer to the level area R3
To the intermediate image levels M1 and M2, respectively.
【0031】なお、一般に、AレベルとBレベルの間に
N個(Nは1以上の整数)の中間画像レベルM1 〜MN
を補間する場合には、Aレベルである対象領域R2を囲
む輪郭線セット{L2,L3}の中で、Aタイプの輪郭
線L2への最短距離とBタイプの輪郭線L3への最短距
離がm対n(m,nは1以上N以下の整数で、m,nの
N個の組み合わせはm+n=N+1を満足する)となる
位置にN本の中間輪郭線を設定することができる。この
とき、N本の中間輪郭線により区切られた(N+1)個
の区分領域の内で、Bレベルの領域に近い側からN個の
区分領域に、N個の中間画像レベルを大きさ順に割り当
てる。こうすれば、図2(c)に示すように、階調ジャ
ンプが解消された滑らかな画像を得ることができる。[0031] In general, N pieces between A level and B level (N is an integer of 1 or more) intermediate image level M 1 ~M N of
Is interpolated, the shortest distance to the A type contour line L2 and the shortest distance to the B type contour line L3 are included in the contour line set {L2, L3} that surrounds the target region R2 at the A level. It is possible to set N intermediate contour lines at a position of m: n (m, n is an integer of 1 or more and N or less, and N combinations of m and n satisfy m + n = N + 1). At this time, N intermediate image levels are assigned in order of size to N divided areas from the side closer to the B level area among (N + 1) divided areas divided by the N intermediate contour lines. . By doing so, as shown in FIG. 2C, it is possible to obtain a smooth image in which the gradation jump is eliminated.
【0032】以下では、図1の例のように、対象領域を
2つの区分領域に区分する場合について説明する。しか
し、対象領域を(N+1)個の区分領域に区分する場合
に以下の説明を拡張することは容易であろう。Hereinafter, a case where the target area is divided into two divided areas as in the example of FIG. 1 will be described. However, it is easy to extend the following description when the target area is divided into (N + 1) divided areas.
【0033】なお、以下の説明では、Aレベルを示すデ
ータを「アンダマーカMd」と呼び、また、Bレベルを
示すデータを「アッパーマーカMu」と呼ぶ。アンダマ
ーカMdは、階調補間の対象となる2つの画像レベル
(AレベルおよびBレベル)の下側のレベルAを示すマ
ーカであり、アッパーマーカMuは上側のレベルBを示
すマーカであると言うことができる。In the following description, the data indicating the A level is called "undermarker Md", and the data indicating the B level is called "upper marker Mu". The undermarker Md is a marker indicating the lower level A of the two image levels (A level and B level) to be subjected to the gradation interpolation, and the upper marker Mu is a marker indicating the upper level B. You can
【0034】B.装置の構成:図3は、この発明の実施
例を適用して多階調画像の階調補間を行なうためのコン
ピュータシステムを示すブロック図である。このコンピ
ュータシステムは、CPU10と、バスライン12とを
備えている。バスライン12には、ROM14と、RA
M16とが接続されており、また、入出力インタフェイ
ス40を介してキーボード30と、マウス32と、デジ
タイザ34と、カラーCRT36と、磁気ディスク38
とが接続されている。B. Device Configuration: FIG. 3 is a block diagram showing a computer system for performing tone interpolation of a multi-tone image by applying the embodiment of the present invention. This computer system includes a CPU 10 and a bus line 12. The bus line 12 has a ROM 14 and an RA
M16 is connected, and a keyboard 30, a mouse 32, a digitizer 34, a color CRT 36, and a magnetic disk 38 are connected via an input / output interface 40.
And are connected.
【0035】RAM16には、階調変換手段100と、
補間階調検出手段102と、対象領域検出手段42と、
階調補間手段44と、ゆらぎ検出手段46と、ゆらぎ付
加手段48とを実現するアプリケーションプログラムが
格納されている。In the RAM 16, the gradation converting means 100 and
Interpolation gradation detection means 102, target area detection means 42,
An application program for implementing the gradation interpolating means 44, the fluctuation detecting means 46, and the fluctuation adding means 48 is stored.
【0036】図4は、手段100,102,42,44
の内部構成を示す機能ブロック図である。階調変換手段
100は、画像入力部50から多階調画像データを受け
取り、この多階調画像データを階調変換して、階調変換
画像データを生成する。補間階調検出手段102は、階
調変換画像データに含まれる階調ジャンプと、各階調ジ
ャンプの下側および上側の画像レベルを特定する。対象
領域検出手段42は、階調補間の対象領域を検出する。
具体的には、階調ジャンプを含む対象領域を取り囲む輪
郭線セットを抽出する。階調補間手段44は、各対象領
域について階調補間を実行する。階調補間された多階調
画像は、画像出力部52から出力される。画像入力部5
0としては、例えば読取りスキャナを使用できる。ま
た、画像出力部52としては、カラーCRT36やカラ
ープリンタ等を使用できる。また入出力を磁気ディスク
38とすることもできる。FIG. 4 shows means 100, 102, 42, 44.
3 is a functional block diagram showing the internal configuration of FIG. The gradation conversion unit 100 receives the multi-gradation image data from the image input unit 50, converts the gradation of the multi-gradation image data, and generates the gradation conversion image data. The interpolation gradation detection unit 102 specifies the gradation jump included in the gradation conversion image data and the image levels below and above each gradation jump. The target area detection unit 42 detects a target area for gradation interpolation.
Specifically, a contour line set surrounding the target area including the gradation jump is extracted. The gradation interpolation unit 44 executes gradation interpolation for each target area. The gradation-interpolated multi-gradation image is output from the image output unit 52. Image input unit 5
As 0, for example, a reading scanner can be used. Further, as the image output unit 52, a color CRT 36, a color printer or the like can be used. Further, the input / output may be the magnetic disk 38.
【0037】階調変換手段100は、ヒストグラム変更
部112と、ヒストグラム114と、ルックアップテー
ブル116とを含んでいる。補間階調検出手段102
は、欠落階調検出部120と、階調参照テーブル122
と、アッパーマーカ124と、アンダーマーカ126と
を含んでいる。対象領域検出手段42は、階調輪郭線検
出部60と、階調輪郭線データメモリ62と、対象輪郭
線抽出部64と、輪郭線ループバッファ66とを含んで
いる。また、階調補間手段44は、距離計算部70と、
画素値演算部72とを含んでいる。これらの各部の機能
については後述する。The tone converting means 100 includes a histogram changing section 112, a histogram 114, and a lookup table 116. Interpolation gradation detection means 102
Is the missing gradation detection unit 120 and the gradation reference table 122.
And an upper marker 124 and an under marker 126. The target area detection unit 42 includes a gradation contour line detection unit 60, a gradation contour line data memory 62, a target contour line extraction unit 64, and a contour line loop buffer 66. Further, the gradation interpolating means 44 includes a distance calculating section 70,
And a pixel value calculation unit 72. Functions of these units will be described later.
【0038】なお、上記の各手段や各部の機能を実現す
るソフトウェアプログラム(アプリケーションプログラ
ム)は、フロッピディスクやCD−ROM等の携帯型の
記憶媒体(可搬型の記憶媒体)からコンピュータのメイ
ンメモリまたは外部記憶装置に転送される。あるいは、
通信経路を介してプログラム供給装置からコンピュータ
に供給するようにしてもよい。The software program (application program) for realizing the functions of the above-mentioned means and units is transferred from a portable storage medium (portable storage medium) such as a floppy disk or a CD-ROM to the main memory of the computer or It is transferred to an external storage device. Alternatively,
You may make it supply from a program supply apparatus to a computer via a communication path.
【0039】この明細書において、コンピュータとは、
ハードウェア装置とオペレーションシステムとを含む概
念であり、オペレーションシステムの制御の下で動作す
るハードウェア装置を意味している。また、オペレーシ
ョンシステムが不要でアプリケーションプログラム単独
でハードウェア装置を動作させるような場合には、その
ハードウェア装置自体がコンピュータに相当する。ハー
ドウェア装置は、CPU等のマイクロプロセッサと、記
録媒体に記録されたコンピュータプログラムを読み取る
ための手段とを少なくとも備えている。コンピュータプ
ログラムは、このようなコンピュータに、上述の各手段
の機能を実現させるプログラムコードを含んでいる。な
お、上述の機能の一部は、アプリケーションプログラム
でなく、オペレーションシステムによって実現されてい
ても良い。In this specification, the computer means
The concept includes a hardware device and an operating system, and means a hardware device that operates under the control of the operating system. Further, when the operating system is unnecessary and the hardware device is operated by the application program alone, the hardware device itself corresponds to the computer. The hardware device includes at least a microprocessor such as a CPU and a unit for reading a computer program recorded in a recording medium. The computer program includes a program code that causes such a computer to realize the functions of the above-described means. Note that some of the functions described above may be realized by the operating system instead of the application program.
【0040】なお、この発明における「記録媒体」とし
ては、フレキシブルディスクやCD−ROM、光磁気デ
ィスク、ICカード、ROMカートリッジ、パンチカー
ド、バーコードなどの符号が印刷された印刷物、コンピ
ュータの内部記憶装置(RAMやROMなどのメモリ)
および外部記憶装置等の、コンピュータが読取り可能な
種々の媒体を利用できる。The "recording medium" in the present invention includes a flexible disk, a CD-ROM, a magneto-optical disk, an IC card, a ROM cartridge, a punched card, a printed matter on which codes such as a bar code are printed, and an internal storage of a computer. Device (memory such as RAM and ROM)
Also, various computer-readable media such as external storage devices can be used.
【0041】C.実施例の処理内容:図5は、実施例に
おける処理手順を示すフローチャートである。ステップ
T1において、画像入力部50が多階調画像データの入
力処理を行ない、ステップT2では、階調変換手段10
0(図4)が階調変換処理を行なう。C. Processing contents of the embodiment: FIG. 5 is a flowchart showing a processing procedure in the embodiment. In step T1, the image input unit 50 performs input processing of multi-tone image data, and in step T2, the tone converting means 10 is executed.
0 (FIG. 4) performs gradation conversion processing.
【0042】図6は、階調変換処理の一種としてのヒス
トグラムを用いたコントラスト補正と、その後の階調補
間の内容を示す説明図である。図6(a)は、元の多階
調画像データのヒストグラムを示している。このヒスト
グラムは、階調変換手段100内のヒストグラム114
として記憶されているものである。ユーザは、図6
(a)に示す原多階調画像データのヒストグラム上で、
階調変換の対象範囲の最暗点VlsをVldに変換し、
最明点VhsをVhdに変換することを指定する。階調
変換手段100は、この指定に応じて、多階調画像デー
タを階調変換するためのルックアップテーブル116を
作成する。なお、ルックアップテーブル116によって
表わされる階調変換特性は、例えば次の数式2によって
与えられる。FIG. 6 is an explanatory diagram showing the contents of contrast correction using a histogram as a kind of gradation conversion processing and the subsequent gradation interpolation. FIG. 6A shows a histogram of original multi-tone image data. This histogram is a histogram 114 in the gradation converting means 100.
Is stored as. The user is shown in FIG.
On the histogram of the original multi-tone image data shown in (a),
Convert the darkest point Vls in the target range of gradation conversion to Vld,
Specifies that the brightest point Vhs be converted to Vhd. The gradation conversion unit 100 creates the lookup table 116 for gradation conversion of the multi-gradation image data according to this designation. The gradation conversion characteristic represented by the look-up table 116 is given by the following mathematical expression 2, for example.
【0043】[0043]
【数2】 [Equation 2]
【0044】ここで、Vsは変換前の画素値、Vdは変
換後の画素値、Vhs,Vlsは変換前の最明点と最暗
点、Vhd,Vldは変換後の最明点と最暗点である。Here, Vs is the pixel value before conversion, Vd is the pixel value after conversion, Vhs and Vls are the brightest and darkest points before conversion, and Vhd and Vld are the brightest and darkest points after conversion. It is a point.
【0045】数式2は、最明点と最暗点のあいだを直線
的に補間する変換特性を示している。もちろん、直線補
間以外の任意の変換特性をルックアップテーブル116
によって表わすことが可能である。なお、階調変換を行
なう手段としては、ルックアップテーブル以外のものを
利用することも可能である。例えば、階調変換特性を表
わす関数をルックアップテーブルの代わりに使用しても
よい。但し、ルックアップテーブルを用いると、階調変
換を高速に行なうことができるという利点がある。Equation 2 shows a conversion characteristic for linearly interpolating between the brightest point and the darkest point. Of course, any conversion characteristic other than linear interpolation can be obtained by using the lookup table 116.
Can be represented by It should be noted that a means other than the look-up table can be used as the means for performing the gradation conversion. For example, a function representing the gradation conversion characteristic may be used instead of the look-up table. However, the use of the lookup table has an advantage that gradation conversion can be performed at high speed.
【0046】図6(a)に示す原多階調画像データに対
してこのような階調変換を行なうと、図6(b)に示す
ような階調変換画像データが得られる。この階調変換画
像データには、階調ジャンプが存在する。そこで、図5
に示す手段102,42,44は、階調補間を行なっ
て、図6(c)に示すように階調が補間された多階調画
像データを作成する。When such gradation conversion is performed on the original multi-gradation image data shown in FIG. 6A, gradation conversion image data as shown in FIG. 6B is obtained. There is a gradation jump in this gradation conversion image data. Therefore, FIG.
The means 102, 42, and 44 shown in FIG. 6 perform gradation interpolation to create multi-gradation image data in which gradation is interpolated as shown in FIG.
【0047】図7は、ヒストグラムを用いたコントラス
ト補正の他の例を示す説明図である。この例では、図7
(a)に示す原多階調画像データのヒストグラムの一部
分において、コントラスト補正の対象範囲の最明点Vh
sと最暗点Vlsを指定している。従って、この最明点
Vhsと最暗点Vlsの間の画素値Vsのみがルックア
ップテーブルによって変換される。この時、図7(c)
に示すように、階調補間は、階調変換後の最明点Vhd
と最暗点Vlsの間についてのみ実行するようにしても
よい。FIG. 7 is an explanatory diagram showing another example of contrast correction using a histogram. In this example, FIG.
In a part of the histogram of the original multi-gradation image data shown in (a), the brightest point Vh in the target range of contrast correction
s and the darkest point Vls are designated. Therefore, only the pixel value Vs between the brightest point Vhs and the darkest point Vls is converted by the look-up table. At this time, FIG. 7 (c)
As shown in, the gradation interpolation is performed at the brightest point Vhd after gradation conversion.
May be executed only between the darkest point and the darkest point Vls.
【0048】図4に示す階調変換手段100は、上述の
ようなコントラスト補正の他に、ヒストグラムの平滑化
と呼ばれる処理を行なうことができる。図8は、ヒスト
グラム変更部112(図4)によって行なわれるヒスト
グラムの平滑化処理の結果と、その後の階調補間の内容
を示す説明図である。ヒストグラムの平滑化処理とは、
各画像レベルにおける画素値の割当てを予め決定してお
き、この割当てに従って各画素に画素値を割り当ててい
く処理である。割当ての方法はいくつか考えられるが、
例えば上(あるいは下)の濃度から順に画素をうめてゆ
き、割当て数をオーバーするときは、次の濃度に繰り越
すか、次の濃度の割当て数を借り入れする方法や、オー
バーする画素をランダムに分割して割当ての帳尻を合わ
せる方法がある。帳尻を合わせない場合には階調の飛び
が生じる。図8(b)は、平滑化処理の結果として得ら
れた階調変換画像データを示している。この階調変換画
像データにも階調ジャンプが存在するので、図6(c)
に示すように階調を補間する。なお、割当て数が同じ変
換をヒストグラムの平均化と呼ぶこともある。The gradation converting means 100 shown in FIG. 4 can perform processing called histogram smoothing in addition to the above-described contrast correction. FIG. 8 is an explanatory diagram showing the result of the histogram smoothing process performed by the histogram changing unit 112 (FIG. 4) and the contents of the subsequent gradation interpolation. What is histogram smoothing?
This is a process in which the allocation of pixel values at each image level is determined in advance and the pixel values are allocated to each pixel according to this allocation. There are several possible allocation methods,
For example, when pixels are filled in order from the upper (or lower) density and the number of allocations is exceeded, the method is carried over to the next density or borrowing the number of allocations of the next density, or dividing the overlying pixels randomly. Then, there is a method of matching the book ends of the allocation. If the edges of the book are not aligned, gradation gradation will occur. FIG. 8B shows gradation-converted image data obtained as a result of the smoothing process. Since gradation jumps also exist in this gradation conversion image data, FIG.
The gradation is interpolated as shown in. The conversion with the same number of allocations may be called histogram averaging.
【0049】以下では、ルックアップテーブル116を
用いた階調補間によって得られた階調変換画像データの
階調ジャンプを補間する場合について説明する。但し、
階調変換処理として、ヒストグラム変更部112によっ
て行なわれるヒストグラムの平滑化処理を行なう場合に
ついても、ほぼ同様に階調補間を行なうことが可能であ
る。Hereinafter, a case will be described in which the gradation jump of the gradation conversion image data obtained by the gradation interpolation using the lookup table 116 is interpolated. However,
Even when the histogram smoothing process performed by the histogram changing unit 112 is performed as the tone conversion process, the tone interpolation can be performed in substantially the same manner.
【0050】図5のステップT3では、補間階調検出手
段102の初期化処理が行なわれる。この初期化処理で
は、アンダーマーカMdとアッパーマーカMuがそれぞ
れ0に初期化され、また、階調参照テーブル122の配
列table[]のすべての要素も0に初期化される。なお、
階調参照テーブル122は、そのアドレスが階調値を示
す一次元の配列である。In step T3 of FIG. 5, the initialization processing of the interpolation gradation detecting means 102 is performed. In this initialization processing, the under marker Md and the upper marker Mu are each initialized to 0, and all elements of the array table [] of the gradation reference table 122 are also initialized to 0. In addition,
The gradation reference table 122 is a one-dimensional array whose address indicates a gradation value.
【0051】図5のステップT4では、階調参照テーブ
ル122が作成される。図9は、階調参照テーブル12
2の作成処理の内容を示す説明図である。階調参照テー
ブル122の作成処理では、多階調画像データが取り得
るすべての画像レベル(8ビットデータの場合には0〜
255)をテストデータとしてルックアップテーブル1
16に入力する。そして、ルックアップテーブル116
から出力されたレベルの配列位置には、出力が得られた
ことを示すフラグ(図9では「* 」で示されている)が
階調参照テーブル122に登録される。「NULL」と書か
れている画像レベルは、ルックアップテーブル116か
らの出力が存在し得ない画像レベルである。従って、こ
の「NULL」が階調変換画像データ中の階調ジャンプ(欠
落階調)を示しており、その上下の画像レベルが階調補
間処理におけるAレベルおよびBレベルとして使用され
る。In step T4 of FIG. 5, the gradation reference table 122 is created. FIG. 9 shows the gradation reference table 12
It is explanatory drawing which shows the content of the production process of 2. In the process of creating the gradation reference table 122, all possible image levels of the multi-gradation image data (0 to 0 for 8-bit data)
255) as test data, lookup table 1
Enter in 16. Then, the lookup table 116
A flag (indicated by "*" in FIG. 9) indicating that the output is obtained is registered in the gradation reference table 122 at the array position of the level output from the. The image level described as "NULL" is an image level where the output from the lookup table 116 cannot exist. Therefore, this “NULL” indicates a gradation jump (missing gradation) in the gradation conversion image data, and the image levels above and below that are used as the A level and the B level in the gradation interpolation processing.
【0052】なお、上述した階調参照テーブル122の
作成処理の内容から理解できるように、この階調参照テ
ーブル122は、本発明における全レベル変換データに
相当する。As can be understood from the contents of the processing for creating the gradation reference table 122 described above, the gradation reference table 122 corresponds to all level conversion data in the present invention.
【0053】図5のステップT6〜T10は、欠落階調
検出部120が、階調参照テーブル122に存在する階
調ジャンプを検出し、その階調ジャンプについてアンダ
ーマーカMdとアッパーマーカMuとを特定する処理手
順を示している。まず、ステップT6では、アンダーマ
ーカMdで示される位置の階調参照テーブル122の内
容が「NULL」でなく、かつ、アンダーマーカMdの次の
位置の内容が「NULL」であるか否かが判断される。この
判断は、アンダーマーカMdがAレベル(階調ジャンプ
の下側レベル)を示すように、アンダーマーカMdの値
を決定するための判断である。図9からも解るように、
階調ジャンプ「NULL」のすぐ下側の画像レベルにはフラ
グ「* 」が登録されており、その画像レベルの上側にあ
る欠落階調のレベルの配列要素は「NULL」となっている
はずである。従って、ステップT6の判断がイエスにな
る時には、そのアンダーマーカMdのレベルが階調ジャ
ンプのすぐ下側の画像レベル(Aレベル)を示すことに
なる。ステップT6の判断がノーの場合には、ステップ
T7においてアンダーマーカMdとアッパーマーカMu
をそれぞれ1つインクリメントして、ステップT6を再
度実行する。一方、ステップT6の判断がイエスの場合
には、次のステップT8以降の処理が実行される。図9
の例では、アンダーマーカMdが2の時に、ステップT
6の判断がイエスとなり、ステップT8に移行する。In steps T6 to T10 of FIG. 5, the missing gradation detection unit 120 detects a gradation jump existing in the gradation reference table 122 and specifies the under marker Md and the upper marker Mu for the gradation jump. The processing procedure to be performed is shown. First, in step T6, it is determined whether the content of the gradation reference table 122 at the position indicated by the undermarker Md is not "NULL" and the content at the position following the undermarker Md is "NULL". To be done. This determination is a determination for determining the value of the undermarker Md so that the undermarker Md indicates the A level (the lower level of the gradation jump). As you can see from Figure 9,
The flag "*" is registered in the image level immediately below the gradation jump "NULL", and the array element of the missing gradation level above that image level should be "NULL". is there. Therefore, when the determination in step T6 is YES, the level of the undermarker Md indicates the image level (A level) immediately below the gradation jump. If the determination in step T6 is no, in step T7 the under marker Md and the upper marker Mu are
Is incremented by 1 and step T6 is executed again. On the other hand, if the determination in step T6 is yes, the processing in step T8 and subsequent steps is executed. Figure 9
In this example, when the undermarker Md is 2, step T
The determination result in 6 is YES, and the process proceeds to step T8.
【0054】図5のステップT8では、アッパーマーカ
Muが1つインクリメントされる。ステップT9では、
階調参照テーブル122のアッパーマーカMuの位置の
内容が「NULL」でなく、かつ、アッパーマーカMuの1
つ手前の位置の内容が「NULL」であるか否かが判断され
る。この判断は、アッパーマーカMuがBレベル(階調
ジャンプの上側レベル)を示すように、アッパーマーカ
Muの値を決定するための判断である。図9からも解る
ように、階調ジャンプ「NULL」のすぐ上側の画像レベル
にはフラグ「* 」が登録されており、その画像レベルの
下側にある欠落階調のレベルの登録内容は「NULL」とな
っているはずである。従って、ステップT9の判断がイ
エスになる時には、そのアッパーマーカMuのレベルが
階調ジャンプのすぐ上側の画像レベル(Bレベル)を示
すことになる。ステップT9の判断がノーの場合には、
ステップT10において、アッパーマーカMuが最大値
Max(画像レベルが取り得る最大値)未満であるか否
かが判断される。アッパーマーカMuが最大値Max未
満の場合にはステップT8に戻ってアッパーマーカMu
が1つインクリメントされる。一方、アッパーマーカM
uが最大値Max以上の場合には、すべての階調補間処
理が終了したので、階調補間後の画像データが画像出力
部52(図4)に出力される。ステップT9の判断がイ
エスの場合には、現在のアッパーマーカMuの値が採用
される。次のステップT11では、後で詳述する階調補
間処理が実行される。この階調補間処理には、ステップ
T6の判断によって特定されたアンダーマーカMdの値
と、ステップT9の判断によって特定されたアッパーマ
ーカMuの値とが使用される。At step T8 in FIG. 5, the upper marker Mu is incremented by one. In step T9,
The content of the position of the upper marker Mu in the gradation reference table 122 is not "NULL" and the upper marker Mu is 1
It is determined whether or not the content at the position before this is "NULL". This determination is a determination for determining the value of the upper marker Mu so that the upper marker Mu indicates the B level (upper level of the gradation jump). As can be seen from FIG. 9, the flag “*” is registered in the image level immediately above the gradation jump “NULL”, and the registered content of the missing gradation level below the image level is “ It should be "Null". Therefore, when the determination in step T9 is YES, the level of the upper marker Mu indicates the image level (B level) immediately above the gradation jump. If the determination in step T9 is no,
In step T10, it is determined whether or not the upper marker Mu is less than the maximum value Max (the maximum value that the image level can take). If the upper marker Mu is less than the maximum value Max, the process returns to step T8 and the upper marker Mu is returned.
Is incremented by 1. On the other hand, the upper marker M
If u is greater than or equal to the maximum value Max, all gradation interpolation processing has been completed, so the image data after gradation interpolation is output to the image output unit 52 (FIG. 4). If the determination in step T9 is yes, the current value of the upper marker Mu is adopted. In the next step T11, gradation interpolation processing, which will be described in detail later, is executed. In this gradation interpolation process, the value of the under marker Md specified by the judgment of step T6 and the value of the upper marker Mu specified by the judgment of step T9 are used.
【0055】図9に示す例では、図5の処理手順に従っ
て、Md=2,Mu=4において第1回目の階調補間処
理が行なわれる。この階調補間処理が終了すると、図5
のステップT12において、アンダーマーカMdが、ア
ッパーマーカMuの値に等しく設定される。そして、ス
テップT6に戻り、次の階調ジャンプの検出と、階調補
間処理が行なわれる。図9の例では、Md=4,Mu=
6において第2回目の階調補間処理が行なわれる。この
ように、図5の手順に従えば、階調参照テーブル122
に存在する各階調ジャンプに対してそれぞれ1組のマー
カ{Md,Mu}が決定され、これらのマーカを用いて
階調補間が実行される。In the example shown in FIG. 9, the first gradation interpolation processing is performed at Md = 2 and Mu = 4 according to the processing procedure of FIG. When this gradation interpolation process is completed,
In step T12, the undermarker Md is set equal to the value of the upper marker Mu. Then, returning to step T6, the detection of the next gradation jump and the gradation interpolation processing are performed. In the example of FIG. 9, Md = 4 and Mu =
In 6, the second gradation interpolation processing is performed. Thus, according to the procedure of FIG. 5, the gradation reference table 122
A set of markers {Md, Mu} is determined for each of the gradation jumps existing in 1), and gradation interpolation is executed using these markers.
【0056】D.階調補間処理の詳細:図10は、図5
のステップT11における階調補間の処理手順を示すフ
ローチャートである。ステップS1では、階調輪郭線検
出部60(図4)が、階調変換後の多階調画像データ
(階調変換画像データ)を処理することによって、多階
調画像に含まれる階調輪郭線を検出する。図11は、実
施例において処理対象となる多階調画像の全体と、ステ
ップS1において検出された階調輪郭線とを示す説明図
である。図11(b)に示す多階調画像は、6つの領域
R1〜R6に区分されている。この例では、図示の便宜
上、各領域の輪郭が矩形で表わされているが、各領域の
輪郭が任意の形状を有する場合にも、以下の処理は同じ
である。D. Details of gradation interpolation processing: FIG.
5 is a flowchart showing a processing procedure of gradation interpolation in step T11 of FIG. In step S1, the gradation contour line detection unit 60 (FIG. 4) processes the gradation-converted multi-gradation image data (gradation conversion image data), so that the gradation contours included in the multi-gradation image are processed. Detect lines. FIG. 11 is an explanatory diagram showing the entire multi-gradation image to be processed in the embodiment and the gradation contour lines detected in step S1. The multi-tone image shown in FIG. 11B is divided into six regions R1 to R6. In this example, the outline of each region is represented by a rectangle for convenience of illustration, but the following process is the same even when the outline of each region has an arbitrary shape.
【0057】図11(c)には、この多階調画像の中心
付近を通る線上における画像レベルの変化が示されてい
る。図11(b)においては、同じ画像レベルを有する
領域に同じ種類のハッチングが施されている。これから
理解できるように、領域R1,R4はAレベルを有して
おり、領域R3はBレベルを有している。Bレベルは、
Aレベルより2レベル高い画像レベルである。すなわ
ち、AレベルからBレベルまでに、1個の階調ジャンプ
がある。領域R2,R5は、Aレベル未満のレベルを有
しており、領域R6はCレベルを有している。Cレベル
は、Bレベルよりも高い画像レベルである。FIG. 11C shows the change in image level on a line passing through the vicinity of the center of this multi-tone image. In FIG. 11B, the same type of hatching is applied to regions having the same image level. As can be seen, the regions R1 and R4 have an A level, and the region R3 has a B level. B level is
The image level is two levels higher than the A level. That is, there is one gradation jump from the A level to the B level. The regions R2 and R5 have a level lower than the A level, and the region R6 has a C level. The C level is an image level higher than the B level.
【0058】なお、前述した図9に例示するように、A
レベルはアンダマーカMdによって示されており、ま
た、BレベルはアッパーマーカMuによって示されてい
る。As illustrated in FIG. 9 described above, A
The level is indicated by the undermarker Md, and the B level is indicated by the upper marker Mu.
【0059】図11(a)は、図10のステップS1に
おいて検出された階調輪郭線L1〜L6を示している。
図12は、多階調画像から階調輪郭線L1〜L6を検出
する手順を示す説明図である。まず、図12(a)に示
す多階調画像データをAレベルで2値化して、図12
(b−1)に示す2値化画像を得る。図12(b−1)
の2値化画像は、Aレベル以上の領域R1,R3,R
4,R6の和領域が1レベル、Aレベル未満の領域が0
レベルとなっている画像である。この2値化画像から階
調輪郭線を検出すると、図12(b−2)に示す3本の
階調輪郭線L1,L2,L5が得られる。この実施例で
は、Aレベルで2値化した2値化画像から検出される階
調輪郭線L1,L2,L5を「Aタイプの輪郭線」と呼
ぶ。「Aタイプの輪郭線」は、Aレベルの画像領域と、
Aレベル未満の画像レベルを有する画像領域との境界を
示す輪郭線であると言い換えることもできる。FIG. 11A shows the gradation contour lines L1 to L6 detected in step S1 of FIG.
FIG. 12 is an explanatory diagram showing a procedure for detecting the gradation contour lines L1 to L6 from the multi-gradation image. First, the multi-gradation image data shown in FIG.
The binarized image shown in (b-1) is obtained. FIG. 12 (b-1)
The binarized image of is the region R1, R3, R above the A level.
4, the sum area of R6 is 1 level, and the area below A level is 0
This is a level image. When the gradation contour lines are detected from this binarized image, three gradation contour lines L1, L2, L5 shown in FIG. 12B-2 are obtained. In this embodiment, the gradation contour lines L1, L2, L5 detected from the binarized image binarized at the A level are called "A type contour lines". The “A type contour line” is an A level image area,
In other words, it is a contour line that indicates a boundary with an image area having an image level lower than the A level.
【0060】Aタイプの輪郭線L1,L2,L5は、さ
らに、「A+タイプの輪郭線」と「A−タイプの輪郭
線」とに分類される。「A+タイプの輪郭線」は、その
内部領域がAレベル以上の画像レベルを有する輪郭線、
すなわち、2値化画像においてその内部が塗りつぶされ
ている輪郭線である。図12(b−2)の例では、輪郭
線L1が「A+タイプの輪郭線」である。「A−タイプ
の輪郭線」は、その内部領域がAレベル未満の画像レベ
ルを有する輪郭線、すなわち、2値化画像においてその
内部が白く抜かれている輪郭線である。図12(b−
2)の例では、輪郭線L2,L5が「A−タイプの輪郭
線」である。The A type contour lines L1, L2 and L5 are further classified into "A + type contour lines" and "A- type contour lines". The "A + type contour line" is a contour line whose internal region has an image level of A level or higher,
That is, it is a contour line whose interior is filled in the binarized image. In the example of FIG. 12B-2, the contour line L1 is the “A + type contour line”. The "A-type contour line" is a contour line whose inner region has an image level lower than the A level, that is, a contour line whose inside is hollowed out in a binarized image. FIG. 12 (b-
In the example of 2), the contour lines L2 and L5 are “A-type contour lines”.
【0061】なお、2値化画像から輪郭線を検出する方
法については、本出願人により開示された特開平5−2
42246号公報に詳述されているので、ここではその
詳細は省略する。Regarding the method of detecting the contour line from the binarized image, Japanese Patent Laid-Open No. 5-2 disclosed by the present applicant.
Since it has been described in detail in Japanese Patent No. 42246, its details are omitted here.
【0062】この実施例では、A+タイプの輪郭線L1
は、時計廻りの閉ループ輪郭線として検出される。一
方、A−タイプの輪郭線L2,L5は、反時計廻りの閉
ループ輪郭線として検出される。従って、閉ループ輪郭
線L1,L2,L5が検出された時に、その回転方向
(時計廻りか反時計廻りか)を判別することによって、
各輪郭線がA+タイプであるかA−タイプであるかを区
別することができる。In this embodiment, the A + type contour line L1 is used.
Is detected as a clockwise closed loop contour. On the other hand, the A-type contour lines L2 and L5 are detected as counterclockwise closed loop contour lines. Therefore, when the closed-loop contour lines L1, L2, L5 are detected, the rotation direction (clockwise or counterclockwise) is determined,
It is possible to distinguish whether each contour line is A + type or A- type.
【0063】図12(a)に示す多階調画像データをB
レベルで2値化すると、図12(c−1)に示す2値化
画像が得られる。そして、この2値化画像から階調輪郭
線を検出すると、図12(c−2)に示すBレベルの3
本の階調輪郭線L3,L4,L6が得られる。これらの
階調輪郭線L3,L4,L6も、図に示すようにB+タ
イプとB−タイプに分類される。「B+タイプの輪郭
線」は、その内部領域がBレベル以上の画像レベルを有
する輪郭線、すなわち、2値化画像においてその内部が
塗りつぶされている輪郭線である。「B−タイプの輪郭
線」は、その内部領域がBレベル未満の画像レベルを有
する輪郭線、すなわち、2値化画像においてその内部が
白く抜かれている輪郭線である。The multi-gradation image data shown in FIG.
When binarized by level, the binarized image shown in FIG. 12 (c-1) is obtained. When a gradation contour line is detected from this binarized image, the B level 3 shown in FIG.
The gradation contours L3, L4, L6 of the book are obtained. These gradation contour lines L3, L4, L6 are also classified into B + type and B- type as shown in the figure. The “B + type contour line” is a contour line whose internal region has an image level of B level or higher, that is, a contour line whose interior is filled in a binarized image. The “B-type contour line” is a contour line whose inner region has an image level lower than the B level, that is, a contour line whose inside is hollowed out in a binarized image.
【0064】なお、前述した特開平5−24246号公
報の方法に従って検出された階調輪郭線は、画素の境界
を走る境界輪郭線である。図13は、画素と境界輪郭線
との関係を示す説明図である。境界輪郭線は、画素(ハ
ッチングが付された丸)の境界を通っている。このた
め、1画素幅の領域の境界も正確に表現することが可能
であるという利点がある。境界輪郭線上の位置は、「輪
郭線の画素表現」と記載されている丸の中心に取られ
る。従って、境界線上の位置は、画素位置とは1/2画
素ずつ上下方向(主走査方向)と左右方向(副走査方
向)に位置ずれしている。後述する補間処理において、
対象領域内の各画素と輪郭線との最短距離を求める際に
は、この輪郭線の位置から各画素までの距離が算出され
る。The gradation outline detected according to the method disclosed in Japanese Patent Laid-Open No. 5-24246 mentioned above is a boundary outline running along the boundary of pixels. FIG. 13 is an explanatory diagram showing the relationship between pixels and boundary contour lines. The boundary contour line passes through the boundary of pixels (circles with hatching). Therefore, there is an advantage that the boundary of the region having the width of one pixel can be accurately expressed. The position on the boundary contour is taken at the center of the circle described as "pixel representation of contour". Therefore, the position on the boundary line is displaced from the pixel position by 1/2 pixel in the vertical direction (main scanning direction) and the horizontal direction (sub scanning direction). In the interpolation process described later,
When obtaining the shortest distance between each pixel in the target area and the contour line, the distance from the position of the contour line to each pixel is calculated.
【0065】こうして検出された階調輪郭線L1〜L6
(図11(a))を表わす輪郭データは、階調輪郭線デ
ータメモリ62(図4)に記憶される。図10のステッ
プS2では、対象輪郭線抽出部64が、階調補間処理の
対象領域を検出するとともに、対象領域の境界を構成す
る輪郭線セットを抽出する。図14は、種々の輪郭線セ
ットで構成される領域の例を示す説明図である。Aレベ
ルの領域の境界を構成する輪郭線の組み合わせとして
は、図14(a−1)〜(a−4)および(b−1)〜
(b−4)の8通りがある。The gradation contour lines L1 to L6 thus detected
The contour data representing (FIG. 11A) is stored in the gradation contour data memory 62 (FIG. 4). In step S2 of FIG. 10, the target contour line extraction unit 64 detects the target region of the gradation interpolation processing, and also extracts the contour line set forming the boundary of the target region. FIG. 14 is an explanatory diagram showing an example of a region configured by various contour line sets. 14A to 14A and 14B-1 to 14A-1 to 14-14A to 14A-1 to 14A-1 to 14A-1 to 14A-4 to 14A-1 to 14A-1 to 14A-1 to 14A-1 to 14A-1 to 14A-1 to 14A-1 to 14A-1 to ...
There are 8 types of (b-4).
【0066】図14(a−1)は、A+タイプの輪郭線
のみで囲まれた領域を示している。図14(a−2)〜
(a−4)は、A+タイプの輪郭線と、A−タイプおよ
びB+タイプの輪郭線の少なくとも一方とで囲まれた領
域を示している。図14(a−1)〜(a−4)の4つ
の場合の中で、階調補間が必要なのは、図14(a−
3),(a−4)の2つの場合である。すなわち、A+
タイプの輪郭線の内側であって、かつ、B+タイプの輪
郭線の外側にあるAレベルの領域が、階調補間の対象領
域として検出される。なお、図14(a−4)のよう
に、A+タイプの輪郭線の中にA−タイプの輪郭線が包
含されている場合もある。このようなA−タイプの輪郭
線も、対象領域を構成する輪郭線セットの一部として検
出される。換言すれば、図14(a−3)の場合には、
A+タイプとB+タイプの輪郭線が、対象領域と他の領
域の境界を構成する1組の輪郭線セットとして抽出され
る。また、図14(a−4)の場合には、A+タイプと
B+タイプとA−タイプの輪郭線が、対象領域と他の領
域の境界を構成する1組の輪郭線セットとして抽出され
る。FIG. 14A-1 shows a region surrounded only by the A + type contour line. FIG. 14 (a-2)-
(A-4) shows a region surrounded by the A + type contour line and at least one of the A- type and B + type contour lines. In the four cases shown in FIGS. 14A-1 to 14A-4, gradation interpolation is required in FIG.
3) and (a-4). That is, A +
An A-level area inside the type contour line and outside the B + type contour line is detected as a target area for gradation interpolation. Note that, as shown in FIG. 14A-4, the A + type contour line may be included in the A + type contour line. Such an A-type contour line is also detected as a part of the contour line set forming the target area. In other words, in the case of FIG. 14 (a-3),
The A + type and B + type contours are extracted as a set of contour lines that form the boundary between the target area and another area. In the case of FIG. 14A-4, the A + type, B + type, and A− type contours are extracted as one set of contours that form the boundary between the target area and other areas.
【0067】図14(b−1)は、B−タイプの輪郭線
のみで囲まれた領域を示している。図14(b−2)〜
(b−4)は、B−タイプの輪郭線と、B+タイプおよ
びA−タイプの輪郭線の少なくとも一方とで囲まれた領
域を示している。図14(b−1)〜(b−4)の4つ
の場合の中で、この実施例で階調補間の対象となるの
は、図14(b−3),(b−4)の2つの場合であ
る。すなわち、B−タイプの輪郭線の内側であって、か
つ、A−タイプの輪郭線の外側にあるAレベルの領域
が、階調補間の対象領域として検出される。なお、図1
4(b−4)のように、B−タイプの輪郭線の中にB+
タイプの輪郭線が存在する場合もある。このB+タイプ
の輪郭線も対象領域を構成する輪郭線セットの一部とし
て検出される。換言すれば、図14(b−3)の場合に
は、B−タイプとA−タイプの輪郭線が、対象領域と他
の領域の境界を構成する1組の輪郭線セットとして検出
される。また、図14(b−4)の場合には、B−タイ
プとA−タイプとB+タイプの輪郭線が、対象領域と他
の領域の境界を構成する1組の輪郭線セットとして検出
される。FIG. 14 (b-1) shows a region surrounded only by a B-type contour line. FIG. 14 (b-2)-
(B-4) shows a region surrounded by a B-type contour line and at least one of a B + type contour line and an A-type contour line. Among the four cases of FIGS. 14B-1 to 14B-4, the target of the gradation interpolation in this embodiment is 2 of FIGS. 14B-3 and 14B-4. There are two cases. That is, the area at the A level, which is inside the B-type contour line and outside the A-type contour line, is detected as the target area for gradation interpolation. Note that FIG.
4 (b-4), B + in the B-type outline
There may be types of contours. This B + type contour line is also detected as a part of the contour line set forming the target area. In other words, in the case of FIG. 14B-3, the B-type and A-type contours are detected as one set of contours that form the boundary between the target area and another area. In the case of FIG. 14B-4, the B-type, A-type, and B + type contours are detected as a set of contour lines that form the boundary between the target area and another area. .
【0068】図15は、図10のステップS2の詳細手
順を示すフローチャートである。ステップS11では、
階調輪郭線データメモリ62から輪郭データ(輪郭線)
を1つ取出す。ステップS12では、取り出した輪郭線
がA+タイプであるかB−タイプであるかを判定するこ
とによって、対象領域の外周を構成する輪郭線を抽出す
る。A+タイプの輪郭線は、図14(a−3)または
(a−4)のように、対象領域の外周を構成する輪郭線
である可能性がある。また、B−タイプの輪郭線も、図
14(b−3)または(b−4)のように、対象領域の
外周を構成する輪郭線である可能性がある。逆に、A−
タイプやB+タイプの輪郭線は対象領域の外周を構成す
る輪郭線とはならないので、これらの場合には、ステッ
プS12からステップS11に戻り、次の輪郭データが
取出される。一方、A+タイプまたはB−タイプであれ
ば、その輪郭線を親ループとして登録し(ステップS1
3)。ここでは、「親ループ」とは、階調補間の対象領
域の外周を構成する輪郭線を意味している。なお、この
実施例では、各階調輪郭線が閉ループを構成しているの
で、輪郭線のことを単に「ループ」とも呼ぶ。親ループ
の輪郭データは、輪郭線ループバッファ66に登録され
る(ステップS14)。図11(a)に示す6つの輪郭
線L1〜L6の例では、最初の輪郭線L1がA+タイプ
なので、この輪郭線L1が親ループであるとして輪郭線
ループバッファ66に登録される。FIG. 15 is a flow chart showing the detailed procedure of step S2 in FIG. In step S11,
Contour data (contour) from the gradation contour data memory 62
Take out one. In step S12, the contour line forming the outer periphery of the target area is extracted by determining whether the extracted contour line is the A + type or the B- type. The A + type contour line may be a contour line that configures the outer periphery of the target area, as illustrated in FIG. 14A-3 or 14A-4. Further, the B-type contour line may also be a contour line forming the outer circumference of the target area, as shown in FIG. 14B-3 or 14B-4. Conversely, A-
Since the type and B + type contours do not form the outer periphery of the target area, in these cases, the process returns from step S12 to step S11, and the next contour data is extracted. On the other hand, if it is the A + type or the B- type, the contour line is registered as a parent loop (step S1).
3). Here, the “parent loop” means a contour line forming the outer periphery of the target area for gradation interpolation. In this embodiment, since each gradation contour line forms a closed loop, the contour line is simply referred to as a “loop”. The contour data of the parent loop is registered in the contour loop buffer 66 (step S14). In the example of the six contour lines L1 to L6 shown in FIG. 11A, since the first contour line L1 is the A + type, the contour line L1 is registered in the contour line loop buffer 66 as a parent loop.
【0069】ステップS15では、Aレベルの対象領域
を構成する輪郭線セットが抽出される。図16は、ステ
ップS15の詳細手順を示すフローチャートである。ス
テップS21では、階調輪郭線データメモリ62から輪
郭データが1つ取出される。但し、この際には、現在の
親ループとして登録されている輪郭データと、対象領域
を構成する輪郭線セットとして既に抽出された輪郭デー
タは除外される。In step S15, the contour line set forming the A-level target area is extracted. FIG. 16 is a flowchart showing the detailed procedure of step S15. In step S21, one piece of contour data is fetched from the gradation contour line data memory 62. However, in this case, the contour data registered as the current parent loop and the contour data already extracted as the contour line set forming the target area are excluded.
【0070】ステップS22〜S25は、親ループに包
含される輪郭線(「子ループ」と呼ぶ)を抽出する処理
手順である。ステップS22では、取出された輪郭線の
タイプがA−タイプとB+タイプのいずれかであるか否
かが判断される。この理由は、階調補間の対象となる図
14(a−3),(a−4)の領域の場合には、親ルー
プ(A+タイプの輪郭線)と組み合わせられるのは、A
−タイプとB+タイプの輪郭線であり、同様に、図14
(b−3),(b−4)の領域の場合にも、親ループ
(B−タイプの輪郭線)と組み合わせられるのは、A−
タイプとB+タイプの輪郭線だからである。A−または
B+タイプである場合には、ステップS23において、
親ループに包含されるか否かが判断される。Steps S22 to S25 are a processing procedure for extracting a contour line (called a "child loop") included in the parent loop. In step S22, it is determined whether the type of the extracted contour line is the A-type or the B + type. The reason for this is that in the case of the regions of FIGS. 14A-3 and 14A-4 that are the targets of gradation interpolation, it is A that is combined with the parent loop (A + type contour line).
-Type and B + type contour lines, and similarly, FIG.
Also in the case of the areas (b-3) and (b-4), the combination with the parent loop (B-type contour line) is A-
This is because they are the outlines of type B and type B. If it is the A- or B + type, in step S23,
It is determined whether it is included in the parent loop.
【0071】図17は、輪郭線の包含関係の判断手順を
示す説明図である。この実施例では、図17(a),
(b)の2段階の手順によって輪郭線の包含関係を判断
している。まず、図17(a)では、各輪郭線の外接矩
形の範囲に従って包含関係が判定される。すなわち、A
−またはB+タイプの輪郭線の外接矩形が、親ループの
外接矩形に含まれる場合は包含可能性があるものと判断
される。この判断は、外接矩形の座標範囲の比較によっ
て容易に行なうことができる。包含可能性がある場合に
は、図17(b)に示す半直線法による包含判定が行な
われる。半直線法とは、包含される可能性がある輪郭線
上の1点から、任意の方向に半直線を引き、この半直線
が親ループと奇数回交差する場合には包含関係ありと判
断し、一方、偶数回交差する場合には包含関係なしと判
断する方法である。もちろん、図17に示す方法以外の
方法によって、親ループとの包含関係を判断するように
してもよい。FIG. 17 is an explanatory diagram showing the procedure for determining the inclusion relation of contour lines. In this embodiment, as shown in FIG.
The inclusion relation of the contour lines is determined by the two-step procedure of (b). First, in FIG. 17A, the inclusion relation is determined according to the range of the circumscribed rectangle of each contour line. That is, A
If the circumscribing rectangle of the − or B + type contour is included in the circumscribing rectangle of the parent loop, it is determined that it may be included. This determination can be easily made by comparing the coordinate ranges of the circumscribing rectangles. If there is a possibility of inclusion, inclusion determination is performed by the half-line method shown in FIG. 17 (b). The half line method draws a half line in any direction from one point on the contour line that may be included, and if this half line intersects the parent loop an odd number of times, it is determined that there is an inclusion relation, On the other hand, if there is an even number of intersections, it is a method of determining that there is no inclusion relationship. Of course, the inclusion relation with the parent loop may be determined by a method other than the method shown in FIG.
【0072】親ループに包含されるものと判断された場
合には、図16のステップS24において、子ループと
して輪郭線ループバッファ66に登録される。この後、
ステップS25からステップS21に戻り、すべての輪
郭線についてステップS21〜S24の処理が繰返され
る。こうして、現在の親ループに包含されるすべての子
ループが登録される。If it is determined that the loop is included in the parent loop, it is registered in the contour loop buffer 66 as a child loop in step S24 of FIG. After this,
The process returns from step S25 to step S21, and the processes of steps S21 to S24 are repeated for all contour lines. Thus, all child loops contained in the current parent loop are registered.
【0073】ステップS26では、現在の親ループに関
して登録された子ループ同士の包含チェックが図17の
方法に従って行なわれる。子ループに包含されている子
ループ(「孫ループ」とも呼ぶ)は、対象領域と他の領
域との境界を構成しないので、子ループから除外され
る。こうして、最後に残された子ループの輪郭データが
輪郭線ループバッファ66に登録される(ステップS2
7)。In step S26, the inclusion check between the child loops registered for the current parent loop is performed according to the method shown in FIG. A child loop included in the child loop (also referred to as “grandchild loop”) does not form a boundary between the target area and another area, and is excluded from the child loop. In this way, the contour data of the child loop left at the end is registered in the contour line loop buffer 66 (step S2).
7).
【0074】図18は、図16の処理の結果として登録
された2組の輪郭線セットを示す説明図である。図18
(b)は、輪郭線L1を親ループとし、これに直接包含
される2つの輪郭線L2,L3を子ループとする第1の
輪郭線セットを示している。また、図18(c)は、輪
郭線L4を親ループとし、これに直接包含される2つの
輪郭線L5,L6を子ループとする第2の輪郭線セット
を示している。第1の輪郭線セットが検出された状態で
は、輪郭線ループバッファ66内のAループバッファ6
6a内には、A+タイプの親ループL1の輪郭データD
L1と、A−タイプの子ループL2の輪郭データDL2とが
登録されている。また、Bループバッファ66b内には
B+タイプの子ループL3の輪郭データDL3が登録され
ている。一方、第2の輪郭線セットが検出された状態で
は、輪郭線ループバッファ66内のAループバッファ6
6a内には、A−タイプの子ループL5の輪郭データD
L5が登録されている。また、Bループバッファ66b内
には、B−タイプの親ループL4の輪郭データDL4とB
+タイプの子ループL6の輪郭データDL6とが登録され
ている。後述するように、階調補間の対象領域内におい
て距離計算が行なわれる際には、対象領域内の各画素位
置において、Aタイプ(A+タイプおよびA−タイプ)
の輪郭線からの最短距離と、Bタイプ(B+タイプおよ
びB−タイプ)の輪郭線から最短距離とが求められる。
換言すれば、距離計算では、A+タイプとA−タイプと
は区別されず、また、B+タイプとB−タイプも区別さ
れない。従って、輪郭線ループバッファ66内には、輪
郭データがAタイプとBタイプに分類されて登録されて
いる。FIG. 18 is an explanatory diagram showing two contour line sets registered as a result of the processing of FIG. FIG.
(B) shows a first contour line set having the contour line L1 as a parent loop and the two contour lines L2 and L3 directly included therein as child loops. Further, FIG. 18C shows a second contour line set in which the contour line L4 is a parent loop and the two contour lines L5 and L6 directly included therein are child loops. When the first contour line set is detected, the A loop buffer 6 in the contour line loop buffer 66 is detected.
6a includes contour data D of the A + type parent loop L1.
L1 and contour data D L2 of the A-type child loop L2 are registered. Further, the contour data D L3 of the B + type child loop L3 is registered in the B loop buffer 66b. On the other hand, when the second contour line set is detected, the A loop buffer 6 in the contour line loop buffer 66 is
6a includes contour data D of the A-type child loop L5.
L5 is registered. In the B loop buffer 66b, the contour data D L4 and B of the B-type parent loop L4 are stored.
The contour data D L6 of the + type child loop L6 is registered. As will be described later, when the distance calculation is performed in the target area for gradation interpolation, A type (A + type and A− type) is calculated at each pixel position in the target area.
And the shortest distance from the B type (B + type and B− type) contour lines.
In other words, the distance calculation does not distinguish between the A + type and the A− type, nor does it distinguish between the B + type and the B− type. Therefore, in the contour line loop buffer 66, the contour data is classified and registered into A type and B type.
【0075】なお、上述したように、A+タイプとA−
タイプの区別、および、B+タイプとB−タイプの区別
は、対象領域と他の領域との境界を構成する輪郭線セッ
トを求める際に重要な役割を有している。As described above, A + type and A- type
The type distinction and the B + type distinction and the B- type distinction play an important role in obtaining a contour line set that constitutes the boundary between the target region and another region.
【0076】こうして階調補間の対象領域を構成する輪
郭線セットが抽出されると、図15のステップS16に
移行する。ステップS16では、親ループの内部領域の
中で、A−タイプの子ループの外側にある領域が1レベ
ルで塗り潰される。ステップS17では、こうして塗り
つぶされた領域から、B+タイプの子ループの内側の領
域が除去される。図19は、ステップS16,17の処
理内容を示す説明図である。ここでは、図18(b)に
示す第1の輪郭線セットの場合が示されている。まず、
親ループL1(A+タイプ)の内側であって、A−タイ
プの子ループL2の外側である領域が1レベルで塗りつ
ぶされると、図19(b)のビットマップ画像が得られ
る。次に、B+タイプの子ループL3の内側の領域を除
去する(0レベルにする)と、図19(c)のビットマ
ップ画像が得られる。こうすることによって、階調補間
の対象領域のみが塗りつぶされた2値のビットマップ画
像が得られる。こうして得られた対象領域のビットマッ
プ画像は、RAM16内の図示しないメモリ領域に一時
的に格納される。こうして、図10のステップS2にお
ける対象領域の検出工程が終了する。When the contour line set forming the target area for gradation interpolation is extracted in this way, the process proceeds to step S16 in FIG. In step S16, the area outside the A-type child loop in the inner area of the parent loop is filled with one level. In step S17, the area inside the B + type child loop is removed from the area thus filled. FIG. 19 is an explanatory diagram showing the processing contents of steps S16 and S17. Here, the case of the first contour line set shown in FIG. 18B is shown. First,
When the area inside the parent loop L1 (A + type) and outside the A- type child loop L2 is filled with one level, the bitmap image of FIG. 19B is obtained. Next, when the area inside the B + type child loop L3 is removed (set to 0 level), the bitmap image of FIG. 19C is obtained. By doing so, a binary bitmap image in which only the target area for gradation interpolation is filled can be obtained. The bitmap image of the target area thus obtained is temporarily stored in a memory area (not shown) in the RAM 16. In this way, the detection process of the target area in step S2 of FIG. 10 is completed.
【0077】図10のステップS3〜S8では、階調補
間手段44(図4)によって、各対象領域についての階
調補間が実行される。図20は、階調補間手段44の機
能を示す機能ブロック図である。階調補間手段44は、
距離計算部70および画素値演算部72の他に、輪郭線
/点列変換部74と、対象画素バッファ76と、Aルー
プ輪郭点列バッファ78aと、Bループ輪郭点列バッフ
ァ78bとを有している。In steps S3 to S8 of FIG. 10, the gradation interpolation means 44 (FIG. 4) executes gradation interpolation for each target area. FIG. 20 is a functional block diagram showing the function of the gradation interpolation means 44. The gradation interpolating means 44,
In addition to the distance calculation unit 70 and the pixel value calculation unit 72, it has a contour line / point sequence conversion unit 74, a target pixel buffer 76, an A loop contour point sequence buffer 78a, and a B loop contour point sequence buffer 78b. ing.
【0078】図10のステップS3では、対象領域内の
各画素の座標が図19(c)のビットマップ画像から抽
出されて、対象画素バッファ76(図20)にシリアル
に格納される。ステップS4では、Aループバッファ6
6aおよびBループバッファ66bに格納されている輪
郭データ(図18(b),(c)参照)が、輪郭線/点
列変換部74によって点列の座標に変換されて、Aルー
プ輪郭点列バッファ78aおよびBループ輪郭点列バッ
ファ78bにそれぞれ格納される。「輪郭線の点列」
は、前述した図13において、「輪郭線の画素表現」と
記された点列を意味している。In step S3 of FIG. 10, the coordinates of each pixel in the target area are extracted from the bitmap image of FIG. 19C and serially stored in the target pixel buffer 76 (FIG. 20). In step S4, the A loop buffer 6
6a and the contour data (see FIGS. 18 (b) and 18 (c)) stored in the B loop buffer 66b are converted into the coordinates of the point sequence by the contour line / point sequence conversion unit 74, and the A loop contour point sequence It is stored in the buffer 78a and the B loop contour point sequence buffer 78b, respectively. "Contour line sequence"
Means the point sequence described as "pixel representation of contour line" in FIG. 13 described above.
【0079】図10のステップS5では、距離計算部7
0が、対象画素バッファ76から1画素の座標を取出し
て、Aループの点列からの最短距離D(Md)と、Bル
ープの点列からの最短距離D(Mu)とをそれぞれ算出
する。ここで、D(Md)は、アンダマーカMd(Aレ
ベルを示す)の点列からの最短距離であることを意味し
ており、D(Mu)はアッパーマーカMu(Bレベルを
示す)の点列からの最短距離であることを意味してい
る。In step S5 of FIG. 10, the distance calculator 7
0 retrieves the coordinates of one pixel from the target pixel buffer 76 and calculates the shortest distance D (Md) from the point sequence of the A loop and the shortest distance D (Mu) from the point sequence of the B loop. Here, D (Md) means the shortest distance from the point sequence of the undermarker Md (indicating A level), and D (Mu) is the point sequence of the upper marker Mu (indicating B level). Means the shortest distance from.
【0080】図10のステップS6では、画素値演算部
72が、次の数式3に従って、対象となっている画素位
置における画素値val(p)を演算する。In step S6 of FIG. 10, the pixel value calculation unit 72 calculates the pixel value val (p) at the target pixel position according to the following mathematical formula 3.
【0081】[0081]
【数3】 [Equation 3]
【0082】ここで、val(Md)はアンダマーカM
dで示される値(=Aレベル)であり、val(Mu)
はアッパーマーカMuで示される値(=Bレベル)であ
る。Here, val (Md) is the undermarker M
It is a value (= A level) indicated by d, and val (Mu)
Is a value (= B level) indicated by the upper marker Mu.
【0083】一般に、BレベルがAレベルよりもN+1
だけ大きい場合には、数式3は次の数式4に書き換えら
れる。Generally, B level is N + 1 higher than A level.
Equation 3 can be rewritten as Equation 4 below.
【0084】[0084]
【数4】 [Equation 4]
【0085】この実施例では、B=A+2なのでN=1
である。数式4の右辺第2項は、整数化されてから第1
項のAレベルと加算される。従って、Aループへの最短
距離D(Md)が、最短距離の和(D(Md)+D(M
u))の1/2未満の画素位置では、右辺第2項は0と
なり、画素値val(p)はAレベルに等しい。また、
Aループへの最短距離D(Md)が、最短距離の和(D
(Md)+D(Mu))の1/2以上の画素位置では、
右辺第2項は1となり、画素値val(p)はA+1レ
ベルとなる。In this embodiment, since B = A + 2, N = 1
Is. The second term on the right side of Equation 4 is the first after being converted to an integer.
It is added to the A level of the term. Therefore, the shortest distance D (Md) to the A loop is the sum of the shortest distances (D (Md) + D (M
At pixel positions less than 1/2 of u)), the second term on the right side becomes 0, and the pixel value val (p) is equal to the A level. Also,
The shortest distance D (Md) to the A loop is the sum (D
At a pixel position of 1/2 or more of (Md) + D (Mu)),
The second term on the right side becomes 1, and the pixel value val (p) becomes A + 1 level.
【0086】なお、図21(a)に示すようにAループ
とBループとが一部重なる場合には、図21(b)に示
すように重なる部分の点列は互いに相殺されて、重なら
ない部分の点列のみが距離計算において参照される。こ
うすることによって、距離計算の処理時間を短縮するこ
とが可能である。When the A loop and the B loop partially overlap each other as shown in FIG. 21 (a), the point sequences of the overlapping portions as shown in FIG. 21 (b) cancel each other out and do not overlap each other. Only the partial point sequence is referenced in the distance calculation. By doing so, it is possible to shorten the processing time for distance calculation.
【0087】図22は、第1と第2の輪郭線セット(図
18(b),(c))についてそれぞれ得られた画素値
val(p)の分布を示す説明図である。図22から解
るように、Aレベルであった対象領域は、AループとB
ループへの最短距離が等しい位置にある仮想的な輪郭線
Lint によって2つの区分領域に区分されている。これ
ら2つの区分領域の内で、Bレベルの領域に近い側の区
分領域がA+1レベルに設定され、他方の区分領域はA
レベルに保たれる。以上の説明から解るように、この実
施例では、Aレベルの区分領域とA+1レベルの区分領
域との境界を構成する中間輪郭線を表わす輪郭データは
生成されていないが、仮想的な中間輪郭線Lint によっ
て、対象領域がAレベルとA+1レベルの区分領域に区
分されている。一般に、AレベルとBレベルとの間にN
個の中間的なレベルを補間する場合には、対象領域をN
+1個の区分領域に区分して、それらをA〜(A+N)
レベルまでのN+1個のレベルで順次塗り分けることが
できる。この場合には、仮想的な中間輪郭線Lint は、
Aループへの最短距離と、Bループへの最短距離とがm
対n(m,nは1以上N以下の整数で、m,nのN個の
組み合わせはm+n=N+1を満足する)の関係にある
位置に生成される。FIG. 22 is an explanatory diagram showing distributions of pixel values val (p) obtained for the first and second contour line sets (FIGS. 18B and 18C). As can be seen from FIG. 22, the target area at the A level is A loop and B
It is divided into two divided areas by a virtual contour line Lint located at a position where the shortest distance to the loop is equal. Of these two divided areas, the divided area closer to the B level area is set to the A + 1 level and the other divided area is A
To be kept at a level. As can be seen from the above description, in this embodiment, the contour data representing the intermediate contour line that defines the boundary between the A-level segment area and the A + 1-level segment area is not generated, but a virtual intermediate contour line is generated. Lint divides the target area into A-level and A + 1-level partition areas. Generally, N between A level and B level
When interpolating the number of intermediate levels, the target area is N
Divide them into +1 segmented areas, and divide them into A to (A + N)
It is possible to sequentially paint with N + 1 levels up to the level. In this case, the virtual intermediate contour line Lint is
The shortest distance to the A loop and the shortest distance to the B loop are m
Pairs are generated at positions having a relationship of pair n (m, n is an integer of 1 or more and N or less, and N combinations of m and n satisfy m + n = N + 1).
【0088】もちろん、対象領域をN+1個の区分領域
に区分するN本の中間輪郭線を表わす輪郭データを実際
に生成し、これらの中間輪郭線でされた区分領域にそれ
ぞれのレベルを割り当てるようにすることも可能であ
る。この発明において、「中間輪郭線を形成する」と
は、中間輪郭線を表わす輪郭データを実際に生成する場
合に限らず、上記実施例のように、数式3または数式4
による画素値の演算の結果として、仮想的な中間輪郭線
によって区分された区分領域を生成する場合をも含む意
味を有している。Of course, contour data representing N intermediate contour lines that divide the target area into N + 1 divided areas are actually generated, and respective levels are assigned to the divided areas defined by these intermediate contour lines. It is also possible to do so. In the present invention, "forming the intermediate contour line" is not limited to the case where the contour data representing the intermediate contour line is actually generated, and the equation 3 or the equation 4 is used as in the above embodiment.
As a result of the calculation of the pixel value by, there is a meaning including the case of generating a segmented region segmented by a virtual intermediate contour line.
【0089】こうして、対象画素バッファ76(図2
0)が空になるまで図10のステップS5,S6を繰り
返し実行することによって、1組の輪郭線セットで境界
が構成された対象領域に関して、補間された多階調画像
データが生成される。そして、ステップS8からステッ
プS3に戻り、次の1組の輪郭線セットに関する処理が
繰返される。なお、補間された対象領域を表わす多階調
画像データは、元の多階調画像データの対象領域の上に
上書きされる。Thus, the target pixel buffer 76 (see FIG.
By repeatedly executing steps S5 and S6 of FIG. 10 until 0) becomes empty, interpolated multi-tone image data is generated for the target region whose boundary is constituted by one set of contour lines. Then, the process returns from step S8 to step S3, and the process for the next set of contour lines is repeated. The multi-tone image data representing the interpolated target area is overwritten on the target area of the original multi-tone image data.
【0090】図23は、他の多階調画像を階調補間した
結果を示す説明図である。図23(a)は補間前の多階
調画像を示しており、図23(b)は補間後の多階調画
像を示している。図23(a)に示す多階調画像のよう
に、Aレベルである対象領域の中に、Bレベルの複数の
領域が含まれていることがある。この場合にも、図10
に示す手順に従って階調を補間することによって、図2
3(b)に示すように、複数のBレベル領域をいずれも
含むように中間階調の(すなわちA+1レベルの)領域
が形成される。この結果、従来に比べてより自然な階調
補間を行なうことができるという利点がある。これは、
一般にAレベルとBレベルの間にN個の中間画像レベル
を補間するように階調補間を行なう場合も同様である。FIG. 23 is an explanatory diagram showing the result of gradation interpolation of another multi-gradation image. 23A shows a multi-tone image before interpolation, and FIG. 23B shows a multi-tone image after interpolation. As in the multi-tone image shown in FIG. 23A, the target area at the A level may include a plurality of areas at the B level. Also in this case, FIG.
By interpolating the gradation according to the procedure shown in FIG.
As shown in FIG. 3B, an intermediate gradation (that is, A + 1 level) area is formed so as to include all of the plurality of B level areas. As a result, there is an advantage that more natural gradation interpolation can be performed as compared with the conventional method. this is,
Generally, the same is true when gradation interpolation is performed so as to interpolate N intermediate image levels between the A level and the B level.
【0091】図24は、さらに他の多階調画像を階調補
間した結果を示す説明図である。この例では、補間の際
に参照された階調輪郭線(AタイプとBタイプの輪郭
線)に、かなりの「ゆらぎ」(凹凸)が見られるが、補
間により得られる階調輪郭線(中間輪郭線)には、ゆら
ぎがあまり見られない。このような場合には、ゆらぎ検
出手段46およびゆらぎ付加手段48(図3)によっ
て、中間輪郭線に適度なゆらぎを付加することができ
る。FIG. 24 is an explanatory diagram showing the result of gradation interpolation of another multi-gradation image. In this example, a considerable “fluctuation” (irregularity) is found in the gradation contour lines (contour lines of A type and B type) referred to during interpolation, but the gradation contour lines (intermediate There is not much fluctuation in the contour line. In such a case, the fluctuation detecting means 46 and the fluctuation adding means 48 (FIG. 3) can add an appropriate fluctuation to the intermediate contour line.
【0092】この実施例では、中間輪郭線にゆらぎを付
加する方法として、フラクタル化処理を利用する。フラ
クタル化処理によるゆらぎの付加を行なう際には、ま
ず、ゆらぎ検出手段46が、階調補間の際に参照された
階調輪郭線(AループおよびBループ)のフラクタル次
元Dを測定する。In this embodiment, fractalization processing is used as a method of adding fluctuation to the intermediate contour line. When the fluctuation is added by the fractalization process, the fluctuation detecting means 46 first measures the fractal dimension D of the gradation contour line (A loop and B loop) referred to during gradation interpolation.
【0093】フラクタル次元Dは、任意の曲線の複雑さ
を定量的に決定する指標である。フラクタル次元Dは、
例えば図25に示すボックスカウンティング法によって
測定することができる。図25(A)のような任意の曲
線Lに関するフラクタル次元を求める際には、まず、一
辺の幅dの正方形を始点Y0に配置する。そして、この
正方形と曲線Lとの交点Y1を求める。次に、この交点
Y1を正方形の中心に再設定して、正方形と曲線Lとの
交点Y2を再度求める。こうして、曲線Lを正方形によ
って順次覆って行くと、曲線Lの全体を覆うために必要
な正方形の個数N(d)が得られる。この個数N(d)
は、正方形の一辺の幅dの関数である。そして、一辺の
幅dを変化させて、曲線Lを覆うために必要な正方形の
個数N(d)をそれぞれ求める。図25(B)は、正方
形の個数N(d)と一辺の幅dの関係を両対数にプロッ
トしたものである。図25(B)に示されているよう
に、フラクタル次元Dはこのグラフの傾きで定義され
る。The fractal dimension D is an index for quantitatively determining the complexity of an arbitrary curve. The fractal dimension D is
For example, it can be measured by the box counting method shown in FIG. When obtaining the fractal dimension for an arbitrary curve L as shown in FIG. 25A, first, a square having a width d on one side is arranged at the starting point Y0. Then, the intersection Y1 of this square and the curve L is obtained. Next, the intersection Y1 is reset to the center of the square, and the intersection Y2 between the square and the curve L is obtained again. In this way, by sequentially covering the curve L with squares, the number N (d) of squares required to cover the entire curve L is obtained. This number N (d)
Is a function of the width d of one side of the square. Then, the width d of one side is changed to obtain the number N (d) of squares required to cover the curve L, respectively. FIG. 25B is a logarithmic plot of the relationship between the number of squares N (d) and the width d of one side. As shown in FIG. 25 (B), the fractal dimension D is defined by the slope of this graph.
【0094】なお、フラクタル次元は、曲線Lのサイズ
に依存しない。例えば、曲線Lを単純にM倍に拡大すれ
ば、図25(B)の曲線が、lnMだけ上にシフトするだ
けである。従って、単純な拡大/縮小によってはフラク
タル次元は変化しない。このように、フラクタル次元
は、曲線のサイズに依存せずに、その複雑さを示す指標
である。The fractal dimension does not depend on the size of the curve L. For example, if the curve L is simply enlarged by M times, the curve of FIG. 25 (B) is only shifted up by lnM. Therefore, the fractal dimension does not change by simple scaling. As described above, the fractal dimension is an index indicating the complexity of the curve without depending on the size of the curve.
【0095】なお、「フラクタル」という言葉は、曲線
(図形)の一部を拡大してもその内部に同種の構造が埋
め込まれているような状態を意味する。しかし、「フラ
クタル次元」は、図25で説明したように、上述のよう
なフラクタルな曲線のみに関する指標ではなく、あらゆ
る曲線に関してフラクタル次元を測定することができ
る。The term "fractal" means a state in which even if a part of a curve (graphic) is enlarged, the same kind of structure is embedded in the inside. However, as described with reference to FIG. 25, the “fractal dimension” is not an index for only the fractal curve as described above, but the fractal dimension can be measured for any curve.
【0096】一般に、曲線のフラクタル次元を増大させ
れば、曲線を拡大したり、曲線の解像度を増大させたり
する場合に、自然なゆらぎを与えることができる。Generally, if the fractal dimension of a curve is increased, a natural fluctuation can be given when the curve is enlarged or the resolution of the curve is increased.
【0097】ところで、フラクタル化処理は、複数回再
帰的に行なわれるのが普通である。フラクタル化処理の
繰り返し回数nは、ユーザが使用するようにしてもよ
く、また、予め設定された値を利用してもよい。フラク
タル化処理の繰り返し回数nが多いほど曲線が複雑にな
る。通常は、繰り返し回数nを2〜3程度の値に設定す
ることが好ましい。By the way, the fractalization process is usually performed recursively a plurality of times. The number of repetitions n of the fractalization process may be used by the user, or a preset value may be used. The curve becomes more complex as the number of iterations n of the fractalization process increases. Usually, it is preferable to set the number of repetitions n to a value of about 2 to 3.
【0098】階調補間の際に参照された輪郭線のフラク
タル化次元Dが測定されると、ゆらぎ付加手段48が、
中間輪郭線のフラクタル化処理を実行する。なお、前述
したように、図10に示す階調補間処理では、中間輪郭
線を示す輪郭データは作成されていない。従って、中間
輪郭線のフラクタル化処理(ゆらぎ付加処理)に先だっ
て、図12に示した手順と同様な手順によって、中間輪
郭線の輪郭データが形成される。When the fractalization dimension D of the contour line referred to in the gradation interpolation is measured, the fluctuation adding means 48
Fractalization processing of the intermediate contour line is executed. As described above, the contour data indicating the intermediate contour line is not created in the gradation interpolation processing shown in FIG. Therefore, prior to the fractalization processing (fluctuation addition processing) of the intermediate contour line, the contour data of the intermediate contour line is formed by a procedure similar to the procedure shown in FIG.
【0099】図26は、中点変位法によるフラクタル化
処理(ゆらぎ付加処理)の概要を示す説明図である。こ
こでは、2つの点V1,V2の間の直線L12をフラク
タル化する場合について説明する。図26(A)に示す
1回目の変換では、まず、直線L12の中点MVの座標
(xm ,ym )を次の数式5に従って求める。FIG. 26 is an explanatory diagram showing an outline of the fractalization processing (fluctuation addition processing) by the midpoint displacement method. Here, a case where the straight line L12 between the two points V1 and V2 is fractalized will be described. In the first conversion shown in FIG. 26 (A), first, the coordinates (x m , y m ) of the midpoint MV of the straight line L12 are obtained according to the following formula 5.
【0100】[0100]
【数5】 [Equation 5]
【0101】そして、この中点MVから、直線L12に
垂直な方向に点V3を取る。ここで、直線L12に直交
する方向(すなわち中点MVから点V3に向かう方向)
の単位ベクトルは、次の数式6で与えられる。Then, from this middle point MV, a point V3 is set in the direction perpendicular to the straight line L12. Here, the direction orthogonal to the straight line L12 (that is, the direction from the midpoint MV to the point V3)
The unit vector of is given by Equation 6 below.
【0102】[0102]
【数6】 [Equation 6]
【0103】中点変位法では、点V3の座標(x3 ,y
3 )が次の数式7で与えられる。In the midpoint displacement method, the coordinates (x 3 , y of the point V3 are
3 ) is given by the following Equation 7.
【0104】[0104]
【数7】 [Equation 7]
【0105】ここで、Rgは平均値が0で標準偏差が1
のガウス乱数(値の頻度分布がガウス分布に従う乱数)
であり、Dはフラクタル次元である。数式7の形式から
解るように、数式7の右辺第2項は、中点MVから点V
3までの間の座標の差分に相当する。この差分を以下で
は「中点の変位」と呼ぶ。中点の変位は、フラクタル次
元Dに依存していることが解る。Here, Rg has an average value of 0 and a standard deviation of 1
Gaussian random number (random distribution whose value frequency distribution is Gaussian)
And D is the fractal dimension. As can be seen from the form of Expression 7, the second term on the right side of Expression 7 is from the midpoint MV to the point V.
This corresponds to the difference in coordinates up to 3. Hereinafter, this difference will be referred to as "midpoint displacement". It can be seen that the displacement of the midpoint depends on the fractal dimension D.
【0106】図26(B)に示す2回目の変換では、点
V1と点V3との間の直線、および、点V3と点V2と
の間の直線がそれぞれフラクタル化される。すなわち、
点V1と点V3との間に新たな点V4が設定され、点V
3と点V2との間に新たな点V5が設定される。但し、
点V4と点V5の位置は、3つの点V1,V3,V2を
通る直線列の進行方向(例えば点V1から点V2に向か
う方向)にそって逆向きになるように設定される。図2
6(C)は、3回目の変換を示している。In the second conversion shown in FIG. 26B, the straight line between the points V1 and V3 and the straight line between the points V3 and V2 are fractalized. That is,
A new point V4 is set between the points V1 and V3,
A new point V5 is set between 3 and the point V2. However,
The positions of the points V4 and V5 are set to be opposite to each other along the traveling direction of a straight line passing through the three points V1, V3, V2 (for example, the direction from the point V1 to the point V2). Figure 2
6 (C) shows the third conversion.
【0107】一般に、k番目の分割において生成される
点の座標(xk+1 ,yk+1 )は、次の数式8で与えられ
る。Generally, the coordinates (x k + 1 , y k + 1 ) of the point generated in the k-th division are given by the following formula 8.
【0108】[0108]
【数8】 [Equation 8]
【0109】ここで、(xs ,ys ),(xe ,ye )
は、k番目の分割がなされる前の直線部分の両端点の座
標である(図26(C)の例を参照)。数式8の右辺第
2項(中点の変位を示す項)は2-kD を含むので、分割
の回数kが増すに従って、中点における変位が小さくな
っていく(すなわち曲線が細かくなっていく)ことが解
る。この分割は、分割区間が所定の制限値(ε>0)よ
り小さくなるまで、もしくは、決められた回数だけ、繰
返される。Where (x s , y s ), (x e , y e ).
Are coordinates of both end points of the straight line portion before the k-th division is performed (see the example of FIG. 26C). Since the second term on the right side of Equation 8 (the term indicating the displacement of the middle point) includes 2- kD , the displacement at the middle point becomes smaller (that is, the curve becomes finer) as the number of divisions k increases. I understand. This division is repeated until the division section becomes smaller than a predetermined limit value (ε> 0) or a predetermined number of times.
【0110】このように、再帰的に中点変位法によるフ
ラクタル化処理を実行することによって、フラクタル次
元を増大させることができる。すなわち、比較的単純な
中間輪郭線を、より複雑な曲線に変換して、階調補間で
参照された階調輪郭線に近いゆらぎを与えることができ
る。なお、この明細書では、「曲線」という言葉は、直
線も含む広義の用語として使用されている。As described above, the fractal dimension can be increased by recursively executing the fractalization processing by the midpoint displacement method. That is, it is possible to convert a relatively simple intermediate contour line into a more complicated curve and give a fluctuation close to the gradation contour line referred to in the gradation interpolation. In this specification, the term "curve" is used as a broad term including a straight line.
【0111】なお、図12に示した手順で得られる中間
輪郭線は、画素の境界を走る境界輪郭線であり、図27
(a)に示すように階段状の輪郭線となる。中点変位法
によるフラクタル化処理は、階段状の曲線にはあまり適
していない。そこで、中間輪郭線をフラクタル化処理す
る前に、図27(b)に示すように中間輪郭線をスムー
ジングすることが好ましい。ここで、スムージング処理
は、次の数式9に従って行なわれる。Note that the intermediate contour line obtained by the procedure shown in FIG. 12 is a boundary contour line running on the boundary of pixels, and the intermediate contour line shown in FIG.
As shown in (a), it becomes a stepwise contour line. The fractalization process by the midpoint displacement method is not very suitable for stepwise curves. Therefore, it is preferable to smooth the intermediate contour line as shown in FIG. 27B before fractalizing the intermediate contour line. Here, the smoothing process is performed according to the following Expression 9.
【0112】[0112]
【数9】 [Equation 9]
【0113】数式9は、例えば図27(a)に示す3つ
の輪郭点の座標から、その中央の輪郭点の座標を変更す
る演算を意味している。数式9の左辺は、スムージング
後のi番目の輪郭点の座標である。また、定数aは0<
a<1の範囲の値である。定数aとしては、0.2程度
の値が好ましい。Expression 9 means a calculation for changing the coordinates of the central contour point from the coordinates of the three contour points shown in FIG. 27A, for example. The left side of Expression 9 is the coordinates of the i-th contour point after smoothing. The constant a is 0 <
It is a value in the range of a <1. A value of about 0.2 is preferable as the constant a.
【0114】中点変位法ではなく、階段状の曲線の処理
に適した他の種類のフラクタル化処理によって中間輪郭
線にゆらぎを付加する場合には、図27に示すスムージ
ング処理は不要である。また、中間輪郭線にゆらぎを与
えるための処理方法としては、フラクタル化処理以外の
方法を採用することも可能である。例えば、中間輪郭線
を高速フーリエ変換することによってその高周波成分を
抽出し、1/fゆらぎを与えるようにすることも可能で
ある。When the fluctuation is added to the intermediate contour line by the fractalization process of another kind suitable for the process of the stepwise curve instead of the midpoint displacement method, the smoothing process shown in FIG. 27 is unnecessary. Further, as a processing method for giving fluctuation to the intermediate contour line, a method other than the fractalization processing can be adopted. For example, it is possible to extract the high-frequency component by subjecting the intermediate contour line to a fast Fourier transform to give 1 / f fluctuation.
【0115】以上説明したように、この実施例によれ
ば、階調変換特性を示すルックアップテーブル116
(図4)に、多階調画像データが取り得るすべての画像
レベルをテストデータとして入力し、その出力によって
階調参照テーブル122を生成した。そして、階調参照
テーブル122に存在する階調ジャンプから、階調変換
画像データに含まれる階調ジャンプを検出したので、階
調変換画像データのすべてを調べることなく、階調変換
画像データに含まれる階調ジャンプを検出することがで
きる。また、上記実施例では、検出された各階調ジャン
プについて、階調ジャンプの両側の画像レベルの領域の
輪郭線をそれぞれ検出した。これらの輪郭線の包含関係
を調べることによって、階調補間の対象領域と他の領域
の境界を構成する輪郭線セットを容易に抽出することが
できる。また、対象領域内の各画素の画素値を、輪郭線
セットのAループとBループへの最短距離に応じて決定
し、これによって対象領域内に中間画像レベルを割り当
てている。従って、画素値の平均化処理を行なうことな
く、滑らかに階調補間を行なうことができる。As described above, according to this embodiment, the look-up table 116 showing the gradation conversion characteristic is shown.
In FIG. 4, all possible image levels of the multi-tone image data are input as test data, and the tone reference table 122 is generated by the output. Then, since the gradation jump included in the gradation conversion image data is detected from the gradation jump existing in the gradation reference table 122, it is included in the gradation conversion image data without checking all the gradation conversion image data. It is possible to detect a gradation jump that occurs. Further, in the above-described embodiment, for each detected gradation jump, the contour lines of the image level regions on both sides of the gradation jump are detected. By investigating the inclusion relation of these contour lines, the contour line set that constitutes the boundary between the target region for gradation interpolation and another region can be easily extracted. Further, the pixel value of each pixel in the target area is determined according to the shortest distance to the A loop and the B loop of the contour line set, and the intermediate image level is assigned in the target area. Therefore, it is possible to smoothly perform the gradation interpolation without performing the averaging process of the pixel values.
【0116】E.他の実施例:図28は、この発明の他
の実施例における多階調画像データの階調変換方法を示
す説明図である。この階調変換は、ルックアップテーブ
ルを用いた階調補正である。図28(a)は、入力画像
データVinを出力画像データVoutに補正する階調
補正特性(階調変換特性)を示している。図28(b)
に示すように、入力画像データVinをルックアップテ
ーブルに入力すると、出力画像データVoutが出力さ
れる。E. Other Embodiments: FIG. 28 is an explanatory diagram showing a gradation conversion method for multi-gradation image data according to another embodiment of the present invention. This gradation conversion is gradation correction using a look-up table. FIG. 28A shows a gradation correction characteristic (gradation conversion characteristic) for correcting the input image data Vin into the output image data Vout. FIG. 28 (b)
As shown in, when the input image data Vin is input to the lookup table, the output image data Vout is output.
【0117】図29は、種々の階調補正特性に応じた階
調補正の例である。図29(a−1),(b−1),
(c−1)は階調補正曲線を示しており、図29(a−
2),(b−2),(c−2)はこれらの階調補正曲線
によって階調補正されたグラデーション画像をそれぞれ
示している。図29(a−1)は、入力画像データVi
nと出力画像データVoutが等しい特性を示してお
り、従って、図29(a−2)は階調補正前の元の画像
と同じものである。FIG. 29 shows an example of gradation correction according to various gradation correction characteristics. 29 (a-1), (b-1),
FIG. 29 (a-) shows a gradation correction curve.
2), (b-2), and (c-2) respectively show gradation images whose gradations have been corrected by these gradation correction curves. FIG. 29A-1 shows the input image data Vi.
n and the output image data Vout show the same characteristic, and therefore FIG. 29A-2 is the same as the original image before gradation correction.
【0118】図29(b−2)では、画像データVou
tの値が0と3の間に階調ジャンプが存在する。また、
図29(c−2)では、画像データVoutの値が4と
7の間に階調ジャンプが存在する。このように、階調補
正を行なった結果として、階調ジャンプが発生する場合
がある。In FIG. 29 (b-2), the image data Vou
There is a grayscale jump between the values of t of 0 and 3. Also,
In FIG. 29C-2, a gradation jump exists between the values of the image data Vout of 4 and 7. In this way, a gradation jump may occur as a result of the gradation correction.
【0119】図30は、ルックアップテーブルによる階
調補正を行なう場合の各手段100,102,42,4
4の内部構成を示す機能ブロック図である。図30の構
成は、前述した図4の構成におけるヒストグラム変更部
112とヒストグラム114を、ルックアップテーブル
変更部118に置き換えたものである。ルックアップテ
ーブル変更部118は、ユーザによる階調補正曲線の指
定に応じて、ルックアップテーブル116の内容を変更
する。ユーザによる階調補正曲線の指定は、例えば図2
9(a−1)〜(c−1)に示すような階調補正曲線を
カラーCRT36上に表示して、マウス32等の座標入
力手段を用いて曲線の形状を変更することによって行な
われる。FIG. 30 shows each means 100, 102, 42, 4 in the case of performing gradation correction by a look-up table.
4 is a functional block diagram showing the internal configuration of FIG. The configuration of FIG. 30 is obtained by replacing the histogram changing unit 112 and the histogram 114 in the configuration of FIG. 4 described above with a lookup table changing unit 118. The look-up table changing unit 118 changes the contents of the look-up table 116 according to the designation of the gradation correction curve by the user. The gradation correction curve is designated by the user by, for example, referring to FIG.
This is performed by displaying a gradation correction curve as shown in 9 (a-1) to (c-1) on the color CRT 36 and changing the shape of the curve using coordinate input means such as the mouse 32.
【0120】図31は、図29(c−2)の画像につい
て検出される補間階調を示す説明図である。補間階調の
検出は、欠落階調検出部120が、前述した図5のステ
ップT3〜T10の手順に従って行なう。この結果、ア
ンダーマーカMdの値は4に決定され、アッパーマーカ
Muの値は7に決定される。これらのマーカを利用した
階調補間の方法は、上述した図10で説明したものと同
じである。FIG. 31 is an explanatory diagram showing interpolation gradations detected for the image of FIG. 29 (c-2). The detection of the interpolation gradation is performed by the missing gradation detection unit 120 according to the procedure of steps T3 to T10 in FIG. As a result, the value of the under marker Md is determined to be 4, and the value of the upper marker Mu is determined to be 7. The gradation interpolation method using these markers is the same as that described with reference to FIG.
【0121】このように、ルックアップテーブルを用い
た階調補正によって多階調画像の階調を変換した場合に
も、階調補正後の画像に存在する階調ジャンプを検出し
て、階調補間を行なうことが可能である。As described above, even when the gradation of the multi-gradation image is converted by the gradation correction using the look-up table, the gradation jump existing in the image after the gradation correction is detected and the gradation is corrected. Interpolation can be performed.
【0122】図32は、この発明のさらに他の実施例に
おけるビット水増しによる多階調画像データの階調変換
方法を示す説明図である。ビット水増しでは、有効ビッ
トの下位側に、すべて0のビットを付加することによっ
て、画像データの階調分解能(ダイナミックレンジ)を
拡大する。図32の例では、8ビット(256階調)が
16ビット(6万4千階調)に拡大されている。ビット
水増しは、スキャナやデジタルカメラ等の入力装置で読
み取られた画像データの階調分解能を増大させ、コンピ
ュータシステムによって、より高品質な画像に修正する
場合に利用される。FIG. 32 is an explanatory diagram showing a gradation conversion method of multi-gradation image data by bit padding in still another embodiment of the present invention. In the bit padding, all zero bits are added to the lower side of the effective bit to expand the gradation resolution (dynamic range) of the image data. In the example of FIG. 32, 8 bits (256 gradations) are expanded to 16 bits (64,000 gradations). The bit padding is used when the gradation resolution of image data read by an input device such as a scanner or a digital camera is increased and a computer system corrects the image to have a higher quality.
【0123】図33は、ビット水増しによる階調補正
と、その後の階調補間の内容を示す説明図である。図3
3(a)は原多階調画像データのヒストグラムを示して
おり、図33(b)は1ビットの水増しを行なった後の
ヒストグラムを示している。ビット水増しを行なうと、
このように周期的に階調ジャンプが生じる。ビット水増
し後の多階調画像に対して本発明の階調補間を行なう
と、図33(c)に示すように、階調ジャンプの無い、
滑らかな階調を有する画像が得られる。FIG. 33 is an explanatory diagram showing the contents of gradation correction by bit padding and subsequent gradation interpolation. Figure 3
3A shows a histogram of original multi-tone image data, and FIG. 33B shows a histogram after 1-bit padding. Bit padding,
In this way, gradation jumps occur periodically. When the gradation interpolation of the present invention is performed on the multi-gradation image after bit padding, as shown in FIG. 33C, there is no gradation jump,
An image having a smooth gradation can be obtained.
【0124】図34は、ビット水増しを行なう場合の各
手段100,102,42,44の内部構成を示すブロ
ック図である。図34の構成は、前述した図4の構成の
ヒストグラム変更部112とヒストグラム114とを省
略したものである。ルックアップテーブル116には、
ビット水増しに相当する階調変換特性が登録されてい
る。FIG. 34 is a block diagram showing the internal structure of each means 100, 102, 42, 44 in the case of performing bit padding. In the configuration of FIG. 34, the histogram changing unit 112 and the histogram 114 of the configuration of FIG. 4 described above are omitted. The lookup table 116 contains
The gradation conversion characteristics corresponding to bit padding are registered.
【0125】図35は、1ビットの水増しが行なわれた
画像について検出される補間階調を示す説明図である。
補間階調の検出は、欠落階調検出部120が、前述した
図5のステップT3〜T10の手順に従って行なう。第
1組目のアンダーマーカMdの値は2であり、アッパー
マーカMuの値は4である。また、第2組目のアンダー
マーカMdの値は4であり、アッパーマーカMuの値は
6である。第3組目以降は省略するが、同様にして、各
階調ジャンプについてアンダーマーカMdとアッパーマ
ーカMuの値が決定される。これらのマーカを利用した
階調補間の方法は、上述した図10で説明したものと同
じである。FIG. 35 is an explanatory diagram showing interpolated gradations detected for an image subjected to 1-bit padding.
The detection of the interpolation gradation is performed by the missing gradation detection unit 120 according to the procedure of steps T3 to T10 in FIG. The value of the undermarker Md of the first set is 2, and the value of the upper marker Mu is 4. The value of the under marker Md of the second set is 4, and the value of the upper marker Mu is 6. Although omitted for the third and subsequent sets, similarly, the values of the under marker Md and the upper marker Mu for each gradation jump are determined. The gradation interpolation method using these markers is the same as that described with reference to FIG.
【0126】このように、ビット水増しによって多階調
画像の階調を変換した場合にも、階調補正後の画像に存
在する階調ジャンプをそれぞれ検出して、階調補間を行
なうことが可能である。なお、階調変換の方法として
は、上述した方法に限らず、この他の種々の方法を適用
することが可能である。As described above, even when the gradation of a multi-gradation image is converted by bit padding, gradation jumps existing in the image after gradation correction can be detected and gradation interpolation can be performed. Is. The gradation conversion method is not limited to the method described above, and various other methods can be applied.
【0127】なお、この発明は上記の実施例や実施形態
に限られるものではなく、その要旨を逸脱しない範囲に
おいて種々の態様において実施することが可能であり、
例えば次のような変形も可能である。The present invention is not limited to the above embodiments and embodiments, but can be implemented in various modes without departing from the scope of the invention.
For example, the following modifications are possible.
【0128】(1)上記実施例では、階調変換特性を表
わすルックアップテーブルに、画像データが取り得るす
べての画像レベルをテストデータとして入力することに
よって、階調参照テーブル122を作成し、この階調参
照テーブル122を用いて階調ジャンプ(アンダーマー
カMdとアッパーマーカMu)を検出していた。しか
し、この発明は、ルックアップテーブルを用いる場合に
限らず、階調変換特性が関数などの他の手段で表わされ
ている場合にも適用可能である。このような場合にも、
その階調変換特性を用いて、多階調画像が取り得るすべ
ての画像レベルを変換することによって、各画像レベル
の変換後のデータで構成される全レベル変換データを生
成することが好ましい。こうすれば、階調変換画像デー
タ自身を調べることなく、階調変換画像データに含まれ
る階調ジャンプを検出することができる。(1) In the above-described embodiment, the gradation reference table 122 is created by inputting all possible image levels of the image data as test data into the look-up table representing the gradation conversion characteristics. A gradation jump (undermarker Md and upper marker Mu) is detected using the gradation reference table 122. However, the present invention is not limited to the case where the lookup table is used, but can be applied to the case where the gradation conversion characteristic is represented by another means such as a function. Even in this case,
It is preferable to generate all level conversion data composed of the converted data of each image level by converting all the image levels that a multi-tone image can take using the gradation conversion characteristic. This makes it possible to detect the gradation jump included in the gradation conversion image data without checking the gradation conversion image data itself.
【0129】なお、上述のように、階調変換特性を用い
て階調変換画像データに含まれる階調ジャンプを検出す
る代わりに、階調変換画像データ自身を調べることによ
って階調ジャンプを検出するようにしてもよい。例え
ば、階調変換画像データのヒストグラムを作成し、ヒス
トグラム中に存在する階調ジャンプを検出するようにし
てもよい。As described above, instead of detecting the gradation jump included in the gradation conversion image data by using the gradation conversion characteristic, the gradation jump is detected by examining the gradation conversion image data itself. You may do it. For example, a histogram of gradation-converted image data may be created, and gradation jumps existing in the histogram may be detected.
【0130】(2)上記実施例においては、多階調画像
の全体を階調補間処理の対象としているが、多階調画像
の一部分を特定して、その一部分にのみ階調補間処理を
行なうようにしてもよい。多階調画像の一部分を特定す
る方法としては、ユーザがカラーCRT36の画面上で
指定する方法や、多階調画像データを分析して階調ジャ
ンプのある領域を自動的に認識する方法等が考えられ
る。(2) In the above embodiment, the entire multi-gradation image is targeted for the gradation interpolation processing, but a part of the multi-gradation image is specified and the gradation interpolation processing is performed only on that part. You may do it. As a method of specifying a part of the multi-tone image, a method in which the user specifies on the screen of the color CRT 36, a method of analyzing the multi-tone image data and automatically recognizing a region having a tone jump, and the like are available. Conceivable.
【0131】特に、多階調画像の全体には階調ジャンプ
がないが、一部分の領域に階調ジャンプが存在するよう
な場合には、多階調画像の一部分のみを階調補間の対象
とすることによって、その部分の階調ジャンプのみをう
まく補間することができるという利点がある。Particularly, when there is no gradation jump in the entire multi-gradation image, but there is a gradation jump in a partial area, only a part of the multi-gradation image is targeted for gradation interpolation. By doing so, there is an advantage that only the gradation jump of that portion can be interpolated well.
【0132】(3)階調補間の前に、階調補間処理の対
象とする画像領域を拡大するようにしてもよい。図36
は、画像領域を拡大してから階調補間処理を行なった場
合の例を示す説明図である。まず、図36(a)におい
て、Aレベルを6、Bレベルを10として、Aタイプの
輪郭線L10とBタイプの輪郭線L20の間に挟まれた
対象領域(A=6レベルの領域)に中間画像レベル(例
えば8)を補間することを考える。ところが、この対象
領域は、1画素の幅なので、階調補間することができな
い。一方、この多階調画像を2倍に拡大して、A=6レ
ベルの対象領域を階調補間すると、図36(b)に示し
ように、8レベルの中間領域を形成することができる。
この結果、階調補間が達成されて、階調が滑らかにな
る。(3) The image area to be subjected to the gradation interpolation processing may be enlarged before the gradation interpolation. Fig. 36
FIG. 6 is an explanatory diagram showing an example of a case where gradation interpolation processing is performed after enlarging an image area. First, in FIG. 36A, assuming that the A level is 6 and the B level is 10, the target area (the area of A = 6 level) sandwiched between the A type contour line L10 and the B type contour line L20. Consider interpolating an intermediate image level (eg 8). However, since this target area has a width of one pixel, gradation interpolation cannot be performed. On the other hand, if this multi-tone image is enlarged twice, and the target region of A = 6 level is subjected to tone interpolation, an 8-level intermediate region can be formed as shown in FIG.
As a result, gradation interpolation is achieved and the gradation becomes smooth.
【0133】図36は、極めて単純化した場合の例を示
したが、一般に、階調補間前に対象となる画像領域を拡
大した後に、階調補間を実行することによって、階調を
より滑らかにすることができる。なお、階調補間の後
に、所望の倍率で階調補間後の多階調画像を縮小するよ
うにしてもよい。FIG. 36 shows an example of an extremely simplified case. Generally, the gradation is smoothed by executing the gradation interpolation after enlarging the target image area before the gradation interpolation. Can be In addition, after the gradation interpolation, the multi-gradation image after the gradation interpolation may be reduced at a desired magnification.
【図1】この発明による階調補間方法の概要を示す説明
図。FIG. 1 is an explanatory diagram showing an outline of a gradation interpolation method according to the present invention.
【図2】複数階調の補間方法の概要を示す説明図。FIG. 2 is an explanatory diagram showing an outline of a method of interpolating a plurality of gradations.
【図3】この発明の実施例を適用して多階調画像の階調
補間を行なうためのコンピュータシステムを示すブロッ
ク図。FIG. 3 is a block diagram showing a computer system for performing gradation interpolation of a multi-gradation image by applying the embodiment of the present invention.
【図4】手段100,102,42,44の内部構成を
示す機能ブロック図。FIG. 4 is a functional block diagram showing an internal configuration of means 100, 102, 42, 44.
【図5】実施例における処理手順を示すフローチャー
ト。FIG. 5 is a flowchart showing a processing procedure in the embodiment.
【図6】階調変換処理の一種としてのヒストグラムを用
いたコントラスト補正と、その後の階調補間の内容を示
す説明図。FIG. 6 is an explanatory diagram showing the contents of contrast correction using a histogram as one type of gradation conversion processing and subsequent gradation interpolation.
【図7】ヒストグラムを用いたコントラスト補正の他の
例と、その後の階調補間の内容を示す説明図。FIG. 7 is an explanatory diagram showing another example of contrast correction using a histogram and the content of gradation interpolation after that.
【図8】ヒストグラムの平滑化処理の結果と、その後の
階調補間の内容を示す説明図。FIG. 8 is an explanatory diagram showing the result of histogram smoothing processing and the content of subsequent gradation interpolation.
【図9】階調参照テーブル122の作成処理の内容を示
す説明図。FIG. 9 is an explanatory diagram showing the contents of a process of creating a gradation reference table 122.
【図10】実施例における階調補間の処理手順を示すフ
ローチャート。FIG. 10 is a flowchart showing a processing procedure of gradation interpolation in the embodiment.
【図11】実施例において処理対象となる多階調画像の
全体と、ステップS1において検出された階調輪郭線と
を示す説明図。FIG. 11 is an explanatory diagram showing the entire multi-gradation image to be processed in the embodiment and the gradation contour lines detected in step S1.
【図12】多階調画像から階調輪郭線L1〜L6を検出
する手順を示す説明図。FIG. 12 is an explanatory diagram showing a procedure for detecting gradation contour lines L1 to L6 from a multi-gradation image.
【図13】画素と境界輪郭線との関係を示す説明図。FIG. 13 is an explanatory diagram showing a relationship between a pixel and a boundary contour line.
【図14】種々の輪郭線セットで示される領域の例を示
す説明図。FIG. 14 is an explanatory diagram showing examples of areas indicated by various contour line sets.
【図15】ステップS2の詳細手順を示すフローチャー
ト。FIG. 15 is a flowchart showing a detailed procedure of step S2.
【図16】ステップS15の詳細手順を示すフローチャ
ート。FIG. 16 is a flowchart showing the detailed procedure of step S15.
【図17】輪郭線の包含関係の判断手順を示す説明図。FIG. 17 is an explanatory diagram showing a procedure for determining the inclusion relationship of contour lines.
【図18】抽出された2組の輪郭線セットを示す説明
図。FIG. 18 is an explanatory diagram showing two sets of extracted contour lines.
【図19】ステップS16,17の処理内容を示す説明
図。FIG. 19 is an explanatory diagram showing the processing contents of steps S16 and S17.
【図20】階調補間手段44の機能を示す機能ブロック
図。FIG. 20 is a functional block diagram showing the function of the gradation interpolating means 44.
【図21】距離計算において参照される輪郭線部分を示
す説明図。FIG. 21 is an explanatory diagram showing a contour line portion referred to in distance calculation.
【図22】第1と第2の輪郭線セットについてそれぞれ
得られた画素値val(p)の分布を示す説明図。FIG. 22 is an explanatory diagram showing distributions of pixel values val (p) obtained for the first and second contour line sets.
【図23】他の多階調画像を階調補間した結果を示す説
明図。FIG. 23 is an explanatory diagram showing a result of gradation interpolation of another multi-gradation image.
【図24】他の多階調画像を階調補間した結果を示す説
明図。FIG. 24 is an explanatory diagram showing a result of gradation interpolation of another multi-gradation image.
【図25】フラクタル次元の測定方法を示す説明図。FIG. 25 is an explanatory diagram showing a method for measuring fractal dimension.
【図26】中点変位法によるフラクタル化処理(ゆらぎ
付加処理)の概要を示す説明図。FIG. 26 is an explanatory diagram showing an outline of fractalization processing (fluctuation addition processing) by the midpoint displacement method.
【図27】中間輪郭線をスムージングする方法を示す説
明図。FIG. 27 is an explanatory diagram showing a method of smoothing an intermediate contour line.
【図28】この発明の他の実施例におけるルックアップ
テーブルを用いた階調補正による多階調画像データの階
調変換方法を示す説明図。FIG. 28 is an explanatory diagram showing a gradation conversion method for multi-gradation image data by gradation correction using a look-up table according to another embodiment of the present invention.
【図29】種々の階調補正特性に応じた階調補正例を示
す説明図。FIG. 29 is an explanatory diagram showing an example of gradation correction according to various gradation correction characteristics.
【図30】ルックアップテーブルによる階調補正を行な
う場合の各手段100,102,42,44の内部構成
を示す機能ブロック図。FIG. 30 is a functional block diagram showing the internal configuration of each means 100, 102, 42, and 44 when performing gradation correction using a lookup table.
【図31】図29(c−2)の画像について検出された
補間階調を示す説明図。31 is an explanatory diagram showing interpolation gradations detected for the image in FIG. 29 (c-2).
【図32】この発明のさらに他の実施例における、ビッ
ト水増しによる多階調画像データの階調変換方法を示す
説明図。FIG. 32 is an explanatory view showing a gradation conversion method for multi-gradation image data by bit padding in still another embodiment of the present invention.
【図33】ビット水増しによる階調補正と、その後の階
調補間の内容を示す説明図。FIG. 33 is an explanatory diagram showing the contents of gradation correction by bit padding and subsequent gradation interpolation.
【図34】ビット水増しを行なう場合の各手段100,
102,42,44の内部構成を示す機能ブロック図。FIG. 34: Means 100 for Bit Inflating,
The functional block diagram which shows the internal structure of 102,42,44.
【図35】1ビットの水増しが行なわれた画像について
検出される補間階調を示す説明図。FIG. 35 is an explanatory diagram showing interpolation gradations detected for an image in which 1-bit padding has been performed.
【図36】画像領域を拡大してから階調補間処理を行な
った場合を示す説明図。FIG. 36 is an explanatory diagram showing a case where gradation interpolation processing is performed after the image area is enlarged.
10…CPU 12…バスライン 14…ROM 16…RAM 30…キーボード 32…マウス 34…デジタイザ 36…カラーCRT 38…磁気ディスク 40…入出力インタフェイス 42…対象領域検出手段 44…階調補間手段 46…ゆらぎ検出手段 48…ゆらぎ付加手段 50…画像入力部 52…画像出力部 60…階調輪郭線検出部 62…階調輪郭線データメモリ 64…対象輪郭線抽出部 66…輪郭線ループバッファ 70…距離計算部 72…画素値演算部 74…輪郭線/点列変換部 76…対象画素バッファ 78a…Aループ輪郭点列バッファ 78b…Bループ輪郭点列バッファ 100…階調変換手段 102…補間階調検出手段 112…ヒストグラム変更部 114…ヒストグラム 116…ルックアップテーブル(LUT) 118…ルックアップテーブル変更部 120…欠落階調検出部120 122…階調参照テーブル 124…アッパーマーカMu 126…アンダーマーカMd 10 ... CPU 12 ... Bus line 14 ... ROM 16 ... RAM 30 ... Keyboard 32 ... Mouse 34 ... Digitizer 36 ... Color CRT 38 ... Magnetic disk 40 ... Input / output interface 42 ... Target area detecting means 44 ... Gradation interpolation means 46. Fluctuation detecting means 48. Fluctuation adding means 50 ... Image input section 52 ... Image output unit 60 ... Gradation contour detection section 62 ... Gradation contour data memory 64 ... Target contour line extraction unit 66 ... Contour loop buffer 70 ... Distance calculation unit 72 ... Pixel value calculator 74 ... Contour line / point sequence conversion unit 76 ... Target pixel buffer 78a ... A loop contour point sequence buffer 78b ... B loop contour point sequence buffer 100 ... Gradation conversion means 102 ... Interpolation gradation detection means 112 ... Histogram change section 114 ... Histogram 116 ... Look-up table (LUT) 118 ... Lookup table change section 120 ... Missing gradation detection unit 120 122 ... gradation reference table 124 ... Upper marker Mu 126 ... Undermarker Md
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平9−60156(JP,A) 特開 平9−114972(JP,A) 特開 平2−248159(JP,A) 特開 平1−61878(JP,A) 特開 昭62−292074(JP,A) 特開 昭61−91661(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-9-60156 (JP, A) JP-A-9-114972 (JP, A) JP-A-2-248159 (JP, A) JP-A-1- 61878 (JP, A) JP 62-292074 (JP, A) JP 61-91661 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) H04N 1/40-1 / 409
Claims (11)
法であって、(a)多階調画像を表わす多階調画像デー
タの階調を変換することによって、階調変換画像データ
を生成する工程と、(b)前記階調変換画像データに含
まれる画像レベルの中で、中間に階調ジャンプが存在す
る第1と第2の画像レベルを特定する工程と、(c)前
記階調変換画像データを処理することによって、前記第
1の画像レベルを有する領域と前記第1の画像レベル未
満の画像レベルを有する他の領域との境界を示すAタイ
プの輪郭線を表わす第1の輪郭データを求める工程と、
(d)前記階調変換画像データを処理することによっ
て、前記第1の画像レベルを有する領域と前記第2の画
像レベル以上の画像レベルを有する他の領域との境界を
示すBタイプの輪郭線を表わす第2の輪郭データを求め
る工程と、(e)前記第1と第2の輪郭データに基づい
て前記AタイプとBタイプの輪郭線の相互の包含関係を
判断することによって、前記第1の画像レベルを有する
領域の中で前記第2の画像レベルを有する画像領域に隣
接する領域を階調補間の対象領域として検出し、前記対
象領域の輪郭を示す少なくとも1組の輪郭線セットを前
記AタイプとBタイプの輪郭線の中から抽出する工程
と、(f)前記対象領域内において、前記1組の輪郭線
セットの中の前記Aタイプの輪郭線と前記Bタイプの輪
郭線との間を(N+1)個(Nは1以上の整数)の区分
領域に区分し、前記(N+1)個の区分領域の中で前記
第2の画像レベルの画像領域に近いN個の区分領域に前
記N個の中間画像レベルを順次割り当てる工程と、を備
える階調補間方法。1. A method of interpolating a gradation jump of a multi-gradation image, comprising: (a) converting the gradation of multi-gradation image data representing a multi-gradation image to obtain gradation conversion image data. A step of generating, (b) a step of specifying first and second image levels having a gradation jump in the middle among the image levels included in the gradation conversion image data, and (c) the floor Processing the tonal transformed image data to represent a first type A contour line delineating a boundary between an area having the first image level and another area having an image level less than the first image level. A step of obtaining contour data,
(D) By processing the gradation-converted image data, a B-type contour line indicating a boundary between an area having the first image level and another area having an image level equal to or higher than the second image level And (e) determining the mutual inclusion relation between the A-type and B-type contour lines based on the first and second contour data. Area adjacent to the image area having the second image level is detected as a target area for gradation interpolation, and at least one contour line set indicating the contour of the target area is set. Extracting from the A-type and B-type contours, (f) in the target area, the A-type contour and the B-type contour in the one set of contours Between (N + 1 (N is an integer greater than or equal to 1) segmented regions, and the N intermediate images are divided into N segmented regions near the image region of the second image level among the (N + 1) segmented regions. And a step of sequentially assigning levels.
階調画像データが取り得るすべての画像レベルを変換す
ることによって、各画像レベルの変換後のデータで構成
される全レベル変換データを生成する工程と、 前記全レベル変換データに存在する階調ジャンプを検出
するとともに、前記階調ジャンプを挟む下側および上側
の画像レベルを、前記第1の画像レベルおよび前記第2
の画像レベルとしてそれぞれ決定する工程と、を含む、
階調補間方法。2. The gradation interpolation method according to claim 1, wherein the step (b) uses all of the gradation conversion characteristics obtained in the step (a) to obtain all possible multi-gradation image data. A step of generating all-level conversion data composed of data after conversion of each image level by converting the image level; detecting a gradation jump existing in the all-level conversion data; The lower and upper image levels sandwiching between the first image level and the second image level are
And a step of determining each as an image level of
Tone interpolation method.
あって、 前記工程(b)は、 前記階調変換画像データに存在する複数の階調ジャンプ
について、前記第1と第2の画像レベルの組をそれぞれ
求める工程を含み、 前記工程(c)ないし(f)は、前記第1と第2の画像
レベルの各組に関して実行される、階調補間方法。3. The gradation interpolation method according to claim 1, wherein in the step (b), the first and second gradation jumps for a plurality of gradation jumps existing in the gradation conversion image data are included. A gradation interpolation method, comprising: determining each set of image levels, wherein steps (c) to (f) are performed for each set of the first and second image levels.
調補間方法であって、 前記工程(f)は、 前記対象領域内の各画素の画像レベルを、数式1に従っ
て決定することによって、前記(N+1)個の区分領域
を形成する工程を備える、階調補間方法。 【数1】 ここで、val(p)は前記対象領域内の各画素の画像
レベル、val(Md)は前記第1の画像レベル、va
l(Mu)は前記第2の画像レベル、D(Md)はAタ
イプの輪郭線への最短距離、D(Mu)はBタイプの輪
郭線への最短距離である。4. The gradation interpolation method according to claim 1, wherein in the step (f), the image level of each pixel in the target area is determined according to Expression 1. , A gradation interpolation method, which comprises the step of forming the (N + 1) number of divided areas. [Equation 1] Here, val (p) is the image level of each pixel in the target area, val (Md) is the first image level, and va
l (Mu) is the second image level, D (Md) is the shortest distance to the A type contour, and D (Mu) is the shortest distance to the B type contour.
調補間方法であって、 前記工程(f)は、(f1)前記対象領域内において、
前記1組の輪郭線セットの中の前記Aタイプの輪郭線へ
の最短距離と、前記Bタイプの輪郭線への最短距離とが
所定の関係を有する位置にN本の中間輪郭線が作成され
るように前記(N+1)個の区分領域を形成する工程を
備える、階調補間方法。5. The gradation interpolation method according to claim 1, wherein the step (f) includes (f1) in the target region,
N intermediate contour lines are created at positions where the shortest distance to the A type contour line and the shortest distance to the B type contour line in the one contour set have a predetermined relationship. Gradation interpolation method, comprising the step of forming the (N + 1) segment areas.
トの中の前記Aタイプの輪郭線への最短距離と、前記B
タイプの輪郭線への最短距離とがm対n(m,nは1以
上N以下の整数で、m,nのN個の組み合わせはm+n
=N+1を満足する)の関係にある位置である、階調補
間方法。6. The gradation interpolation method according to claim 5, wherein the position having the predetermined relationship is the shortest distance to the A-type contour line in the one contour set, and B
The shortest distance to the contour of the type is m to n (m and n are integers from 1 to N, and N combinations of m and n are m + n).
= N + 1), the gradation interpolation method.
調補間方法であって、 前記工程(e)は、(e1)前記Aタイプの輪郭線を、
その内部領域が前記第1の画像レベル以上の画像レベル
を有するA+タイプの輪郭線と、その内部領域が前記第
1の画像レベル未満の画像レベルを有するA−タイプの
輪郭線とに分類する工程と、(e2)前記Bタイプの輪
郭線を、その内部領域が前記第2の画像レベル以上の画
像レベルを有するB+タイプの輪郭線と、その内部領域
が前記第2の画像レベル未満の画像レベルを有するB−
タイプの輪郭線とに分類する工程と、(e3)少なくと
も前記A+タイプの輪郭線と前記B+タイプの輪郭線と
に挟まれた領域と、前記B−タイプの輪郭線と前記A−
タイプの輪郭線とに挟まれた領域と、の少なくとも一方
を前記対象領域として検出する工程と、を備える階調補
間方法。7. The gradation interpolation method according to claim 1, wherein in the step (e), (e1) the A-type contour line,
Classifying into an A + type contour line whose internal region has an image level equal to or higher than the first image level and an A- type contour line whose internal region has an image level lower than the first image level. And (e2) the B type contour line, the B + type contour line whose inner region has an image level equal to or higher than the second image level, and the inner region whose image level is lower than the second image level. With B-
(E3) a region sandwiched between at least the A + type contour line and the B + type contour line, the B− type contour line, and the A−
And a step of detecting at least one of a region sandwiched by the contour line of the type as the target region.
調補間方法であって、さらに、(g)前記(N+1)個
の区分領域の境界に存在するN本の中間輪郭線を抽出す
る工程と、(h)前記N本の中間輪郭線にゆらぎを付加
する工程と、を備える階調補間方法。8. The gradation interpolation method according to claim 1, further comprising: (g) extracting N intermediate contour lines existing at the boundaries of the (N + 1) segment areas. And (h) adding fluctuations to the N intermediate contour lines.
調補間方法であって、 前記工程(c)の前に、前記多階調画像領域を拡大する
工程を備える、階調補間方法。9. The gradation interpolation method according to claim 1, further comprising the step of enlarging the multi-tone image area before the step (c). .
装置であって、 多階調画像を表わす多階調画像データの階調を変換する
ことによって、階調変換画像データを生成する階調変換
手段と、 前記階調変換画像データに含まれる画像レベルの中で、
中間に階調ジャンプが存在する第1と第2の画像レベル
を特定する補間階調検出手段と、 前記階調変換画像データを処理することによって、前記
第1の画像レベルを有する領域と前記第1の画像レベル
未満の画像レベルを有する他の領域との境界を示すAタ
イプの輪郭線を表わす第1の輪郭データを求めるととも
に、前記階調変換画像データを処理することによって、
前記第1の画像レベルを有する領域と前記第2の画像レ
ベル以上の画像レベルを有する他の領域との境界を示す
Bタイプの輪郭線を表わす第2の輪郭データを求める輪
郭線検出手段と、 前記第1と第2の輪郭データに基づいて前記Aタイプと
Bタイプの輪郭線の相互の包含関係を判断することによ
って、前記第1の画像レベルを有する領域の中で前記第
2の画像レベルを有する画像領域に隣接する領域を階調
補間の対象領域として検出し、前記対象領域の輪郭を示
す少なくとも1組の輪郭線セットを前記AタイプとBタ
イプの輪郭線の中から抽出する対象輪郭線抽出手段と、 前記対象領域内において、前記1組の輪郭線セットの中
の前記Aタイプの輪郭線と前記Bタイプの輪郭線との間
を(N+1)個(Nは1以上の整数)の区分領域に区分
し、前記(N+1)個の区分領域の中で前記第2の画像
レベルの画像領域に近いN個の区分領域に前記N個の中
間画像レベルを順次割り当てる補間手段と、を備える階
調補間装置。10. A device for interpolating a gradation jump of a multi-gradation image, wherein the gradation conversion image data is generated by converting the gradation of multi-gradation image data representing the multi-gradation image. A tone conversion means, and among the image levels included in the tone conversion image data,
Interpolation gradation detection means for specifying first and second image levels having gradation jumps in the middle; and processing the gradation converted image data to obtain a region having the first image level and the area having the first image level. By obtaining first contour data representing an A type contour line indicating a boundary with another region having an image level less than one image level, and processing the gradation-converted image data,
Contour line detecting means for obtaining second contour data representing a B type contour line indicating a boundary between an area having the first image level and another area having an image level equal to or higher than the second image level, By determining the mutual inclusion relationship between the A-type and B-type contour lines based on the first and second contour data, the second image level in the region having the first image level is determined. A target contour for detecting a region adjacent to the image region having the following as a target region for gradation interpolation, and extracting at least one set of contour lines indicating the contour of the target region from the A and B type contour lines. Line extraction means, and (N + 1) (N is an integer of 1 or more) between the A type contour line and the B type contour line in the one set of contour line sets in the target region. In the division area of Of the (N + 1) divided areas, the interpolation means sequentially assigns the N intermediate image levels to the N divided areas close to the image area of the second image level. .
ためのコンピュータプログラムを記録したコンピュータ
読み取り可能な記録媒体であって、 多階調画像を表わす多階調画像データの階調を変換する
ことによって、階調変換画像データを生成する階調変換
機能と、 前記階調変換画像データに含まれる画像レベルの中で、
中間に階調ジャンプが存在する第1と第2の画像レベル
を特定する補間階調検出機能と、 前記階調変換画像データを処理することによって、前記
第1の画像レベルを有する領域と前記第1の画像レベル
未満の画像レベルを有する他の領域との境界を示すAタ
イプの輪郭線を表わす第1の輪郭データを求めるととも
に、前記階調変換画像データを処理することによって、
前記第1の画像レベルを有する領域と前記第2の画像レ
ベル以上の画像レベルを有する他の領域との境界を示す
Bタイプの輪郭線を表わす第2の輪郭データを求める輪
郭線検出機能と、 前記第1と第2の輪郭データに基づいて前記Aタイプと
Bタイプの輪郭線の相互の包含関係を判断することによ
って、前記第1の画像レベルを有する領域の中で前記第
2の画像レベルを有する画像領域に隣接する領域を階調
補間の対象領域として検出し、前記対象領域の輪郭を示
す少なくとも1組の輪郭線セットを前記AタイプとBタ
イプの輪郭線の中から抽出する対象輪郭線抽出機能と、 前記対象領域内において、前記1組の輪郭線セットの中
の前記Aタイプの輪郭線と前記Bタイプの輪郭線との間
を(N+1)個(Nは1以上の整数)の区分領域に区分
し、前記(N+1)個の区分領域の中で前記第2の画像
レベルの画像領域に近いN個の区分領域に前記N個の中
間画像レベルを順次割り当てる補間機能と、をコンピュ
ータに実現させるためのコンピュータプログラムを記録
したコンピュータ読み取り可能な記録媒体。11. A computer-readable recording medium recording a computer program for interpolating a gradation jump of a multi-gradation image, wherein the gradation of multi-gradation image data representing the multi-gradation image is converted. By this, a gradation conversion function for generating gradation-converted image data, and among the image levels included in the gradation-converted image data,
An interpolation gradation detection function for specifying first and second image levels having a gradation jump in the middle; and a region having the first image level and the first and second areas by processing the gradation conversion image data. By obtaining first contour data representing an A type contour line indicating a boundary with another region having an image level less than one image level, and processing the gradation-converted image data,
A contour line detecting function for obtaining second contour data representing a B type contour line indicating a boundary between an area having the first image level and another area having an image level equal to or higher than the second image level, By determining the mutual inclusion relationship between the A-type and B-type contour lines based on the first and second contour data, the second image level in the area having the first image level is determined. A target contour for detecting a region adjacent to the image region having the following as a target region for gradation interpolation, and extracting at least one set of contour lines indicating the contour of the target region from the A and B type contour lines. Line extraction function, and (N + 1) (N is an integer of 1 or more) between the A type contour line and the B type contour line in the one set of contour line sets in the target area. In the division area of In order to realize the computer, an interpolation function of sequentially allocating the N intermediate image levels to the N divided areas close to the image area of the second image level among the (N + 1) divided areas A computer-readable recording medium recording the computer program of.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18442297A JP3455397B2 (en) | 1996-06-28 | 1997-06-24 | Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18837696 | 1996-06-28 | ||
| JP8-188376 | 1996-06-28 | ||
| JP18442297A JP3455397B2 (en) | 1996-06-28 | 1997-06-24 | Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH1084481A JPH1084481A (en) | 1998-03-31 |
| JP3455397B2 true JP3455397B2 (en) | 2003-10-14 |
Family
ID=26502495
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18442297A Expired - Fee Related JP3455397B2 (en) | 1996-06-28 | 1997-06-24 | Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3455397B2 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4463705B2 (en) | 2005-03-01 | 2010-05-19 | 三菱電機株式会社 | Image display device and image display method |
| JP4527750B2 (en) | 2007-05-30 | 2010-08-18 | 三菱電機株式会社 | Image processing apparatus and method, and image display apparatus |
| JP4424386B2 (en) | 2007-08-09 | 2010-03-03 | 三菱電機株式会社 | Image display device, image processing device, and image processing method |
| JP4823996B2 (en) * | 2007-11-02 | 2011-11-24 | 日本電産トーソク株式会社 | Outline detection method and outline detection apparatus |
| US8300974B2 (en) | 2007-11-12 | 2012-10-30 | Mitsubishi Electric Corporation | Image processing device, image display device, and image processing method therefor |
| RU2012106583A (en) * | 2009-07-31 | 2013-10-20 | Шарп Кабусики Кайся | DEGREE CONTROL DEVICE, IMAGE DISPLAY DEVICE, TELEVISION RECEIVER, PROGRAM AND COMPUTER READABLE MEDIA, HAVING A SAVED PROGRAM |
| JP6070317B2 (en) * | 2013-03-19 | 2017-02-01 | ブラザー工業株式会社 | Image processing apparatus and computer program |
| JP6111796B2 (en) * | 2013-03-28 | 2017-04-12 | ブラザー工業株式会社 | Image processing apparatus and computer program |
-
1997
- 1997-06-24 JP JP18442297A patent/JP3455397B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH1084481A (en) | 1998-03-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100891428B1 (en) | System and method for generating color gradients, interpolation method for facilitating color gradients, computer readable recording medium storing data packet for facilitating color gradients | |
| US6768491B2 (en) | Barycentric centroid sampling method and apparatus | |
| US9824431B2 (en) | Image synthesis apparatus, image synthesis method, and recording medium | |
| WO1999038319A1 (en) | Image processing device and image processing method | |
| CN109510918A (en) | Image processing apparatus and image processing method | |
| JP3455397B2 (en) | Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing | |
| JP2013020617A (en) | Grayscale character image normalization device and method | |
| JP3142550B2 (en) | Graphic processing unit | |
| US5999658A (en) | Image tone interpolation method and apparatus therefor | |
| US8150185B2 (en) | Image processing for generating a thin line binary image and extracting vectors | |
| JP4436202B2 (en) | Image quality improvement using partial template matching | |
| JP3455396B2 (en) | Image gradation interpolation method and apparatus, and recording medium recording a program for executing the processing | |
| US20060119897A1 (en) | Output apparatus and program thereof | |
| JP4708866B2 (en) | Lookup table creation device and method, and lookup table creation program | |
| JP6190152B2 (en) | Image processing apparatus and image processing method | |
| JP2006050481A (en) | Image processing apparatus, image processing method and program thereof | |
| JP2008527416A (en) | Using input black and white bitmap to generate bolded anti-aliasing bitmap | |
| US8300954B2 (en) | Information processing apparatus and method, and program | |
| JP4346620B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JPH07141511A (en) | Vignette image converter | |
| JP3330803B2 (en) | Image data processing method | |
| JP3417753B2 (en) | Method and apparatus for generating gradation character | |
| JP3615375B2 (en) | Image processing method, apparatus, and storage medium | |
| JP4506954B2 (en) | Image processing apparatus, image processing method, image processing program, and storage medium | |
| JP2802646B2 (en) | A scaling method for character patterns using vector fonts |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080725 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |