JP6928903B2 - Image processing equipment, image processing methods, and programs - Google Patents

Image processing equipment, image processing methods, and programs Download PDF

Info

Publication number
JP6928903B2
JP6928903B2 JP2020101700A JP2020101700A JP6928903B2 JP 6928903 B2 JP6928903 B2 JP 6928903B2 JP 2020101700 A JP2020101700 A JP 2020101700A JP 2020101700 A JP2020101700 A JP 2020101700A JP 6928903 B2 JP6928903 B2 JP 6928903B2
Authority
JP
Japan
Prior art keywords
image
pixel value
edge
color image
color
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.)
Active
Application number
JP2020101700A
Other languages
Japanese (ja)
Other versions
JP2020156102A (en
Inventor
直樹 滝沢
直樹 滝沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2016102734A external-priority patent/JP6796277B2/en
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2020101700A priority Critical patent/JP6928903B2/en
Publication of JP2020156102A publication Critical patent/JP2020156102A/en
Application granted granted Critical
Publication of JP6928903B2 publication Critical patent/JP6928903B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本開示は、カラー画像の画像処理を行う画像処理技術に関する。 The present disclosure relates to an image processing technique for performing image processing of a color image.

写真をイラスト風の画像に変換する画像処理が知られている。このようなイラスト化の画像処理では、エッジを黒色にする処理が行われている。或いは、フィルタリング処理によりエッジを強調する処理が行われている(特許文献1、2参照)。 Image processing that converts a photo into an illustration-like image is known. In such an illustration image processing, a process of making the edge black is performed. Alternatively, a process of emphasizing the edge is performed by a filtering process (see Patent Documents 1 and 2).

特開2001−24872号公報Japanese Unexamined Patent Publication No. 2001-24872 特許3689574号公報Japanese Patent No. 369574

ところが、エッジを単に黒色にすると、CG(Computer Graphics)で自動生成したことが明白な画像になってしまうおそれがある。また、フィルタリング処理によりエッジを強調する処理では、被写体画像内のエッジが強調されてしまい、被写体画像が不自然になる。 However, if the edges are simply made black, there is a risk that the image will be clearly generated by CG (Computer Graphics). Further, in the process of emphasizing the edge by the filtering process, the edge in the subject image is emphasized, and the subject image becomes unnatural.

本開示は、このような点を考慮してなされたものであり、人間が描いたようなより自然な感じのイラスト風の画像を生成可能な画像処理装置、画像処理方法、及びプログラムを提供するものである。 The present disclosure has been made in consideration of such points, and provides an image processing device, an image processing method, and a program capable of generating an illustration-like image having a more natural feeling as drawn by a human being. It is a thing.

本開示の一態様では、
第1カラー画像を、明度情報と前記明度情報以外の色情報とに変換する変換部と、
前記明度情報を間引いた圧縮明度情報を生成する明度圧縮部と、
前記圧縮明度情報と前記色情報とを合成して、第2カラー画像を生成する再変換部と、 第1カラー画像に含まれるエッジを抽出するエッジ抽出部と、
前記第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成する画素値変更部と、
を備える画像処理装置が提供される。
In one aspect of the disclosure,
A conversion unit that converts a first color image into lightness information and color information other than the lightness information, and
Compressed lightness information is thinned out. A lightness compression unit that generates lightness information, and a lightness compression unit.
A reconversion unit that combines the compressed brightness information and the color information to generate a second color image, an edge extraction unit that extracts edges included in the first color image, and an edge extraction unit.
A pixel value changing unit that generates a third color image by changing the pixel value at the edge position in the second color image while maintaining similar colors.
An image processing apparatus comprising the above is provided.

前記画素値変更部は、前記第2カラー画像中の前記エッジの内側領域の輝度が前記エッジの外側領域よりも高い場合には、前記第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ、より暗い色合いの画素値に変更してもよい。
前記画素値変更部は、前記第2カラー画像中の前記エッジの位置における画素値を、当該画素値に所定の係数を乗じた値に変更してもよい。
When the brightness of the inner region of the edge in the second color image is higher than that of the outer region of the edge, the pixel value changing unit determines the pixel value at the position of the edge in the second color image. The pixel value may be changed to a darker shade while maintaining the similar color.
The pixel value changing unit may change the pixel value at the edge position in the second color image to a value obtained by multiplying the pixel value by a predetermined coefficient.

前記エッジ抽出部は、
前記第1カラー画像をモノクロ画像に変換するモノクロ変換部と、
前記モノクロ画像をぼかしたぼかし画像を生成するぼかし処理部と、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出する比率検出部と、
前記比率が所定の閾値より大きいか否かを判定する比率判定部と、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして出力するエッジ出力部と、
を更に備えてもよい。
The edge extraction unit
A monochrome conversion unit that converts the first color image into a monochrome image,
A blur processing unit that generates a blurred image that blurs the monochrome image,
A ratio detection unit that detects the ratio between the pixel value of the blurred image and the pixel value of the monochrome image corresponding to the pixel value of the blurred image.
A ratio determination unit that determines whether or not the ratio is greater than a predetermined threshold value,
An edge output unit that outputs pixels whose ratio is determined to be larger than the threshold value as edges in the monochrome image.
May be further provided.

前記ぼかし処理部は、前記モノクロ画像の外形サイズに応じたフィルタサイズを有するガウシアンフィルタにより前記モノクロ画像をフィルタリング処理して前記ぼかし画像を生成してもよい。 The blur processing unit may generate the blurred image by filtering the monochrome image with a Gaussian filter having a filter size corresponding to the outer size of the monochrome image.

前記ぼかし処理部は、前記第3カラー画像の外形サイズに応じたフィルタサイズを有するガウシアンフィルタにより前記モノクロ画像をフィルタリング処理して前記ぼかし画像
を生成してもよい。
The blur processing unit may generate the blurred image by filtering the monochrome image with a Gaussian filter having a filter size corresponding to the outer size of the third color image.

本開示の一態様では、
モノクロ画像をぼかしたぼかし画像を生成するぼかし処理部と、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出する比率検出部と、
前記比率が所定の閾値より大きいか否かを判定する比率判定部と、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして出力するエッジ出力部と、
を備える画像処理装置が提供される。
In one aspect of the disclosure,
A blur processing unit that generates a blurred image that blurs a monochrome image,
A ratio detection unit that detects the ratio between the pixel value of the blurred image and the pixel value of the monochrome image corresponding to the pixel value of the blurred image.
A ratio determination unit that determines whether or not the ratio is greater than a predetermined threshold value,
An edge output unit that outputs pixels whose ratio is determined to be larger than the threshold value as edges in the monochrome image.
An image processing apparatus comprising the above is provided.

本開示の一態様では、
第1カラー画像を、明度情報と前記明度情報以外の色情報とに変換し、
前記明度情報を間引いた圧縮明度情報を生成し、
前記圧縮明度情報と前記色情報とを合成して、第2カラー画像を生成し、
第1カラー画像に含まれるエッジを抽出し、
前記第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成する画像処理方法が提供される。
In one aspect of the disclosure,
The first color image is converted into lightness information and color information other than the lightness information.
The compressed lightness information obtained by thinning out the lightness information is generated.
The compressed brightness information and the color information are combined to generate a second color image.
Extract the edges contained in the first color image and
An image processing method is provided for generating a third color image by changing the pixel value at the edge position in the second color image while maintaining similar colors.

本開示の一態様では、
モノクロ画像をぼかしたぼかし画像を生成し、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出し、
前記比率が所定の閾値より大きいか否かを判定し、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして出力する画像処理方法が提供される。
In one aspect of the disclosure,
Generates a blurred image that blurs a monochrome image,
The ratio of the pixel value of the blurred image to the pixel value of the monochrome image corresponding to the pixel value of the blurred image is detected.
It is determined whether or not the ratio is larger than a predetermined threshold value, and it is determined.
An image processing method is provided in which pixels determined to have the ratio greater than the threshold value are output as edges in the monochrome image.

本開示の一態様では、
コンピュータに、
第1カラー画像を、明度情報と前記明度情報以外の色情報とに変換するステップと、
前記明度情報を間引いた圧縮明度情報を生成するステップと、
前記圧縮明度情報と前記色情報とを合成して、第2カラー画像を生成するステップと、 第1カラー画像に含まれるエッジを抽出するステップと、
前記第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成するステップと、
を実行させる、コンピュータ読み込み可能なプログラムが提供される。
In one aspect of the disclosure,
On the computer
A step of converting a first color image into lightness information and color information other than the lightness information, and
The step of generating compressed lightness information by thinning out the lightness information, and
A step of generating a second color image by synthesizing the compressed brightness information and the color information, and a step of extracting edges included in the first color image.
A step of generating a third color image by changing the pixel value at the edge position in the second color image while maintaining similar colors.
A computer-readable program is provided to execute.

本開示の一態様では、
コンピュータに、
モノクロ画像をぼかしたぼかし画像を生成するぼかしステップと、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出するステップと、
前記比率が所定の閾値より大きいか否かを判定するステップと、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして抽出するステップと、
を実行させる、コンピュータ読み込み可能なプログラムが提供される。
In one aspect of the disclosure,
On the computer
Blur step to generate a blur image that blurs a monochrome image,
A step of detecting the ratio of the pixel value of the blurred image to the pixel value of the monochrome image corresponding to the pixel value of the blurred image, and
A step of determining whether or not the ratio is greater than a predetermined threshold, and
A step of extracting pixels whose ratio is determined to be larger than the threshold value as edges in the monochrome image, and
A computer-readable program is provided to execute.

本開示によれば、人間が描いたようなより自然な感じのイラスト風の画像を生成できる。 According to the present disclosure, it is possible to generate an illustration-like image having a more natural feeling as if it was drawn by a human.

第1の実施形態における画像処理システムの構成を示す図。The figure which shows the structure of the image processing system in 1st Embodiment. エッジ抽出部の構成を示すブロック図。The block diagram which shows the structure of the edge extraction part. フィルタサイズ[5×5]の係数を示す図。The figure which shows the coefficient of the filter size [5 × 5]. 画像処理装置におけるイラスト化処理のフローチャートを示す図。The figure which shows the flowchart of the illustration processing in an image processing apparatus. エッジの抽出処理に関する画像を示す図。The figure which shows the image about the edge extraction process. 間引き処理に関する画像を示す図。The figure which shows the image about the thinning-out process. 第2の実施形態におけるイラスト化処理のフローチャートを示す図。The figure which shows the flowchart of the illustration process in 2nd Embodiment.

以下、図面を参照して本開示の実施形態について説明する。 Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.

(第1の実施形態)
第1の実施形態に係る画像処理装置は、抽出したエッジの位置に基づき、カラー画像のエッジの位置における画素値を、同系色を維持しつつ、より暗い色合いの画素値に変更することで、より自然な感じのイラスト風の画像を得ようとしたものである。より詳しく、以下に説明する。
(First Embodiment)
The image processing apparatus according to the first embodiment changes the pixel value at the edge position of the color image to a darker hue pixel value while maintaining similar colors, based on the extracted edge position. This is an attempt to obtain a more natural-looking illustration-like image. More details will be given below.

図1は、第1の実施形態における画像処理システム1の構成を示す図である。図1の画像処理システム1は、例えばCPU(Central Processing Unit)を内蔵する各種の電子機器(例えば、パーソナルコンピュータなど)に内蔵することが可能である。より具体的には、CPUが専用のプログラムを実行することで、図1の画像処理システム1の処理動作を行うことができる。あるいは、図1の画像処理システム1の処理動作を行う専用のハードウェア機器を設けてもよい。 FIG. 1 is a diagram showing a configuration of an image processing system 1 according to the first embodiment. The image processing system 1 of FIG. 1 can be built in, for example, various electronic devices (for example, a personal computer) having a built-in CPU (Central Processing Unit). More specifically, the processing operation of the image processing system 1 of FIG. 1 can be performed by the CPU executing a dedicated program. Alternatively, a dedicated hardware device that performs the processing operation of the image processing system 1 of FIG. 1 may be provided.

図1の画像処理システム1は、記憶装置10と、制御装置12と、カメラ14と、入力装置16と、表示装置18と、プリンタ20と、画像処理装置100とを備えている。記憶装置10は、システムプログラムの他、顔画像撮影処理プログラム、画像処理プログラム等の各種処理プログラム及び各プログラムで処理されたデータ等を記憶する。制御装置12は、CPUとRAM(Random Access Memory)などを有し、記憶装置10に格納されているシステムプログラムや画像処理プログラム等の各種プログラムを読み出してRAMに展開し、当該プログラムに従って各部の動作を集中制御する。 The image processing system 1 of FIG. 1 includes a storage device 10, a control device 12, a camera 14, an input device 16, a display device 18, a printer 20, and an image processing device 100. In addition to the system program, the storage device 10 stores various processing programs such as a face image photographing processing program and an image processing program, and data processed by each program. The control device 12 has a CPU, a RAM (Random Access Memory), and the like, reads various programs such as a system program and an image processing program stored in the storage device 10 and develops them in the RAM, and operates each part according to the programs. Is centrally controlled.

カメラ14は、光学レンズ、CCD(Charge Coupled Device)等の光学センサ、A/D(Analog/Digital)変換部等を有し、撮影時には光学レンズを介して入力される被写体像を光学センサにより光電変換してアナログ画像信号を生成する。そして、A/D変換部によりアナログ画像信号をデジタルの第1カラー画像に変換して、制御装置12に供給する。自然画像である第1カラー画像の1画素は、例えばR(赤)、G(緑)、B(青)の三原色の階調信号で表される。より詳細には、1画素のRGB要素はそれぞれ8ビットの階調信号で表されている。このため、第1カラー画像は、1画素が24ビット(8ビット×3色)で構成されている。 The camera 14 has an optical lens, an optical sensor such as a CCD (Charge Coupled Device), an A / D (Analog / Digital) conversion unit, and the like, and a subject image input via the optical lens at the time of shooting is photoelectric by the optical sensor. Convert to generate an analog image signal. Then, the A / D conversion unit converts the analog image signal into a digital first color image and supplies it to the control device 12. One pixel of the first color image, which is a natural image, is represented by, for example, gradation signals of three primary colors of R (red), G (green), and B (blue). More specifically, each of the RGB elements of one pixel is represented by an 8-bit gradation signal. Therefore, one pixel of the first color image is composed of 24 bits (8 bits x 3 colors).

入力装置16は、表示装置18のパネルに一体的に組み込まれたタッチパネルや、写真種類を選択するための写真種選択スイッチ(以下、SW)、撮影開始を指示するための撮影SW、撮影画像のプリント出力を指示するためのプリントSW等の各種機能キーなどを有し、操作されたキーに対応する操作信号を制御装置12に出力する。 The input device 16 includes a touch panel integrated into the panel of the display device 18, a photo type selection switch (hereinafter referred to as SW) for selecting a photo type, a shooting SW for instructing the start of shooting, and a shooting image. It has various function keys such as a print switch for instructing print output, and outputs an operation signal corresponding to the operated key to the control device 12.

表示装置18は、例えばLCD(Liquid Crystal Display)を有し、制御装置12からの制御信号に従って、撮影手順を説明するガイド画面、写真種類を選択するための選択画面等の各種操作画面や、カメラ14により撮影された被写体の画像、画像処理装置100で処理されたイラスト風の画像等を表示する。 The display device 18 has, for example, an LCD (Liquid Crystal Display), and various operation screens such as a guide screen for explaining a shooting procedure and a selection screen for selecting a photo type according to a control signal from the control device 12, and a camera. The image of the subject taken by 14 and the illustration-like image processed by the image processing device 100 are displayed.

プリンタ20は、制御装置12から入力された画像に基づいてプリント出力を行う。プリンタ20のプリント方式としては、例えば色材を昇華、転移させて画像を形成する昇華型転写方式を適用可能である。それ以外に、記録媒体と受像材料とを重ね合わせて熱を加えることによって記録媒体の記録層を受像材料の受像層に転移させて画像を形成する溶融転写記録方式を適用してもよいし、電子写真方式、インクジェット方式やその他のプリント方式を適用してもよい。また、銀塩写真像を形成してもよい。 The printer 20 prints out based on the image input from the control device 12. As a printing method of the printer 20, for example, a sublimation type transfer method in which a coloring material is sublimated and transferred to form an image can be applied. Alternatively, a melt transfer recording method may be applied in which the recording layer of the recording medium is transferred to the image receiving layer of the image receiving material by superimposing the recording medium and the image receiving material and applying heat to form an image. An electrophotographic method, an inkjet method, or another printing method may be applied. Moreover, you may form a silver salt photograph image.

画像処理装置100は、入力された第1カラー画像をイラスト風の画像にする画像処理を施す。この画像処理装置100は、変換部102と、明度圧縮部104と、再変換部106と、エッジ抽出部108と、画素値変更部110とを備えている。 The image processing device 100 performs image processing to convert the input first color image into an illustration-like image. The image processing device 100 includes a conversion unit 102, a brightness compression unit 104, a reconversion unit 106, an edge extraction unit 108, and a pixel value change unit 110.

変換部102は、制御装置12から入力された第1カラー画像を明度情報と明度情報以外の色情報とに変換する。この明度情報は、カラー画像の明るさの尺度を示す値である。
例えば変換部102は、RGBの第1カラー画像をYCbCrの画像データに変換する。
輝度(明度)Yは、例えばY=0.29900×R+0.58700×G+0.11400×Bなる換算式で算出できる。これにより、第1カラー画像を用いて、各画素ごとの明度情報が生成される。
The conversion unit 102 converts the first color image input from the control device 12 into lightness information and color information other than the lightness information. This brightness information is a value indicating a measure of the brightness of a color image.
For example, the conversion unit 102 converts the first color image of RGB into the image data of YCbCr.
Luminance (brightness) Y can be calculated by a conversion formula such as Y = 0.29900 × R + 0.58700 × G + 0.11400 × B. As a result, brightness information for each pixel is generated using the first color image.

また、変換部102は、RGBの第1カラー画像を、例えばCb=−0.16874×R−0.33126×G+0.50000×Bなる換算式で、明度情報以外の色情報であるCbに変換する。同様に、変換部102は、RGBの第1カラー画像を、例えばCr=0.50000×R−0.41869×G−0.0081×Bなる換算式で明度情報以外の色情報であるCrに変換する。ここで、Cbは、色差情報とも呼ばれ、青色系統の色相と彩度を示す。Crは、色差情報とも呼ばれ、赤色系統の色相と彩度を示す。これにより、第1カラー画像を用いて、各画素ごとの色情報Cb及びCrが生成される。 Further, the conversion unit 102 converts the first color image of RGB into Cb which is color information other than the brightness information by a conversion formula of, for example, Cb = −0.16874 × R−0.33126 × G + 0.50000 × B. do. Similarly, the conversion unit 102 converts the first color image of RGB into Cr, which is color information other than the brightness information by a conversion formula of, for example, Cr = 0.50000 × R-0.41869 × G-0.0081 × B. Convert. Here, Cb is also called color difference information, and indicates the hue and saturation of the blue system. Cr is also called color difference information and indicates the hue and saturation of the red system. As a result, the color information Cb and Cr for each pixel are generated using the first color image.

なお、変換部102は、RGBの第1カラー画像をYCbCrに変換する以外の手法によって、明度情報と色情報とを生成してもよい。例えば、第1カラー画像をLab表色系やHLS表色系等に変換してもよい。 The conversion unit 102 may generate brightness information and color information by a method other than converting the first color image of RGB into YCbCr. For example, the first color image may be converted into a Lab color system, an HLS color system, or the like.

明度圧縮部104は、変換部102で得られた明度情報を間引いた圧縮明度情報を生成する。本来は、第1カラー画像がリニアな明るさの情報を持っていても、例えば5段階の明るさに第1カラー画像を変換する。 The lightness compression unit 104 generates compressed lightness information obtained by thinning out the lightness information obtained by the conversion unit 102. Originally, even if the first color image has linear brightness information, the first color image is converted into, for example, five levels of brightness.

より具体的には、例えば変換部102でえられた画素毎の明度情報が(0〜100)の範囲である場合、明度情報が(100〜95)の範囲の画素の値を間引後の圧縮明度情報(100)に変換する。同様に、明度情報が(95〜55)の範囲の画素の値を間引後の圧縮明度情報(80)に変換する。同様に、明度情報が(55〜30)の範囲の画素の値を間引後の圧縮明度情報(60)に変換し、明度情報が(30〜10)の範囲の画素の値を間引後の圧縮明度情報(25)に変換し、明度情報が(10〜0)の範囲の画素の値を間引後の圧縮明度情報(0)に変換する。このような間引き処理を行うことで、全体的に明るさの違いをはっきりさせた明度圧縮画像への変換を行う。すなわち、ここでの圧縮明度情報Y’は、輝度画像の輝度を間引いた明度圧縮画像における画素毎の画素値と同等である。 More specifically, for example, when the brightness information for each pixel obtained by the conversion unit 102 is in the range of (0 to 100), the values of the pixels in the range of (100 to 95) are thinned out. Convert to compressed lightness information (100). Similarly, the value of the pixel whose lightness information is in the range of (95 to 55) is converted into the compressed lightness information (80) after thinning out. Similarly, the values of the pixels in the range of lightness information (55 to 30) are converted into the compressed lightness information (60) after thinning, and the values of the pixels in the range of lightness information (30 to 10) are thinned out. It is converted into the compressed lightness information (25) of the above, and the value of the pixel in the range of the lightness information (10 to 0) is converted into the compressed lightness information (0) after thinning. By performing such thinning processing, conversion to a brightness-compressed image in which the difference in brightness is clarified as a whole is performed. That is, the compressed lightness information Y'here is equivalent to the pixel value for each pixel in the lightness compressed image obtained by thinning out the brightness of the luminance image.

再変換部106は、明度圧縮部104で得られた圧縮明度情報と、変換部102で得られた明度情報以外の色情報とを合成して、第2カラー画像を生成する。より具体的には、再変換部106は、明度圧縮部104で得られた圧縮明度情報Y’と、変換部102で得られた色情報Cb、Crとを用いて、第2カラー画像を生成する。このように明度情報が間引きされた第2カラー画像は、全体的に明るさの違いがはっきりしたイラスト風の明度の画像に変換される。 The reconversion unit 106 generates a second color image by synthesizing the compressed lightness information obtained by the lightness compression unit 104 and the color information other than the lightness information obtained by the conversion unit 102. More specifically, the reconversion unit 106 generates a second color image using the compressed lightness information Y'obtained by the lightness compression unit 104 and the color information Cb and Cr obtained by the conversion unit 102. do. The second color image from which the brightness information is thinned out in this way is converted into an illustration-like brightness image in which the difference in brightness is clear as a whole.

エッジ抽出部108は、第1カラー画像に含まれるエッジを抽出する。エッジ抽出部108の詳細な構成は、後述する。 The edge extraction unit 108 extracts the edges included in the first color image. The detailed configuration of the edge extraction unit 108 will be described later.

画素値変更部110は、第2カラー画像中のエッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像(イラスト風の画像)を生成する。より具体的には、画素値変更部110は、第2カラー画像中のエッジの内側領域の明度がエッジの外側領域よりも高い場合には、第2カラー画像中のエッジの位置における画素値を、同系色を維持しつつ、より暗い色合いの画素値に変更する。 The pixel value changing unit 110 changes the pixel value at the edge position in the second color image while maintaining similar colors to generate a third color image (illustration-like image). More specifically, when the brightness of the inner region of the edge in the second color image is higher than the outer region of the edge, the pixel value changing unit 110 determines the pixel value at the position of the edge in the second color image. , Change to a darker pixel value while maintaining similar colors.

例えば、画素値変更部110は、第2カラー画像中のエッジの位置における画素値を、画素値に所定の係数を乗じた値に変更する。より具体的には、画素値変更部110は、エッジ抽出部108で得られたエッジの位置における画素値を、1/2あるいは1/4に変換して、エッジの色を濃くする。この場合、画素毎のRGB階調値に所定の係数(例えば、1/2又は1/4)を乗じた値に、画素毎のRGB階調値を変更する。 For example, the pixel value changing unit 110 changes the pixel value at the edge position in the second color image to a value obtained by multiplying the pixel value by a predetermined coefficient. More specifically, the pixel value changing unit 110 converts the pixel value at the edge position obtained by the edge extracting unit 108 into 1/2 or 1/4 to darken the edge color. In this case, the RGB gradation value for each pixel is changed to a value obtained by multiplying the RGB gradation value for each pixel by a predetermined coefficient (for example, 1/2 or 1/4).

これにより、エッジの本来の色合いを維持しつつ、本来の色合いをより濃くする。例えば本来の色がピンクであれば、ピンクを濃くしたエッジを生成する。また、例えば本来の色が緑であれば、緑を濃くしたエッジを生成する。このように、元の色を残しつつ、エッジを生成することで、絵の具で塗ったような感じの画像を得ることができる。すなわち、CGで生成したことが認識されにくいイラスト化画像が得られる。なお、画素値変更部110において、エッジの色を濃くする場合に、画素毎のRGB階調値に乗算する係数の値をRGB要素毎に相違させてもよい。 This makes the original shade darker while maintaining the original shade of the edge. For example, if the original color is pink, an edge with a darker pink is generated. Also, for example, if the original color is green, an edge with darker green is generated. In this way, by generating edges while retaining the original color, it is possible to obtain an image that looks as if it was painted with paint. That is, an illustrated image that is difficult to recognize generated by CG can be obtained. In the pixel value changing unit 110, when the edge color is darkened, the value of the coefficient to be multiplied by the RGB gradation value for each pixel may be different for each RGB element.

次に、図2に基づいて、エッジ抽出部108の詳細な構成を説明する。図2は、エッジ抽出部108の構成を示すブロック図である。この図2に示すように、エッジ抽出部108は、モノクロ変換部112と、ぼかし処理部114と、比率検出部116と、比率判定部118と、エッジ出力部120とを備える。 Next, a detailed configuration of the edge extraction unit 108 will be described with reference to FIG. FIG. 2 is a block diagram showing the configuration of the edge extraction unit 108. As shown in FIG. 2, the edge extraction unit 108 includes a monochrome conversion unit 112, a blur processing unit 114, a ratio detection unit 116, a ratio determination unit 118, and an edge output unit 120.

モノクロ変換部112は、第1カラー画像をモノクロ画像に変換する。モノクロ変換部112は、上述した換算式に従って、RGBの第1カラー画像から輝度(明度)Yの情報に変換する。モノクロ画像は、輝度情報と等価である。 The monochrome conversion unit 112 converts the first color image into a monochrome image. The monochrome conversion unit 112 converts the first color image of RGB into the information of the brightness (brightness) Y according to the above-mentioned conversion formula. A monochrome image is equivalent to luminance information.

ぼかし処理部114は、モノクロ画像をぼかしたぼかし画像を生成する。より具体的には、ぼかし処理部114は、例えばモノクロ画像の外形サイズに応じたフィルタサイズを有するガウシアンフィルタによりモノクロ画像にフィルタリング処理をしてぼかし画像を生成する。 The blur processing unit 114 generates a blurred image in which a monochrome image is blurred. More specifically, the blur processing unit 114 generates a blurred image by filtering the monochrome image with, for example, a Gaussian filter having a filter size corresponding to the outer size of the monochrome image.

比率検出部116は、ぼかし処理部114で得られたぼかし画像の画素値と、このぼかし画像の画素値に対応するモノクロ画像の画素値との比率を検出する。より具体的には、比率=ぼかし画像の画素/モノクロ画像の画素値なる式で比率を演算する。 The ratio detection unit 116 detects the ratio between the pixel value of the blurred image obtained by the blur processing unit 114 and the pixel value of the monochrome image corresponding to the pixel value of the blurred image. More specifically, the ratio is calculated by the formula of ratio = pixel of blurred image / pixel value of monochrome image.

エッジ出力部120は、比率検出部116で検出された比率が所定の閾値より大きいと判定された画素をモノクロ画像中のエッジとして出力する。例えば、比率が0.9以上の領域をエッジとして出力する場合、エッジの内側領域の輝度がエッジの外側領域よりも高い場合のエッジを検出できる。これにより、例えば、人物画像では、人間の顔の輪郭に沿った外側部分にエッジを設定可能であり、顔に食い込むようなエッジが抽出されるおそれはなくなる。このため、人間の顔の印象が不自然なエッジ抽出によって変わってしまう不具合も生じなくなる。 The edge output unit 120 outputs pixels in which the ratio detected by the ratio detection unit 116 is determined to be larger than a predetermined threshold value as an edge in a monochrome image. For example, when a region having a ratio of 0.9 or more is output as an edge, the edge can be detected when the brightness of the inner region of the edge is higher than that of the outer region of the edge. As a result, for example, in a human image, an edge can be set on the outer portion along the contour of the human face, and there is no possibility that an edge that bites into the face is extracted. Therefore, there is no problem that the impression of the human face is changed by unnatural edge extraction.

ここで、ぼかし処理部114で使用されるガウシアンフィルタのフィルタサイズは大きくなるに従い、エッジ出力部120にて、より小さな(弱い)エッジまで出力可能である。一方で、ガウシアンフィルタのフィルタサイズが小さいほど、エッジ出力部120にて、より小さなエッジを抽出できなくなる。なお、小さな(弱い)エッジとは輝度が比較的緩やかに変化する輪郭線であり、大きな(強い)エッジとは輝度が急峻に変化する輪郭線である。 Here, as the filter size of the Gaussian filter used in the blur processing unit 114 increases, the edge output unit 120 can output even smaller (weaker) edges. On the other hand, the smaller the filter size of the Gaussian filter, the smaller the edge cannot be extracted by the edge output unit 120. A small (weak) edge is a contour line whose brightness changes relatively slowly, and a large (strong) edge is a contour line whose brightness changes sharply.

また、面積の小さな画像は、小さなエッジまで抽出すると、画像が煩雑になるので、大きなエッジのみを抽出するのが望ましい。一方で、面積の大きな画像では、小さなエッジまで抽出した方が画像の再現性がよくなる。このため、本実施形態では、画像データの短辺サイズに応じて、フィルタサイズを変更する。すなわち、画像データの短辺の長さが長くなるに従い、ぼかし処理部114におけるガウシアンフィルタのフィルタサイズを大きくする。 Further, if an image having a small area is extracted to a small edge, the image becomes complicated, so it is desirable to extract only a large edge. On the other hand, in the case of an image having a large area, the reproducibility of the image is improved by extracting even a small edge. Therefore, in the present embodiment, the filter size is changed according to the short side size of the image data. That is, as the length of the short side of the image data becomes longer, the filter size of the Gaussian filter in the blur processing unit 114 is increased.

このように、ぼかし処理部114で使用されるガウシアンフィルタのフィルタサイズを変えることで、抽出されるエッジの大きさが変更される。また、ガウシアンフィルタのフィルタサイズを変えることで、エッジ出力部120が出力するエッジの幅が変更される。
具体的には、フィルタサイズが大きくなるに従い、エッジ出力部120が出力するエッジの幅は太くなる。
In this way, by changing the filter size of the Gaussian filter used in the blur processing unit 114, the size of the extracted edge is changed. Further, by changing the filter size of the Gaussian filter, the width of the edge output by the edge output unit 120 is changed.
Specifically, as the filter size increases, the width of the edge output by the edge output unit 120 increases.

上述したように、モノクロ画像において、輝度が大きく変わる箇所が強いエッジ、輝度がなだらかに変わる箇所が弱いエッジになる。このため、強いエッジと弱いエッジとを比較すると、強いエッジの方が、ぼかし処理部114で得られたぼかし画像とモノクロ画像との間での対応する画素値同士の差分値が大きくなる。差分値が大きいほど、エッジ出力部120から出力されるエッジの幅が大きくなる。このように、エッジの幅は、強いエッジの方が弱いエッジよりもより太くなる。これにより、輝度が急激に変化する強いエッジは太い線で、輝度がなだらかに変化する弱いエッジは細い線になり、輝度差に応じてエッジ幅が連続的に推移する。このように、本実施形態では、エッジの強さに応じて、輪郭線の太さを可変できるため、絵の具で描画した感じの画像が得られる。 As described above, in a monochrome image, a portion where the brightness changes significantly is a strong edge, and a portion where the brightness changes gently is a weak edge. Therefore, when comparing the strong edge and the weak edge, the difference value between the corresponding pixel values between the blurred image and the monochrome image obtained by the blur processing unit 114 is larger in the strong edge. The larger the difference value, the larger the width of the edge output from the edge output unit 120. Thus, the width of the edges is thicker for strong edges than for weak edges. As a result, the strong edge whose brightness changes abruptly becomes a thick line, and the weak edge whose brightness changes gently becomes a thin line, and the edge width continuously changes according to the brightness difference. As described above, in the present embodiment, the thickness of the contour line can be changed according to the strength of the edge, so that an image as if drawn with paint can be obtained.

次に、図3に基づき、ぼかし処理部114におけるガウシアンフィルタの係数について説明する。図3は、フィルタサイズ[5×5]の係数を示す図である。この図3に示すように、係数f(x、y)は、以下の(1)式で示されるガウシアン分布関数に従い演算される。

Figure 0006928903
Next, the coefficient of the Gaussian filter in the blur processing unit 114 will be described with reference to FIG. FIG. 3 is a diagram showing the coefficients of the filter size [5 × 5]. As shown in FIG. 3, the coefficient f (x, y) is calculated according to the Gaussian distribution function represented by the following equation (1).
Figure 0006928903

ここで、(x、y)は、注目画素からの距離を示す。但し、実際にはすべての係数の和が1になるように係数を正規化する。より具体的には、(2)式に従い、係数の正規化を行う。

Figure 0006928903
Here, (x, y) indicates the distance from the pixel of interest. However, in reality, the coefficients are normalized so that the sum of all the coefficients is 1. More specifically, the coefficients are normalized according to Eq. (2).
Figure 0006928903

フィルタのサイズ[N×N]は入力画像の縦横の短辺の値を用いて算出する。より具体的には、フィルタの一辺の長さ=短辺の長さ/規定値なる式で演算される。ここで、短辺の長さは、入力画像における縦辺及び横辺の長さのうち、短い方の長さである。このため、N=フィルタの一辺の長さ/画素のサイズで演算される。 The filter size [N × N] is calculated using the values on the short sides of the input image. More specifically, it is calculated by the formula: length of one side of the filter = length of the short side / specified value. Here, the length of the short side is the shorter of the lengths of the vertical side and the horizontal side in the input image. Therefore, N = the length of one side of the filter / the size of the pixel is calculated.

次に、図4乃至図6に基づきイラスト化処理の流れを説明する。図4は、画像処理装置100におけるイラスト化処理のフローチャートを示す図である。図4では、エッジの抽出処理と、明度の間引き処理とを並列処理する例を説明するが、いずれか一方の処理を他方の処理よりも先に行ってもよい。 Next, the flow of the illustration process will be described with reference to FIGS. 4 to 6. FIG. 4 is a diagram showing a flowchart of the illustration process in the image processing device 100. Although FIG. 4 describes an example in which the edge extraction process and the lightness thinning process are performed in parallel, one of the processes may be performed before the other process.

図5は、エッジの抽出処理に関する画像を示す図である。図5(a)は、カメラ14で撮影されたバラの花の第1カラー画像であり、図5(b)は、モノクロ変換部112で変換されたモノクロ画像であり、図5(c)は、ぼかし処理部114で得られたぼかし画像であり、図5(d)は、エッジ出力部120で得られたエッジを黒色で明示した画像である。 FIG. 5 is a diagram showing an image related to the edge extraction process. FIG. 5A is a first color image of a rose flower taken by the camera 14, FIG. 5B is a monochrome image converted by the monochrome conversion unit 112, and FIG. 5C is a monochrome image. It is a blur image obtained by the blur processing unit 114, and FIG. 5D is an image in which the edge obtained by the edge output unit 120 is clearly shown in black.

図6は、間引き処理に関する画像を示す図である。図6(a)は、カメラ14で撮影されたバラの花の第1カラー画像であり、図6(b)は、変換部102で変換された明度情報を示す画像(輝度画像)であり、図6(c)は、明度圧縮部104で得られた圧縮明度情報を示す画像(圧縮明度画像)であり、図6(d)は、再変換部106で得られた第2カラー画像であり、図6(e)は、画素値変更部110で得られた第3カラー画像である。 FIG. 6 is a diagram showing an image related to the thinning process. FIG. 6A is a first color image of the rose flower taken by the camera 14, and FIG. 6B is an image (luminance image) showing the brightness information converted by the conversion unit 102. FIG. 6 (c) is an image (compressed brightness image) showing the compressed brightness information obtained by the brightness compression unit 104, and FIG. 6 (d) is a second color image obtained by the reconversion unit 106. , FIG. 6E is a third color image obtained by the pixel value changing unit 110.

まず、エッジの抽出処理の流れについて説明する。図4に示すように、カメラ14で撮影されたバラの花の第1カラー画像(図5(a)、図6(a))が制御装置12を介して、モノクロ変換部112及び変換部102に入力される(ステップS500)。 First, the flow of the edge extraction process will be described. As shown in FIG. 4, the first color images (FIGS. 5A and 6A) of the rose flower taken by the camera 14 are transmitted to the monochrome conversion unit 112 and the conversion unit 102 via the control device 12. Is input to (step S500).

次に、モノクロ変換部112は、上述した換算式に従って、第1カラー画像をモノクロ画像(図5(b))に変換する(ステップS502)。これにより、第1カラー画像は、0〜100の明度Yを有するモノクロ画像に変換される。 Next, the monochrome conversion unit 112 converts the first color image into a monochrome image (FIG. 5 (b)) according to the conversion formula described above (step S502). As a result, the first color image is converted into a monochrome image having a brightness Y of 0 to 100.

次に、ぼかし処理部114は、モノクロ画像の短辺の長さに基づくフィルタサイズを演算し、ガウス分布関数の係数を演算する。続いて、モノクロ画像の全画素にフィルタリング処理をして、ぼかし画像(図5(c))を生成する(ステップS504)。 Next, the blur processing unit 114 calculates the filter size based on the length of the short side of the monochrome image, and calculates the coefficient of the Gaussian distribution function. Subsequently, all the pixels of the monochrome image are filtered to generate a blurred image (FIG. 5 (c)) (step S504).

次に、比率検出部116は、ぼかし画像の画素値と、このぼかし画像の画素値に対応するモノクロ画像の画素値との比率を検出する(ステップS506)。そして、エッジ出力部120は、比率検出部116で検出された比率が所定の閾値より大きいと判定された画素をモノクロ画像中のエッジとして出力する(ステップS508)。ここでは、比率が0.7以上で1.0未満の画素をエッジとする。この場合、エッジに対応する画素の画素値を0(図5(d)の黒色相当)とし、それ以外の画素の画素値を100(図5(d)の白色相当)として出力する。 Next, the ratio detection unit 116 detects the ratio between the pixel value of the blurred image and the pixel value of the monochrome image corresponding to the pixel value of the blurred image (step S506). Then, the edge output unit 120 outputs a pixel whose ratio detected by the ratio detection unit 116 is larger than a predetermined threshold value as an edge in the monochrome image (step S508). Here, a pixel having a ratio of 0.7 or more and less than 1.0 is defined as an edge. In this case, the pixel value of the pixel corresponding to the edge is set to 0 (corresponding to black in FIG. 5 (d)), and the pixel value of the other pixels is set to 100 (corresponding to white in FIG. 5 (d)).

次に、間引き処理の流れについて説明する。図4に示すように、変換部102は、制御装置12から入力された第1カラー画像(図6(a))を明度情報(図6(b))Yと明度情報以外の色情報とに変換する(ステップS602)。 Next, the flow of the thinning process will be described. As shown in FIG. 4, the conversion unit 102 converts the first color image (FIG. 6 (a)) input from the control device 12 into the brightness information (FIG. 6 (b)) Y and the color information other than the brightness information. Convert (step S602).

次に、明度圧縮部104は、明度情報Yを間引いた圧縮明度情報Y’を生成する(ステップS604)。ここでは、値の範囲が0〜100の明度情報Y(図6(b))を間引いて、100、80、60、25、及び0のいずれかの値を有する圧縮明度情報Y’を生成する(図6(c))。 Next, the lightness compression unit 104 generates compressed lightness information Y'by thinning out the lightness information Y (step S604). Here, the lightness information Y (FIG. 6B) having a value range of 0 to 100 is thinned out to generate compressed lightness information Y'having any value of 100, 80, 60, 25, and 0. (Fig. 6 (c)).

次に、再変換部106は、明度圧縮部104で得られた圧縮明度情報Y’と、変換部102で得られた色情報Cb、Crとを合成して、第2カラー画像(図6(d))を生成する(ステップS606)。ここでは、1画素毎にRGB階調値を有する第2カラー画像に再変換される。 Next, the reconversion unit 106 synthesizes the compressed lightness information Y'obtained by the lightness compression unit 104 and the color information Cb and Cr obtained by the conversion unit 102 to form a second color image (FIG. 6 (FIG. 6). d))) is generated (step S606). Here, each pixel is reconverted into a second color image having an RGB gradation value.

次に、画素値変更部110は、第2カラー画像中のエッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像(図6(e))を生成する(ステップS608)。ここでは、エッジ出力部120で出力されたエッジの位置に対応するRGB要素それぞれの値を1/2倍にする。すなわち、エッジ出力部120で出力されたエッジの位置(画素値100を示す画素)に対応する第2カラー画像のRGB階調値をそれぞれ1/2倍にする。続いて、画素値変更部110は、第3カラー画像を表示装置18及びプリンタ20に制御装置12を介して出力し、全体の処理を終了する。 Next, the pixel value changing unit 110 changes the pixel value at the edge position in the second color image while maintaining the similar colors to generate the third color image (FIG. 6 (e)) (step S608). ). Here, the value of each of the RGB elements corresponding to the position of the edge output by the edge output unit 120 is halved. That is, the RGB gradation values of the second color image corresponding to the edge positions (pixels indicating the pixel value 100) output by the edge output unit 120 are each halved. Subsequently, the pixel value changing unit 110 outputs the third color image to the display device 18 and the printer 20 via the control device 12, and ends the entire process.

このように、エッジの抽出処理では、ぼかし画像の画素値と、このぼかし画像の画素値に対応するモノクロ画像の画素値との比率を検出することで、強いエッジの幅をより太く出力することが可能である。また、明度の間引き処理では、第1カラー画像を明度情報に変換した後に、明度情報を間引いた圧縮明度情報を生成し、圧縮明度情報を第2カラー−画像に再変換することで、全体的に明るさの違いがはっきりした第2カラー画像を得ることが可能である。さらに、第2カラー画像のエッジの色を濃くすることで、絵の具で描いたような第3カラー画像(イラスト化画像)を得ることができる。この場合、強いエッジほどより太くすることで、より自然な感じのイラスト化画像を得ることが可能である。 In this way, in the edge extraction process, the width of a strong edge is output thicker by detecting the ratio between the pixel value of the blurred image and the pixel value of the monochrome image corresponding to the pixel value of the blurred image. Is possible. Further, in the lightness thinning process, after the first color image is converted into the lightness information, the compressed lightness information obtained by thinning out the lightness information is generated, and the compressed lightness information is reconverted into the second color-image to obtain the whole image. It is possible to obtain a second color image in which the difference in brightness is clear. Further, by darkening the edge color of the second color image, a third color image (illustrated image) as if drawn with paint can be obtained. In this case, it is possible to obtain an illustrated image with a more natural feeling by making the edge thicker.

以上のように、第1の実施形態によれば、抽出されたエッジの位置における画素値を、同系色を維持しつつ変更するため、絵の具で描いたようなより自然な感じのイラスト風の画像を生成できる。また、強いエッジか、弱いエッジかにより、エッジの幅を可変調整するため、周囲の画像に合わせてエッジの幅を最適化でき、違和感のない画像が得られる。
(第2の実施形態)
As described above, according to the first embodiment, since the pixel values at the positions of the extracted edges are changed while maintaining the similar colors, an illustration-like image with a more natural feeling as if drawn with paint. Can be generated. Further, since the width of the edge is variably adjusted depending on whether it is a strong edge or a weak edge, the width of the edge can be optimized according to the surrounding image, and an image without a sense of discomfort can be obtained.
(Second Embodiment)

上述した第1の実施形態では、ぼかし処理部114は、モノクロ画像の外形サイズに応じてフィルタサイズを設定していたが、フィルタサイズを設定する条件は他にも考えられる。例えば、プリンタ20での出力結果である第3カラー画像の外形サイズに応じてフィルタサイズを設定することで相違する。以下、上述した第1の実施形態と異なる部分を説明する。画像処理システム1の構成は、図1乃至図3で示す構成と同等であるので説明を省略する。 In the first embodiment described above, the blur processing unit 114 sets the filter size according to the outer size of the monochrome image, but other conditions for setting the filter size can be considered. For example, it differs by setting the filter size according to the outer size of the third color image which is the output result of the printer 20. Hereinafter, parts different from the above-described first embodiment will be described. Since the configuration of the image processing system 1 is the same as the configuration shown in FIGS. 1 to 3, the description thereof will be omitted.

図7は、第2の実施形態におけるイラスト化処理のフローチャートを示す図である。第2の実施形態に係る画像処理装置は、図1と同様の構成を有し、イラスト化処理のみが第1の実施形態と相違している。図7では、図4と同等の処理には同一のステップ番号を付しており、以下では相違点を中心に説明する。図7に示すように、制御装置12は、イラスト化処理を開始するにあたって、プリンタ20に設定されている画像の出力サイズを取得し、ぼかし処理部114に出力する(ステップS701)。 FIG. 7 is a diagram showing a flowchart of the illustration process according to the second embodiment. The image processing apparatus according to the second embodiment has the same configuration as that of FIG. 1, and only the illustration processing is different from the first embodiment. In FIG. 7, the same step numbers are assigned to the processes equivalent to those in FIG. 4, and the differences will be mainly described below. As shown in FIG. 7, when starting the illustration process, the control device 12 acquires the output size of the image set in the printer 20 and outputs it to the blur processing unit 114 (step S701).

ぼかし処理部114では、プリンタ20に設定されている画像の出力サイズの短辺の長さに応じて設定されたフィルタサイズを有するガウシアンフィルタに基づいて、モノクロ画像をぼかして、ぼかし画像を生成する(ステップS704)。このように、ぼかし処理部114は、上述の第3カラー画像の外形サイズに応じてガウシアンフィルタのフィルタサイズを設定する。 The blur processing unit 114 blurs a monochrome image and generates a blurred image based on a Gaussian filter having a filter size set according to the length of the short side of the output size of the image set in the printer 20. (Step S704). In this way, the blur processing unit 114 sets the filter size of the Gaussian filter according to the outer size of the above-mentioned third color image.

次に、画素値変更部110は、画素値変更部110で生成された第3カラー画像の大きさを更に第3カラー画像の外形サイズ、すなわちプリンタ20の出力サイズに変更し、表示装置18及びプリンタ20に制御装置12を介して出力し(ステップS710)、全体の処理を終了する。 Next, the pixel value changing unit 110 further changes the size of the third color image generated by the pixel value changing unit 110 to the outer size of the third color image, that is, the output size of the printer 20, and the display device 18 and The printer 20 is output to the printer 20 via the control device 12 (step S710), and the entire process is completed.

このように、第2の実施形態では、第3カラー画像の外形サイズ、すなわちプリンタ20の出力サイズに応じてフィルタサイズを設定するので、第3カラー画像の外形サイズに適したサイズおよび幅のエッジを生成できる。これにより、第3カラー画像の外形サイズが種々に変わっても、人間が実際に描いたようなイラスト風の画像を生成できる。 As described above, in the second embodiment, since the filter size is set according to the outer size of the third color image, that is, the output size of the printer 20, the edge of the size and width suitable for the outer size of the third color image. Can be generated. As a result, even if the outer size of the third color image changes variously, it is possible to generate an illustration-like image as if it was actually drawn by a human.

以上のように、第2の実施形態によれば、画素値変更部110で生成された第3カラー画像の外形サイズ、すなわちプリンタ20の出力サイズに応じてフィルタサイズを設定するため、第3カラー画像の外形サイズに最適なエッジ抽出を行うことができる。 As described above, according to the second embodiment, the third color is set in order to set the filter size according to the outer size of the third color image generated by the pixel value changing unit 110, that is, the output size of the printer 20. Edge extraction that is optimal for the outer size of the image can be performed.

上述した第1および第2の実施形態では、ぼかし処理にガウシアンフィルタを用いたが、ぼかし処理に用いるフィルタは必ずしもガウシアンフィルタに限定されず、例えばラプラシアンフィルタなどを用いてもよい。ただし、第1および第2の実施形態では、フィルタによって直接エッジ抽出を行うのではなく、ぼかし処理にフィルタを用いている。よって、ぼかし処理が可能で、かつフィルタサイズを可変可能なフィルタであれば、具体的なフィルタの形式は問わない。 In the first and second embodiments described above, a Gaussian filter is used for the blurring process, but the filter used for the blurring process is not necessarily limited to the Gaussian filter, and for example, a Laplacian filter may be used. However, in the first and second embodiments, the filter is used for the blurring process instead of directly extracting the edge by the filter. Therefore, as long as the filter can be blurred and the filter size can be changed, the specific filter format does not matter.

上述した実施形態で説明した画像処理装置の少なくとも一部は、ハードウェアで構成してもよいし、ソフトウェアで構成してもよい。ソフトウェアで構成する場合には、画像処理装置の少なくとも一部の機能を実現するプログラムをフレキシブルディスクやCD−ROM等の記録媒体に収納し、コンピュータに読み込ませて実行させてもよい。記録媒体は、磁気ディスクや光ディスク等の着脱可能なものに限定されず、ハードディスク装置やメモリなどの固定型の記録媒体でもよい。 At least a part of the image processing apparatus described in the above-described embodiment may be configured by hardware or software. When configured by software, a program that realizes at least a part of the functions of the image processing device may be stored in a recording medium such as a flexible disk or a CD-ROM, read by a computer, and executed. The recording medium is not limited to a removable one such as a magnetic disk or an optical disk, and may be a fixed recording medium such as a hard disk device or a memory.

また、画像処理装置の少なくとも一部の機能を実現するプログラムを、インターネット等の通信回線(無線通信も含む)を介して頒布してもよい。さらに、同プログラムを暗号化したり、変調をかけたり、圧縮した状態で、インターネット等の有線回線や無線回線を介して、あるいは記録媒体に収納して頒布してもよい。 Further, a program that realizes at least a part of the functions of the image processing device may be distributed via a communication line (including wireless communication) such as the Internet. Further, the program may be encrypted, modulated, compressed, and distributed via a wired line or wireless line such as the Internet, or stored in a recording medium.

本開示の態様は、上述した個々の実施形態に限定されるものではなく、当業者が想到しうる種々の変形も含むものであり、本開示の効果も上述した内容に限定されない。すなわち、特許請求の範囲に規定された内容およびその均等物から導き出される本開示の概念的な思想と趣旨を逸脱しない範囲で種々の追加、変更および部分的削除が可能である。 The aspects of the present disclosure are not limited to the individual embodiments described above, but also include various modifications that can be conceived by those skilled in the art, and the effects of the present disclosure are not limited to the contents described above. That is, various additions, changes and partial deletions are possible without departing from the conceptual idea and purpose of the present disclosure derived from the contents defined in the claims and their equivalents.

100:画像処理装置、102:変換部、104:明度圧縮部、106:再変換部、108:エッジ抽出部、110:画素値変更部、112:モノクロ変換部、114:ぼかし処理部、116:比率検出部、118:比率判定部、120:エッジ出力部 100: Image processing device, 102: Conversion unit, 104: Brightness compression unit, 106: Re-conversion unit, 108: Edge extraction unit, 110: Pixel value change unit, 112: Monochrome conversion unit, 114: Blur processing unit, 116: Ratio detection unit, 118: Ratio determination unit, 120: Edge output unit

Claims (3)

第1カラー画像のモノクロ画像をぼかしたぼかし画像を生成するぼかし処理部と、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出する比率検出部と、
前記比率が所定の閾値より大きいか否かを判定する比率判定部と、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして出力するエッジ出力部と、
前記第1カラー画像の少なくとも明度を圧縮した第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成する画素値変更部と、
を備える画像処理装置。
A blur processing unit that generates a blur image that blurs the monochrome image of the first color image,
A ratio detection unit that detects the ratio between the pixel value of the blurred image and the pixel value of the monochrome image corresponding to the pixel value of the blurred image.
A ratio determination unit that determines whether or not the ratio is greater than a predetermined threshold value,
An edge output unit that outputs pixels whose ratio is determined to be larger than the threshold value as edges in the monochrome image.
A pixel value changing unit that generates a third color image by changing the pixel value at the position of the edge in the second color image in which at least the brightness of the first color image is compressed while maintaining similar colors.
An image processing device comprising.
第1カラー画像のモノクロ画像をぼかしたぼかし画像を生成し、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出し、
前記比率が所定の閾値より大きいか否かを判定し、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして出力し、
前記第1カラー画像の少なくとも明度を圧縮した第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成する、画像処理方法。
Generates a blurred image that blurs the monochrome image of the first color image,
The ratio of the pixel value of the blurred image to the pixel value of the monochrome image corresponding to the pixel value of the blurred image is detected.
It is determined whether or not the ratio is larger than a predetermined threshold value, and it is determined.
Pixels determined to have the ratio greater than the threshold value are output as edges in the monochrome image.
An image processing method for generating a third color image by changing the pixel value at the position of the edge in the second color image in which at least the brightness of the first color image is compressed while maintaining similar colors.
コンピュータに、
第1カラー画像のモノクロ画像をぼかしたぼかし画像を生成するステップと、
前記ぼかし画像の画素値と、前記ぼかし画像の画素値に対応する前記モノクロ画像の画素値との比率を検出するステップと、
前記比率が所定の閾値より大きいか否かを判定するステップと、
前記比率が前記閾値より大きいと判定された画素を前記モノクロ画像中のエッジとして抽出するステップと、
前記第1カラー画像の少なくとも明度を圧縮した第2カラー画像中の前記エッジの位置における画素値を、同系色を維持しつつ変更して第3カラー画像を生成するステップと
を実行させる、コンピュータ読み込み可能なプログラム。
On the computer
Steps to generate a blurred image that blurs the monochrome image of the first color image,
A step of detecting the ratio of the pixel value of the blurred image to the pixel value of the monochrome image corresponding to the pixel value of the blurred image, and
A step of determining whether or not the ratio is greater than a predetermined threshold, and
A step of extracting pixels whose ratio is determined to be larger than the threshold value as edges in the monochrome image, and
A step of generating a third color image by changing the pixel value at the position of the edge in the second color image in which at least the brightness of the first color image is compressed while maintaining similar colors .
A computer-readable program that runs.
JP2020101700A 2016-05-23 2020-06-11 Image processing equipment, image processing methods, and programs Active JP6928903B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020101700A JP6928903B2 (en) 2016-05-23 2020-06-11 Image processing equipment, image processing methods, and programs

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016102734A JP6796277B2 (en) 2016-05-23 2016-05-23 Image processing equipment, image processing methods, and programs
JP2020101700A JP6928903B2 (en) 2016-05-23 2020-06-11 Image processing equipment, image processing methods, and programs

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016102734A Division JP6796277B2 (en) 2016-05-23 2016-05-23 Image processing equipment, image processing methods, and programs

Publications (2)

Publication Number Publication Date
JP2020156102A JP2020156102A (en) 2020-09-24
JP6928903B2 true JP6928903B2 (en) 2021-09-01

Family

ID=72560060

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020101700A Active JP6928903B2 (en) 2016-05-23 2020-06-11 Image processing equipment, image processing methods, and programs

Country Status (1)

Country Link
JP (1) JP6928903B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5589660B2 (en) * 2010-08-12 2014-09-17 株式会社ニコン Image processing apparatus, imaging apparatus, and image processing program
JP2014016688A (en) * 2012-07-06 2014-01-30 Kddi Corp Non-realistic conversion program, device and method using saliency map
JP2015005923A (en) * 2013-06-21 2015-01-08 株式会社沖データ Image processing apparatus and image processing system

Also Published As

Publication number Publication date
JP2020156102A (en) 2020-09-24

Similar Documents

Publication Publication Date Title
JP5100565B2 (en) Image processing apparatus and image processing method
JPH10105694A (en) Automatic cropping method for picture
US8665348B2 (en) Image processing apparatus and method using forward and inverse local adaptation processing and dynamic range processing
JP2010278708A (en) Image processing apparatus and method, and computer program
JP4687673B2 (en) Monotone processing of color image
JP6417851B2 (en) Image processing apparatus and computer program
US20150302600A1 (en) Method for obfuscating images or video to prevent digital recording or capture while remaining visible to humans
US20160240166A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2019009733A (en) Information processing apparatus, information processing method, and program
JP2007087123A (en) Image correction method, device and program
JP6677222B2 (en) Detection device, image processing device, detection method, and image processing method
JP6796277B2 (en) Image processing equipment, image processing methods, and programs
US8086063B2 (en) Image display apparatus and method, and program
JP6928903B2 (en) Image processing equipment, image processing methods, and programs
JP7296745B2 (en) Image processing device, image processing method, and program
JP5202190B2 (en) Image processing method and image processing apparatus
JP2008154261A (en) Determination of photographed scene and image processing based on photographed scene
JP2008071014A (en) Image processing program, image processor and electronic camera
JP2005217618A (en) Image processing method, image processing apparatus, and image processing program
JP5225491B2 (en) Image processing apparatus and image processing method
JP2001045303A (en) Image thresholding method
JP5627730B2 (en) Image processing apparatus and image processing method
JP5353382B2 (en) Image processing apparatus, image processing method, and image processing program
JP4316467B2 (en) Image processing method and image processing system
JP2008147714A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210409

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210607

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: 20210709

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210722

R150 Certificate of patent or registration of utility model

Ref document number: 6928903

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150