JP2009005331A - Image processing unit and program - Google Patents
Image processing unit and program Download PDFInfo
- Publication number
- JP2009005331A JP2009005331A JP2008042659A JP2008042659A JP2009005331A JP 2009005331 A JP2009005331 A JP 2009005331A JP 2008042659 A JP2008042659 A JP 2008042659A JP 2008042659 A JP2008042659 A JP 2008042659A JP 2009005331 A JP2009005331 A JP 2009005331A
- Authority
- JP
- Japan
- Prior art keywords
- edge
- image
- unit
- color
- component
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、画像処理装置及び画像処理プログラムに関するものである。 The present invention relates to an image processing apparatus and an image processing program.
従来より、例えばカラー画像を白黒のプリンタで出力する場合などのように、カラー画像を白黒画像に変換することが行われている。カラー画像を白黒画像に変換する従来技術として、8色、16色程度のカラー画像であれば各色と白黒の階調とを対応づけて変換することにより、カラー画像を白黒により再現できる。しかし、フルカラー画像では1677万色以上の色が指定可能であるため、各色を白黒の階調と対応づけることは困難であるし、対応づけても利用者が階調の違いによって色の違いを認識できない場合も考えられる。 Conventionally, a color image is converted into a monochrome image, for example, when a color image is output by a monochrome printer. As a conventional technique for converting a color image into a black and white image, a color image can be reproduced in black and white by converting each color and black and white gradation in association with each other in the case of a color image of about 16 colors. However, since it is possible to specify more than 16.77 million colors in a full-color image, it is difficult to associate each color with a black and white gradation. There are cases where it cannot be recognized.
このように、カラー画像における色の違いを利用者が分かるように白黒画像へ一律に変換することは困難である。そのため、例えばカラー画像の1要素、例えば明度のみに着目して白黒画像へ変換することになる。この場合、他の要素について、例えば色相や彩度が異なっていても明度が同じであれば同じ白黒階調に変換されることになる。 Thus, it is difficult to uniformly convert the color difference in the color image into a monochrome image so that the user can understand. For this reason, for example, focusing on only one element of a color image, for example, brightness, the image is converted into a black and white image. In this case, for other elements, for example, even if the hue and saturation are different, if the lightness is the same, it is converted to the same monochrome gradation.
例えば特許文献1においては、基本的には白黒階調変換して擬似中間調処理を行うが、色相が異なる文字線画を検出して白黒階調変換後に強調処理を施して擬似中間調処理を行う。これにより、色相が異なる文字線画については、その色相の違いを濃度の違いにより表現し、文字線画を再現するようにしている。 For example, in Japanese Patent Application Laid-Open No. 2004-228561, black and white gradation conversion is basically performed and pseudo halftone processing is performed, but character line images having different hues are detected, and black and white gradation conversion is performed and emphasis processing is performed to perform pseudo halftone processing. . As a result, for character and line drawings having different hues, the difference in hue is expressed by the difference in density so that the character and line images are reproduced.
また、例えば特許文献2においては、赤、緑、青の色成分ごとにエッジを検出し、それらのエッジのうち、白黒のエッジでないものを、白黒2値化した画像に重ね合わせて出力している。このような処理によって、色相の違いだけでなく、濃淡の違う色の境界が黒線として白黒画像中に表現される。この色の境界の黒線は、色の濃淡にかかわらず挿入され、薄い色の境界にも濃い線により表現されることになる。
For example, in
本発明は、カラー画像を白黒画像に変換する際に、カラー画像の明度成分だけでなく色彩成分(色相及び彩度成分あるいは色差成分など)について、使用されている色に応じてその境界を表現した画像処理装置及び画像処理プログラムを提供することを目的とするものである。 In the present invention, when a color image is converted into a black and white image, not only the lightness component of the color image but also the color component (such as hue and saturation component or color difference component) of the boundary is expressed according to the color used. An object of the present invention is to provide an image processing apparatus and an image processing program.
本願請求項1に記載の発明は、カラー画像の明度以外の色彩成分についてのエッジを抽出する第1のエッジ抽出手段と、前記第1のエッジ抽出手段でエッジとして抽出した画素について強調処理を施して二値化処理を行い、そのほかの部分に対しては前記カラー画像の明度成分について二値化処理を行う二値化手段を有することを特徴とする画像処理装置である。 According to the first aspect of the present invention, first edge extraction means for extracting edges for color components other than lightness of a color image, and enhancement processing for pixels extracted as edges by the first edge extraction means. The image processing apparatus further includes binarization means for performing binarization processing and performing binarization processing on the brightness components of the color image for the other portions.
本願請求項2に記載の発明は、本願請求項1に記載の画像処理装置の発明の構成に加えて、さらに、前記カラー画像の明度成分についてエッジを抽出する第2のエッジ抽出手段と、前記第1のエッジ抽出手段及び前記第2のエッジ抽出手段により抽出したエッジを合成する合成手段を有し、前記合成手段は、前記第1のエッジ抽出手段がエッジとして抽出し、前記第2のエッジ抽出手段がエッジとして抽出しなかった画素については、当該画素の周囲に所定数以上の前記第2のエッジ抽出手段によりエッジとして抽出した画素が存在する場合には、当該画素についてエッジ成分としないことを特徴とする画像処理装置である。
In addition to the configuration of the image processing apparatus according to
本願請求項3に記載の発明は、本願請求項2に記載の画像処理装置の発明における前記二値化手段が、前記合成手段により合成されたエッジ成分の前記第1のエッジ抽出手段でエッジとして抽出した画素について強調処理を施して擬似中間調の二値化処理を行うことを特徴とする画像処理装置である。
In the invention according to
本願請求項4に記載の発明は、本願請求項1に記載の画像処理装置の発明の構成に加えて、さらに、前記カラー画像の明度成分についてエッジを抽出する第2のエッジ抽出手段と、前記カラー画像の明度成分について二値化する明度二値化手段と、前記明度二値化手段で二値化された画像に前記第2のエッジ抽出手段で抽出されたエッジの画素を二値の一方の値として合成する第1の合成手段と、前記第1の合成手段で合成した画像に前記第1のエッジ抽出手段により抽出したエッジの画素を前記一方の値として合成する第2の合成手段を有し、前記第2の合成手段は、前記第1の合成手段で合成された画像中で前記一方の値であって前記第1のエッジ抽出手段でエッジとして抽出した画素については、当該画素の周囲に所定数以上の前記一方の値の画素が存在する場合には、当該画素について前記一方の値とせず、前記二値化手段は、前記第2の合成手段により合成された結果を反映させるとともに、前記第2の合成手段により合成された画像中の前記一方の値以外の画素であって前記第1の合成手段で合成された画像で前記一方の値の画素について強調処理を施して擬似中間調の二値化処理を行うことを特徴とする画像処理装置である。
In addition to the configuration of the invention of the image processing device according to
本願請求項5に記載の発明は、本願請求項4に記載の画像処理装置の構成における前記第2の合成手段が、前記第1のエッジ抽出手段がエッジとして抽出し、前記第1の合成手段で合成された画像中で前記一方の値でない画素については、当該画素の周囲に所定数以上の前記一方の値の画素が存在する場合には、当該画素について前記一方の値としないことを特徴とする画像処理装置である。
In the invention according to
本願請求項6に記載の発明は、本願請求項4または請求項5に記載の画像処理装置の構成における前記二値化手段が、前記第2の合成手段により合成された画像中で前記一方の値の画素であって前記第1の合成手段により合成された画像中で前記一方の値以外の画素について、前記第2の合成手段により合成された画像中の前記一方の値以外の画素であって前記第1の合成手段で合成された画像で前記一方の値の画素に対して行う強調処理とは異なる強調処理を施して擬似中間調の二値化処理を行うことを特徴とする画像処理装置である。
In the invention described in
本願請求項7に記載の発明は、カラー画像の明度以外の色彩成分についてのエッジを抽出する第1のエッジ抽出手段と、前記第1のエッジ抽出手段による抽出結果に従って前記カラー画像の明度成分について階調変換を行う階調変換手段と、前記階調変換手段で階調変換された明度成分について二値化する二値化手段を有することを特徴とする画像処理装置である。 According to the seventh aspect of the present invention, there is provided a first edge extracting means for extracting an edge for a color component other than the lightness of the color image, and a lightness component of the color image in accordance with an extraction result by the first edge extracting means. An image processing apparatus comprising: a gradation conversion unit that performs gradation conversion; and a binarization unit that binarizes the lightness component that has undergone gradation conversion by the gradation conversion unit.
本願請求項8に記載の発明は、本願請求項7に記載の発明の画像処理装置の構成に加え、さらに、前記カラー画像の明度成分についてエッジを抽出する第2のエッジ抽出手段と、前記第1のエッジ抽出手段及び前記第2のエッジ抽出手段により抽出したエッジを合成する合成手段を有し、前記階調変換手段は、前記合成手段により合成されたエッジ成分に従って前記カラー画像の明度成分について階調変換を行うことを特徴とする画像処理装置である。
The invention described in
本願請求項9に記載の発明は、カラー画像の明度以外の色彩成分についてのエッジ強度を算出するエッジ強度算出手段と、前記エッジ強度算出手段によって算出されたエッジ強度に従って前記カラー画像の明度成分について階調変換を行う階調変換手段と、前記階調変換手段で階調変換された明度成分について二値化する二値化手段を有することを特徴とする画像処理装置である。 The invention according to claim 9 of the present application relates to an edge strength calculation means for calculating edge strength for color components other than the brightness of the color image, and a brightness component of the color image according to the edge strength calculated by the edge strength calculation means. An image processing apparatus comprising: a gradation conversion unit that performs gradation conversion; and a binarization unit that binarizes the lightness component that has undergone gradation conversion by the gradation conversion unit.
本願請求項10に記載の発明は、本願請求項9に記載の発明の画像処理装置の構成に加え、さらに、前記カラー画像の明度成分についてエッジを抽出する第2のエッジ抽出手段と、前記第2のエッジ抽出手段で抽出したエッジ成分と前記エッジ強度算出手段で算出したエッジ強度を加算する加算手段を有し、前記階調変換手段は、前記加算手段による加算結果に従って前記カラー画像の明度成分について階調変換を行うことを特徴とする画像処理装置である。 The invention described in claim 10 includes, in addition to the configuration of the image processing apparatus of the invention described in claim 9 of the present application, a second edge extracting unit that extracts an edge with respect to a brightness component of the color image, and And an addition means for adding the edge component extracted by the edge extraction means and the edge intensity calculated by the edge intensity calculation means, wherein the gradation conversion means is a lightness component of the color image according to the addition result by the addition means. The image processing apparatus is characterized in that gradation conversion is performed on.
本願請求項11に記載の発明は、コンピュータに、請求項1ないし請求項10のいずれか1項に記載の画像処理装置の機能を実行させることを特徴とする画像処理プログラムである。
The invention according to claim 11 of the present application is an image processing program that causes a computer to execute the function of the image processing apparatus according to any one of
本願請求項1に記載の発明によれば、カラー画像を白黒画像に変換する際に、カラー画像中で使用されている色に応じてその境界を表現することができる。 According to the first aspect of the present invention, when a color image is converted into a black and white image, the boundary can be expressed according to the color used in the color image.
本願請求項2に記載の発明によれば、本願請求項1に記載の発明の効果に加え、色相や彩度のエッジの膨張を防いで色彩のエッジを正確に表現することができる。
According to the invention described in
本願請求項3に記載の発明によれば、本願請求項2に記載の発明の効果に加え、色相や彩度のエッジを明瞭に表現することができる。
According to the invention described in
本願請求項4に記載の発明によれば、本願請求項1に記載の発明の効果に加え、低明度部分を確実に再現するとともに濃色の色相や彩度のエッジでもはっきりと表現することができる。
According to the invention described in
本願請求項5に記載の発明によれば、本願請求項4に記載の発明の効果に加え、色相や彩度のエッジの膨張を防いで色相や彩度のエッジを正確に表現することができる。
According to the invention described in
本願請求項6に記載の発明によれば、本願請求項4または請求項5に記載の発明の効果に加え、色相や彩度のエッジが低明度部分または高明度部分のいずれに存在していても、それぞれの場合に応じて表現することができる。
According to the invention described in
本願請求項7に記載の発明によれば、カラー画像を白黒画像に変換する際に、カラー画像中で使用されている色に応じてその境界を表現することができる。 According to the seventh aspect of the present invention, when a color image is converted into a monochrome image, the boundary can be expressed according to the color used in the color image.
本願請求項8に記載の発明によれば、本願請求項7に記載の発明の効果に加え、明度のエッジをはっきりと表現することができる。
According to the invention described in
本願請求項9に記載の発明によれば、カラー画像を白黒画像に変換する際に、カラー画像中で使用されている色彩成分のエッジ強度に応じてその境界を表現することができる。 According to the ninth aspect of the present invention, when a color image is converted into a black and white image, the boundary can be expressed according to the edge strength of the color component used in the color image.
本願請求項10に記載の発明によれば、本願請求項9に記載の発明の効果に加え、明度のエッジ強度についても加味して境界を表現することができる。 According to the invention described in claim 10 of the present application, in addition to the effect of the invention described in claim 9 of the present application, the boundary can be expressed in consideration of the edge strength of brightness.
本願請求項11に記載の発明は、本願請求項1ないし請求項10のいずれか1項に記載の発明の効果と同等の効果を得ることができる。
The invention described in claim 11 of the present application can obtain an effect equivalent to the effect described in any one of
図1は、本発明の第1の実施の形態を示すブロック図である。図中、1はフィルタ部、2は第1エッジ抽出部、3は平滑化部、4は第2エッジ抽出部、5は合成部、6は二値化部、11は色彩エッジ検出部、12は色彩エッジ演算部、13は浮動二値化部である。この例では入力されるカラー画像はL* ,a* ,b* 成分からなる画像であるとする。もちろん、このほかの明度あるいは輝度とその他の成分からなる画像であってもよい。また、明度あるいは輝度の成分を有しない例えばRGB成分からなる画像であれば、明度あるいは輝度の成分を有する色空間への色空間変換を予め行っておけばよい。なお、カラー画像の明度あるいは輝度成分以外の成分をまとめて色彩成分と呼んでいる。この例ではa* ,b* 成分が色彩成分である。 FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, 1 is a filter unit, 2 is a first edge extraction unit, 3 is a smoothing unit, 4 is a second edge extraction unit, 5 is a synthesis unit, 6 is a binarization unit, 11 is a color edge detection unit, 12 Is a color edge calculation unit, and 13 is a floating binarization unit. In this example, it is assumed that the input color image is an image made up of L * , a * , and b * components. Of course, the image may be composed of other lightness or luminance and other components. Further, for an image made up of, for example, RGB components that do not have lightness or luminance components, color space conversion to a color space having lightness or luminance components may be performed in advance. Note that components other than the brightness or luminance component of the color image are collectively referred to as a color component. In this example, the a * and b * components are color components.
フィルタ部1は、カラー画像の明度以外の色彩成分に対して、第1エッジ抽出部2で行うエッジ抽出の支障となるノイズ成分などを除去するフィルタ処理を行う。例えば、指定範囲の画素値の中央値(メジアン)を処理後の画素値とするメジアンフィルタなどで構成すればよい。なお、このフィルタ部1を設けずに構成してもよい。
The
第1エッジ抽出部2は、カラー画像の明度以外の色彩成分についてのエッジを抽出する。この例では、フィルタ部1でフィルタ処理されたa* 成分及びb* 成分について、エッジ抽出処理を行う。第1エッジ抽出部2としては、ここでは色彩エッジ検出部11、色彩エッジ演算部12、浮動二値化部13を有している。
The first
色彩エッジ検出部11は、カラー画像のa* 成分及びb* 成分のそれぞれについてエッジ強度を算出する。エッジ強度の算出方法は任意である。 The color edge detector 11 calculates the edge strength for each of the a * component and b * component of the color image. The method for calculating the edge strength is arbitrary.
色彩エッジ演算部12は、a* 成分のエッジ強度及びb* 成分のエッジ強度を合成した色彩エッジ強度を算出する。例えば二乗和の平方根を算出すればよい。もちろん他の方法でもよい。
The color
浮動二値化部13は、色彩エッジ演算部12により算出された色彩エッジ強度に対して浮動二値化処理を行う。浮動二値化処理は、処理対象の画素値と、その周辺の画素値の平均値を閾値として比較し、処理対象の画素の値を1または0に二値化するものである。このとき、色彩エッジ強度がほぼ一定の領域では小さな色彩エッジ強度の違いにより二値化結果が変化してしまうため、処理対象の画素値と閾値との差(絶対値)が所定以下では0(あるいは1)とするとよい。なお、この浮動二値化部13ではエッジか否かを判断すればよく、エッジ強度を二値化の対象としていることから、固定閾値を用いた二値化処理で代用してもよい。
The floating
浮動二値化部13からの出力(すなわち第1エッジ抽出部2からの出力)にはエッジ部分が抽出されているが、以下の説明では、a* 成分またはb* 成分でエッジが抽出された画素を1、それ以外の部分の画素を0とした二値の色彩エッジ画像が得られるものとする。 An edge portion is extracted from the output from the floating binarization unit 13 (that is, the output from the first edge extraction unit 2), but in the following description, an edge is extracted with an a * component or a b * component. Assume that a binary color edge image is obtained in which the pixel is 1 and the other pixels are 0.
平滑化部3は、カラー画像の明度成分について平滑化処理を行う。例えばカラー画像中に網点領域などがあった場合に個々の網点を平滑化したり、あるいはノイズなどを低減する。平滑化処理後の明度成分の画像から第2エッジ抽出部4でエッジを抽出するため、この平滑化部3ではなるべくエッジ成分が保存されるような平滑化処理を行うことが望ましい。そのような平滑化部3の一例を図2に示す。
The smoothing
図2は、平滑化部の一例を示すブロック図である。図中、21は差分絶対値算出部、22は仮平滑化係数決定部、23は正規化部、24は畳み込み演算部である。差分絶対値算出部21は、平滑化処理の対象となる注目画素を中心とする所定の大きさの参照領域を設定し、注目画素の値(Viとする)と参照領域内の他の画素の値(Vjとする)との差分の絶対値(Aj=|Vi−Vj|)をそれぞれ算出する。
FIG. 2 is a block diagram illustrating an example of the smoothing unit. In the figure, 21 is a difference absolute value calculation unit, 22 is a provisional smoothing coefficient determination unit, 23 is a normalization unit, and 24 is a convolution operation unit. The difference absolute
仮平滑化係数決定部22は、参照領域の各画素に対応する平滑化係数(Cj)を仮決定する。平滑化係数Cjを仮決定する方法として、ここでは、ある単調減少関数f()を設定し、Cj=f(Aj)により平滑化係数Cjを仮決定することができる。f()が単調減少関数であることから、エッジのように差分の絶対値が大きい画素については平滑化係数Cjは小さい値となり注目画素への影響を減らすことができ、逆に非エッジ部のように差分の絶対値が小さい画素については平滑化係数Cjを大きい値として平滑化の効果を大きくすることができる。単調減少関数f()は任意であるが、例えば簡単にはCj=1−(1/max(Aj))・Ajのような線形関数や、2次以上の単調減少関数や指数単調減少関数など、様々な関数を適用可能である。なお、式中のmax(Aj)はAjの最大値である。
The temporary smoothing
正規化部23は、仮平滑化係数決定部22で仮に決定された平滑化係数Cjを正規化する。すなわち、参照領域内の平滑化係数Cjの和が1となるように演算を行う。具体的には正規化後の平滑化係数をCj’とするとき、Cj’=Cj/ΣCjにより求めることができる。この正規化は、一般に平滑化処理が平滑化係数の和を1としたフィルタ処理であることによる。
The normalizing
畳み込み演算部24は、参照領域内の各画素値と正規化部23で得られた正規化された平滑化係数とを用いて、いわゆる畳み込み演算を行う。畳み込み演算は、参照領域内の各画素値と正規化部23で得られた正規化された平滑化係数とを乗算した上で総和を演算することにより行われる。すなわち、演算後の注目画素の値をVi’としたとき、Vi’=ΣCj’・Vjによって演算することができる。
The
このように、この平滑化処理では画像に応じて平滑化係数を決定し、その際に画素値の差分の絶対値の大きさが大きいほど平滑化係数を小さく設定するので、エッジ領域ではエッジが保存され、非エッジ領域では平坦な領域ほど強く平滑化処理が施されることになる。なお、平滑化部3を設けずに構成してもよい。
As described above, in this smoothing process, the smoothing coefficient is determined according to the image, and the smoothing coefficient is set to be smaller as the absolute value of the difference between the pixel values is larger. In the non-edge region, the smoother processing is performed more strongly in the flat region. In addition, you may comprise without providing the smoothing
図1に戻り、第2エッジ抽出部4は、平滑化部3で平滑化処理を施した後の明度成分の画像についてエッジを抽出する。エッジを抽出する方法は任意であるが、例えば浮動二値化によりエッジを抽出すればよい。浮動二値化部13でも説明したように、浮動二値化処理は、処理対象の画素値と、その周辺の画素値の平均値を閾値として比較し、処理対象の画素の値を1または0に二値化するものである。このとき、処理対象の画素値と閾値との差(絶対値)が所定以下では例えば0としておけば、明度が平坦な部分では0となる。これにより、濃度差があるエッジ部分が1となって、エッジが抽出されることになる。
Returning to FIG. 1, the second
合成部5は、第1エッジ抽出部2によりエッジが抽出された二値の画像と第2エッジ抽出部4によりエッジが抽出された二値の画像を合成する。図3は、合成部における合成処理の一例の説明図、図4は、第1エッジ抽出部でエッジを抽出し、第2エッジ抽出部でエッジを抽出しなかった場合の合成処理の具体例の説明図である。第1エッジ抽出部2によりエッジが抽出された(値‘1’)か否か(値‘0’)と、第2エッジ抽出部4によりエッジが抽出された(値‘1’)か否か(値‘0’)の組み合わせにより、合成後の値を図3に示すように決定する。
The synthesizing
すなわち、第1エッジ抽出部2の出力も第2エッジ抽出部4の出力も‘0’であり、いずれもエッジとして検出していなければ、合成後の値は‘0’としてエッジでないとする。また、第1エッジ抽出部2の出力は‘0’であってエッジを検出していない場合でも、第2エッジ抽出部4の出力が‘1’であり、エッジを検出していた場合には、合成後の値を‘1’としてエッジであるとする。
That is, the output of the first
第1エッジ抽出部2の出力が‘1’であり、エッジを検出している場合に、第2エッジ抽出部4の出力が‘0’であってエッジを検出していない場合には、基本的には合成後の値を‘1’としてエッジであるとする。ただし、その処理対象の画素の周囲の画素について第2エッジ抽出部4の出力を参照し、第2エッジ抽出部4によりエッジとして抽出した画素(値‘1’の画素)が所定数(a)以上存在する場合には、合成後の値を‘0’としてエッジとしない。
If the output of the first
これは、第1エッジ抽出部2と第2エッジ抽出部4の処理の違いによるものである。例えば図4(A)には、明度及び色彩とも周囲と異なる三角の図形が描かれたカラー画像を示している。図示の都合上、図形部分に斜線を施して示している。第1エッジ抽出部2では色彩のエッジをそのエッジの両側で抽出してしまうため、図4(B)に示すように図4(A)に示した図形のエッジよりも膨張したようなエッジ画像となる。一方、第2エッジ抽出部4では浮動二値化処理を行っているので、エッジ部の0または1の位置は保存され、図4(C)に示すようなエッジ画像が得られている。両者を比較すると、三角の図形のエッジの外側で、第1エッジ抽出部2でエッジとして抽出されたが第2エッジ抽出部4ではエッジとして抽出されていない画素が生じる。この画素についてエッジとはしないことによって、図4(D)に示すように、図形に即したエッジ成分が含まれたエッジ画像が合成されることになる。なお、図4(D)においてエッジ成分として残された部分は、第1エッジ抽出部2と第2エッジ抽出部4とでエッジ部として抽出した画素である。
This is due to the difference in processing between the first
再び図1に戻り、二値化部6は、合成部5により合成されたエッジ画像を反映させて、カラー画像の明度成分について二値化する。図5は、二値化部6の処理の一例の説明図である。二値化部6は、図5(A)に示すように、入力されたカラー画像の明度成分(Lとする)と、第2エッジ抽出部4から出力される明度に関するエッジ画像(ELとする)と、合成部5で合成されたエッジ画像(ELCとする)を用いる。そして、図5(B)に従って二値化する。
Returning to FIG. 1 again, the
まず、合成されたエッジ画像(ELC)が‘1’の場合には、基本的には二値化出力は‘1’とする。しかし、エッジ画像(ELC)が‘1’であっても|ELC−EL|が‘1’の場合、すなわち明度成分のエッジ画像ELが‘0’である色彩成分のエッジの場合には、明度成分(L)を参照し、強調処理を施した後に擬似中間調の二値化処理を行う。これにより、明度が変化していなくても色彩が変化したエッジが存在していれば、そのエッジが利用者に視認されるような二値化結果が出力されることになる。 First, when the synthesized edge image (ELC) is “1”, the binarized output is basically set to “1”. However, even if the edge image (ELC) is “1”, if | ELC-EL | is “1”, that is, if the edge image EL of the lightness component is “0”, the lightness With reference to the component (L), the emphasis process is performed, and then the pseudo halftone binarization process is performed. As a result, if there is an edge whose color has changed even if the brightness has not changed, a binarization result is output so that the edge can be visually recognized by the user.
このときの強調処理は、例えば図5(C)に示すような関数に従って行う。この例では、カラー画像の明度値を減少させるように設定した関数であり、擬似中間調の二値画像では、利用者にとって濃く見えるように変換している。もちろん、強調処理に用いる関数は任意であるし、強調処理の方法についても任意である。 The enhancement process at this time is performed according to a function as shown in FIG. In this example, the function is set so as to decrease the brightness value of the color image, and the pseudo halftone binary image is converted so that it looks dark to the user. Of course, the function used for the enhancement process is arbitrary, and the enhancement process method is also arbitrary.
また、合成されたエッジ画像(ELC)が‘0’の場合には、エッジ以外の部分であるので基本的には明度成分に従って擬似中間調の二値化処理を行い、濃淡を再現する。なお、この例ではELCが‘0’の場合には|ELC−EL|が‘1’にはならない。 Further, when the synthesized edge image (ELC) is “0”, since it is a portion other than the edge, a pseudo-halftone binarization process is basically performed according to the lightness component to reproduce light and shade. In this example, when ELC is “0”, | ELC-EL | does not become “1”.
このようにして二値化部6から出力される二値画像は、平坦部は擬似中間調により再現され、明度及び色彩成分のエッジについても再現される。利用者が出力された二値画像を参照した際には、濃淡により明るさの違いが視認される。また、同じ明るさでも色の違いは、エッジ部を強調処理して擬似中間調により二値化するので、それぞれの色の明るさに応じたエッジが表現され、色の違いが視認されることになる。例えば薄い色が隣接している部分では、単に黒い線を挿入するのではなく、その色の明るさより多少濃いエッジが挿入されることになる。
In this way, the binary image output from the
図6は、本発明の第1の実施の形態における動作の一例を示すフローチャート、図7は、同じく各処理過程における画像の具体例の説明図である。なお、S31とS32〜S35の処理はいずれが先に行われてもよいし、並行して行ってもよい。 FIG. 6 is a flowchart showing an example of the operation according to the first embodiment of the present invention, and FIG. 7 is an explanatory diagram of a specific example of an image in each processing step. Note that either of the processes of S31 and S32 to S35 may be performed first or in parallel.
以下の説明では図7(A)に示すカラー画像が処理対象として入力されたものとする。図示の都合上、濃淡や色の違いは斜線の間隔や方向などを異ならせたり交差させるなどにより示している。図7(A)に示したカラー画像の例では、4つの異なる画像により構成されている。左上は白色の背景に黒色で四角が描かれている。左下は白色の背景に灰色の四角が描かれている。右上は背景と四角との明度は同じであるがb* 成分が異なる色で背景及び四角が描かれている例を示している。右下は灰色の背景に、背景より濃い灰色の四角が描かれている。このようなカラー画像の明度成分は図7(B)に示すようになり、また、b* 成分は図7(C)に示すようになったとする。 In the following description, it is assumed that the color image shown in FIG. For convenience of illustration, the difference in shading and color is indicated by changing the intervals and directions of diagonal lines or crossing them. In the example of the color image shown in FIG. 7A, the image is composed of four different images. The upper left is a black square on a white background. The lower left corner has a gray square on a white background. The upper right shows an example in which the background and the square are drawn with colors having the same brightness but a different b * component. The lower right corner has a gray background and a darker gray square than the background. It is assumed that the brightness component of such a color image is as shown in FIG. 7B, and the b * component is as shown in FIG. 7C.
図6のS31において、処理対象のカラー画像の明度成分について、平滑化部3で平滑化処理を施し、第2エッジ抽出部4で例えば浮動二値化処理などによりエッジを抽出する。この処理によって、図7(B)に示した明度成分の画像から、図7(D)に示すような明度エッジ画像が得られる。
In S31 of FIG. 6, the lightness component of the color image to be processed is subjected to smoothing processing by the smoothing
また、処理対象のカラー画像の明度成分以外の色彩成分、ここではa* 成分及びb* 成分について、S32においてフィルタ部1でフィルタ処理を施した後、S33で第1エッジ抽出部2の色彩エッジ検出部11はa* 成分及びb* 成分のそれぞれについてエッジ強度を算出する。そしてS34において、色彩エッジ演算部12は色彩エッジ検出部11で得たa* 成分及びb* 成分のエッジ強度を合成し、S35において、浮動二値化部13は合成されたエッジ強度を浮動二値化処理する。これによって、図7(C)に示したb* 成分の画像(及びa* 成分の画像)から、図7(E)に示すような色彩エッジ画像が得られる。
Further, after color processing other than the brightness component of the color image to be processed, here a * component and b * component, is filtered by the
S36において、合成部5は第1エッジ抽出部2から出力された色彩成分からエッジを抽出した色彩エッジ画像と、第2エッジ抽出部4から出力された明度エッジ画像を合成する。図7に示す例では、図7(D)に示した明度エッジ画像と図7(E)に示した色彩エッジ画像とを合成する。これにより、図7(F)に示すような合成エッジ画像が得られる。この合成処理は例えば図3、図4で説明した方法で行われる。
In S <b> 36, the
S37及びS38において、二値化部6は図5(B)に示したようにして二値化処理を行う。このとき、まず合成部5で合成された合成エッジ画像がエッジを示し、明度エッジ画像がエッジを示していない(|ELC−EL|=1)場合、すなわち色彩エッジ画像においてエッジを示している場合に、強調処理を行って濃度を調整する。そしてS38において、合成エッジ画像及び明度エッジ画像ともにエッジを示している場合を除き、擬似中間調による二値化処理を行う。なお、合成エッジ画像及び明度エッジ画像ともにエッジを示している場合には、そのまま‘1’とする。この二値化部6による二値化処理によって、図7(G)に示すような二値化された画像が出力されることになる。図7(G)に示すように、右上の1/4内の四角のエッジ部については、黒い線ではなく、擬似中間調によって表現されている。
In S37 and S38, the
S39において、未処理の画素があるか否かを判定し、未処理の画素が残っていれば、S31に戻って未処理の画素に対する処理を繰り返す。全ての画素について処理を終えたら、図6に示した処理を終える。 In S39, it is determined whether or not there is an unprocessed pixel. If there is an unprocessed pixel, the process returns to S31 to repeat the process for the unprocessed pixel. When the process is completed for all the pixels, the process shown in FIG.
図8は、本発明の第1の実施の形態における変形例を示すブロック図である。図中、14は明度二値化部、15は明度合成部である。この変形例では、図1に示した構成に明度二値化部14と明度合成部15を加えている。
FIG. 8 is a block diagram showing a modification of the first embodiment of the present invention. In the figure, 14 is a lightness binarization unit, and 15 is a lightness synthesis unit. In this modification, a
明度二値化部14は、カラー画像の明度成分、ここでは平滑化部3で平滑化処理を施した後の明度成分について、例えば固定閾値を用いた二値化方式などによって二値化する。上述のように基本的には抽出したエッジを二値画像においてそのまま反映させることから、この明度二値化部14によって黒文字や黒線などを二値化してエッジとともに処理することにより、これらを確実に二値画像に反映させるようにしている。
The
明度合成部15は、明度二値化部14で二値化された画像に、第2エッジ抽出部4で抽出されたエッジの画素を二値の一方の値として合成する。例えば二値を‘0’と‘1’とし、明度二値化部14で低明度部を‘1’とする場合には、第2エッジ抽出部4で抽出されたエッジ部分を‘1’として合成すればよい。以下の説明では、このように一方の値を‘1’として説明する。
The
この明度二値化部14及び明度合成部15の追加により、合成部5は、明度合成部15で合成した画像に、第1エッジ抽出部2により抽出したエッジの画素を一方の値として合成することになる。図9は、合成部における合成処理の別の例の説明図、図10は、明度合成部15で一方の値を取り、かつ第1エッジ抽出部でエッジを抽出した場合の合成処理の具体例の説明図である。この変形例では、第2エッジ抽出部4の出力の代わりに明度合成部15で合成された画像における画素値を用いることになる。すなわち、第1エッジ抽出部2によりエッジが抽出された(値‘1’)か否か(値‘0’)と、明度合成部15により合成された画像における値が‘1’か‘0’かの組み合わせにより、合成後の値を図9に示すように決定すればよい。
By adding the
図9に示した例では、第1エッジ抽出部2がエッジとして検出せず、出力が‘0’であり、明度合成部15の出力も‘0’である場合には、合成後の値は‘0’とする。また、第1エッジ抽出部2がエッジを検出しておらず、出力が‘0’であっても、明度合成部15の出力が‘1’である場合には、合成後の値を‘1’とする。
In the example shown in FIG. 9, when the first
第1エッジ抽出部2の出力が‘1’であり、エッジを検出している場合に、明度合成部15の出力が‘0’である場合には、基本的には合成後の値を‘1’とする。ただし、この変形例では、その処理対象の画素の周囲の画素について明度合成部15の出力を参照し、明度合成部15の出力が‘1’の画素が所定数(a)以上存在する場合には、合成後の値を‘0’とする。この場合については図4を用いて既に説明したとおりである。
When the output of the first
また、第1エッジ抽出部2がエッジとして検出し、明度合成部15の出力も‘1’を出力している場合には、基本的には合成後の値を‘1’とする。ただし、その処理対象の画素の周囲の画素について明度合成部15の出力を参照し、明度合成部15の出力が‘1’の画素が所定数(b)以上存在する場合には、合成後の値を‘0’とする。
If the first
これは、明度二値化部14により低明度の領域について‘1’が出力されたが、その領域内に色彩のエッジが存在していた場合に、その色彩のエッジを再現するためのものである。例えば図10(A)には、明度が周囲と同じ(非常に暗いとする)で色彩が周囲と異なる三角の図形が描かれたカラー画像を示している。図示の都合上、色彩の違いを斜線の方向を異ならせて示している。明度二値化部14では明度が同じであって非常に暗いため、例えば図10(C)に示すように図形及びその周囲とも‘1’となっている。明度合成部15からも、この領域については‘1’として出力される。
This is for reproducing the edge of the color when the
しかし第1エッジ抽出部2では色彩のエッジを検出し、図10(B)に示すようにエッジ画像が出力される。このような場合には、例えば図3に示した合成処理を行うと、明度合成部15から‘1’が出力されている場合には、第1エッジ抽出部2の出力にかかわらず合成部5の出力は‘1’となる。そのため、色彩のエッジが反映されなくなってしまう。このような場合に色彩のエッジを二値画像に反映させるために、両方が‘1’の場合には周囲の明度合成部15の出力を参照し、図10(C)に示したような状態であれば合成後の値を‘0’として図10(D)のような合成後の画像とする。これにより、色彩のエッジが保存される。
However, the first
さらに、上述のような変更に対応するため、二値化部6についても変更するとよい。図11は、二値化部6の処理の別の例の説明図である。なお、ここでは明度合成部15からの出力をELとし、合成部5からの出力をELCとして示しており、二値化部6は図11(A)に従って二値化処理を行う。主に、図9、図10で説明したように明度合成部15から‘1’が出力され、かつ、第1エッジ抽出部2の出力が‘1’の場合でも合成部5の出力は‘0’となり得るため、この場合についての二値化処理を規定している。また、図11に示す例では合成部5からの出力と明度合成部15からの出力がともに‘1’の場合についても擬似中間調処理を行う例を示している。
Furthermore, the
まず、合成部5の出力(ELC)が‘0’であり、|ELC−EL|が‘0’の場合には、エッジ以外の部分であるので基本的には明度成分に従って擬似中間調の二値化処理を行い、濃淡を再現する。合成されたエッジ画像(ELC)が‘0’となるのは、第1エッジ抽出部2及び第2エッジ抽出部4でエッジとして検出されず、また明度合成部15でも閾値よりも高明度であるため‘0’を出力した画素と、図4を用いて説明した処理により第1エッジ抽出部2でエッジとして抽出されたがエッジとしなかった画素である。
First, when the output (ELC) of the synthesizing
合成部5の出力(ELC)が‘0’であり、|ELC−EL|が‘1’の場合には、明度成分(L)を参照し、強調処理を施した後に擬似中間調の二値化処理を行う。これは、図10で説明したように、色彩成分のエッジが再現されないために強制的に‘0’とした画素である。ここでは、この色彩成分のエッジについて強調処理によって周囲の画素との間に明度の差をつけて擬似中間調により再現し、周囲の画素と異なる明度の擬似中間調再現により色彩成分のエッジが利用者により視認されるようにしている。
When the output (ELC) of the synthesizing
この場合に行う強調処理(強調処理b)は、例えば図11(B)に示すような関数に従って行う。この例では、カラー画像の明度値を増加させるように設定した関数であり、擬似中間調の二値画像では、利用者にとって明るく見えるように変換している。上述のように、この場合の画素は周囲が低明度の場合であるため、明るく見えるように再現するとよい。 The enhancement process (enhancement process b) performed in this case is performed according to a function as shown in FIG. In this example, the function is set so as to increase the brightness value of the color image, and the pseudo-halftone binary image is converted so that it appears bright to the user. As described above, the pixel in this case is a case where the surrounding area is low in brightness, and therefore it is preferable to reproduce the pixel so that it looks bright.
また、合成部5の出力(ELC)が‘1’であり、|ELC−EL|が‘0’の場合には、基本的には二値化出力は‘1’とすればよいが、この例では明度成分(L)を参照し、強調処理を施した後に擬似中間調の二値化処理を行う例を示している。この場合としては、2つの場合がある。一つは、第1エッジ抽出部2はエッジとしていないが、明度合成部15の出力が‘1’の場合である。もう一つは、第1エッジ抽出部2がエッジとして抽出するとともに明度合成部15が‘1’を出力し、図10で説明した例外的な処理でも‘0’とならずに‘1’のまま残された画素である。これらの場合にはエッジであることを再現するため、強調処理によって周囲の画素との間に明度の差をつけて擬似中間調処理を行い、エッジが利用者により視認されるようにしている。
Further, when the output (ELC) of the combining
このときの強調処理(強調処理c)は、例えば図11(C)に示すような関数に従って行えばよい。この例では、カラー画像の明度値を減少させるように設定した関数であり、擬似中間調の二値画像では、利用者にとって濃く見えるように変換している。これにより、エッジが周囲よりも濃く視認されることになる。また、明度二値化部14によって‘1’とされた黒文字や黒線などは確実に黒として再現されるようにしている。
The enhancement process (enhancement process c) at this time may be performed according to a function as shown in FIG. In this example, the function is set so as to decrease the brightness value of the color image, and the pseudo halftone binary image is converted so that it looks dark to the user. Thereby, the edge is visually recognized darker than the surroundings. Further, the black character or black line that is set to “1” by the
合成部5の出力(ELC)が‘1’であり、|ELC−EL|が‘1’の場合、すなわち明度合成部15の出力ELが‘0’である色彩成分のエッジの場合についても、明度成分(L)を参照し、強調処理を施した後に擬似中間調の二値化処理を行う。これにより、明度が変化していなくても色彩が変化したエッジが存在していれば、そのエッジが利用者に視認されるような二値化結果が出力されることになる。
In the case where the output (ELC) of the combining
このときの強調処理についても、例えば図11(C)に示すように、カラー画像の明度値を減少させるように設定した関数を用いて行えばよい。この強調処理は、擬似中間調の二値画像において利用者にとって濃く見えるように変換しており、色彩成分のエッジが利用者に視認されるような二値化結果が出力されることになる。 The enhancement processing at this time may also be performed using a function set so as to decrease the brightness value of the color image, for example, as shown in FIG. This enhancement processing is converted so that it looks dark to the user in the pseudo halftone binary image, and a binarization result is output so that the edge of the color component is visually recognized by the user.
このように、この例では合成部5の出力(ELC)が‘0’、|ELC−EL|が‘1’の場合と、エッジ画像(ELC)が‘1’の場合とで異なる強調処理を施している。もちろん、エッジ画像(ELC)が‘1’の場合に、さらに|ELC−EL|が‘0’の場合と|ELC−EL|が‘1’の場合とで異なる強調処理を施してもよい。なお、それぞれの強調処理に用いる関数は任意であるし、強調処理の方法についても任意である。
Thus, in this example, different emphasis processing is performed when the output (ELC) of the combining
図12は、本発明の第1の実施の形態における動作の別の例を示すフローチャート、図13は、同じく各処理過程における画像の別の具体例の説明図である。なお、S41の処理とS32〜S35の処理はいずれが先に行われてもよいし、並行して行ってもよい。また、図12におけるS32〜S35、S39の処理は図6を用いて説明したとおりである。 FIG. 12 is a flowchart showing another example of the operation in the first embodiment of the present invention, and FIG. 13 is an explanatory diagram of another specific example of an image in each processing step. Note that either the processing of S41 and the processing of S32 to S35 may be performed first or in parallel. Further, the processes of S32 to S35 and S39 in FIG. 12 are as described with reference to FIG.
以下の説明では図13(A)に示すカラー画像が処理対象として入力されたものとする。図示の都合上、濃淡や色の違いは斜線の間隔や方向などを異ならせたり交差させるなどにより示している。図13(A)に示したカラー画像の例では、4つの異なる画像により構成されている。左上は白色の背景に黒色で四角が描かれている。左下は白色の背景に明るい灰色の四角が描かれている。右上は背景と四角との明度は同じであり、いずれも低明度であって、b* 成分が異なる色で背景及び四角が描かれている例を示している。右下は灰色の背景に、背景より濃い低明度の灰色の四角が描かれている。このようなカラー画像の明度成分は図13(B)に示すようになり、また、b* 成分は図13(C)に示すようになったとする。 In the following description, it is assumed that the color image shown in FIG. For convenience of illustration, the difference in shading and color is indicated by changing the intervals and directions of diagonal lines or crossing them. In the example of the color image shown in FIG. 13A, the image is composed of four different images. The upper left is a black square on a white background. The lower left is a light gray square on a white background. The upper right shows an example in which the background and the square have the same brightness, both have low brightness, and the background and the square are drawn with different b * components. The lower right corner has a gray background and a gray square with a lower brightness than the background. It is assumed that the brightness component of such a color image is as shown in FIG. 13 (B), and the b * component is as shown in FIG. 13 (C).
S41において、処理対象のカラー画像の明度成分について、平滑化部3で平滑化処理を施した後、第2エッジ抽出部4で例えば浮動二値化処理などによりエッジを抽出するとともに明度二値化部14で例えば固定閾値による二値化処理を行い、両者の結果を明度合成部15によって合成する。この処理によって、図13(B)に示した明度成分の画像から、図13(D)に示すような画像が明度合成部15から出力される。なお、ここでは右上の部分は背景及び四角ともに明度二値化部14で‘1’とされたものとしている。また、右下の四角の部分についても、明度二値化部14で‘1’とされたものとしている。
In S41, the lightness component of the color image to be processed is subjected to smoothing processing by the smoothing
また、処理対象のカラー画像の明度成分以外の色彩成分、ここではa* 成分及びb* 成分については、S32からS35までの処理によって、図6で説明したようにして色彩のエッジが抽出される。この処理によって、図13(C)に示したb* 成分の画像(及びa* 成分の画像)から、図13(E)に示すような色彩エッジ画像が得られる。 Further, for the color components other than the lightness component of the color image to be processed, here, the a * component and the b * component, the edge of the color is extracted as described in FIG. 6 by the processing from S32 to S35. . By this processing, a color edge image as shown in FIG. 13E is obtained from the b * component image (and the a * component image) shown in FIG.
S42において、合成部5は第1エッジ抽出部2で抽出された色彩成分のエッジと、明度合成部15からの出力とを合成する。図13に示す例では、図13(D)に示した明度合成部15からの出力と、図13(E)に示した第1エッジ抽出部2からの出力とを合成する。これにより、図13(F)に示すような合成エッジ画像が得られる。この合成処理は例えば図9(及び図4、図10)で説明した方法で行われる。
In S <b> 42, the
S43において、S42で合成した合成部5の出力ELCと、明度合成部15の出力ELの値を判断し、合成エッジ画像ELC=0及び|ELC−EL|=0の場合には、S44において明度成分を擬似中間調処理して二値化する。また合成部5からの出力ELC=0及び|ELC−EL|=1の場合には、S45において、例えば図11(B)に示した関数などにより明るくなるように明度成分に対して強調処理を施し、擬似中間調処理により二値化する。さらに、合成部5からの出力ELC=1の場合には、S46において、例えば図11(C)に示した関数などにより濃くなるように明度成分に対して強調処理を施し、擬似中間調処理により二値化する。
In S43, the values of the output ELC of the combining
このような二値化部6による二値化処理によって、図13(G)に示すような二値化された画像が出力されることになる。図13(G)に示すように、右上の1/4内の四角のエッジ部については、周囲が黒く再現されるのに対して、明るく擬似中間調によって表現されている。このように、明度エッジだけでなく色彩エッジについても、周囲に応じて、明るく、あるいは濃く見えるように擬似中間調再現されることになる。また、左下と右下の1/4の部分の境界や、左下の1/4内の四角のエッジ部については、強調処理によって周囲よりも濃く見えるように、擬似中間調により再現されている。
By such binarization processing by the
いずれの場合も、S39において未処理の画素があるか否かを判定し、未処理の画素が残っていれば、S41に戻って未処理の画素に対する処理を繰り返す。全ての画素について処理を終えたら、図12に示した処理を終える。 In any case, it is determined whether or not there is an unprocessed pixel in S39, and if there is an unprocessed pixel, the process returns to S41 and the process for the unprocessed pixel is repeated. When the process is completed for all pixels, the process shown in FIG.
図14は、本発明の第2の実施の形態を示すブロック図である。図中、7は階調変換部である。この第2の実施の形態では、合成部5で合成したエッジ部分について擬似中間調により表現するものである。上述の第1の実施の形態と異なるのは階調変換部7を設けたことと、二値化部6の動作である。なお、図14に示した構成例ではフィルタ部1および平滑化部3についても省いた構成を示しているが、これらを具備した構成でもよい。また、上述の第1の実施の形態の変形例に示したように明度二値化部14及び明度合成部15を設けた構成でもよい。
FIG. 14 is a block diagram showing a second embodiment of the present invention. In the figure,
階調変換部7は、合成部5から渡される合成されたエッジ画像をもとに、入力されたカラー画像の明度成分について階調変換処理を行う。より具体的には、合成されたエッジ画像がエッジを示す画素については暗くなるように階調を変換する。そのほかの画素についてはそのまま出力する。
The
二値化部6は、この第2の実施の形態では、階調変換部7から渡される階調変換後の画像に対して擬似中間調処理を行う。
In the second embodiment, the
図15は、本発明の第2の実施の形態における各処理過程での画像の具体例の説明図である。図15(A)は図7(A)に対応するものであり、入力されたカラー画像を示している。入力されたカラー画像については図7で説明したとおりである。また図15(B)は図7(F)に対応するものであり、図15(A)に示したカラー画像について、第1エッジ抽出部2および第2エッジ抽出部4で抽出したエッジ画像を合成部5で合成した合成エッジ画像を示している。
FIG. 15 is an explanatory diagram of a specific example of an image in each processing step in the second embodiment of the present invention. FIG. 15A corresponds to FIG. 7A and shows an input color image. The input color image is as described in FIG. FIG. 15B corresponds to FIG. 7F, and the edge images extracted by the first
階調変換部7は、図15(B)に示した合成エッジ画像をもとに、入力されたカラー画像の明度成分についてエッジ部分の階調を変換する。これにより、図15(C)に示すような階調変換画像が得られる。
The
このようにして得られた階調変換画像に対して二値化部6は擬似中間調処理を行う。これにより、図15(D)に示すような二値画像が得られる。得られた二値画像は、エッジ部分も擬似中間調処理が施されており、図示ではわかりにくいがそれぞれの使用されている色(明度)に応じた階調の擬似中間調により表現されている。この二値画像が出力されることになる。
The
図16は、本発明の第2の実施の形態の変形例を示すブロック図である。この変形例は、図14に示した第2の実施の形態の構成のうち、第2エッジ抽出部4および合成部5を省略して簡略化したものである。
FIG. 16 is a block diagram showing a modification of the second embodiment of the present invention. This modification is simplified by omitting the second
この第2の実施の形態における変形例では、階調変換部7は第1エッジ抽出部2で抽出した色彩エッジ画像に従って、カラー画像の明度成分について色彩エッジ部分の階調を暗くするように階調変換を行う。そして階調変換を行った明度成分の画像について二値化部6で擬似中間調処理を行えばよい。
In the modified example of the second embodiment, the
この第2の実施の形態の変形例では、第2エッジ抽出部4を有していないので正確な明度エッジは抽出されない。しかし、第1エッジ抽出部2で黒とそのほかの色のエッジは抽出されているので、ほとんどのカラー画像では問題なく各部の色の境界部分が擬似中間調により表現されることになる。
In the modification of the second embodiment, since the second
図17は、本発明の第3の実施の形態を示すブロック図である。図中、8はエッジ強度算出部、9は加算部である。この第3の実施の形態では、上述の第2の実施の形態のようにエッジ部分について擬似中間調により表現するものであるが、エッジ部分に対する階調変換の度合いをエッジ強度により制御する構成を示している。この第3の実施の形態では、上述の第1の実施の形態における第1エッジ抽出部2に代えてエッジ強度算出部8を、また合成部5に代えて加算部9を設け、さらに階調変換部7を加え、二値化部6の動作を変更している。なお、図17に示した構成例ではフィルタ部1および平滑化部3についても省いた構成を示しているが、これらを具備した構成でもよい。また、上述の第1の実施の形態の変形例に示したように明度二値化部14及び明度合成部15を設けた構成でもよい。
FIG. 17 is a block diagram showing a third embodiment of the present invention. In the figure, 8 is an edge strength calculator, and 9 is an adder. In the third embodiment, the edge portion is expressed by pseudo halftone as in the second embodiment described above, but the configuration in which the degree of gradation conversion for the edge portion is controlled by the edge strength. Show. In the third embodiment, an edge
エッジ強度算出部8は、第1の実施の形態における第1エッジ抽出部2の浮動二値化部13を設けずに、2値のエッジ画像を得る代わりに色彩のエッジの強度を得るものに変更したものである。すなわち、色彩エッジ検出部11は、カラー画像のa* 成分及びb* 成分のそれぞれについてエッジ強度を算出し、色彩エッジ演算部12は、a* 成分のエッジ強度及びb* 成分のエッジ強度を合成した色彩エッジ強度を算出する。得られた色彩エッジ強度をエッジ強度算出部8の出力とする。なお、色彩エッジ検出部11におけるエッジ強度の算出方法および色彩エッジ演算部12におけるエッジ強度の合成方法については任意である。
The edge
加算部9は、第2エッジ抽出部4によりエッジが抽出された二値の画像と、エッジ強度算出部8で算出した色彩エッジ強度とを加算する。加算は、第2エッジ抽出部4から出力される二値のうち、エッジを表す値(例えば‘1’)をエッジ強度最大の値に、エッジでないことを表す値(例えば‘0’)をエッジ強度最小の値に変換した後、色彩エッジ強度の値を加算すればよい。
The adding unit 9 adds the binary image from which the edge has been extracted by the second
階調変換部7は、加算部9から渡される加算されたエッジ強度に従って、入力されたカラー画像の明度成分について階調変換処理を行う。一例としては、エッジ強度が大きな値を示す場合には、より暗くなるように階調を変換し、エッジ強度が小さい値の部分ではそれほど階調を変更しないようにする。このように、エッジ強度の値により階調変換の度合いを制御するとよい。
The
二値化部6は、この第3の実施の形態においても、階調変換部7から渡される階調変換後の画像に対して擬似中間調処理を行う。
Also in the third embodiment, the
このような第3の実施の形態の構成では、特に色彩の違いがどの程度かによってエッジ部分の階調が異なり、それが擬似中間調処理後の二値画像に反映されるため、視覚的に色彩の違いを把握できるような表現となる。 In the configuration of the third embodiment as described above, the gradation of the edge portion differs depending on the degree of color difference and is reflected in the binary image after the pseudo halftone process. It is an expression that can grasp the difference in color.
図18は、本発明の第3の実施の形態の変形例を示すブロック図である。この変形例は、図17に示した第3の実施の形態の構成のうち、第2エッジ抽出部4および加算部9を省略して簡略化したものである。
FIG. 18 is a block diagram showing a modification of the third embodiment of the present invention. This modification is simplified by omitting the second
この第3の実施の形態における変形例では、階調変換部7はエッジ強度算出部8で算出した色彩エッジ強度に従って、カラー画像の明度成分について色彩エッジ部分の階調変換の度合いを制御する。そして階調変換を行った明度成分の画像について二値化部6で擬似中間調処理を行えばよい。
In the modified example of the third embodiment, the
この第3の実施の形態の変形例では、第2エッジ抽出部4を有していないので正確な明度エッジは抽出されない。しかし、エッジ強度算出部8で黒とそのほかの色のエッジは抽出されているので、ほとんどのカラー画像では問題なく各部の色の境界部分が、そのエッジ強度に応じて擬似中間調により表現されることになる。
In the modification of the third embodiment, since the second
なお、上述の第1の実施の形態及びその変形例における二値化部6の擬似中間調処理や、第2,第3の実施の形態及びその変形例における二値化部6の擬似中間調処理は、閾値二値化処理でもよい。
Note that the pseudo halftone processing of the
図19は、本発明の各実施の形態の機能をコンピュータプログラムで実現した場合におけるコンピュータプログラム及びそのコンピュータプログラムを格納した記憶媒体とコンピュータの一例の説明図である。図中、51はプログラム、52はコンピュータ、61は光磁気ディスク、62は光ディスク、63は磁気ディスク、64はメモリ、71はCPU、72は内部メモリ、73は読取部、74はハードディスク、75はインタフェース、76は通信部である。
FIG. 19 is an explanatory diagram of an example of a computer program, a storage medium storing the computer program, and a computer when the functions of the embodiments of the present invention are implemented by the computer program. In the figure, 51 is a program, 52 is a computer, 61 is a magneto-optical disk, 62 is an optical disk, 63 is a magnetic disk, 64 is a memory, 71 is a CPU, 72 is an internal memory, 73 is a reading unit, 74 is a hard disk, and 75 is An
上述の本発明の各実施の形態およびその変形例で説明した各部の機能の一部または全部を、コンピュータにより実行可能なプログラム51によって実現してもよい。その場合、そのプログラム51およびそのプログラムが用いるデータなどは、コンピュータが読み取り可能な記憶媒体に記憶させておいてもよい。記憶媒体とは、コンピュータのハードウェア資源に備えられている読取部73に対して、プログラムの記述内容に応じて、磁気、光、電気等のエネルギーの変化状態を引き起こして、それに対応する信号の形式で、読取部73にプログラムの記述内容を伝達できるものである。例えば、光磁気ディスク61,光ディスク62(CDやDVDなどを含む)、磁気ディスク63,メモリ64(ICカード、メモリカードなどを含む)等である。もちろんこれらの記憶媒体は、可搬型に限られるものではない。
A part or all of the functions of the units described in the embodiments of the present invention and the modifications thereof may be realized by a program 51 that can be executed by a computer. In that case, the program 51 and data used by the program may be stored in a computer-readable storage medium. The storage medium is a signal of a corresponding signal that causes a change state of energy such as magnetism, light, electricity, etc. according to the description content of the program to the
これらの記憶媒体にプログラム51を格納しておき、例えばコンピュータ52の読取部73あるいはインタフェース75にこれらの記憶媒体を装着することによって、コンピュータからプログラム51を読み出し、内部メモリ72またはハードディスク74に記憶し、CPU71によってプログラム51を実行することによって、各実施の形態およびその変形例で説明した機能が実現される。あるいは、ネットワークなどを介してプログラム51をコンピュータ52に転送し、コンピュータ52では通信部76でプログラム51を受信して内部メモリ72またはハードディスク74に記憶し、CPU71によってプログラム51を実行することによって、各実施の形態およびその変形例で説明した機能を実現してもよい。なお、コンピュータ52には、このほかインタフェース75を介して様々な装置と接続してもよい。例えば出力された二値画像を形成する画像形成手段を接続し、二値化処理後に二値画像を形成するように構成してもよい。または、情報を表示する表示装置やユーザが情報を入力する入力装置等が接続されていてもよい。
The program 51 is stored in these storage media, and the program 51 is read from the computer and stored in the internal memory 72 or the hard disk 74 by, for example, mounting these storage media on the
もちろん、一部の機能についてハードウェアによって構成してもよいし、すべてをハードウェアで構成してもよい。あるいは、他の構成とともに本発明も含めたプログラムとして構成してもよい。例えばプリンタや複写機などのように画像形成装置、あるいはさらに画像読取装置を含む装置において、制御プログラムとともに1つのプログラムとして構成してもよい。もちろん、他の用途に適用する場合には、その用途におけるプログラムとの一体化も可能である。 Of course, some functions may be configured by hardware, or all may be configured by hardware. Or you may comprise as a program also including this invention with other structures. For example, an image forming apparatus such as a printer or a copying machine, or an apparatus that further includes an image reading apparatus may be configured as one program together with the control program. Of course, in the case of application to other purposes, integration with a program for that purpose is also possible.
1…フィルタ部、2…第1エッジ抽出部、3…平滑化部、4…第2エッジ抽出部、5…合成部、6…二値化部、7…階調変換部、8…エッジ強度算出部、9…加算部、11…色彩エッジ検出部、12…色彩エッジ演算部、13…浮動二値化部、14…明度二値化部、15…明度合成部、21…差分絶対値算出部、22…仮平滑化係数決定部、23…正規化部、24…畳み込み演算部、51…プログラム、52…コンピュータ、61…光磁気ディスク、62…光ディスク、63…磁気ディスク、64…メモリ、71…CPU、72…内部メモリ、73…読取部、74…ハードディスク、75…インタフェース、76…通信部。
DESCRIPTION OF
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008042659A JP4775598B2 (en) | 2007-05-24 | 2008-02-25 | Image processing apparatus and image processing program |
US12/125,500 US8189236B2 (en) | 2007-05-24 | 2008-05-22 | Image processing apparatus, image processing method and computer-readable medium |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007137785 | 2007-05-24 | ||
JP2007137785 | 2007-05-24 | ||
JP2008042659A JP4775598B2 (en) | 2007-05-24 | 2008-02-25 | Image processing apparatus and image processing program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011085612A Division JP5024574B2 (en) | 2007-05-24 | 2011-04-07 | Image processing apparatus and image processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009005331A true JP2009005331A (en) | 2009-01-08 |
JP4775598B2 JP4775598B2 (en) | 2011-09-21 |
Family
ID=40321180
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008042659A Expired - Fee Related JP4775598B2 (en) | 2007-05-24 | 2008-02-25 | Image processing apparatus and image processing program |
JP2011085612A Expired - Fee Related JP5024574B2 (en) | 2007-05-24 | 2011-04-07 | Image processing apparatus and image processing program |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011085612A Expired - Fee Related JP5024574B2 (en) | 2007-05-24 | 2011-04-07 | Image processing apparatus and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (2) | JP4775598B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011065604A (en) * | 2009-09-18 | 2011-03-31 | Konica Minolta Business Technologies Inc | Image processing method and image processor |
JP2013042328A (en) * | 2011-08-15 | 2013-02-28 | Fuji Xerox Co Ltd | Image processor and image processing program |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5779089B2 (en) | 2011-12-28 | 2015-09-16 | 株式会社ドワンゴ | Edge detection apparatus, edge detection program, and edge detection method |
JP5870826B2 (en) * | 2012-04-11 | 2016-03-01 | コニカミノルタ株式会社 | Image processing apparatus, image processing method, and computer program |
JP6986438B2 (en) * | 2017-12-27 | 2021-12-22 | 日本放送協会 | Color information estimation model generator, image colorizer and their programs |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0678151A (en) * | 1992-08-26 | 1994-03-18 | Toshiba Corp | Color picture processor |
JPH06292006A (en) * | 1993-04-01 | 1994-10-18 | Fuji Xerox Co Ltd | Picture processing unit |
JP2001268378A (en) * | 2000-03-23 | 2001-09-28 | Riso Kagaku Corp | Method and apparatus for processing image |
JP2002010090A (en) * | 2000-06-23 | 2002-01-11 | Ricoh Co Ltd | Image processing method, image processor and recording medium |
JP2002083294A (en) * | 2000-09-07 | 2002-03-22 | Fuji Xerox Co Ltd | Image processor, image processing method and recording medium stored with image processing program |
JP2002252733A (en) * | 2001-02-26 | 2002-09-06 | Ricoh Co Ltd | Network system for image forming device |
JP2004102819A (en) * | 2002-09-11 | 2004-04-02 | Seiko Epson Corp | Image processing method and image processing apparatus |
JP2007013566A (en) * | 2005-06-30 | 2007-01-18 | Kyocera Mita Corp | Image processor and image forming apparatus |
-
2008
- 2008-02-25 JP JP2008042659A patent/JP4775598B2/en not_active Expired - Fee Related
-
2011
- 2011-04-07 JP JP2011085612A patent/JP5024574B2/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0678151A (en) * | 1992-08-26 | 1994-03-18 | Toshiba Corp | Color picture processor |
JPH06292006A (en) * | 1993-04-01 | 1994-10-18 | Fuji Xerox Co Ltd | Picture processing unit |
JP2001268378A (en) * | 2000-03-23 | 2001-09-28 | Riso Kagaku Corp | Method and apparatus for processing image |
JP2002010090A (en) * | 2000-06-23 | 2002-01-11 | Ricoh Co Ltd | Image processing method, image processor and recording medium |
JP2002083294A (en) * | 2000-09-07 | 2002-03-22 | Fuji Xerox Co Ltd | Image processor, image processing method and recording medium stored with image processing program |
JP2002252733A (en) * | 2001-02-26 | 2002-09-06 | Ricoh Co Ltd | Network system for image forming device |
JP2004102819A (en) * | 2002-09-11 | 2004-04-02 | Seiko Epson Corp | Image processing method and image processing apparatus |
JP2007013566A (en) * | 2005-06-30 | 2007-01-18 | Kyocera Mita Corp | Image processor and image forming apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011065604A (en) * | 2009-09-18 | 2011-03-31 | Konica Minolta Business Technologies Inc | Image processing method and image processor |
US8285036B2 (en) | 2009-09-18 | 2012-10-09 | Konica Minolta Business Technologies, Inc. | Image processing method, image processing apparatus, and computer-readable storage medium for computer program |
JP2013042328A (en) * | 2011-08-15 | 2013-02-28 | Fuji Xerox Co Ltd | Image processor and image processing program |
Also Published As
Publication number | Publication date |
---|---|
JP4775598B2 (en) | 2011-09-21 |
JP5024574B2 (en) | 2012-09-12 |
JP2011172261A (en) | 2011-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4542528B2 (en) | Image contrast enhancement method and image contrast enhancement system | |
US20080181491A1 (en) | Color to grayscale conversion method and apparatus | |
JP6415062B2 (en) | Image processing apparatus, image processing method, control program, and recording medium | |
US8189236B2 (en) | Image processing apparatus, image processing method and computer-readable medium | |
JPH08251432A (en) | Real time picture enhancing technique | |
JPH11313202A (en) | Image processing unit and image processing method | |
JP2004030670A (en) | Enhancement method for color tone feature of digital image | |
JP2009038498A (en) | Unit and method for processing image | |
JP5024574B2 (en) | Image processing apparatus and image processing program | |
JP2018527675A (en) | Inverse tone mapping method and apparatus | |
JP2007128206A (en) | Signal processor and processing method, recording medium and program | |
US7848589B2 (en) | Method and apparatus for applying edge enhancement based on image characteristics | |
JP4235583B2 (en) | Image processing apparatus, image processing program, and storage medium | |
JP2019092027A (en) | Image processing apparatus, image processing method, and image processing program | |
JP4853560B2 (en) | Image processing method, image processing apparatus, and computer program | |
JP5286215B2 (en) | Outline extracting apparatus, outline extracting method, and outline extracting program | |
JP4243362B2 (en) | Image processing apparatus, image processing method, and recording medium recording image processing program | |
JP4441300B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium storing the program | |
JP4111689B2 (en) | Image processing apparatus, computer-readable recording medium storing image processing program, and program | |
JP5245991B2 (en) | BRIGHTNESS CORRECTION PROGRAM, BRIGHTNESS CORRECTION METHOD, AND BRIGHTNESS CORRECTION DEVICE | |
JP2001045303A (en) | Image thresholding method | |
JP6486082B2 (en) | Image processing apparatus, image processing method, and program | |
JP4141310B2 (en) | Image processing apparatus, image processing method, and program executed by computer | |
JP4792893B2 (en) | Image processing apparatus and program | |
JP3501151B2 (en) | Image processing apparatus, image processing method, medium recording image processing control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090825 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110224 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110302 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110407 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110427 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110516 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110601 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110614 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4775598 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140708 Year of fee payment: 3 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
LAPS | Cancellation because of no payment of annual fees | ||
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |