JP4629431B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP4629431B2
JP4629431B2 JP2004381069A JP2004381069A JP4629431B2 JP 4629431 B2 JP4629431 B2 JP 4629431B2 JP 2004381069 A JP2004381069 A JP 2004381069A JP 2004381069 A JP2004381069 A JP 2004381069A JP 4629431 B2 JP4629431 B2 JP 4629431B2
Authority
JP
Japan
Prior art keywords
pixel
value
neighboring
image processing
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004381069A
Other languages
Japanese (ja)
Other versions
JP2006185375A (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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2004381069A priority Critical patent/JP4629431B2/en
Publication of JP2006185375A publication Critical patent/JP2006185375A/en
Application granted granted Critical
Publication of JP4629431B2 publication Critical patent/JP4629431B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Description

本発明は、画像処理装置、及び、画像処理方法に関し、特に、画像データの輪郭成分を強調する画像処理装置、及び、画像処理方法に関する。 The present invention relates to an image processing apparatus, and relates to an image processing method, in particular, an image processing apparatus to enhance the contour component of the image data, and an image processing method.

現在、入力された画像データにおいて、画像データのイラスト化を実行する場合等に、画像データの輪郭成分を抽出している。その場合に使用されるフィルタは、一次微分フィルタとしてソーベルフィルタ、及び、二次微分フィルタとしてラプラシアンフィルタ等である。これらのフィルタにより、入力された画像データは、輪郭成分が抽出された画像データに変換されて出力されている。   At present, the contour component of the image data is extracted when the image data is illustrated in the input image data. The filters used in that case are a Sobel filter as a primary differential filter and a Laplacian filter as a secondary differential filter. By these filters, the input image data is converted into image data from which contour components are extracted and output.

ここで、画像データ内の注目画素、及び、近傍画素を含む画像単位データを、フィルタ処理して注目画素値を出力し、近傍画素値を検出し、フィルタ処理された注目画素値と近傍画素値とのいずれかを選択して輪郭成分が抽出された画像データを出力する技術が存在する(例えば、特許文献1参照)。
特開2000−322569号公報
Here, the target pixel in the image data and the image unit data including the neighboring pixel are filtered to output the target pixel value, the neighboring pixel value is detected, and the filtered pixel value and the neighboring pixel value are detected. There is a technique for outputting image data from which a contour component is extracted by selecting any of (see, for example, Patent Document 1).
JP 2000-322569 A

しかし、特許文献1により開示された技術では、入力された画像データを直接にフィルタ処理するので、単純に注目画素値と近傍画素値とが異なる場合が抽出される。よって、入力された画像データから、輪郭成分だけでなく、例えば、芝の目や顔の皺等の細かいテクスチャ成分等の本来不要な成分も抽出される。   However, in the technique disclosed in Patent Document 1, since the input image data is directly filtered, cases where the target pixel value and the neighboring pixel value are simply different are extracted. Therefore, not only contour components but also essential unnecessary components such as fine texture components such as turf eyes and facial wrinkles are extracted from the input image data.

本発明は、このような点に鑑みてなされたものであり、輪郭成分がより正確に強調されるようにする画像処理装置、及び、画像処理方法を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus and an image processing method that enhance contour components more accurately .

上記課題を解決するために、減算回路、比較回路、選択回路および乗算加算回路を有する画像処理装置が提供される。In order to solve the above problems, an image processing apparatus having a subtraction circuit, a comparison circuit, a selection circuit, and a multiplication and addition circuit is provided.

この画像処理装置において、減算回路は、画像内の注目画素とその近傍に位置する複数の近傍画素とを含む画素群の各画素値を受け付け、画素群内の各近傍画素の画素値から注目画素の画素値を減算し、減算結果を絶対値にし、差分値として出力する。比較回路は、出力された差分値と閾値メモリが記憶する閾値とを比較する。選択回路は、注目画素および近傍画素の各画素値が画素群単位で入力され、比較回路による比較結果に基づき、差分値が閾値以上である場合、この差分値の演算に用いた近傍画素の画素値を選択画素値として出力し、差分値が前記閾値より小さい場合、この差分値の演算に用いた注目画素の画素値を選択画素値として出力する。乗算加算回路は、画素群内の各画素の位置ごとに係数が記憶された係数メモリを参照し、画素群内の前記注目画素の画素値およびこの画素群内の各近傍画素に基づく各選択画素値のそれぞれに対して、この注目画素および各近傍画素の画素群内の位置にそれぞれ対応する係数メモリ内の係数を乗算し、画素群単位の乗算結果を加算して出力する。In this image processing device, the subtraction circuit receives each pixel value of a pixel group including the target pixel in the image and a plurality of neighboring pixels located in the vicinity thereof, and receives the target pixel from the pixel value of each neighboring pixel in the pixel group. Are subtracted, the subtraction result is made an absolute value, and the difference value is output. The comparison circuit compares the output difference value with the threshold value stored in the threshold value memory. The selection circuit receives the pixel values of the pixel of interest and the neighboring pixels in units of pixel groups, and if the difference value is equal to or greater than the threshold based on the comparison result by the comparison circuit, the pixel of the neighboring pixel used for the calculation of the difference value The value is output as the selected pixel value, and when the difference value is smaller than the threshold value, the pixel value of the target pixel used for the calculation of the difference value is output as the selected pixel value. The multiplication and addition circuit refers to a coefficient memory in which a coefficient is stored for each pixel position in the pixel group, and each selected pixel based on the pixel value of the target pixel in the pixel group and each neighboring pixel in the pixel group Each value is multiplied by the coefficient in the coefficient memory corresponding to the position of the pixel of interest and each neighboring pixel in the pixel group, and the multiplication result for each pixel group is added and output.

また、上記課題を解決するために、画像処理装置における画像処理方法が提供される。この画像処理方法において、画像処理装置は、次のような処理を実行する。 In order to solve the above-mentioned problem, an image processing method in an image processing apparatus is provided. In this image processing method, the image processing apparatus executes the following processing.

画像処理装置の減算手段は、画像内の注目画素とその近傍に位置する複数の近傍画素とを含む画素群の各画素値を受け付け、画素群内の各近傍画素の画素値から注目画素の画素値を減算し、減算結果を絶対値にし、差分値として出力する。画像処理装置の比較手段は、出力された差分値と閾値メモリが記憶する閾値とを比較する。画像処理装置の選択手段は、注目画素および近傍画素の各画素値が画素群単位で入力され、比較手段による比較結果に基づき、差分値が前記閾値以上である場合、この差分値の演算に用いた近傍画素の画素値を選択画素値として出力し、差分値が前記閾値より小さい場合、この差分値の演算に用いた注目画素の画素値を選択画素値として出力する。画像処理装置の乗算加算手段は、画素群内の各画素の位置ごとに係数が記憶された係数メモリを参照し、画素群内の注目画素の画素値およびこの画素群内の各近傍画素に基づく各選択画素値のそれぞれに対して、この注目画素および各近傍画素の画素群内の位置にそれぞれ対応する係数メモリ内の係数を乗算し、画素群単位の乗算結果を加算して出力する。The subtracting means of the image processing device accepts each pixel value of a pixel group including the target pixel in the image and a plurality of neighboring pixels located in the vicinity thereof, and calculates the pixel of the target pixel from the pixel value of each neighboring pixel in the pixel group Subtract the value, make the subtraction result an absolute value, and output it as a difference value. The comparison unit of the image processing apparatus compares the output difference value with the threshold value stored in the threshold value memory. The selection unit of the image processing apparatus is used to calculate the difference value when the pixel values of the target pixel and the neighboring pixels are input in units of pixel groups and the difference value is equal to or greater than the threshold value based on the comparison result by the comparison unit. If the difference value is smaller than the threshold value, the pixel value of the target pixel used for the calculation of the difference value is output as the selected pixel value. The multiplication / addition means of the image processing apparatus refers to a coefficient memory in which a coefficient is stored for each pixel position in the pixel group, and is based on the pixel value of the target pixel in the pixel group and each neighboring pixel in the pixel group. Each selected pixel value is multiplied by a coefficient in a coefficient memory corresponding to the position of the pixel of interest and each neighboring pixel in the pixel group, and the multiplication result in units of pixel groups is added and output.

上記の画像処理装置によれば、入力された画像において輪郭成分がより正確に強調されるようになる。According to the image processing apparatus, the contour component is more accurately emphasized in the input image.

また、上記の画像処理方法によれば、入力された画像において輪郭成分がより正確に強調されるようになる。Further, according to the above image processing method, the contour component is more accurately emphasized in the input image.

以下、本発明の実施の形態を図面を参照して説明する。
まず、本発明の概念について説明する。図1は、本発明の概念図である。
図に示すように、画像処理装置10は、端子11、12、減算回路13、閾値メモリ14、比較回路15、選択回路16、係数メモリ17、乗算加算回路18、及び、端子19から構成される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
First, the concept of the present invention will be described. FIG. 1 is a conceptual diagram of the present invention.
As shown in the figure, the image processing apparatus 10 includes terminals 11 and 12, a subtraction circuit 13, a threshold memory 14, a comparison circuit 15, a selection circuit 16, a coefficient memory 17, a multiplication and addition circuit 18, and a terminal 19. .

ここで、画像処理装置10は、横軸方向、及び、縦軸方向に複数の画素が配列される処理対象となる画像データについて、その画像データ内の1画素を注目画素とし、その近傍に存在する画素を近傍画素とする画像単位データを受け付ける。そして、画像処理装置10は、注目画素が有する注目画素値、及び、近傍画素が有する近傍画素値を使用して所定の処理を実行する。この所定の処理が実行される画像データ内の画像単位データは、任意に設定されるが、以下、画像データ内の画像単位データを3×3の9画素として説明する。この9画素内の中心の1画素を注目画素とし、9画素内の注目画素以外の8画素を近傍画素とする。また、1画素値は8ビットで表現され、画素値が0に近くなると黒色に近くなり、画素値が255に近くなると白色に近くなる。この画像データにおいて、左上の画素から右下の画素へ向かって全ての画素を順番に注目画素とし、注目画素値から輪郭成分が抽出された出力注目画素値を出力する。こうすることで、輪郭成分が抽出され、新しい画像データが出力される。   Here, for the image data to be processed in which a plurality of pixels are arranged in the horizontal axis direction and the vertical axis direction, the image processing apparatus 10 uses one pixel in the image data as a target pixel and exists in the vicinity thereof. Image unit data having a pixel to be processed as a neighboring pixel is received. Then, the image processing apparatus 10 performs a predetermined process using the target pixel value of the target pixel and the neighboring pixel value of the neighboring pixel. The image unit data in the image data on which the predetermined processing is executed is arbitrarily set. Hereinafter, the image unit data in the image data will be described as 3 × 3 9 pixels. One pixel at the center of the nine pixels is set as a target pixel, and eight pixels other than the target pixel in the nine pixels are set as neighboring pixels. One pixel value is expressed by 8 bits. When the pixel value is close to 0, it is close to black, and when the pixel value is close to 255, it is close to white. In this image data, all pixels are set as target pixels in order from the upper left pixel to the lower right pixel, and an output target pixel value in which a contour component is extracted from the target pixel value is output. By doing so, the contour component is extracted and new image data is output.

まず、閾値メモリ14は、近傍画素値と注目画素値との差分値の大小を画する閾値を記憶する。また、係数メモリ17は、近傍画素値、及び、注目画素値に対してそれぞれ乗ずる係数を記憶する。例えば、ラプラシアンフィルタが係数メモリ17に記憶された場合、1つの注目画素値に対する係数は−8であり、8つの近傍画素値に対する係数は+1である。   First, the threshold value memory 14 stores a threshold value that defines the magnitude of the difference value between the neighboring pixel value and the target pixel value. The coefficient memory 17 stores coefficients that are multiplied by the neighboring pixel value and the target pixel value, respectively. For example, when the Laplacian filter is stored in the coefficient memory 17, the coefficient for one target pixel value is -8, and the coefficient for eight neighboring pixel values is +1.

その後、減算回路13は、画像データ内の1つの注目画素、及び、8つの近傍画素を含む画像単位データを、端子11、12を介して受け付ける。そして、減算回路13は、8つの近傍画素値について、近傍画素値から注目画素値を減算し、減算結果を絶対値にし、8つの差分値として出力する。   Thereafter, the subtraction circuit 13 receives image unit data including one target pixel and eight neighboring pixels in the image data via the terminals 11 and 12. Then, the subtraction circuit 13 subtracts the target pixel value from the neighboring pixel values for the eight neighboring pixel values, sets the subtraction result to an absolute value, and outputs the result as eight difference values.

その後、比較回路15は、8つの差分値について、差分値と閾値とを比較する。ここで、例えば、差分値が31以下の場合、その近傍画素は本来不要な成分とすると、差分値が32以上の場合、その近傍画素は輪郭成分となる。よって、差分値が32以上の近傍画素を抽出するために、閾値は32に設定される。そして、注目画素値と近傍画素値とが入力された選択回路16は、8つの近傍画素値についての比較回路15による比較結果に基づき、差分値が閾値以上である場合、近傍画素値を選択近傍画素値として出力する。また、選択回路16は、差分値が閾値より小さい場合、近傍画素値を注目画素値に置き換えて選択近傍画素値として出力する。ここで、ある近傍画素値が注目画素値に置き換えられた場合、その近傍画素値は注目画素値へのフィルタ処理対象とならないので、その近傍画素はフィルタ処理にかからないことになる。   Thereafter, the comparison circuit 15 compares the difference value with the threshold value for the eight difference values. Here, for example, when the difference value is 31 or less, if the neighboring pixel is an originally unnecessary component, if the difference value is 32 or more, the neighboring pixel becomes a contour component. Therefore, the threshold value is set to 32 in order to extract neighboring pixels having a difference value of 32 or more. Then, the selection circuit 16 to which the target pixel value and the neighboring pixel value are input, based on the comparison result by the comparison circuit 15 for the eight neighboring pixel values, selects the neighboring pixel value when the difference value is equal to or larger than the threshold. Output as pixel value. When the difference value is smaller than the threshold value, the selection circuit 16 replaces the neighboring pixel value with the target pixel value and outputs the selected neighboring pixel value. Here, when a certain neighboring pixel value is replaced with the target pixel value, the neighboring pixel value is not subjected to the filtering process to the target pixel value, so that the neighboring pixel is not subjected to the filtering process.

その後、乗算加算回路18は、選択近傍画素値、及び、注目画素値から構成される画素値群と、画像単位データ内の各画素の位置に応じた9つの係数とを乗算する。そして、乗算加算回路18は、全ての乗算結果を加算し、出力注目画素値として端子19へ出力する。   Thereafter, the multiplication / addition circuit 18 multiplies the pixel value group composed of the selected neighboring pixel value and the target pixel value by nine coefficients corresponding to the position of each pixel in the image unit data. Then, the multiplication / addition circuit 18 adds all the multiplication results and outputs the result to the terminal 19 as an output target pixel value.

次に、図1の画像処理装置10の動作の例について説明する。
まず、閾値メモリ14は、閾値”32”を記憶しているとする。また、係数メモリ17は、ラプラシアンフィルタの場合の係数を記憶しているとする。
Next, an example of the operation of the image processing apparatus 10 in FIG. 1 will be described.
First, it is assumed that the threshold memory 14 stores the threshold “32”. Further, it is assumed that the coefficient memory 17 stores coefficients in the case of a Laplacian filter.

その後、減算回路13により、画像単位データが受け付けられる。そして、減算回路13により、8つの近傍画素値について、近傍画素値から注目画素値が減算され、減算結果が絶対値にされ、8つの差分値として出力される。   Thereafter, the image unit data is received by the subtraction circuit 13. Then, the subtracting circuit 13 subtracts the pixel value of interest from the neighboring pixel values for the eight neighboring pixel values, makes the subtraction result an absolute value, and outputs it as eight difference values.

その後、比較回路15により、8つの差分値について、差分値と閾値”32”とが比較される。そして、選択回路16により、8つの近傍画素値についての比較結果に基づき、差分値が閾値”32”以上の場合、近傍画素値が選択近傍画素値として出力される。また、選択回路16により、差分値が閾値”32”より小さい場合、近傍画素値が注目画素値に置き換えられて選択近傍画素値として出力される。   Thereafter, the comparison circuit 15 compares the difference value with the threshold “32” for the eight difference values. Then, when the difference value is equal to or greater than the threshold value “32”, the selection circuit 16 outputs the neighboring pixel value as the selected neighboring pixel value based on the comparison result of the eight neighboring pixel values. When the difference value is smaller than the threshold value “32” by the selection circuit 16, the neighboring pixel value is replaced with the target pixel value and output as the selected neighboring pixel value.

その後、乗算加算回路18により、選択近傍画素値、及び、注目画素値から構成される画素値群と、ラプラシアンフィルタとが乗算される。そして、乗算加算回路18により、全ての乗算結果が加算され、出力注目画素値として出力される。   Thereafter, the multiplication and addition circuit 18 multiplies the pixel value group constituted by the selected neighboring pixel value and the target pixel value by the Laplacian filter. Then, all multiplication results are added by the multiplication / addition circuit 18 and output as an output target pixel value.

このようにすると、差分値が閾値以上の輪郭成分の近傍画素値がフィルタ処理され、差分値が閾値より小さい本来不要な成分の近傍画素値が注目画素値に置き換えられてフィルタ処理されるので、画像データの輪郭成分のみを抽出できるようになる。   In this way, the neighboring pixel value of the contour component whose difference value is equal to or greater than the threshold value is filtered, and the neighboring pixel value of the originally unnecessary component whose difference value is smaller than the threshold value is replaced with the target pixel value. Only the contour component of the image data can be extracted.

なお、画像データ内の画像単位データを5×5の25画素、及び、3×5の15画素から構成してもよい。この場合、25画素内の中心の1画素が注目画素となり、25画素内の注目画素以外の24画素が近傍画素となる。また、15画素内の中心の1画素が注目画素となり、15画素内の注目画素以外の14画素が近傍画素となる。   The image unit data in the image data may be composed of 5 × 5 25 pixels and 3 × 5 15 pixels. In this case, one pixel at the center of the 25 pixels is the target pixel, and 24 pixels other than the target pixel in the 25 pixels are the neighboring pixels. In addition, one central pixel in the 15 pixels is a target pixel, and 14 pixels other than the target pixel in the 15 pixels are neighboring pixels.

また、選択近傍画素値に対して係数を乗じているが、差分値に対して乗じることもできる。
次に、本発明の実施の形態の具体的な内容について説明する。ここで、全体構成を説明し、図3で詳細に説明する。図2は、画像処理装置の全体構成の回路図である。
Moreover, although the coefficient is multiplied to the selected neighboring pixel value, it can be multiplied to the difference value.
Next, specific contents of the embodiment of the present invention will be described. Here, the overall configuration will be described and described in detail with reference to FIG. FIG. 2 is a circuit diagram of the overall configuration of the image processing apparatus.

図に示すように、画像処理装置30は、端子31、端子32−1〜32−8、演算回路33−1〜33−8、乗算回路36、加算回路37、オフセット値メモリ38、演算回路39、及び、端子40から構成される。   As shown in the figure, the image processing apparatus 30 includes a terminal 31, terminals 32-1 to 32-8, arithmetic circuits 33-1 to 33-8, a multiplier circuit 36, an adder circuit 37, an offset value memory 38, and an arithmetic circuit 39. And terminal 40.

まず、画像処理装置30は、画像データ内の画像単位データ内の1つの注目画素値を端子31を介して受け付け、8つの近傍画素値を端子32−1〜32−8を介して受け付ける。そして、乗算回路36は、1つの注目画素値に対してフィルタ処理等の所定の処理を実行し、加算回路37に出力する。また、演算回路33−1〜33−8は、8つの近傍画素値に対してフィルタ処理等の所定の処理を実行し、加算回路37に出力する。   First, the image processing apparatus 30 receives one target pixel value in the image unit data in the image data through the terminal 31, and receives eight neighboring pixel values through the terminals 32-1 to 32-8. Then, the multiplication circuit 36 performs a predetermined process such as a filter process on one pixel value of interest and outputs the result to the adder circuit 37. In addition, the arithmetic circuits 33-1 to 33-8 execute predetermined processing such as filter processing on the eight neighboring pixel values and output the result to the adding circuit 37.

その後、加算回路37は、演算回路33−1〜33−8、及び、乗算回路36による全ての処理結果を加算する。そして、演算回路39は、加算回路37による加算結果に対してオフセット値メモリ38が記憶するオフセット値を演算し、出力注目画素値として端子40へ出力する。   Thereafter, the adding circuit 37 adds all the processing results obtained by the arithmetic circuits 33-1 to 33-8 and the multiplying circuit 36. Then, the arithmetic circuit 39 calculates the offset value stored in the offset value memory 38 with respect to the addition result by the adder circuit 37 and outputs the result to the terminal 40 as the output target pixel value.

次に、図2の演算回路33−1〜33−8を具体的にし、画像処理装置30について詳細に説明する。図3は、画像処理装置の詳細な回路図である。
図に示すように、画像処理装置30は、端子31、32、減算回路33a、閾値メモリ34、比較回路33b、選択回路33c、係数メモリ35、乗算回路33d、36、加算回路37、オフセット値メモリ38、演算回路39、及び、端子40から構成される。なお、減算回路33a、比較回路33b、選択回路33c、及び、乗算回路33dを1つの演算回路33としてもよい。
Next, the arithmetic circuits 33-1 to 33-8 in FIG. 2 will be specifically described, and the image processing apparatus 30 will be described in detail. FIG. 3 is a detailed circuit diagram of the image processing apparatus.
As shown in the figure, the image processing apparatus 30 includes terminals 31 and 32, a subtraction circuit 33a, a threshold memory 34, a comparison circuit 33b, a selection circuit 33c, a coefficient memory 35, multiplication circuits 33d and 36, an addition circuit 37, and an offset value memory. 38, an arithmetic circuit 39, and a terminal 40. Note that the subtraction circuit 33a, the comparison circuit 33b, the selection circuit 33c, and the multiplication circuit 33d may be one arithmetic circuit 33.

ここで、画像処理装置30は、横軸方向、及び、縦軸方向に複数の画素が配列される処理対象となる画像データについて、その画像データ内の1画素を注目画素とし、その近傍に存在する画素を近傍画素として受け付ける。そして、画像処理装置30は、注目画素が有する注目画素値、及び、近傍画素が有する近傍画素値を使用して所定の処理を実行する。この所定の処理が実行される画像データ内の画像単位データは、任意に設定されるが、以下、画像データ内の画像単位データを3×3の9画素として説明する。この9画素内の中心の1画素を注目画素とし、9画素内の注目画素以外の8画素を近傍画素とする。また、1画素値は8ビットで表現され、画素値が0に近くなると黒色に近くなり、画素値が255に近くなると白色に近くなる。この画像データにおいて、左上の画素から右下の画素へ向かって全ての画素を順番に注目画素とし、注目画素値から輪郭成分が抽出された出力注目画素値を出力する。こうすることで、輪郭成分が抽出され、新しい画像データが出力される。   Here, the image processing apparatus 30 has one pixel in the image data as a target pixel in the image data to be processed in which a plurality of pixels are arranged in the horizontal axis direction and the vertical axis direction, and exists in the vicinity thereof. To be received as neighboring pixels. Then, the image processing device 30 executes a predetermined process using the target pixel value of the target pixel and the neighboring pixel value of the neighboring pixel. The image unit data in the image data on which the predetermined processing is executed is arbitrarily set. Hereinafter, the image unit data in the image data will be described as 3 × 3 9 pixels. One pixel at the center of the nine pixels is set as a target pixel, and eight pixels other than the target pixel in the nine pixels are set as neighboring pixels. One pixel value is expressed by 8 bits. When the pixel value is close to 0, it is close to black, and when the pixel value is close to 255, it is close to white. In this image data, all pixels are set as target pixels in order from the upper left pixel to the lower right pixel, and an output target pixel value in which a contour component is extracted from the target pixel value is output. By doing so, the contour component is extracted and new image data is output.

まず、閾値メモリ34は、近傍画素値と注目画素値との差分値の大小を画する閾値を記憶する。また、係数メモリ35は、近傍画素値、及び、注目画素値に対してそれぞれ乗ずる係数を記憶する。例えば、ラプラシアンフィルタが係数メモリ35に記憶された場合、1つの注目画素値に対する係数は−8であり、8つの近傍画素値に対する係数は+1である。また、オフセット値メモリ38は、加算回路37による加算結果をさらに調整するオフセット値を記憶する。   First, the threshold value memory 34 stores a threshold value that defines the magnitude of the difference value between the neighboring pixel value and the target pixel value. The coefficient memory 35 stores coefficients that are multiplied by the neighboring pixel value and the target pixel value, respectively. For example, when the Laplacian filter is stored in the coefficient memory 35, the coefficient for one target pixel value is -8, and the coefficient for eight neighboring pixel values is +1. Further, the offset value memory 38 stores an offset value for further adjusting the addition result by the addition circuit 37.

その後、減算回路33aは、画像データ内の1つの注目画素、及び、8つの近傍画素を含む画像単位データを、端子31、32を介して受け付ける。そして、減算回路33aは、8つの近傍画素値について、近傍画素値から注目画素値を減算し、減算結果を絶対値にし、8つの差分値として出力する。   Thereafter, the subtraction circuit 33a receives image unit data including one target pixel and eight neighboring pixels in the image data via the terminals 31 and 32. Then, the subtraction circuit 33a subtracts the target pixel value from the neighboring pixel values for the eight neighboring pixel values, sets the subtraction result to an absolute value, and outputs the result as eight difference values.

その後、比較回路33bは、8つの差分値について、差分値と閾値とを比較する。ここで、例えば、差分値が31以下の場合、その近傍画素は本来不要な成分とすると、差分値が32以上の場合、その近傍画素は輪郭成分となる。よって、差分値が32以上の近傍画素を抽出するために、閾値は32に設定される。そして、注目画素値と近傍画素値とが入力された選択回路33cは、8つの近傍画素値についての比較回路33bによる比較結果に基づき、差分値が閾値以上である場合、近傍画素値を選択近傍画素値として出力する。また、選択回路33cは、差分値が閾値より小さい場合、近傍画素値を注目画素値に置き換えて選択近傍画素値として出力する。ここで、ある近傍画素値が注目画素値に置き換えられた場合、その近傍画素値は注目画素値への乗算対象とならないので、その近傍画素はフィルタ処理にかからないことになる。   Thereafter, the comparison circuit 33b compares the difference value with the threshold value for the eight difference values. Here, for example, when the difference value is 31 or less, if the neighboring pixel is an originally unnecessary component, if the difference value is 32 or more, the neighboring pixel becomes a contour component. Therefore, the threshold value is set to 32 in order to extract neighboring pixels having a difference value of 32 or more. The selection circuit 33c, to which the target pixel value and the neighboring pixel value are input, selects the neighboring pixel value based on the comparison result of the eight neighboring pixel values by the comparison circuit 33b when the difference value is equal to or larger than the threshold value. Output as pixel value. When the difference value is smaller than the threshold value, the selection circuit 33c replaces the neighboring pixel value with the target pixel value and outputs the selected neighboring pixel value. Here, when a certain neighboring pixel value is replaced with the target pixel value, the neighboring pixel value is not subjected to the multiplication with the target pixel value, and thus the neighboring pixel is not subjected to the filtering process.

その後、乗算回路33dは、選択近傍画素値から構成される画素値群と、画像単位データ内の各画素の位置に応じた8つの係数とを乗算する。また、乗算回路36は、注目画素値と、画像単位データ内の各画素の位置に応じた1つの係数とを乗算する。そして、加算回路37は、乗算回路33d、36による全ての乗算結果を加算する。   Thereafter, the multiplication circuit 33d multiplies the pixel value group constituted by the selected neighboring pixel values by eight coefficients corresponding to the positions of the respective pixels in the image unit data. Further, the multiplication circuit 36 multiplies the target pixel value by one coefficient corresponding to the position of each pixel in the image unit data. Then, the adder circuit 37 adds all the multiplication results obtained by the multiplier circuits 33d and 36.

その後、演算回路39は、加算回路37による加算結果に対してオフセット値を演算し、出力注目画素値として端子40へ出力する。例えば、画像データの輪郭成分は、差分値が大きく、画素値が強調して抽出されている。よって、輪郭成分の画素は白色に近くなり、黒色の背景成分に対して白色の輪郭成分となってしまう。この対策として、演算回路39は、画素について、白色と黒色とを反転させたり、濃度を変更したりする。   Thereafter, the arithmetic circuit 39 calculates an offset value for the addition result by the adder circuit 37 and outputs it to the terminal 40 as an output target pixel value. For example, the contour component of the image data has a large difference value and is extracted with the pixel value emphasized. Therefore, the pixels of the contour component are close to white and become a white contour component with respect to the black background component. As a countermeasure against this, the arithmetic circuit 39 inverts white and black or changes the density of the pixel.

次に、図3の画像処理装置30の動作の例について説明する。
まず、閾値メモリ34は、閾値”32”を記憶しているとする。また、係数メモリ35は、ラプラシアンフィルタの場合の係数を記憶しているとする。オフセット値メモリ38は、加算回路37による加算結果としての画素について、白色と黒色とを反転させるオフセット値を記憶しているとする。
Next, an example of the operation of the image processing apparatus 30 in FIG. 3 will be described.
First, it is assumed that the threshold memory 34 stores a threshold “32”. Further, it is assumed that the coefficient memory 35 stores coefficients in the case of a Laplacian filter. It is assumed that the offset value memory 38 stores an offset value that inverts white and black for the pixel as the addition result by the addition circuit 37.

その後、減算回路33aにより、画像単位データが受け付けられる。そして、減算回路33aにより、8つの近傍画素値について、近傍画素値から注目画素値が減算され、減算結果が絶対値にされ、8つの差分値として出力される。   Thereafter, the image unit data is received by the subtraction circuit 33a. Then, the subtracting circuit 33a subtracts the pixel value of interest from the neighboring pixel values for the eight neighboring pixel values, makes the subtraction result an absolute value, and outputs it as eight difference values.

その後、比較回路33bにより、8つの差分値について、差分値と閾値”32”とが比較される。そして、選択回路33cにより、8つの近傍画素値についての比較結果に基づき、差分値が閾値”32”以上の場合、近傍画素値が選択近傍画素値として出力される。また、選択回路33cにより、差分値が閾値”32”より小さい場合、近傍画素値が注目画素値に置き換えられて選択近傍画素値として出力される。   Thereafter, the comparison circuit 33b compares the difference value with the threshold “32” for the eight difference values. Then, when the difference value is greater than or equal to the threshold value “32”, the selection circuit 33c outputs the neighboring pixel value as the selected neighboring pixel value based on the comparison result of the eight neighboring pixel values. When the difference value is smaller than the threshold value “32” by the selection circuit 33c, the neighboring pixel value is replaced with the target pixel value and output as the selected neighboring pixel value.

その後、乗算回路33dにより、選択近傍画素値から構成される画素値群とラプラシアンフィルタとが乗算される。また、乗算回路36により、注目画素値とラプラシアンフィルタとが乗算される。そして、加算回路37により、乗算回路33d、36による全ての乗算結果が加算される。   Thereafter, the multiplication circuit 33d multiplies the pixel value group composed of the selected neighboring pixel values by the Laplacian filter. In addition, the multiplication circuit 36 multiplies the target pixel value and the Laplacian filter. Then, all the multiplication results by the multiplication circuits 33d and 36 are added by the addition circuit 37.

その後、演算回路39により、白色と黒色とを反転させるように演算され、出力注目画素値として出力される。
以下、閾値メモリ34、係数メモリ35、及び、オフセット値メモリ38について説明する。
After that, the arithmetic circuit 39 calculates so as to invert white and black, and outputs the result as an output target pixel value.
Hereinafter, the threshold memory 34, the coefficient memory 35, and the offset value memory 38 will be described.

まず、閾値メモリ34について説明する。
閾値メモリ34は、近傍画素値と注目画素値との差分値の大小を画する閾値を記憶する。換言すると、ある一定の差分値以上ならば輪郭成分であるとし、その差分値を閾値として記憶する。例えば、閾値メモリ34は、アニメーション用の画像データに対する閾値、映画用の画像データに対する閾値、及び、写真から生成した画像データに対する閾値等を記憶する。ここで、画像処理される画像データに対し、様々な閾値を設定できるので、様々な画像データに対応できる。また、画像処理装置30を使用するユーザが、閾値を変更できるので、経験に基づいて画像処理結果を制御できる。
First, the threshold memory 34 will be described.
The threshold value memory 34 stores a threshold value that defines the magnitude of the difference value between the neighboring pixel value and the target pixel value. In other words, if it is equal to or greater than a certain difference value, it is regarded as a contour component, and the difference value is stored as a threshold value. For example, the threshold memory 34 stores a threshold for animation image data, a threshold for movie image data, a threshold for image data generated from a photograph, and the like. Here, since various threshold values can be set for the image data to be image-processed, various image data can be handled. Moreover, since the user who uses the image processing apparatus 30 can change the threshold value, the image processing result can be controlled based on experience.

次に、係数メモリ35について説明する。図4は、係数メモリの例を示す図である。
係数メモリ35は、近傍画素値、及び、注目画素値に対してそれぞれ乗ずる係数を記憶する。図に示すように、係数メモリ35は、フィルタ名、及び、9つの係数から構成される。フィルタ名は、画像処理に使用されるフィルタの名称である。9つの係数は、フィルタ名に関係するフィルタに固有の係数群である。例えば、Aフィルタは輪郭成分を抽出でき、Bフィルタは横軸方向の輪郭成分を抽出でき、Cフィルタは縦軸方向の輪郭成分を抽出できる。ここで、画像処理される画像データを想定し、様々なフィルタを用意できるので、様々な画像データに対応できる。また、画像処理装置30を使用するユーザが、フィルタの各係数を変更できるので、経験に基づいて画像処理結果を制御できる。
Next, the coefficient memory 35 will be described. FIG. 4 is a diagram illustrating an example of the coefficient memory.
The coefficient memory 35 stores coefficients for multiplying the neighboring pixel value and the target pixel value, respectively. As shown in the figure, the coefficient memory 35 includes a filter name and nine coefficients. The filter name is a name of a filter used for image processing. The nine coefficients are a group of coefficients specific to the filter related to the filter name. For example, the A filter can extract a contour component, the B filter can extract a contour component in the horizontal axis direction, and the C filter can extract a contour component in the vertical axis direction. Here, since various image filters can be prepared assuming image data to be image-processed, various image data can be handled. Moreover, since the user who uses the image processing apparatus 30 can change each coefficient of the filter, the image processing result can be controlled based on experience.

次に、オフセット値メモリ38について説明する。
オフセット値メモリ38は、加算回路37による加算結果をさらに調整するオフセット値を記憶する。ここで、画像処理される画像データを想定し、様々なオフセット値を用意できるので、様々な画像データに対応できる。また、画像処理装置30を使用するユーザが、オフセット値を変更できるので、経験に基づいて画像処理結果を制御できる。
Next, the offset value memory 38 will be described.
The offset value memory 38 stores an offset value for further adjusting the addition result by the addition circuit 37. Here, assuming image data to be image-processed, various offset values can be prepared, so that various image data can be handled. Moreover, since the user who uses the image processing apparatus 30 can change the offset value, the image processing result can be controlled based on experience.

次に、画像処理装置30によった画像単位データの流れについて説明する。図5は、画像単位データの流れを示すブロック図である。なお、説明の簡略のため、演算回路39を省略して説明する。   Next, the flow of image unit data by the image processing apparatus 30 will be described. FIG. 5 is a block diagram showing the flow of image unit data. For simplification of description, the arithmetic circuit 39 is omitted.

まず、減算回路33aは、画像単位データ51を受け付ける。そして、減算回路33aは、8つの近傍画素値について、近傍画素値から注目画素値を減算し、減算結果を絶対値にし、8つの差分値52として出力する。   First, the subtraction circuit 33a receives the image unit data 51. Then, the subtraction circuit 33a subtracts the target pixel value from the neighboring pixel values for the eight neighboring pixel values, sets the subtraction result to an absolute value, and outputs the result as eight difference values 52.

その後、比較回路33bは、8つの差分値52について、差分値と閾値53とを比較する。そして、選択回路33cは、8つの近傍画素値についての比較回路33bによる比較結果に基づき、差分値が閾値53以上の場合、近傍画素値を選択近傍画素値として出力する。また、選択回路33cは、差分値が閾値53より小さい場合、近傍画素値を注目画素値に置き換えて選択近傍画素値として出力する。そして、一時的に、新しい画像単位データ54が出力される。   After that, the comparison circuit 33 b compares the difference value with the threshold value 53 for the eight difference values 52. Then, based on the comparison result by the comparison circuit 33b for the eight neighboring pixel values, the selection circuit 33c outputs the neighboring pixel value as the selected neighboring pixel value when the difference value is greater than or equal to the threshold value 53. When the difference value is smaller than the threshold value 53, the selection circuit 33c replaces the neighboring pixel value with the target pixel value and outputs the selected neighboring pixel value. Then, new image unit data 54 is temporarily output.

その後、乗算回路33dは、選択近傍画素値、及び、注目画素値から構成される画素値群と、画像単位データ54内の各画素の位置に応じた9つの係数55とを乗算する。そして、加算回路37は、全ての乗算結果を加算し、出力注目画素値56として出力する。   Thereafter, the multiplying circuit 33d multiplies the pixel value group constituted by the selected neighboring pixel value and the target pixel value by nine coefficients 55 corresponding to the positions of the respective pixels in the image unit data 54. Then, the addition circuit 37 adds all the multiplication results and outputs the result as an output target pixel value 56.

なお、出力注目画素値56は、例えば、次のような式で定義される。   The output target pixel value 56 is defined by the following equation, for example.

Figure 0004629431
Figure 0004629431

F(X)=0 :−ε≦X≦ε ・・・(2)
F(X)=X :X≦−ε X≧ε ・・・(3)
ここで、式(1)において、p`(0,0)は出力注目画素値であり、p(0,0)は注目画素値であり、p(a,b)は近傍画素値である。また、k(a,b)は、a、及び、bに対する係数である。このa、及び、bは、注目画素からの近傍画素の位置を示し、整数であって−1、0、+1の値をとる。なお、式(1)は、1つの注目画素についてのみ説明している。そして、式(2)と式(3)とにおいて、Xは差分値であり、εは閾値である。また、F(X)は、差分値が閾値以上の場合Xとなり、差分値が閾値より小さい場合0となる。
F (X) = 0: −ε ≦ X ≦ ε (2)
F (X) = X: X ≦ −ε X ≧ ε (3)
Here, in Expression (1), p` (0,0) is an output target pixel value, p (0,0) is a target pixel value, and p (a, b) is a neighboring pixel value. K (a, b) is a coefficient for a and b. These a and b indicate the positions of neighboring pixels from the target pixel, and are integers having values of −1, 0, and +1. Note that equation (1) describes only one pixel of interest. In Expressions (2) and (3), X is a difference value, and ε is a threshold value. Further, F (X) becomes X when the difference value is equal to or larger than the threshold value, and becomes 0 when the difference value is smaller than the threshold value.

次に、画像処理装置30において、注目画素値が出力注目画素値へ加工される処理の概念について、図6を参照して説明する。なお、図6のフローチャートは、画像処理装置30が画像データを受け付けた場合に実行される。図6のフローチャートが実行されると、以下のステップが実行される。図6は、画像処理装置の処理を示すフローチャートである。   Next, the concept of processing in which the target pixel value is processed into the output target pixel value in the image processing device 30 will be described with reference to FIG. Note that the flowchart in FIG. 6 is executed when the image processing apparatus 30 receives image data. When the flowchart of FIG. 6 is executed, the following steps are executed. FIG. 6 is a flowchart showing processing of the image processing apparatus.

ここで、画像データ内の画像単位データが3×3の9画素の場合、T=3となってS=3となる。そして、a、及び、bは、注目画素からの近傍画素の位置を示し、整数であって−1、0、+1の値をとる。フローチャートが実行されると、近傍画素(-1,+1)から近傍画素(+1,+1)へ処理が移り、そして、近傍画素(-1,0)から近傍画素(+1,0)へ処理が移り、そして、近傍画素(-1,-1)から近傍画素(+1,-1)へ処理が移る。また、注目画素(0,0)は注目画素値p(0,0)を有し、近傍画素(a,b)は近傍画素値p(a,b)を有する。   Here, when the image unit data in the image data is 3 × 3 9 pixels, T = 3 and S = 3. A and b indicate positions of neighboring pixels from the target pixel, and are integers having values of −1, 0, and +1. When the flowchart is executed, the process shifts from the neighboring pixel (-1, + 1) to the neighboring pixel (+ 1, + 1), and from the neighboring pixel (-1,0) to the neighboring pixel (+1,0). Then, the process moves to the neighboring pixel (+1, -1) from the neighboring pixel (-1, -1). Further, the target pixel (0,0) has the target pixel value p (0,0), and the neighboring pixel (a, b) has the neighboring pixel value p (a, b).

[ステップS11]加算回路37は、出力注目画素値p`(0,0)をリセットして0にする。
[ステップS12]比較回路33bは、a=−1、及び、b=+1と初期設定する。換言すると、比較回路33bは、近傍画素(a,b)を最も左側で最も上側に設定する。
[Step S11] The adder circuit 37 resets the output target pixel value p` (0, 0) to zero.
[Step S12] The comparison circuit 33b initially sets a = −1 and b = + 1. In other words, the comparison circuit 33b sets the neighboring pixel (a, b) to the leftmost and uppermost side.

[ステップS13]比較回路33bは、差分値|p(a,b)-p(0,0)|と閾値εとを比較する。差分値|p(a,b)-p(0,0)|が閾値ε以上の場合、処理はステップS14へ進み、小さい場合、処理はステップS15へ進む。   [Step S13] The comparison circuit 33b compares the difference value | p (a, b) -p (0,0) | with the threshold ε. If the difference value | p (a, b) −p (0,0) | is greater than or equal to the threshold ε, the process proceeds to step S14, and if smaller, the process proceeds to step S15.

[ステップS14]差分値|p(a,b)-p(0,0)|が閾値ε以上の場合、乗算回路33d、36は、近傍画素値p(a,b)と、画像単位データ内のその近傍画素(a,b)の位置に応じた係数k(a,b)とを乗算する。   [Step S14] When the difference value | p (a, b) −p (0,0) | is equal to or larger than the threshold ε, the multiplication circuits 33d and 36 determine that the neighboring pixel value p (a, b) and the image unit data Is multiplied by a coefficient k (a, b) corresponding to the position of its neighboring pixel (a, b).

[ステップS15]差分値|p(a,b)-p(0,0)|が閾値εより小さい場合、乗算回路33d、36は、近傍画素値p(a,b)に置き換えられた注目画素値p(0,0)と、画像単位データ内のその近傍画素(a,b)の位置に応じた係数k(a,b)とを乗算する。   [Step S15] When the difference value | p (a, b) −p (0,0) | is smaller than the threshold value ε, the multiplication circuits 33d and 36 recognize the pixel of interest replaced with the neighboring pixel value p (a, b). The value p (0,0) is multiplied by a coefficient k (a, b) corresponding to the position of the neighboring pixel (a, b) in the image unit data.

[ステップS16]加算回路37は、乗算回路33d、36による全ての乗算結果を加算する。
[ステップS17]比較回路33bは、aが+1か否かを判断する。換言すると、比較回路33bは、近傍画素(a,b)が最も右側か否かを判断する。+1である場合、処理はステップS19へ進み、+1でない場合、処理はステップS18へ進む。
[Step S16] The adding circuit 37 adds all the multiplication results obtained by the multiplying circuits 33d and 36.
[Step S17] The comparison circuit 33b determines whether a is +1. In other words, the comparison circuit 33b determines whether or not the neighboring pixel (a, b) is the rightmost side. If it is +1, the process proceeds to step S19, and if it is not +1, the process proceeds to step S18.

[ステップS18]aが+1でない場合、比較回路33bは、近傍画素(a,b)について、左側から右側へ横軸方向に1つ移動する。
[ステップS19]aが+1である場合、比較回路33bは、a=−1と再設定する。換言すると、比較回路33bは、近傍画素(a,b)を最も左側に再設定する。
[Step S18] If a is not +1, the comparison circuit 33b moves one pixel in the horizontal axis direction from the left side to the right side for the neighboring pixel (a, b).
[Step S19] When a is +1, the comparison circuit 33b resets a = -1. In other words, the comparison circuit 33b resets the neighboring pixel (a, b) to the leftmost side.

[ステップS20]比較回路33bは、bが−1か否かを判断する。換言すると、比較回路33bは、近傍画素(a,b)が最も下側か否かを判断する。−1である場合、処理はステップS22へ進み、−1でない場合、処理はステップS21へ進む。   [Step S20] The comparison circuit 33b determines whether b is -1. In other words, the comparison circuit 33b determines whether or not the neighboring pixel (a, b) is the lowermost side. If it is -1, the process proceeds to step S22, and if not -1, the process proceeds to step S21.

[ステップS21]bが−1でない場合、比較回路33bは、近傍画素(a,b)について、上側から下側へ縦軸方向に1つ移動する。
[ステップS22]bが−1である場合、演算回路39は、加算回路37による加算結果に対してオフセット値を演算する。
[Step S21] When b is not -1, the comparison circuit 33b moves one pixel in the vertical axis direction from the upper side to the lower side for the neighboring pixel (a, b).
[Step S <b> 22] When b is −1, the arithmetic circuit 39 calculates an offset value for the addition result by the adder circuit 37.

なお、図6のフローチャートは、1つの注目画素についてのみ説明している。
このようにすると、差分値が閾値以上の輪郭成分の近傍画素値がフィルタ処理され、差分値が閾値より小さい本来不要な成分の近傍画素値が注目画素値に置き換えられてフィルタ処理されるので、画像データの輪郭成分のみを抽出できるようになる。
Note that the flowchart of FIG. 6 describes only one target pixel.
In this way, the neighboring pixel value of the contour component whose difference value is greater than or equal to the threshold value is filtered, and the neighboring pixel value of the originally unnecessary component whose difference value is smaller than the threshold value is replaced with the target pixel value. Only the contour component of the image data can be extracted.

なお、画像データ内の画像単位データを5×5の25画素、及び、3×5の15画素から構成してもよい。この場合、25画素内の中心の1画素が注目画素となり、25画素内の注目画素以外の24画素が近傍画素となる。また、15画素内の中心の1画素が注目画素となり、15画素内の注目画素以外の14画素が近傍画素となる。   The image unit data in the image data may be composed of 5 × 5 25 pixels and 3 × 5 15 pixels. In this case, one pixel at the center of the 25 pixels is the target pixel, and 24 pixels other than the target pixel in the 25 pixels are the neighboring pixels. In addition, one central pixel in the 15 pixels is a target pixel, and 14 pixels other than the target pixel in the 15 pixels are neighboring pixels.

また、選択近傍画素値に対して係数を乗じているが、差分値に対して乗じることもできる。   Moreover, although the coefficient is multiplied to the selected neighboring pixel value, it can be multiplied to the difference value.

本発明の概念図である。It is a conceptual diagram of this invention. 画像処理装置の全体構成の回路図である。1 is a circuit diagram of an overall configuration of an image processing apparatus. 画像処理装置の詳細な回路図である。It is a detailed circuit diagram of an image processing apparatus. 係数メモリの例を示す図である。It is a figure which shows the example of a coefficient memory. 画像単位データの流れを示すブロック図である。It is a block diagram which shows the flow of image unit data. 画像処理装置の処理を示すフローチャートである。It is a flowchart which shows the process of an image processing apparatus.

符号の説明Explanation of symbols

10 画像処理装置
11、12、19 端子
13 減算回路
14 閾値メモリ
15 比較回路
16 選択回路
17 係数メモリ
18 乗算加算回路

DESCRIPTION OF SYMBOLS 10 Image processing apparatus 11, 12, 19 Terminal 13 Subtraction circuit 14 Threshold memory 15 Comparison circuit 16 Selection circuit 17 Coefficient memory 18 Multiplication addition circuit

Claims (5)

画像内の注目画素とその近傍に位置する複数の近傍画素とを含む画素群の各画素値を受け付け、前記画素群内の各近傍画素の画素値から注目画素の画素値を減算し、減算結果を絶対値にし、差分値として出力する減算回路と、
前記差分値と閾値メモリが記憶する閾値とを比較する比較回路と、
前記注目画素および前記近傍画素の各画素値が前記画素群単位で入力され、前記比較回路による比較結果に基づき、前記差分値が前記閾値以上である場合、当該差分値の演算に用いた前記近傍画素の画素値を選択画素値として出力し、前記差分値が前記閾値より小さい場合、当該差分値の演算に用いた前記注目画素の画素値を前記選択画素値として出力する選択回路と、
前記画素群内の各画素の位置ごとに係数が記憶された係数メモリを参照し、前記画素群内の前記注目画素の画素値および当該画素群内の前記各近傍画素に基づく前記各選択画素値のそれぞれに対して、当該注目画素および当該各近傍画素の前記画素群内の位置にそれぞれ対応する前記係数メモリ内の係数を乗算し、前記画素群単位の乗算結果を加算して出力する乗算加算回路と、
を有することを特徴とする画像処理装置。
Receiving each pixel value of a pixel group including the target pixel in the image and a plurality of neighboring pixels located in the vicinity thereof, subtracting the pixel value of the target pixel from the pixel value of each neighboring pixel in the pixel group, and a subtraction result A subtracting circuit that outputs an absolute value and a difference value;
A comparison circuit for comparing the difference value with a threshold value stored in a threshold memory;
When the pixel values of the pixel of interest and the neighboring pixels are input in units of the pixel group , and the difference value is equal to or greater than the threshold based on the comparison result by the comparison circuit, the neighborhood used for the calculation of the difference value and outputs the pixel value of the pixel as selection window pixel value if the difference value is smaller than the threshold value, a selection circuit for outputting a pixel value of the pixel of interest used in the calculation of the difference value as the selected pixel value,
Refer to a coefficient memory in which a coefficient is stored for each pixel position in the pixel group, and each selected pixel value based on the pixel value of the target pixel in the pixel group and the neighboring pixels in the pixel group Multiplication addition for multiplying each of the pixel of interest by the coefficient in the coefficient memory corresponding to the position of the pixel of interest and each of the neighboring pixels in the pixel group, and adding and outputting the multiplication result in units of the pixel group Circuit,
An image processing apparatus comprising:
前記各画素群には、横軸方向に3以上の奇数の画素が存在し、縦軸方向に3以上の奇数の画素が存在することを特徴とする請求項1記載の画像処理装置。 2. The image processing apparatus according to claim 1, wherein each of the pixel groups includes an odd number of pixels of 3 or more in the horizontal axis direction and an odd number of pixels of 3 or more in the vertical axis direction. 前記閾値メモリは、入力される画像に応じて可変である閾値を記憶することを特徴とする請求項1記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the threshold value memory stores a threshold value that is variable according to an input image. 前記係数メモリは、異なる種類の輪郭成分をそれぞれ強調するための複数の係数群を記憶し、複数の係数群のうち1つが前記係数メモリから選択的に前記乗算加算回路に入力されることを特徴とする請求項1記載の画像処理装置。 The coefficient memory stores a plurality of coefficient groups for emphasizing different types of contour components, and one of the plurality of coefficient groups is selectively input from the coefficient memory to the multiplication and addition circuit. The image processing apparatus according to claim 1. 画像処理装置の減算手段が、画像内の注目画素とその近傍に位置する複数の近傍画素とを含む画素群の各画素値を受け付け、前記画素群内の各近傍画素の画素値から注目画素の画素値を減算し、減算結果を絶対値にし、差分値として出力するステップと、
前記画像処理装置の比較手段が、前記差分値と閾値メモリが記憶する閾値とを比較するステップと、
前記画像処理装置の選択手段が、前記注目画素および前記近傍画素の各画素値が前記画素群単位で入力され、前記比較手段による比較結果に基づき、前記差分値が前記閾値以上である場合、当該差分値の演算に用いた前記近傍画素の画素値を選択画素値として出力し、前記差分値が前記閾値より小さい場合、当該差分値の演算に用いた前記注目画素の画素値を前記選択画素値として出力するステップと、
前記画像処理装置の乗算加算手段が、前記画素群内の各画素の位置ごとに係数が記憶された係数メモリを参照し、前記画素群内の前記注目画素の画素値および当該画素群内の前記各近傍画素に基づく前記各選択画素値のそれぞれに対して、当該注目画素および当該各近傍画素の前記画素群内の位置にそれぞれ対応する前記係数メモリ内の係数を乗算し、前記画素群単位の乗算結果を加算して出力するステップと、
を含むことを特徴とする画像処理方法。
The subtracting means of the image processing device accepts each pixel value of a pixel group including the target pixel in the image and a plurality of neighboring pixels located in the vicinity thereof, and calculates the target pixel from the pixel value of each neighboring pixel in the pixel group. Subtracting the pixel value, making the subtraction result an absolute value, and outputting as a difference value;
A step of comparing the difference value and a threshold value stored in a threshold value memory by a comparison unit of the image processing apparatus ;
If the selection means of the image processing apparatus, each pixel value of the pixel of interest and the neighboring pixel is inputted in the pixel group unit, based on a comparison result by the comparison means, the difference value is greater than or equal to the threshold, the the pixel values of the neighboring pixels used in the calculation of the difference value and outputs it as selection window pixel value if the difference value is smaller than said threshold value, said selected pixel value of the pixel of interest used in the calculation of the difference value Outputting as pixel values ;
The multiplication and addition means of the image processing device refers to a coefficient memory in which a coefficient is stored for each pixel position in the pixel group, and the pixel value of the target pixel in the pixel group and the pixel value in the pixel group Each selected pixel value based on each neighboring pixel is multiplied by a coefficient in the coefficient memory corresponding to the position of the target pixel and each neighboring pixel in the pixel group, and the pixel group unit Adding and outputting the multiplication results ;
An image processing method comprising:
JP2004381069A 2004-12-28 2004-12-28 Image processing apparatus and image processing method Expired - Fee Related JP4629431B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004381069A JP4629431B2 (en) 2004-12-28 2004-12-28 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004381069A JP4629431B2 (en) 2004-12-28 2004-12-28 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2006185375A JP2006185375A (en) 2006-07-13
JP4629431B2 true JP4629431B2 (en) 2011-02-09

Family

ID=36738420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004381069A Expired - Fee Related JP4629431B2 (en) 2004-12-28 2004-12-28 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4629431B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5047005B2 (en) 2008-02-29 2012-10-10 キヤノン株式会社 Image processing method, pattern detection method, pattern recognition method, and image processing apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6180964A (en) * 1984-09-28 1986-04-24 Fuji Xerox Co Ltd Picture signal processing method
JPH05199508A (en) * 1992-01-18 1993-08-06 G C Technol Kk Method and device for suppressing image degradation
JPH0638041A (en) * 1992-07-15 1994-02-10 Olympus Optical Co Ltd Image processor
JPH10191326A (en) * 1996-11-08 1998-07-21 Sony Corp Image processor and method therefor
JP2004007399A (en) * 2002-03-26 2004-01-08 Sanyo Electric Co Ltd Mosquito noise removing method
JP2004318423A (en) * 2003-04-15 2004-11-11 Konica Minolta Photo Imaging Inc Image processing method, image processor, and image processing program
JP2004336651A (en) * 2003-05-12 2004-11-25 Sony Corp Signal processing device, signal processing method, and program
JP2004334819A (en) * 2003-03-13 2004-11-25 Toshiba Corp Stereo calibration device and stereo image monitoring device using same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6180964A (en) * 1984-09-28 1986-04-24 Fuji Xerox Co Ltd Picture signal processing method
JPH05199508A (en) * 1992-01-18 1993-08-06 G C Technol Kk Method and device for suppressing image degradation
JPH0638041A (en) * 1992-07-15 1994-02-10 Olympus Optical Co Ltd Image processor
JPH10191326A (en) * 1996-11-08 1998-07-21 Sony Corp Image processor and method therefor
JP2004007399A (en) * 2002-03-26 2004-01-08 Sanyo Electric Co Ltd Mosquito noise removing method
JP2004334819A (en) * 2003-03-13 2004-11-25 Toshiba Corp Stereo calibration device and stereo image monitoring device using same
JP2004318423A (en) * 2003-04-15 2004-11-11 Konica Minolta Photo Imaging Inc Image processing method, image processor, and image processing program
JP2004336651A (en) * 2003-05-12 2004-11-25 Sony Corp Signal processing device, signal processing method, and program

Also Published As

Publication number Publication date
JP2006185375A (en) 2006-07-13

Similar Documents

Publication Publication Date Title
US7529425B2 (en) Denoising method, apparatus, and program
JP4517872B2 (en) Image processing apparatus, image processing method, program for image processing method, and recording medium recording program for image processing method
EP1038159B1 (en) A new edge-detection based noise removal algorithm
CN103854259B (en) Image processing equipment and the method for handling image
US7636451B2 (en) Digital watermark embedding apparatus and method, and digital watermark detection apparatus and method
EP2560368B1 (en) Blur correction device and blur correction method
EP1909487A1 (en) Image pickup apparatus
CN102640485B (en) Image processing apparatus, image processing method and integrated circuit
CN109903294B (en) Image processing method and device, electronic equipment and readable storage medium
WO2005111933A1 (en) Image processing apparatus, image processing method, program of image processing method, and recording medium in which program of image processing method has been recorded
JP2008124976A (en) Image processing apparatus and image processing method
JP2005332383A (en) Image processing method, device and program
CN104995658B (en) Image processing method, image processing equipment and recording medium
JP5076186B2 (en) Image enlargement method
JP2005025696A (en) Image processor, image processing method, program, and storage medium
US8737758B2 (en) Apparatus and method of reducing noise
CN109214996A (en) A kind of image processing method and device
JP4709794B2 (en) Motion estimation apparatus and method
US6876778B2 (en) Edge enhancement method and apparatus in digital image scalar-up circuit
JP4629431B2 (en) Image processing apparatus and image processing method
Ting et al. Edge preserving interpolation of digital images using fuzzy inference
JP4104475B2 (en) Contour correction device
JP6952226B2 (en) Image processing equipment, cameras, image processing methods and programs
EP1622080B1 (en) Signal processing device and method, recording medium, and program
WO2014050689A1 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071016

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080729

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100727

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100922

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

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

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4629431

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees