JP2001143074A - Image processor, image processing method and computer- readable recording medium in which image processing program is recorded - Google Patents

Image processor, image processing method and computer- readable recording medium in which image processing program is recorded

Info

Publication number
JP2001143074A
JP2001143074A JP31934499A JP31934499A JP2001143074A JP 2001143074 A JP2001143074 A JP 2001143074A JP 31934499 A JP31934499 A JP 31934499A JP 31934499 A JP31934499 A JP 31934499A JP 2001143074 A JP2001143074 A JP 2001143074A
Authority
JP
Japan
Prior art keywords
image
size
degree
processing
detecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP31934499A
Other languages
Japanese (ja)
Inventor
Daisaku Horie
大作 保理江
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.)
Minolta Co Ltd
Original Assignee
Minolta 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
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP31934499A priority Critical patent/JP2001143074A/en
Publication of JP2001143074A publication Critical patent/JP2001143074A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To increase processing speed. SOLUTION: This image processor is provided with a size-detecting part 202 to detect size of inputted area data, a local area discriminating part 200 for detecting gradation to represent characteristics of an image, based on pixel values of the image and an attribute discriminating part 203 to decide an attribute corresponding to an image is decided among plural predetermined attributes according to size data to represent the size from the size detecting part 202 and the gradation from a featured value detecting part 201. Since the attribute is decided, based on the size and gradation of the area, execution time of the processing to be executed later is taken into consideration.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は画像処理装置、画
像処理方法および画像処理プログラムを記録したコンピ
ュータ読取可能な記録媒体に関し、特に異なる属性の領
域を複数含む画像を領域別に処理する画像処理装置、画
像処理方法および画像処理プログラムを記録したコンピ
ュータ読取可能な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, an image processing method, and a computer-readable recording medium on which an image processing program is recorded, and more particularly to an image processing apparatus for processing an image including a plurality of areas having different attributes for each area. The present invention relates to a computer-readable recording medium storing an image processing method and an image processing program.

【0002】[0002]

【従来の技術】画像は、それが表わす内容により性質が
異なる。写真が表わされた画像は、階調性が豊かで複雑
に画素値が変化する性質を有する。また、グラフやイラ
ストなどの線画が表わされた画像は、単色部分と先鋭な
エッジから主に構成される性質を有する。以下、画像の
性質を画像属性で分類し、写真が表わされた画像を写真
属性、線画が表わされた画像を線画属性、文字が表わさ
れた画像を文字属性という。
2. Description of the Related Art The nature of an image differs depending on the content of the image. An image in which a photograph is displayed has a property that the pixel value changes in a complicated manner with rich gradation. Further, an image in which a line drawing such as a graph or an illustration is represented has a property mainly composed of a monochromatic portion and a sharp edge. In the following, the properties of images are classified by image attributes, images representing photographs are referred to as photo attributes, images representing line drawings are referred to as line drawing attributes, and images representing characters are referred to as character attributes.

【0003】一般に画像データには、画質を向上させる
ために必要に応じて補正処理が施され、データ量を削減
するために圧縮処理が施される。しかし、属性が異なる
画像には、それぞれの属性に応じた補正処理または圧縮
処理を適用するのが、画質および圧縮率を向上させる上
で望ましい。
Generally, image data is subjected to correction processing as needed to improve image quality, and compression processing is performed to reduce the amount of data. However, it is desirable to apply a correction process or a compression process according to each attribute to images having different attributes in order to improve the image quality and the compression ratio.

【0004】補正処理としては、線画属性の画像に施さ
れる減色処理がある。減色処理は、色数が少ない画像に
なるように色数を減少させる減色である。減色処理は、
減色する色数の程度を示す減色度を異ならせることがで
き、減色度が高いほど、処理後の画像に含まれる色数が
少なくなる。減色度を高くすると比較する色の数が減少
するので、処理時間が短くなる。また、減色処理では、
処理すべき画像のサイズが大きいほど処理対象となる画
素数が増えるので処理時間が長くなる。
As a correction process, there is a color reduction process performed on an image having a line drawing attribute. The color reduction processing is color reduction in which the number of colors is reduced so that the image has a small number of colors. Color reduction processing
The degree of color reduction indicating the number of colors to be reduced can be made different, and the higher the degree of color reduction, the smaller the number of colors included in the processed image. When the degree of color reduction is increased, the number of colors to be compared is reduced, so that the processing time is shortened. In the color reduction processing,
The larger the size of the image to be processed, the longer the processing time because the number of pixels to be processed increases.

【0005】写真属性の画像には、ノイズを除去して鮮
明な画像とするための平滑化処理などが施される。写真
属性の画像には、減色処理や、エッジ強調等の補正を過
度に行なうことは画質を劣化させることになるので好ま
しくない。なお、これらの補正処理は、圧縮率を向上さ
せる役割をも担う。
[0005] An image having a photo attribute is subjected to a smoothing process or the like for removing noise to obtain a clear image. Excessive correction such as color reduction processing and edge emphasis on an image with a photo attribute is not preferable because it deteriorates image quality. Note that these correction processes also have a role of improving the compression ratio.

【0006】圧縮処理については、線画属性の画像は、
色数が少ない場合に高圧縮率を達成することができるP
NG等の圧縮方法が用いられる。また、写真属性の画像
は、画素値が連続的に変化する場合に高圧縮率を達成で
きるJPEG等の圧縮方法が用いられる。
[0006] Regarding the compression processing, an image with the line drawing attribute is
P that can achieve high compression ratio when the number of colors is small
A compression method such as NG is used. For images with photo attributes, a compression method such as JPEG that can achieve a high compression ratio when the pixel value changes continuously is used.

【0007】このように異なる画像属性の領域を複数含
む画像は、画像属性ごとに領域を分割する処理が必要と
なる。この領域を分割する技術が、特開平8−5628
7号公報に記載されている。また、補正処理のうち減色
処理に関する技術が、特開平10−74248号公報、
特開平9−97323号公報、および特開平8−317
241号公報に記載されている。
An image including a plurality of regions having different image attributes requires a process of dividing the region for each image attribute. A technique for dividing this area is disclosed in Japanese Patent Laid-Open No. 8-5628.
No. 7 is described. Further, a technology relating to the color reduction processing in the correction processing is disclosed in Japanese Patent Application Laid-Open No. H10-74248,
JP-A-9-97323 and JP-A-8-317
241.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、線画属
性の領域と写真属性の領域とは、階調性等の特徴が似通
っている場合があり、画素データから得られる特徴のみ
から正確に属性を判別することが困難な場合がある。
However, in some cases, the line drawing attribute region and the photograph attribute region have similar characteristics such as gradation, and the attribute is accurately determined only from the characteristics obtained from the pixel data. Can be difficult to do.

【0009】本来写真属性である領域を線画属性に誤判
別した場合、線画属性の画像に対して行なわれる減色処
理が施されると、画質が低下してしまう。写真属性の画
像は、階調性を維持する必要があるが、減色処理を施す
ことによってこの階調性が損なわれるからである。
[0009] When an area which is originally a photograph attribute is erroneously determined to be a line drawing attribute, the image quality is degraded if the color reduction processing performed on the image having the line drawing attribute is performed. This is because it is necessary to maintain the gradation of an image with a photo attribute, but this gradation is impaired by performing color reduction processing.

【0010】また、従来の減色処理では、減色度は画像
に含まれる画素値のみに基づいて決定されていたため、
処理する画像によっては多くの時間を費やしてしまうと
いった問題があった。
In the conventional color reduction processing, the degree of color reduction is determined based only on pixel values included in an image.
There is a problem that much time is spent depending on the image to be processed.

【0011】この発明は上述の問題点を解決するために
なされたもので、処理速度を向上させた画像処理装置、
画像処理方法および画像処理プログラムを記録したコン
ピュータ読取可能な記録媒体を提供することを第1の目
的とする。また、処理速度と画質とのバランスのとれた
処理を実行可能な画像処理装置、画像処理方法および画
像処理プログラムを記録したコンピュータ読取可能な記
録媒体を提供することを第2の目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an image processing apparatus having an improved processing speed.
A first object is to provide a computer-readable recording medium on which an image processing method and an image processing program are recorded. It is a second object of the present invention to provide an image processing apparatus, an image processing method, and a computer-readable recording medium on which an image processing program is recorded, capable of executing processing with a balance between processing speed and image quality.

【0012】[0012]

【課題を解決するための手段】上述の目的を達成するた
めにこの発明のある局面にしたがうと、入力された画像
のサイズを検出する第1の検出手段と、画像の画素値に
基づき画像の特徴を表わす特徴データを検出する第2の
検出手段と、第1の検出手段からのサイズを表わすサイ
ズデータおよび第2の検出手段からの特徴データにした
がって、複数の予め定められた属性のうちから画像に対
応する属性を決定する属性決定手段とを備える。
According to an aspect of the present invention, there is provided an image processing apparatus comprising: first detecting means for detecting a size of an input image; A second detecting means for detecting characteristic data representing the characteristic, a size data representing a size from the first detecting means, and a characteristic data from the second detecting means, among a plurality of predetermined attributes. Attribute determining means for determining an attribute corresponding to the image.

【0013】この発明によれば、第1の検出手段からの
サイズを表わすサイズデータおよび第2の検出手段から
の特徴データにしたがって、複数の予め定められた属性
のうちから画像に対応する属性が決定される。画像の属
性の違いによりその画像に施す処理が異なる。画像のサ
イズは、その画像に施す処理の実行時間に影響する。し
たがって、画像に対して以降に行なわれる処理の実行時
間を考慮した属性を決定することができ、処理速度を向
上させた画像処理装置を提供することができる。
According to the present invention, the attribute corresponding to the image is determined from the plurality of predetermined attributes according to the size data representing the size from the first detecting means and the characteristic data from the second detecting means. It is determined. The processing to be performed on the image differs depending on the attribute of the image. The size of an image affects the execution time of processing performed on the image. Therefore, it is possible to determine the attribute in consideration of the execution time of the subsequent processing performed on the image, and to provide an image processing apparatus with an improved processing speed.

【0014】好ましくは、属性決定手段は、サイズデー
タおよび特徴データの大きさにより定まる基準値にした
がって属性を決定し、基準値はサイズデータおよび特徴
データの大きさが相反関係となる基準値を含むことを特
徴とする。
Preferably, the attribute determining means determines the attribute according to a reference value determined by the size of the size data and the feature data, and the reference value includes a reference value in which the sizes of the size data and the feature data are in a reciprocal relationship. It is characterized by the following.

【0015】この発明によれば、サイズデータおよび特
徴データの大きさにより定まる基準値にしたがって属性
が決定され、基準値はサイズデータおよび特徴データの
大きさが相反関係となる基準値を含むので、画像の属性
を正確に決定することがさらに可能となる。
According to the present invention, the attribute is determined according to the reference value determined by the size of the size data and the feature data, and the reference value includes a reference value in which the sizes of the size data and the feature data are in a reciprocal relationship. It is further possible to accurately determine the attributes of the image.

【0016】好ましくは、画像に対して画素値を制限す
る制限処理を実行する制限処理手段と、第1の検出手段
からのサイズを表わすサイズデータおよび第2の検出手
段からの特徴データにしたがって、画像に対応する制限
処理の度合を決定する度合決定手段とを備え、制限処理
手段は、度合決定手段により決定された度合にしたがっ
て制限処理を実行することを特徴とする。
[0016] Preferably, the restriction processing means executes restriction processing for restricting a pixel value to the image, size data representing a size from the first detection means, and characteristic data from the second detection means. A degree determining unit that determines a degree of the limiting process corresponding to the image, wherein the limiting processing unit executes the limiting process according to the degree determined by the degree determining unit.

【0017】この発明によれば、第1の検出手段からの
サイズを表わすサイズデータおよび第2の検出手段から
の特徴データにしたがって、画像に対応する制限処理の
度合が決定され、決定された度合にしたがって制限処理
が実行される。度合は、制限処理が実行された画像の画
質に影響する。したがって、画像の画質を考慮した制限
処理を実行することがさらに可能となり、処理速度と画
質とのバランスのとれた処理を実行可能な画像処理装置
を提供することができる。
According to the present invention, the degree of the restriction processing corresponding to the image is determined according to the size data representing the size from the first detecting means and the characteristic data from the second detecting means, and the determined degree is determined. Is performed according to the following. The degree affects the image quality of the image on which the restriction processing has been executed. Therefore, it is possible to further execute the limiting process in consideration of the image quality of the image, and it is possible to provide an image processing apparatus capable of executing the process in which the processing speed and the image quality are balanced.

【0018】この発明の他の局面にしたがえば、入力さ
れた画像に対して画素値を制限する制限処理を実行する
制限処理手段と、画像のサイズを検出する第1の検出手
段と、画像の画素値に基づき画像の特徴を表わす特徴デ
ータを検出する第2の検出手段と、第1の検出手段から
のサイズを表わすサイズデータおよび第2の検出手段か
らの特徴データにしたがって、画像に対応する制限処理
の度合を決定する度合決定手段とを備え、制限処理手段
は、度合決定手段により決定された度合にしたがって制
限処理を実行することを特徴とする。
According to another aspect of the present invention, a restriction processing means for performing a restriction processing for restricting a pixel value to an input image, a first detection means for detecting an image size, A second detecting means for detecting feature data representing the feature of the image based on the pixel value of the image data, and a size corresponding to the image according to the size data representing the size from the first detecting means and the feature data from the second detecting means. And a degree determining means for determining a degree of the limiting processing to be performed, wherein the limiting processing means executes the limiting processing according to the degree determined by the degree determining means.

【0019】この発明によれば、第1の検出手段からの
サイズを表わすサイズデータおよび第2の検出手段から
の特徴データにしたがって、画像に対応する制限処理の
度合が決定され、決定された度合にしたがって制限処理
が実行される。画像のサイズは、制限処理の実行時間に
影響する。度合は、制限処理が実行された画像の画質に
影響する。したがって、制限処理の実行時間と画像の画
質とを考慮した制限処理を実行することができ、処理速
度と画質とのバランスのとれた処理を実行可能な画像処
理装置を提供することができる。
According to the present invention, the degree of the restriction processing corresponding to the image is determined according to the size data representing the size from the first detecting means and the characteristic data from the second detecting means, and the determined degree is determined. Is performed according to the following. The size of the image affects the execution time of the restriction process. The degree affects the image quality of the image on which the restriction processing has been executed. Therefore, it is possible to execute the limiting process in consideration of the execution time of the limiting process and the image quality of the image, and it is possible to provide an image processing apparatus capable of executing the process in which the processing speed and the image quality are balanced.

【0020】好ましくは、度合は、サイズデータが大き
いほど大きな値に決定されやすいことを特徴とする。
Preferably, the degree is determined to be larger as the size data is larger.

【0021】この発明によれば、度合は、サイズデータ
が大きいほど大きな値に決定されやすいので、画像のサ
イズが大きいほど制限処理により画像に与える影響を大
きくすることがさらに可能となる。
According to the present invention, the degree is more likely to be determined to be a larger value as the size data is larger, so that the larger the size of the image is, the more the influence on the image by the limiting process can be further increased.

【0022】好ましくは、度合は、サイズデータが小さ
いほど小さな値に決定されやすいことを特徴とする。
Preferably, the degree is determined to be smaller as the size data is smaller.

【0023】この発明によれば、度合は、サイズデータ
が小さいほど小さな値に決定されやすいので、画像のサ
イズが小さいほど制限処理により画像に与える影響を小
さくすることがさらに可能となる。
According to the present invention, the degree is more likely to be determined to be smaller as the size data is smaller, so that the smaller the size of the image, the smaller the effect on the image by the limiting process.

【0024】この発明のさらに他の局面にしたがえば、
入力された画像に対して画素値を制限する制限処理を実
行する制限処理手段と、画像の画素値に基づき画像の特
徴を表わす特徴データを検出する検出手段と、検出手段
からの特徴データにしたがって、画像に対応する制限処
理の度合を決定する度合決定手段とを備え、制限処理手
段は、度合決定手段により決定された度合にしたがって
制限処理を実行することを特徴とする。
According to yet another aspect of the invention,
Limiting processing means for performing a limiting process for limiting a pixel value to an input image; detecting means for detecting feature data representing a feature of the image based on the pixel value of the image; And a degree determining means for determining a degree of the limiting processing corresponding to the image, wherein the limiting processing means executes the limiting processing according to the degree determined by the degree determining means.

【0025】この発明によれば、検出手段からの特徴デ
ータにしたがって、画像に対応する制限処理の度合が決
定され、決定された度合にしたがって制限処理が実行さ
れる。度合は、制限処理が実行された画像の画質に影響
する。したがって、画像の特徴に応じた画質となるよう
に制限処理を実行することが可能な画像処理装置を提供
することができる。
According to the present invention, the degree of the restriction processing corresponding to the image is determined according to the characteristic data from the detection means, and the restriction processing is executed according to the determined degree. The degree affects the image quality of the image on which the restriction processing has been executed. Therefore, it is possible to provide an image processing apparatus capable of executing the limiting process so as to obtain an image quality according to the characteristics of the image.

【0026】この発明のさらに他の局面にしたがえば、
入力された画像のサイズを検出する第1の検出ステップ
と、画像の画素値に基づき画像の特徴を表わす特徴デー
タを検出する第2の検出ステップと、第1の検出ステッ
プにより検出されたサイズを表わすサイズデータおよび
第2の検出ステップにより検出された特徴データにした
がって、複数の予め定められた属性のうちから画像に対
応する属性を決定する属性決定ステップとを含む。
According to yet another aspect of the present invention,
A first detection step of detecting the size of the input image, a second detection step of detecting feature data representing a feature of the image based on the pixel value of the image, and a size detection process performed by the first detection step. An attribute determining step of determining an attribute corresponding to an image from among a plurality of predetermined attributes in accordance with the size data to be represented and the feature data detected by the second detecting step.

【0027】この発明によれば、第1の検出ステップに
より検出されたサイズを表わすサイズデータおよび第2
の検出ステップにより検出された特徴データにしたがっ
て、複数の予め定められた属性のうちから画像に対応す
る属性が決定される。したがって、画像に施す処理の実
行時間を考慮して属性を決定することができ、処理速度
を向上させた画像処理方法を提供することができる。
According to the present invention, the size data representing the size detected in the first detecting step and the second
The attribute corresponding to the image is determined from the plurality of predetermined attributes according to the characteristic data detected in the detecting step. Therefore, the attribute can be determined in consideration of the execution time of the processing performed on the image, and an image processing method with an improved processing speed can be provided.

【0028】この発明のさらに他の局面にしたがえば、
入力された画像に対して画素値を制限する制限処理を実
行するための画像処理方法であって、画像のサイズを検
出する第1の検出ステップと、画像の画素値に基づき画
像の特徴を表わす特徴データを検出する第2の検出ステ
ップと、第1の検出ステップにより検出されたサイズを
表わすサイズデータおよび第2の検出ステップにより検
出された特徴データにしたがって、画像に対応する制限
処理の度合を決定する度合決定ステップと、度合決定ス
テップにより決定された度合にしたがって、画像に対し
て制限処理を実行する制限処理ステップとを含む。
According to yet another aspect of the present invention,
An image processing method for performing a restriction process for restricting a pixel value of an input image, the method including a first detection step of detecting a size of the image, and representing a feature of the image based on a pixel value of the image In accordance with a second detection step for detecting characteristic data, size data representing the size detected in the first detection step, and characteristic data detected in the second detection step, the degree of the restriction processing corresponding to the image is determined. It includes a degree determining step to be determined and a restriction processing step of executing a restriction process on the image according to the degree determined in the degree determining step.

【0029】この発明によれば、第1の検出ステップに
より検出されたサイズを表わすサイズデータおよび第2
の検出ステップにより検出された特徴データにしたがっ
て、画像に対応する制限処理の度合が決定され、決定さ
れた度合にしたがって、画像に対して制限処理が実行さ
れる。したがって、制限処理の実行時間と画像の画質と
を考慮した制限処理を実行することができ、処理速度と
画質とのバランスのとれた処理を実行可能な画像処理方
法を提供することができる。
According to the present invention, the size data representing the size detected in the first detecting step and the second
The degree of the restriction process corresponding to the image is determined according to the feature data detected in the detection step, and the restriction process is performed on the image according to the determined degree. Therefore, it is possible to execute the limiting process in consideration of the execution time of the limiting process and the image quality of the image, and it is possible to provide an image processing method capable of executing the process in which the processing speed and the image quality are balanced.

【0030】この発明のさらに他の局面にしたがえば、
画像処理プログラムを記録した記録媒体は、入力された
画像のサイズを検出する第1の検出ステップと、画像の
画素値に基づき画像の特徴を表わす特徴データを検出す
る第2の検出ステップと、第1の検出ステップにより検
出されたサイズを表わすサイズデータおよび第2の検出
ステップにより検出された特徴データにしたがって、複
数の予め定められた属性のうちから画像に対応する属性
を決定する属性決定ステップとを、コンピュータに実行
させるための画像処理プログラムを記録する。
According to yet another aspect of the invention,
The recording medium on which the image processing program is recorded includes a first detection step of detecting a size of the input image, a second detection step of detecting feature data representing a feature of the image based on a pixel value of the image, An attribute determining step of determining an attribute corresponding to an image from a plurality of predetermined attributes according to size data representing the size detected by the first detection step and feature data detected by the second detection step; Is recorded on a computer to execute an image processing program.

【0031】この発明によれば、第1の検出ステップに
より検出されたサイズを表わすサイズデータおよび第2
の検出ステップにより検出された特徴データにしたがっ
て、複数の予め定められた属性のうちから画像に対応す
る属性が決定される。したがって、画像に施す処理の実
行時間を考慮して属性を決定することができ、処理速度
を向上させた画像処理プログラムを記録したコンピュー
タ読取可能な記録媒体を提供することができる。
According to the present invention, the size data representing the size detected in the first detection step and the second
The attribute corresponding to the image is determined from the plurality of predetermined attributes according to the characteristic data detected in the detecting step. Therefore, the attribute can be determined in consideration of the execution time of the processing to be performed on the image, and a computer-readable recording medium that records an image processing program with an improved processing speed can be provided.

【0032】この発明のさらに他の局面にしたがえば、
画像処理プログラムを記録したコンピュータ読取可能な
記録媒体は、画像に対して画素値を制限する制限処理を
実行するための画像処理プログラムを記録したコンピュ
ータ読取可能な記録媒体であって、入力された画像のサ
イズを検出する第1の検出ステップと、画像の画素値に
基づき画像の特徴を表わす特徴データを検出する第2の
検出ステップと、第1の検出ステップにより検出された
サイズを表わすサイズデータおよび第2の検出ステップ
により検出された特徴データにしたがって、画像に対応
する制限処理の度合を決定する度合決定ステップと、度
合決定ステップにより決定された度合にしたがって、画
像に対して制限処理を実行する制限処理ステップとを、
コンピュータに実行させるための画像処理プログラムを
記録する。
According to yet another aspect of the invention,
The computer-readable recording medium on which the image processing program is recorded is a computer-readable recording medium on which an image processing program for executing a restriction process for restricting a pixel value on an image is stored. A first detection step of detecting the size of the image, a second detection step of detecting characteristic data representing the characteristics of the image based on the pixel values of the image, and size data representing the size detected by the first detection step. In accordance with the feature data detected in the second detection step, a degree determination step for determining the degree of the restriction processing corresponding to the image, and the restriction processing is performed on the image in accordance with the degree determined in the degree determination step. And a restriction processing step.
An image processing program to be executed by a computer is recorded.

【0033】この発明によれば、第1の検出ステップに
より検出されたサイズを表わすサイズデータおよび第2
の検出ステップにより検出された特徴データにしたがっ
て、画像に対応する制限処理の度合が決定され、決定さ
れた度合にしたがって、画像に対して制限処理が実行さ
れる。したがって、制限処理の実行時間と画像の画質と
を考慮した制限処理を実行することができ、処理速度と
画質とのバランスのとれた処理を実行可能な画像処理プ
ログラムを記録したコンピュータ読取可能な記録媒体を
提供することができる。
According to the present invention, the size data representing the size detected in the first detecting step and the second
The degree of the restriction process corresponding to the image is determined according to the feature data detected in the detection step, and the restriction process is performed on the image according to the determined degree. Therefore, it is possible to execute the limiting process in consideration of the execution time of the limiting process and the image quality of the image, and to perform a computer-readable recording in which an image processing program capable of executing the process with a balance between the processing speed and the image quality is recorded. A medium can be provided.

【0034】[0034]

【発明の実施の形態】以下、本発明の実施の形態の一例
における画像処理装置を備えたデジタルカメラについて
図面を参照しながら説明する。なお、図中同一符号は同
一または相当する部材を示し、説明を繰返さない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a digital camera provided with an image processing device according to an embodiment of the present invention will be described with reference to the drawings. The same reference numerals in the drawings denote the same or corresponding members, and description thereof will not be repeated.

【0035】図1は、本発明の実施の形態の1つにおけ
るデジタルカメラ1と撮像対象である原稿2との関係を
示す図である。図2は、デジタルカメラ1をレンズ側か
ら見た斜視図である。図を参照して、デジタルカメラ1
は、撮影ボタン3と、撮影レンズ部4と、カード挿入口
5とを備える。
FIG. 1 is a diagram showing a relationship between a digital camera 1 and an original 2 to be imaged according to one embodiment of the present invention. FIG. 2 is a perspective view of the digital camera 1 as viewed from the lens side. Referring to the figure, digital camera 1
Has a shooting button 3, a shooting lens unit 4, and a card insertion slot 5.

【0036】デジタルカメラ1による撮影結果は、デジ
タルカメラ1の内部に存在する図示しないハードディス
クカードに電子データとして記憶される。ここでハード
ディスクカードは画像データの記録媒体であり、たとえ
ばPCMCIAに準拠したハードディスクカードのよう
なものを用いてもよいし、これに代えてメモリカードな
どを用いてもよい。また、ミニディスク(MD)を記録
媒体に用いてもよい。さらに、カードを記録媒体としな
くても、たとえばSCSIケーブルなどでデジタルカメ
ラ1をプリンタなどに直接接続するようにしてもよい。
The result of photographing by the digital camera 1 is stored as electronic data on a hard disk card (not shown) existing inside the digital camera 1. Here, the hard disk card is a recording medium for image data. For example, a hard disk card conforming to PCMCIA may be used, or a memory card may be used instead. Further, a mini disc (MD) may be used as a recording medium. Further, instead of using a card as a recording medium, the digital camera 1 may be directly connected to a printer or the like by, for example, a SCSI cable or the like.

【0037】本実施の形態におけるデジタルカメラ1で
は、会議などで配布された資料、カタログ、雑誌、研究
記録などの紙原稿を電子データとして保存する場合の画
質と圧縮率とを向上させることができる。
The digital camera 1 according to the present embodiment can improve the image quality and compression ratio when saving paper documents such as materials, catalogs, magazines, and research records distributed at conferences and the like as electronic data. .

【0038】図3は、デジタルカメラ1の回路構成を示
すブロック図である。図3を参照して、デジタルカメラ
1はデジタルカメラ1の全体の制御を行なうCPU10
0と、撮像を行なうCCD104と、撮像された内容を
表示する表示部106と、CCD104からの画像を一
時記憶するためのRAM108と、撮像された画像を領
域に分割する領域分割部110と、分割された領域ごと
に領域の属性を判別する領域判別部112と、判別され
た属性に適した補正処理を領域ごとに行なうための適応
補正部114と、領域分割部110で分割された領域ご
とに圧縮を行なうための圧縮部116と、圧縮が行なわ
れた画像を統合し出力するための画像合成部118と、
画像を記録するためのカードメモリ部120と、CPU
100で実行するためのプログラムを記憶するためのR
OM102とを備える。
FIG. 3 is a block diagram showing a circuit configuration of the digital camera 1. Referring to FIG. 3, digital camera 1 has a CPU 10 that controls the entire digital camera 1.
0, a CCD 104 for taking an image, a display unit 106 for displaying the taken image, a RAM 108 for temporarily storing an image from the CCD 104, an area dividing unit 110 for dividing the taken image into regions, Region determining unit 112 for determining the attribute of the region for each of the selected regions, an adaptive correcting unit 114 for performing a correction process suitable for the determined attribute for each region, and for each region divided by region dividing unit 110 A compression unit 116 for performing compression, an image synthesis unit 118 for integrating and outputting the compressed images,
Card memory unit 120 for recording images, CPU
100 for storing a program to be executed by
OM102.

【0039】なお、デジタルカメラ1のCPU100に
外部記憶装置122を接続し、CD−ROM124やフ
ロッピー(登録商標)ディスク等からデジタルカメラ1
の制御のためのプログラムを読取るようにしてもよい。
An external storage device 122 is connected to the CPU 100 of the digital camera 1 and the digital camera 1 is stored in the CD-ROM 124 or a floppy (registered trademark) disk.
May be read.

【0040】次に、図3に示されるブロック図を用いて
実際の撮影の様子を説明する。図3において太い矢印は
画像の流れを示し、細い矢印は制御データの流れを示し
ている。ユーザがカメラの電源をONにすると、撮像レ
ンズ部4で撮られているシーンがCCD104を介して
表示部106に映し出される。
Next, the actual shooting will be described with reference to the block diagram shown in FIG. In FIG. 3, thick arrows indicate the flow of images, and thin arrows indicate the flow of control data. When the user turns on the power of the camera, the scene captured by the imaging lens unit 4 is displayed on the display unit 106 via the CCD 104.

【0041】CPU100は、撮影ボタン3がONにな
ったことを検出すると、CCD104に対してCCDの
積分を指示し、積分が終了すればCCDデータのRAM
108へのダンプを行なう。そして、表示部106にこ
の画像を表示(フリーズ表示)させる。
When the CPU 100 detects that the photographing button 3 has been turned ON, the CPU 100 instructs the CCD 104 to integrate the CCD.
Dump to 108. Then, the image is displayed on the display unit 106 (freeze display).

【0042】CCD104からの画像は、RAM108
に記憶される。画像がCCD104からRAM108に
記憶されると、領域分割部110、領域判別部112、
適応補正部114、圧縮部116、画像合成部118の
それぞれで処理が順に行なわれ、カードメモリ部120
にJPEG、PNGなどの圧縮方式で圧縮された画像圧
縮データを記憶する。
The image from the CCD 104 is stored in a RAM 108
Is stored. When the image is stored in the RAM 108 from the CCD 104, the area dividing unit 110, the area determining unit 112,
The processing is sequentially performed by each of the adaptive correction unit 114, the compression unit 116, and the image synthesis unit 118, and the card memory unit 120
Stores image compression data compressed by a compression method such as JPEG or PNG.

【0043】カードメモリ部120は、ハードディスク
などであっても外部の記憶装置や端末などであってもよ
い。また、圧縮を行なわずに画像データをプリンタやモ
ニタに出力することもできる。さらに領域分割部11
0、領域判別部112、適応補正部114、圧縮部11
6、画像合成部118のそれぞれで行なわれる処理は、
デジタルカメラ1の内部で行なってもよいし、デジタル
カメラ1に接続された別のカメラやパーソナルコンピュ
ータ等の端末などにデータを転送してそこで行なっても
よい。
The card memory unit 120 may be a hard disk or the like, or an external storage device or terminal. In addition, image data can be output to a printer or monitor without performing compression. Further, the area dividing unit 11
0, area determination unit 112, adaptive correction unit 114, compression unit 11
6. The processing performed by each of the image synthesis units 118 is as follows.
The processing may be performed inside the digital camera 1 or may be performed by transferring data to another camera connected to the digital camera 1 or a terminal such as a personal computer.

【0044】次に画像がRAM108に記憶されたとき
に、デジタルカメラ1で行なう処理の流れについて説明
する。図4は、デジタルカメラ1で行なわれる画像処理
の流れを示すフローチャートである。図4を参照して、
CCD104で撮像された画像がRAMに記憶されるこ
とにより、画像がデジタルカメラ1に入力される(ステ
ップS01)。RAM108に記憶された画像に対して
領域分割部110で領域分割処理が行なわれる(ステッ
プS02)。
Next, the flow of processing performed by the digital camera 1 when an image is stored in the RAM 108 will be described. FIG. 4 is a flowchart illustrating a flow of image processing performed by the digital camera 1. Referring to FIG.
The image captured by the CCD 104 is stored in the RAM, so that the image is input to the digital camera 1 (step S01). The area dividing unit 110 performs an area dividing process on the image stored in the RAM 108 (step S02).

【0045】そして、分割された領域ごとに局所領域判
別が行なわれる(ステップS03)。局所領域判別と
は、その領域に含まれる局所領域、たとえば、画素単位
または複数の画素で構成されるブロック単位に、局所領
域の性質を求める処理である。局所領域の性質とは、写
真属性の画像が有する性質と線画属性の画像が有する性
質とをいう。
Then, local area determination is performed for each of the divided areas (step S03). The local region determination is a process of obtaining the properties of the local region in a local region included in the region, for example, in a pixel unit or a block unit configured by a plurality of pixels. The properties of the local region refer to the properties of the image with the photo attribute and the properties of the image with the line drawing attribute.

【0046】ステップS03の局所領域判別において局
所領域ごとに判別された性質を基に、領域の属性を判別
する属性判別処理が行なわれる(ステップS04)。こ
れにより、画像は文字属性の文字領域、線画属性の線画
領域、または写真属性の写真領域に分割される。
An attribute discriminating process for discriminating the attribute of the region is performed based on the property determined for each local region in the local region discrimination in step S03 (step S04). As a result, the image is divided into a character area having a character attribute, a line drawing area having a line drawing attribute, or a photograph area having a photograph attribute.

【0047】一般に、入力原稿2は、文字領域、線画領
域、写真領域などが含まれる。ここに文字領域とは、黒
地の文字のみで構成される矩形領域を示す。線画領域と
はグラフやベタ塗りの画像など、単色領域とエッジ領域
とで主に構成される矩形領域を示す。また、写真領域と
は階調の変化する部分を多く含む矩形領域を示し、絵
画、イラスト、テクスチャーなども写真領域に含まれ
る。なお、線画領域と写真領域とは、画像の性質が似通
った場合があり、画像の画素データのみからは明確に線
画領域と写真領域とを判別することが困難な場合があ
る。
Generally, the input document 2 includes a character area, a line drawing area, a photograph area, and the like. Here, the character area indicates a rectangular area composed of only characters on a black background. The line drawing area indicates a rectangular area mainly composed of a single color area and an edge area, such as a graph or a solid image. Further, the photo region indicates a rectangular region including many portions where the gradation changes, and paintings, illustrations, textures, and the like are also included in the photo region. Note that the line drawing area and the photograph area may have similar image characteristics, and it may be difficult to clearly distinguish the line drawing area and the photograph area from only the pixel data of the image.

【0048】そして、判別された属性を基に領域ごと
に、適応補正部114における補正処理と、圧縮部11
6における圧縮処理とが行なわれる(ステップS0
5)。適応補正部114における補正処理は、線画属性
の領域に対しては、ノイズによる画質劣化を防止すると
ともに圧縮率を向上させるための減色処理が施される。
写真属性の領域に対しては、ノイズによる画質劣化と圧
縮率の低下とを防ぐために平滑化が行なわれる。文字属
性の領域に対しては、解像度変換、文字補正、2値化な
どの処理が行なわれる。
The correction processing in the adaptive correction unit 114 and the compression in the compression unit 11 are performed for each area based on the determined attribute.
6 is performed (step S0).
5). In the correction processing performed by the adaptive correction unit 114, color reduction processing for preventing image quality deterioration due to noise and improving the compression ratio is performed on the area with the line drawing attribute.
Smoothing is performed on a region with a photo attribute in order to prevent image quality deterioration and compression ratio deterioration due to noise. Processing such as resolution conversion, character correction, and binarization is performed on the character attribute area.

【0049】圧縮部116における圧縮処理は、適応補
正部116で補正処理が施された領域に対して行なわれ
る。線画属性の領域に対してはPNG等の圧縮方式で圧
縮される。写真領域の領域に対してはJPEG等の圧縮
方式で圧縮される。文字属性の領域に対しては2値圧縮
が施される。なお、文字属性の領域に対しては、OCR
を行ないキャラクタコードに変換する処理を行なっても
よい。
The compression processing in the compression section 116 is performed on the area subjected to the correction processing in the adaptive correction section 116. The area having the line drawing attribute is compressed by a compression method such as PNG. The area of the photograph area is compressed by a compression method such as JPEG. Binary compression is applied to the character attribute area. Note that the OCR is
May be performed to convert the character code.

【0050】領域別に圧縮されたデータは画像構成部1
18で統合され、カードメモリ部120へ出力される。
The data compressed for each area is stored in the image forming unit 1.
At 18, they are integrated and output to the card memory unit 120.

【0051】なお、本実施の形態においては、領域判別
部112で線画領域と写真領域とを判別する処理につい
て説明するが、文字領域については、線画領域および写
真領域との判別が容易であるので、公知の技術を用いて
判別することができる。これについては、ここでの説明
を省略し、線画領域と写真領域との判別について説明す
る。
In the present embodiment, the process of discriminating between a line drawing area and a photograph area by the area discriminating section 112 will be described. However, it is easy to discriminate a character area from a line drawing area and a photograph area. Can be determined using a known technique. Regarding this, the description is omitted here, and the discrimination between the line drawing area and the photograph area will be described.

【0052】次に、領域分割部110で行なわれる領域
分割処理について説明する。図5は、図4のステップS
02で行なわれる領域分割処理の流れを示すフローチャ
ートである。図5を参照して、領域分割処理は、画像を
膨脹させる処理を行ない(ステップS11)、膨脹され
た画像を矩形化することにより矩形化された領域に画像
を分割する(ステップS12)。この領域分割処理につ
いて具体例を挙げて説明する。図6は、RAM108に
記憶された画像の一例を示す図である。図6を参照し
て、画像150には、写真が表わされた画像151と、
棒グラフが表わされた画像152と、円グラフが表わさ
れた画像153と、文字が表わされた画像154,15
5とを含む。領域分割処理のステップS11で行なわれ
る画像の膨脹処理は、たとえば、細線を太線に変換する
処理である。具体的には、ある画素の周辺の画素値をあ
る画素の画素値と同じにする。これにより、黒色の文字
は黒色の塊となり、隣りの文字と結合して文字が表わさ
れた画像154が1つの黒色の塊となる。
Next, the area dividing process performed by the area dividing section 110 will be described. FIG. 5 is a flowchart showing step S in FIG.
9 is a flowchart showing a flow of a region dividing process performed in 02. Referring to FIG. 5, in the area dividing process, an image is expanded (step S11), and the image is divided into rectangular areas by rectangularizing the expanded image (step S12). This region division processing will be described with a specific example. FIG. 6 is a diagram illustrating an example of an image stored in the RAM 108. Referring to FIG. 6, an image 150 includes an image 151 representing a photograph,
An image 152 representing a bar graph, an image 153 representing a pie graph, and images 154 and 15 representing characters.
5 is included. The image expansion processing performed in step S11 of the area division processing is, for example, processing for converting a thin line into a thick line. Specifically, a pixel value around a certain pixel is set to be the same as a pixel value of a certain pixel. As a result, the black character becomes a black lump, and the image 154 in which the character is represented by being combined with the adjacent character becomes one black lump.

【0053】図7は、画像150を膨脹させた膨脹画像
を示す図である。膨脹画像160には、写真が表わされ
た画像151を膨脹した画像161と、画像152を膨
脹した画像162と、画像153を膨脹した画像163
と、文字が表わされた画像154,155を膨脹した画
像164,165とを含む。
FIG. 7 is a view showing an expanded image obtained by expanding the image 150. The expanded image 160 includes an image 161 obtained by expanding the image 151 representing a photograph, an image 162 obtained by expanding the image 152, and an image 163 obtained by expanding the image 153.
And images 164 and 165 obtained by expanding the images 154 and 155 in which characters are displayed.

【0054】なお、画像の膨張処理とは別に、または、
膨張処理と併せて画像を縮小する処理を用いてもよい。
In addition, separately from the image expansion processing,
A process of reducing the image may be used together with the expansion process.

【0055】そして、膨脹画像160に対して外接矩形
化が行なわれる。図8は、膨脹画像160に外接矩形化
処理を施す様子を示した図である。外接矩形化は、膨脹
画像160に対して、水平方向の直線を垂直方向に移動
させて領域161〜165のいずれかの輪郭と接する直
線を抽出し、垂直方向の直線を水平方向に移動させて領
域161〜165のいずれかの輪郭と接する直線を抽出
する。そして、抽出された直線のうち、2つの水平方向
の直線と2つの垂直方向の直線とで囲まれる領域171
〜175を抽出するものである。この外接矩形化処理に
より、図8(B)に示すように、膨脹画像160から、
領域171〜175が分割される。
Then, the circumscribed rectangle is formed on the expanded image 160. FIG. 8 is a diagram illustrating a state where the circumscribed rectangle processing is performed on the expanded image 160. The circumscribed rectangle is generated by moving a horizontal straight line in the expanded image 160 in the vertical direction to extract a straight line that is in contact with any contour of the regions 161 to 165, and moving the vertical straight line in the horizontal direction. A straight line tangent to any one of the contours of the regions 161 to 165 is extracted. Then, of the extracted straight lines, an area 171 surrounded by two horizontal straight lines and two vertical straight lines
~ 175. By this circumscribed rectangle processing, as shown in FIG.
The areas 171 to 175 are divided.

【0056】次に領域判別部112について説明する。
図9は、領域判別部112の詳細な構成を示すブロック
図である。図9を参照して、領域判別部112には、領
域分割部110で分割された領域ごとに領域の画像を示
す領域データが入力される。したがって、領域判別部1
12では、領域ごとに処理が行なわれる。
Next, the area determining unit 112 will be described.
FIG. 9 is a block diagram illustrating a detailed configuration of the area determination unit 112. Referring to FIG. 9, region data indicating a region image is input to region determination unit 112 for each region divided by region division unit 110. Therefore, the area determining unit 1
At 12, processing is performed for each region.

【0057】領域分割部112は、入力される領域デー
タの局所領域ごとにその性質を判別する局所領域判別部
200と、局所領域ごとに判別された性質に基づき領域
の特徴量を検出する特徴量検出部201と、入力された
領域データからその領域のサイズを検出するためのサイ
ズ検出部202と、特徴量検出部201で検出された特
徴量とサイズ検出部202で検出されたサイズとに基づ
いて領域の属性を判別するための属性判別部203とを
含む。属性判別部203は、判別された属性が線画領域
である場合には後述する減色処理の度合を決定する。な
お、領域判別部112は、図示しないCPU100から
の制御信号により制御される。
The area dividing section 112 includes a local area determining section 200 for determining the property of each local area of the input area data, and a feature quantity for detecting the feature of the area based on the property determined for each local area. A detection unit 201, a size detection unit 202 for detecting the size of the region from the input region data, and a feature amount detected by the feature amount detection unit 201 and a size detected by the size detection unit 202. Attribute determining unit 203 for determining the attribute of the area. If the determined attribute is a line drawing area, the attribute determining unit 203 determines the degree of a color reduction process described later. The area determination unit 112 is controlled by a control signal from the CPU 100 (not shown).

【0058】図10は、図4のステップS03で行なわ
れる局所領域判別処理の流れを示すフローチャートであ
る。図10を参照して、局所領域判別部200は、入力
された領域データについて画像ごとに局所領域の判別を
行なう。領域判別部200は、処理対象画素の輝度値
を、処理対象画素に隣接する画素の輝度値との差を求
め、求めた差の最大値Mを計算する。処理対象画素に隣
接する画素とは、たとえば、処理対象画素を中心とする
3×3のブロックにおいては、8個の隣接画素が該当す
る。処理対象画素と隣接画素との輝度値の差は、処理対
象画素と隣接画素との輝度変化を意味する。
FIG. 10 is a flowchart showing the flow of the local area discriminating process performed in step S03 of FIG. Referring to FIG. 10, local region determining section 200 determines a local region for each image in the input region data. The area determination unit 200 calculates the difference between the luminance value of the processing target pixel and the luminance value of a pixel adjacent to the processing target pixel, and calculates the maximum value M of the calculated difference. The pixel adjacent to the processing target pixel corresponds to, for example, eight adjacent pixels in a 3 × 3 block centered on the processing target pixel. The difference in the luminance value between the processing target pixel and the adjacent pixel means a change in the luminance between the processing target pixel and the adjacent pixel.

【0059】求めた最大値Mを予め定められたしきい値
TH1と比較する(ステップS22)。最大値Mがしき
い値TH1より大きい場合にはステップS23に進み、
そうでない場合にはステップS24に進む。ステップS
23では、処理対象画素の画素属性を「エッジ」として
処理を終了する。
The obtained maximum value M is compared with a predetermined threshold value TH1 (step S22). If the maximum value M is larger than the threshold value TH1, the process proceeds to step S23,
If not, the process proceeds to step S24. Step S
At 23, the process ends with the pixel attribute of the processing target pixel set to “edge”.

【0060】ステップS24では、最大値Mを予め定め
られたしきい値TH2と比較する(ステップS24)。
最大値Mがしきい値TH2より大きい場合にはステップ
S25に進み、そうでない場合にはステップS26に進
む。ステップS25では、処理対象画素の画素属性を
「階調」とし処理を終了する。ステップS26では、処
理対象画素の画素特性を「単色」として処理を終了す
る。このようにして、領域に含まれる画素ごとに画素属
性が定められる。
In step S24, the maximum value M is compared with a predetermined threshold value TH2 (step S24).
If the maximum value M is larger than the threshold value TH2, the process proceeds to step S25; otherwise, the process proceeds to step S26. In step S25, the pixel attribute of the processing target pixel is set to “gradation”, and the process ends. In step S26, the pixel characteristic of the processing target pixel is set to “monochromatic”, and the process ends. In this way, a pixel attribute is determined for each pixel included in the region.

【0061】ここで、画素属性が「階調」の階調画素
は、写真やグラデーションに多く含まれる画素であり、
周辺において画素値がなだらかに変化する画素をいう。
画素属性が「単色」の単色画素は、線画に多く含まれる
画素であり、周辺において画素値がほとんど変化しない
画素をいう。
Here, the gradation pixel whose pixel attribute is “gradation” is a pixel that is included in a lot of photographs and gradations.
A pixel whose pixel value changes gradually in the periphery.
A single-color pixel having a pixel attribute of “single color” is a pixel that is largely included in a line drawing, and is a pixel whose pixel value hardly changes in the periphery.

【0062】なお、局所領域判別処理を、画素ごとに画
素属性を求めるようにしたが、たとえば、3×3等のブ
ロック単位でそのブロックの属性を判別するようにして
もよい。この場合には、ブロックに含まれる画素の平均
値を上述の輝度値に置き換えることにより、図10に示
したフローチャートをそのまま適用することができる。
Although the local area determination processing is performed to obtain the pixel attribute for each pixel, the attribute of the block may be determined in units of blocks such as 3 × 3. In this case, by replacing the average value of the pixels included in the block with the above-described luminance value, the flowchart shown in FIG. 10 can be applied as it is.

【0063】しきい値TH1とTH2との関係は、しき
い値TH1>TH2である。したがって、画素属性が
「エッジ」と判別された画素は、隣接する画素との輝度
変化量が、「階調」と判別された画素の輝度変化量より
も大きい。同様に、画素属性が「階調」と判別された画
素の隣接画素との輝度変化量は、「単色」と判別された
画素の輝度変化量よりも大きい。
The relationship between threshold values TH1 and TH2 is that threshold value TH1> TH2. Therefore, a pixel whose pixel attribute is determined to be “edge” has a larger amount of change in luminance between adjacent pixels than a pixel whose pixel attribute is determined to be “gradation”. Similarly, the amount of change in luminance between a pixel whose pixel attribute is determined to be “gradation” and an adjacent pixel is larger than the amount of change in luminance of a pixel whose pixel attribute is determined to be “monochrome”.

【0064】なお、本実施の形態における局所領域判別
処理では、処理対象画素と隣接画素との輝度値変化(画
素値変化)の最大値を用いて判別したが、所定のブロッ
ク内の任意の2画素の色距離の最大値を用いてもよい。
色距離には、RGB空間、Lab空間、HSL空間等の
任意の色空間における距離を用いることができる。ま
た、輝度変化量の最大値または色距離を用いる代わり
に、写真に多く含まれるような画素と線画に多く含まれ
るような画素を検出できる処理であれば、他の方法を用
いることもできる。
In the local area discriminating process according to the present embodiment, discrimination is performed using the maximum value of a change in luminance value (change in pixel value) between a pixel to be processed and an adjacent pixel. The maximum value of the color distance of the pixel may be used.
As the color distance, a distance in an arbitrary color space such as an RGB space, a Lab space, and an HSL space can be used. Further, instead of using the maximum value of the amount of change in luminance or the color distance, another method can be used as long as it can detect pixels that are often included in a photograph and pixels that are often included in a line drawing.

【0065】次に属性判別処理について説明する。図1
1は、図4のステップS04で行なわれる属性判別処理
の流れを示すフローチャートである。図11を参照し
て、領域内に含まれる画素属性が「階調」の階調画素数
Paをカウントし(ステップS31)、領域に含まれる
画像属性が「単色」の単色画素数Pbをカウントする
(ステップS32)。
Next, the attribute determination processing will be described. FIG.
FIG. 1 is a flowchart showing the flow of the attribute determination process performed in step S04 of FIG. Referring to FIG. 11, the number of gradation pixels Pa whose pixel attribute is “gradation” included in the area is counted (step S31), and the number Pb of single-color pixels whose image attribute is “monochrome” included in the area is counted. (Step S32).

【0066】そして、階調画素数Paと単色画素数Pb
とを用いて、階調度Tを算出する(ステップS33)。
階調度とは、階調画素の領域全体に占める割合が多いほ
ど、また、単色画素の領域全体に占める割合が少ないほ
ど大きくなるような値である。階調度Tは次式に基づき
計算される。
Then, the number Pa of gradation pixels and the number Pb of single-color pixels
Is used to calculate the gradient T (step S33).
The gradation is a value that increases as the ratio of the gradation pixel to the entire region increases and as the ratio of the monochrome pixel to the entire region decreases. The gradient T is calculated based on the following equation.

【0067】階調度T=(K1×Pa−K2×Pb)/
領域内総画素数S ここで、K1,K2は、所定の定数である。なお、階調
度Tの計算式はこれに限られず、領域に含まれる階調画
素数Paの割合が多く、単色画素数Pbの割合が少ない
ほど高い値となるようにすればよい。この階調度Tは、
領域の特徴を示す値である。
Gradient T = (K1 × Pa−K2 × Pb) /
Total number of pixels in area S Here, K1 and K2 are predetermined constants. The formula for calculating the gradation T is not limited to this, and the higher the ratio of the number Pa of gradation pixels included in the region and the smaller the ratio of the number Pb of single color pixels included in the region, the higher the value may be. This gradient T is
This is a value indicating the feature of the region.

【0068】次に領域の属性を判別するためのしきい値
を、次の計算式により決定する(ステップS34)。
Next, a threshold value for determining the attribute of the area is determined by the following formula (step S34).

【0069】 THA=A1/(S+A2) …(1) THB=THA×(1−A3/(S+A3)) …(2) THC=THA×(1−A4/(S+A4)) …(3) ただし、Sは領域内総画素数、A1〜A4は予め定めら
れた定数であり、A3<A4である。THA、THB、
THCは、それぞれ、写真属性と弱減色線画、弱減色線
画と中減色線画、中減色線画と強減色線画を区別するた
めのしきい値であり、THA>THB>THCである。
THA = A1 / (S + A2) (1) THB = THA × (1-A3 / (S + A3)) (2) THC = THA × (1-A4 / (S + A4)) (3) S is the total number of pixels in the area, A1 to A4 are predetermined constants, and A3 <A4. THA, THB,
THC is a threshold value for distinguishing between a photograph attribute and a weakly-colored line image, a weakly-colored line image and a middle-colored line image, and a threshold value for distinguishing between a middle-colored line image and a strongly-decreased color line image, and THA>THB> THC.

【0070】そして、階調度Tがしきい値THAと比較
される(ステップS35)。階調度Tがしきい値THA
よりも大きい場合にはステップS36に進み、そうでな
い場合にはステップS37に進む。ステップS36で
は、領域の属性を「写真」として処理を終了する。
Then, the gradient T is compared with the threshold value THA (step S35). The gradient T is the threshold value THA
If it is larger, the process proceeds to step S36; otherwise, the process proceeds to step S37. In step S36, the process is terminated with the attribute of the area as "photograph".

【0071】ステップS37では、階調度Tがしきい値
THBと比較される。階調度Tがしきい値THBよりも
大きい場合にはステップS38に進み、そうでない場合
にはステップS39に進む。ステップS38では領域属
性を「弱減色線画」に設定し処理は終了する。
In step S37, the gradient T is compared with a threshold value THB. If the gradient T is larger than the threshold value THB, the process proceeds to step S38; otherwise, the process proceeds to step S39. In step S38, the area attribute is set to "lightly reduced color line drawing", and the process ends.

【0072】ステップS39では、階調度Tがしきい値
THCと比較される。階調度Tがしきい値THCよりも
大きい場合にはステップS40に進み、そうでない場合
にはステップS41に進む。ステップS40では、領域
属性を「中減色線画」に設定し、処理を終了する。ステ
ップS41では領域属性を「強減色線画」に設定し処理
を終了する。
In step S39, the gradient T is compared with a threshold value THC. If the gradient T is larger than the threshold value THC, the process proceeds to step S40; otherwise, the process proceeds to step S41. In step S40, the area attribute is set to “medium-colored line drawing”, and the process ends. In step S41, the area attribute is set to "strongly reduced color line drawing", and the process ends.

【0073】ステップS31〜ステップS33までの処
理は、特徴量検出部201で行なわれ、ステップS34
〜ステップS41までの処理は属性判別部203で行な
われる。
The processing from step S31 to step S33 is performed by the feature amount detection unit 201, and the processing in step S34
The processing from step S41 to step S41 is performed by the attribute determining unit 203.

【0074】ここで、弱減色線画、中減色線画、強減色
線画とは、いずれも線画属性に含まれるが、適応補正部
114で行なわれる減色処理の度合が異なる。線画属性
の画像は、適応補正部114で減色処理が行なわれる
が、線画属性の中でも減色の度合を変えて減色処理が行
なわれる。すなわち、領域属性が弱減色線画とされた線
画属性の画像は、減色処理の度合を低くして減色処理が
行なわれる。領域属性が強減色線画とされた線画属性の
画像は、減色処理の度合を高くして減色処理が行なわれ
る。この場合には、減色される色数が多くなる。
Here, the weakly-colored line drawing, the medium-colored line drawing, and the strongly-colored line drawing are all included in the line drawing attribute, but the degree of the color reduction processing performed by the adaptive correction section 114 is different. The image having the line drawing attribute is subjected to the color reduction processing by the adaptive correction unit 114, and the color reduction processing is performed by changing the degree of the color reduction among the line drawing attributes. That is, an image having a line drawing attribute whose area attribute is set to a weakly reduced color line drawing is subjected to the color reduction processing at a low degree of the color reduction processing. An image having a line drawing attribute whose region attribute is a strongly reduced color line drawing is subjected to a color reduction process with a high degree of the color reduction process. In this case, the number of colors to be reduced increases.

【0075】図12は、領域サイズおよび階調度と領域
属性との関係を示す第1の図である。図12を参照し
て、横軸に領域のサイズを、縦軸に階調度を示してい
る。THAは、領域サイズが大きくなるに従って階調度
が小さくなる線で表わされている。しきい値THAより
上の領域が写真属性であり、下の領域が線画属性であ
る。したがって、領域サイズが大きくなるほど写真属性
と判別されやすくなる。これは、階調度が高く領域サイ
ズが大きい場合には、写真属性である可能性が高いから
である。
FIG. 12 is a first diagram showing the relationship between the area size and the gradient and the area attribute. Referring to FIG. 12, the horizontal axis represents the size of the region, and the vertical axis represents the gradient. THA is represented by a line where the gradient decreases as the region size increases. The area above the threshold value THA is a photograph attribute, and the area below the threshold value THA is a line drawing attribute. Therefore, the larger the area size, the more easily it is determined to be a photograph attribute. This is because if the gradation is high and the region size is large, it is highly possible that the attribute is a photograph attribute.

【0076】THAよりも下の部分では、THBは、領
域サイズが小さくなるほどTHAとの間隔が広くなって
いる。したがって、線画属性の領域は、領域サイズが小
さくなるほど弱減色線画と判別されやすくなる。また、
弱減色線画の領域は、写真の領域のすぐ下に設けられ
る。これは、線画属性の領域は、階調度が高い場合に
は、なるべく減色度を低く設定することが画質的に好ま
しいからである。
In a portion below the THA, the distance between the THB and the THB increases as the region size decreases. Therefore, a region having the line drawing attribute is more likely to be determined as a weakly reduced line drawing as the region size becomes smaller. Also,
The weakly colored line drawing area is provided immediately below the photographic area. This is because it is preferable in terms of image quality to set the color reduction degree as low as possible when the gradation of the line image attribute area is high.

【0077】しきい値THCは、領域サイズが大きくな
るほどX軸とTHCとの間隔がX軸とTHAとの間隔に
占める割合が大きくなっている。したがって、写真属性
でない線画属性と判別された領域は、領域サイズが大き
くなるほど強減色線画と判別されやすくなる。これは次
の理由による。領域サイズが大きい場合、減色処理を行
なう場合には多くの時間を必要とする。この場合、処理
後の画像に含まれる色数が多いとより時間を要するた
め、減色処理を行なうのであれば減色度を高くして粗く
減色することが処理速度を向上させるために望ましいか
らである。このようにすることで、減色処理の時間を短
くすることができる。
As for the threshold value THC, the ratio of the distance between the X-axis and THC to the distance between the X-axis and THA increases as the region size increases. Therefore, a region determined to be a line drawing attribute other than a photograph attribute is more likely to be determined as a strongly reduced color line drawing as the region size increases. This is for the following reason. When the area size is large, a lot of time is required to perform the color reduction processing. In this case, if the number of colors included in the processed image is large, more time is required. Therefore, if the color reduction processing is performed, it is desirable to increase the degree of color reduction and coarsely reduce the color in order to improve the processing speed. . By doing so, the time of the color reduction processing can be shortened.

【0078】図13は、図4のステップS05で行なわ
れる領域別画像処理の流れを示すフローチャートであ
る。図13を参照して、領域別画像処理では、領域属性
が「写真」か否かを判断する(ステップS51)。領域
属性が写真である場合にはステップS52に進み、そう
でない場合にはステップS53に進む。ステップS52
では、領域属性が「写真」とされた写真属性の領域に対
してJPEG方式で圧縮処理を行ない、処理を終了す
る。
FIG. 13 is a flowchart showing a flow of the image processing for each area performed in step S05 of FIG. Referring to FIG. 13, in the image processing for each area, it is determined whether or not the area attribute is “photo” (step S51). If the area attribute is a photograph, the process proceeds to step S52; otherwise, the process proceeds to step S53. Step S52
Then, the compression process is performed by the JPEG method on the region of the photograph attribute whose region attribute is set to “photo”, and the process ends.

【0079】ステップS53では、領域属性が「弱減色
線画」か否かを判断する。領域属性が「弱減色線画」と
判断された場合にはステップS54に進み、そうでない
場合にはステップS55に進む。ステップS54では、
減色度を小さくして、処理後の画像の色数を多めにした
減色処理を行なう。そしてステップS58に進む。
In the step S53, it is determined whether or not the area attribute is "lightly reduced color line drawing". If it is determined that the area attribute is “weakly-colored line drawing”, the process proceeds to step S54; otherwise, the process proceeds to step S55. In step S54,
The color reduction processing is performed by reducing the degree of color reduction and increasing the number of colors of the processed image. Then, the process proceeds to step S58.

【0080】ステップS55では、領域属性が「中減色
線画」か否かが判断される。領域属性が「中減色線画」
と判断された場合には、ステップS56に進み、そうで
ない場合にはステップS57に進む。ステップS56で
は、減色度を中程度にした減色後の画像の色数を中程度
にした減色処理が行なわれる。そしてステップS58に
進む。
In step S55, it is determined whether or not the area attribute is "middle-colored line image". Area attribute is `` Medium color line drawing ''
If determined to be, the process proceeds to step S56; otherwise, the process proceeds to step S57. In step S56, a color reduction process is performed in which the number of colors of the image after the color reduction is set to a medium level with the color reduction degree being set to a medium level. Then, the process proceeds to step S58.

【0081】ステップS57では、減色度を大きくした
減色処理後の画像の色数を少なめにする減色処理が行な
われる。そしてステップS58に進む。ステップS58
では、減色処理が施された画像をPNG方式で圧縮し、
処理を終了する。
In step S57, color reduction processing is performed to reduce the number of colors of the image after the color reduction processing with the color reduction degree increased. Then, the process proceeds to step S58. Step S58
Then, the image that has been subjected to the color reduction processing is compressed by the PNG method,
The process ends.

【0082】減色処理は、RGB空間を均等に分割して
いく既存の第1の減色方法が用いられる。この減色処理
において減色処理の度合を変更して、度合の大きい強減
色処理、度合が中程度の中減色処理、度合が小さい弱減
色処理を行なうには、RGB空間を均等に分割する分割
数を変更することにより分割数を多くした強減色処理、
少なくした弱減色処理、それらの中間の数にした中減色
処理を行なうことができる。また、減色処理には、ヒス
トグラムを用いて各画素値の度数に応じて色の割当てを
変える第2の減色方法がある。この第2の減色方法にお
いて、減色処理の度合を変えるには、色の割当て数を変
えることにより、割当て数を多くした弱減色処理、少な
くした強減色処理、それらの中間の数にした中減色処理
を行なうことができる。
For the color reduction processing, the existing first color reduction method for equally dividing the RGB space is used. In this color reduction processing, the degree of the color reduction processing is changed, and in order to perform the strong color reduction processing with a large degree, the medium color reduction processing with a medium degree, and the weak color reduction processing with a small degree, the number of divisions into which the RGB space is equally divided is determined. Strong color reduction processing that increases the number of divisions by changing
It is possible to perform reduced weak color reduction processing and intermediate color reduction processing with an intermediate number between them. In the color reduction processing, there is a second color reduction method in which color assignment is changed according to the frequency of each pixel value using a histogram. In the second color reduction method, the degree of the color reduction processing is changed by changing the number of colors to be assigned, so that the number of allocated colors is reduced, the number of allocated colors is reduced, the number of colors is reduced, and the number of colors is reduced. Processing can be performed.

【0083】なお、上述した階調度に応じて減色処理の
度合を変えるようにしてもよい。この場合には、第1の
減色方法における色空間の分割数や第2の減色方法にお
ける色の割当て数、あるいは色空間において近い色をま
とめるときのしきい値などを階調度の関数にして、連続
的に減色度を変更する。このように階調度に応じて減色
度を変更する場合には、領域の属性が、写真、弱減色線
画、中減色線画および強減色線画のいずれであるかを判
別する必要がない。減色度が0の場合に、写真属性と判
別することができ、減色度が0でない場合には、その減
色度に従って減色処理を施すようにすればよい。
The degree of the color reduction processing may be changed in accordance with the above-mentioned gradation. In this case, the number of divisions of the color space in the first color reduction method, the number of colors to be allocated in the second color reduction method, or a threshold value for grouping close colors in the color space, etc., are used as a function of the gradient. Continuously change the degree of color reduction. When the color reduction degree is changed in accordance with the gradation in this way, it is not necessary to determine whether the attribute of the area is a photograph, a weakly-colored line drawing, a medium-colored line drawing, or a strongly-colored line drawing. When the degree of color reduction is 0, it can be determined as a photograph attribute. When the degree of color reduction is not 0, color reduction processing may be performed according to the degree of color reduction.

【0084】図14は、領域サイズおよび階調度と領域
属性との関係を示す第2の図である。図14を参照し
て、領域属性が「写真」の領域は、領域サイズが大きく
なるほど階調度のとり得る値が大きくなる。したがっ
て、領域サイズが大きくなるほど領域属性が写真と判別
されやすくなる。
FIG. 14 is a second diagram showing the relationship between the area size and the gradient and the area attribute. Referring to FIG. 14, in a region having a region attribute of “photo”, the larger the region size, the larger the possible value of the gradient is. Therefore, as the region size increases, the region attribute is more likely to be determined as a photograph.

【0085】領域属性が弱減色線画の領域は、領域サイ
ズが小さくなるほど階調度のとり得る値が大きくなる。
したがって、属性が線画属性と判別される領域のうち、
領域サイズが小さいほど減色度を小さくした弱減色線画
と判別されやすくなる。
In a region of a weakly-colored line image having a region attribute, the smaller the region size, the larger the value that the gradient can take.
Therefore, of the regions whose attributes are determined to be line drawing attributes,
The smaller the area size, the easier it is to discriminate a weak color-reduced line image in which the degree of color reduction is reduced.

【0086】また、領域属性が強減色線画、中減色線画
および弱減色線画を合わせた線画属性の領域における強
減色線画は、領域サイズが大きくなるほど階調度の占め
る割合が大きくなる。したがって、領域属性が線画属性
とされる領域は、領域サイズが大きくなるほど強減色線
画と判別されやすくなる。
Further, in a strongly reduced color line drawing in a region having a line drawing attribute in which a region attribute is a combination of a strongly reduced color drawing, a middle reduced color drawing, and a weakly reduced color drawing, the proportion of the gradient increases as the region size increases. Accordingly, a region whose region attribute is the line drawing attribute is likely to be determined as a strongly reduced color line drawing as the region size increases.

【0087】以上説明したように本実施の形態のおける
デジタルカメラ1では、領域サイズと階調度とに基づき
領域の属性を判別するので、減色処理を必要とする線画
領域と減色処理を必要としない写真領域との判別を、減
色処理の処理速度を考慮して判別することができる。そ
の結果、処理速度を向上したデジタルカメラ1を提供す
ることができる。
As described above, in the digital camera 1 according to the present embodiment, since the attribute of the area is determined based on the area size and the gradient, the line drawing area requiring the color reduction processing and the color reduction processing are not required. The determination as to the photographic area can be made in consideration of the processing speed of the color reduction processing. As a result, the digital camera 1 with an improved processing speed can be provided.

【0088】また、領域属性を減色処理を必要とする線
画属性と判別する場合であっても、領域サイズと階調度
とに応じて減色処理の度合を示す減色度を変更するよう
にしている。減色処理において、減色度が大きいほど処
理速度は速くなり、小さいほど処理速度が遅くなる。ま
た、減色度が大きいほど画質に与える影響が大きく、減
色度が小さいほど画質に与える影響は小さい。特に、階
調がなだらかに変化する画像であるが写真属性なのか線
画属性なのかの判断が困難な領域においては、その領域
を線画属性と判断する場合に、減色度を小さくするの
で、画質が低下するのを防止することができる。また、
領域サイズが大きくなるほど減色度を大きくした強減色
線画と判別される割合が大きくなるので、領域属性を線
画属性と判別する場合であっても、その領域に対して行
なう減色処理の時間は短くなる。この結果、減色処理の
時間と、減色処理後の画像の画質とを考慮して、減色処
理を行なう場合の減色度を決定することができる。
Further, even when the area attribute is determined to be a line drawing attribute requiring color reduction processing, the color reduction degree indicating the degree of the color reduction processing is changed according to the area size and the gradation. In the color reduction processing, the processing speed increases as the degree of color reduction increases, and the processing speed decreases as the degree of color reduction decreases. The larger the degree of color reduction, the greater the effect on image quality, and the smaller the degree of color reduction, the smaller the effect on image quality. In particular, in an area in which the gradation changes gradually but it is difficult to determine whether the attribute is a photograph attribute or a line drawing attribute, when the area is determined to be a line drawing attribute, the degree of color reduction is reduced. It can be prevented from lowering. Also,
The larger the area size, the greater the ratio of being determined to be a strongly reduced color line drawing with a large degree of color reduction, so that even when the area attribute is determined to be a line drawing attribute, the time of the color reduction processing performed on the area is reduced. . As a result, the degree of color reduction when performing the color reduction processing can be determined in consideration of the time of the color reduction processing and the image quality of the image after the color reduction processing.

【0089】なお、本実施の形態においては、図3に示
すハード構成で減色処理を施す形態としたが、図4、図
5、図11、および図13に示すフローチャートをプロ
グラムで記載し、そのプログラムをCPU100で実行
するようにしてもよい。この場合には、そのプログラム
をCD−ROM124に記憶し、記憶されたプログラム
を外部記憶装置122で読込むことになる。
In the present embodiment, the color reduction processing is performed by the hardware configuration shown in FIG. 3. However, the flowcharts shown in FIGS. 4, 5, 11, and 13 are described in a program, and The program may be executed by the CPU 100. In this case, the program is stored in the CD-ROM 124, and the stored program is read by the external storage device 122.

【0090】今回開示された実施の形態はすべての点で
例示であって制限的なものではないと考えられるべきで
ある。本発明の範囲は上記した説明ではなくて特許請求
の範囲によって示され、特許請求の範囲と均等の意味お
よび範囲内でのすべての変更が含まれることが意図され
る。
The embodiments disclosed this time are to be considered in all respects as illustrative and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

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

【図1】 本発明の実施の形態の1つにおけるデジタル
カメラ1と撮像対象である原稿2との関係を示す図であ
る。
FIG. 1 is a diagram illustrating a relationship between a digital camera 1 and a document 2 to be imaged according to one embodiment of the present invention.

【図2】 デジタルカメラ1をレンズ側から見た斜視図
である。
FIG. 2 is a perspective view of the digital camera 1 as viewed from a lens side.

【図3】 デジタルカメラ1の回路構成を示すブロック
図である。
FIG. 3 is a block diagram showing a circuit configuration of the digital camera 1.

【図4】 デジタルカメラ1で行なわれる画像処理の流
れを示すフローチャートである。
FIG. 4 is a flowchart showing a flow of image processing performed by the digital camera 1.

【図5】 図4のステップS02で行なわれる領域分割
処理の流れを示すフローチャートである。
FIG. 5 is a flowchart showing a flow of a region dividing process performed in step S02 of FIG. 4;

【図6】 RAM108に記憶された画像の一例を示す
図である。
FIG. 6 is a diagram showing an example of an image stored in a RAM 108.

【図7】 画像150を膨脹させた膨脹画像160を示
す図である。
FIG. 7 is a diagram showing an expanded image 160 obtained by expanding the image 150.

【図8】 膨脹画像160に外接矩形化処理を施す様子
を示した図である。
FIG. 8 is a diagram showing a state where circumscribed rectangle processing is performed on an expanded image 160;

【図9】 領域判別部112の詳細な構成を示すブロッ
ク図である。
FIG. 9 is a block diagram illustrating a detailed configuration of an area determination unit 112.

【図10】 図4のステップS03で行なわれる局所領
域判別処理の流れを示すフローチャートである。
FIG. 10 is a flowchart showing the flow of a local area determination process performed in step S03 of FIG.

【図11】 図4のステップS04で行なわれる属性判
別処理の流れを示すフローチャートである。
FIG. 11 is a flowchart showing a flow of an attribute determination process performed in step S04 of FIG.

【図12】 領域サイズおよび階調度と領域属性との関
係を示す第1の図である。
FIG. 12 is a first diagram illustrating a relationship between a region size and a gradient and a region attribute.

【図13】 図4のステップS05で行なわれる領域別
画像処理の流れを示すフローチャートである。
FIG. 13 is a flowchart showing a flow of region-based image processing performed in step S05 of FIG. 4;

【図14】 領域サイズおよび階調度と領域属性との関
係を示す第2の図である。
FIG. 14 is a second diagram illustrating a relationship between a region size and a gradient and a region attribute.

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

1 デジタルカメラ、100 CPU、104 CC
D、108 RAM、110 領域分割部、112 領
域判別部、114 適応補正部、116 圧縮部、11
8 画像合成部、120 カードメモリ部、122 外
部記憶装置、124 CD−ROM。
1 digital camera, 100 CPU, 104 CC
D, 108 RAM, 110 area dividing section, 112 area determining section, 114 adaptive correcting section, 116 compressing section, 11
8 Image synthesis section, 120 card memory section, 122 external storage device, 124 CD-ROM.

フロントページの続き Fターム(参考) 5B057 AA20 CA01 CC01 CE11 DA08 DA20 DB05 DB06 DC04 DC23 5C077 LL18 LL19 MP08 PP27 PP28 PP32 PP37 PP47 PP60 PP65 PQ08 PQ20 RR21 TT09 5L096 AA02 BA07 CA02 EA02 EA13 FA19 FA44 FA45 FA46 FA59 GA08 GA40 GA43 GA51 9A001 HH23 KK42 Continued on the front page F term (reference) 5B057 AA20 CA01 CC01 CE11 DA08 DA20 DB05 DB06 DC04 DC23 5C077 LL18 LL19 MP08 PP27 PP28 PP32 PP37 PP47 PP60 PP65 PQ08 PQ20 RR21 TT09 5L096 AA02 BA07 CA02 EA02 EA13 FA19 FA44 GA45 FA45 9A001 HH23 KK42

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像のサイズを検出する第1
の検出手段と、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出手段と、 前記第1の検出手段からのサイズを表わすサイズデータ
および前記第2の検出手段からの特徴データにしたがっ
て、複数の予め定められた属性のうちから前記画像に対
応する属性を決定する属性決定手段とを備えた、画像処
理装置。
1. A first method for detecting a size of an input image.
Detection means, second detection means for detecting feature data representing characteristics of the image based on pixel values of the image, size data representing the size from the first detection means, and the second detection means And an attribute determining means for determining an attribute corresponding to the image from among a plurality of predetermined attributes according to the characteristic data from the image processing apparatus.
【請求項2】 前記属性決定手段は、前記サイズデータ
および前記特徴データの大きさにより定まる基準値にし
たがって前記属性を決定し、 前記基準値は前記サイズデータおよび前記特徴データの
大きさが相反関係となる基準値を含むことを特徴とす
る、請求項1に記載の画像処理装置。
2. The attribute determining means determines the attribute according to a reference value determined by the size of the size data and the feature data, and the reference value is a reciprocal relation between the size of the size data and the size of the feature data. 2. The image processing apparatus according to claim 1, wherein the image processing apparatus includes a reference value.
【請求項3】 前記画像に対して画素値を制限する制限
処理を実行する制限処理手段と、 前記第1の検出手段からのサイズを表わすサイズデータ
および前記第2の検出手段からの特徴データにしたがっ
て、前記画像に対応する前記制限処理の度合を決定する
度合決定手段とを備え、 前記制限処理手段は、前記度合決定手段により決定され
た度合にしたがって前記制限処理を実行することを特徴
とする、請求項1または2に記載の画像処理装置。
3. Limiting means for executing limiting processing for limiting a pixel value to the image, and size data representing a size from the first detecting means and feature data from the second detecting means. Therefore, the image processing apparatus further comprises a degree determination unit that determines a degree of the restriction processing corresponding to the image, wherein the restriction processing unit executes the restriction processing according to the degree determined by the degree determination unit. The image processing apparatus according to claim 1.
【請求項4】 入力された画像に対して画素値を制限す
る制限処理を実行する制限処理手段と、 前記画像のサイズを検出する第1の検出手段と、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出手段と、 前記第1の検出手段からのサイズを表わすサイズデータ
および前記第2の検出手段からの特徴データにしたがっ
て、前記画像に対応する前記制限処理の度合を決定する
度合決定手段とを備え、 前記制限処理手段は、前記度合決定手段により決定され
た度合にしたがって前記制限処理を実行することを特徴
とする、画像処理装置。
4. A restriction processing unit for performing a restriction process for restricting a pixel value for an input image, a first detection unit for detecting a size of the image, and the image based on a pixel value of the image. Second detecting means for detecting characteristic data representing the characteristic of the image, and the size corresponding to the image in accordance with the size data representing the size from the first detecting means and the characteristic data from the second detecting means. An image processing apparatus comprising: a degree determination unit that determines a degree of processing; wherein the restriction processing unit executes the restriction processing according to the degree determined by the degree determination unit.
【請求項5】 前記度合は、前記サイズデータが大きい
ほど大きな値に決定されやすいことを特徴とする、請求
項3または4に記載の画像処理装置。
5. The image processing apparatus according to claim 3, wherein the degree is easily determined to be a larger value as the size data is larger.
【請求項6】 前記度合は、前記サイズデータが小さい
ほど小さな値に決定されやすいことを特徴とする、請求
項3〜5のいずれかに記載の画像処理装置。
6. The image processing apparatus according to claim 3, wherein the degree is determined to be smaller as the size data is smaller.
【請求項7】 入力された画像に対して画素値を制限す
る制限処理を実行する制限処理手段と、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する検出手段と、 前記検出手段からの特徴データにしたがって、前記画像
に対応する前記制限処理の度合を決定する前記度合決定
手段とを備え、 前記制限処理手段は、前記度合決定手段により決定され
た度合にしたがって前記制限処理を実行することを特徴
とする、画像処理装置。
7. A restriction processing unit for performing a restriction process for restricting a pixel value for an input image; a detection unit for detecting characteristic data representing a characteristic of the image based on a pixel value of the image; And a degree determining unit that determines a degree of the limiting process corresponding to the image according to the characteristic data from the detecting unit, wherein the limiting processing unit performs the limiting process according to the degree determined by the degree determining unit. And an image processing device.
【請求項8】 入力された画像のサイズを検出する第1
の検出ステップと、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出ステップと、 前記第1の検出ステップにより検出されたサイズを表わ
すサイズデータおよび前記第2の検出ステップにより検
出された特徴データにしたがって、複数の予め定められ
た属性のうちから前記画像に対応する属性を決定する属
性決定ステップとを含む、画像処理方法。
8. A first method for detecting a size of an input image.
A second detection step of detecting feature data representing a feature of the image based on a pixel value of the image; a size data representing a size detected by the first detection step; An attribute determining step of determining an attribute corresponding to the image from among a plurality of predetermined attributes according to the feature data detected by the detecting step.
【請求項9】 入力された画像に対して画素値を制限す
る制限処理を実行するための画像処理方法であって、 前記画像のサイズを検出する第1の検出ステップと、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出ステップと、 前記第1の検出ステップにより検出されたサイズを表わ
すサイズデータおよび前記第2の検出ステップにより検
出された特徴データにしたがって、前記画像に対応する
前記制限処理の度合を決定する度合決定ステップと、 前記度合決定ステップにより決定された度合にしたがっ
て、前記画像に対して前記制限処理を実行する制限処理
ステップとを含む、画像処理方法。
9. An image processing method for executing a restriction process for restricting a pixel value for an input image, comprising: a first detection step of detecting a size of the image; and a pixel value of the image. A second detection step of detecting feature data representing a feature of the image based on the size data representing the size detected by the first detection step and the feature data detected by the second detection step. A degree determination step of determining a degree of the restriction processing corresponding to the image; and a restriction processing step of executing the restriction processing on the image according to the degree determined by the degree determination step. Processing method.
【請求項10】 入力された画像のサイズを検出する第
1の検出ステップと、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出ステップと、 前記第1の検出ステップにより検出されたサイズを表わ
すサイズデータおよび前記第2の検出ステップにより検
出された特徴データにしたがって、複数の予め定められ
た属性のうちから前記画像に対応する属性を決定する属
性決定ステップとを、コンピュータに実行させるための
画像処理プログラムを記録したコンピュータ読取可能な
記録媒体。
10. A first detection step for detecting a size of an input image, a second detection step for detecting feature data representing a feature of the image based on a pixel value of the image, and the first detection step. An attribute determining step of determining an attribute corresponding to the image from among a plurality of predetermined attributes in accordance with size data representing the size detected by the detecting step and feature data detected by the second detecting step; And a computer-readable recording medium storing an image processing program for causing a computer to execute the program.
【請求項11】 画像に対して画素値を制限する制限処
理を実行するための画像処理プログラムを記録したコン
ピュータ読取可能な記録媒体であって、 入力された画像のサイズを検出する第1の検出ステップ
と、 前記画像の画素値に基づき前記画像の特徴を表わす特徴
データを検出する第2の検出ステップと、 前記第1の検出ステップにより検出されたサイズを表わ
すサイズデータおよび前記第2の検出ステップにより検
出された特徴データにしたがって、前記画像に対応する
前記制限処理の度合を決定する度合決定ステップと、 前記度合決定ステップにより決定された度合にしたがっ
て、前記画像に対して前記制限処理を実行する制限処理
ステップとを、コンピュータに実行させるための画像処
理プログラムを記録したコンピュータ読取可能な記録媒
体。
11. A computer-readable recording medium recording an image processing program for executing a restriction process for restricting a pixel value to an image, wherein a first detection for detecting a size of the input image is performed. A second detection step of detecting feature data representing a feature of the image based on pixel values of the image; a size data representing a size detected by the first detection step; and the second detection step Determining a degree of the restriction processing corresponding to the image according to the characteristic data detected by the step (c), and executing the restriction processing on the image according to the degree determined by the degree determination step. Computer-readable recording of an image processing program for causing a computer to execute the restriction processing step Capacity recording medium.
JP31934499A 1999-11-10 1999-11-10 Image processor, image processing method and computer- readable recording medium in which image processing program is recorded Pending JP2001143074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31934499A JP2001143074A (en) 1999-11-10 1999-11-10 Image processor, image processing method and computer- readable recording medium in which image processing program is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31934499A JP2001143074A (en) 1999-11-10 1999-11-10 Image processor, image processing method and computer- readable recording medium in which image processing program is recorded

Publications (1)

Publication Number Publication Date
JP2001143074A true JP2001143074A (en) 2001-05-25

Family

ID=18109120

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31934499A Pending JP2001143074A (en) 1999-11-10 1999-11-10 Image processor, image processing method and computer- readable recording medium in which image processing program is recorded

Country Status (1)

Country Link
JP (1) JP2001143074A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7729025B2 (en) 2003-11-11 2010-06-01 Fujitsu Limited Color image compressing method and device
JP2010157811A (en) * 2008-12-26 2010-07-15 Konica Minolta Business Technologies Inc Image processing device, data amount reduction method, and data amount reduction program
WO2017009910A1 (en) * 2015-07-10 2017-01-19 楽天株式会社 Electronic book display device, electronic book display method, and program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7729025B2 (en) 2003-11-11 2010-06-01 Fujitsu Limited Color image compressing method and device
JP2010157811A (en) * 2008-12-26 2010-07-15 Konica Minolta Business Technologies Inc Image processing device, data amount reduction method, and data amount reduction program
JP4725645B2 (en) * 2008-12-26 2011-07-13 コニカミノルタビジネステクノロジーズ株式会社 Image processing apparatus, data amount reduction method, and data amount reduction program
US8467085B2 (en) 2008-12-26 2013-06-18 Konica Minolta Business Technologies, Inc. Image processing apparatus, data amount reducing method, and data amount reducing program embodied on computer readable medium
WO2017009910A1 (en) * 2015-07-10 2017-01-19 楽天株式会社 Electronic book display device, electronic book display method, and program
WO2017010351A1 (en) * 2015-07-10 2017-01-19 楽天株式会社 Image processing device, image processing method, and program
JPWO2017009910A1 (en) * 2015-07-10 2017-07-13 楽天株式会社 Electronic book display device, electronic book display method, and program
JPWO2017010351A1 (en) * 2015-07-10 2018-03-08 楽天株式会社 Image processing apparatus, image processing method, and program
TWI633498B (en) * 2015-07-10 2018-08-21 日商樂天股份有限公司 Image processing device, image processing method, and program product
US10572759B2 (en) 2015-07-10 2020-02-25 Rakuten, Inc. Image processing device, image processing method, and program

Similar Documents

Publication Publication Date Title
US6735341B1 (en) Image processing device and method and recording medium for recording image processing program for same
JP4042563B2 (en) Image noise reduction
EP1918872B1 (en) Image segmentation method and system
US6628833B1 (en) Image processing apparatus, image processing method, and recording medium with image processing program to process image according to input image
US8059892B1 (en) Image enhancement method and apparatus
EP1984892B1 (en) Foreground/background segmentation in digital images
JP4248812B2 (en) Digital image processing method for brightness adjustment
CN108241645B (en) Image processing method and device
US7457432B2 (en) Specified object detection apparatus
US20080298704A1 (en) Face and skin sensitive image enhancement
JP5251629B2 (en) Image processing apparatus, imaging apparatus, image processing method, and computer program
EP1868374A2 (en) Image processing apparatus, image capture apparatus, image output apparatus, and method and program for these apparatus
US8363909B2 (en) Image processing apparatus, image processing method, and computer program product
US20140079319A1 (en) Methods for enhancing images and apparatuses using the same
JP2010525486A (en) Image segmentation and image enhancement
JP3820751B2 (en) Image processing apparatus and method, and recording medium on which image processing program is recorded
US7003160B2 (en) Image processing apparatus, image processing method, and computer readable recording medium recording image processing program for processing image obtained by picking up or reading original
JP2000013596A (en) Device and method for processing image and recording medium with image processing program recorded there
JP2001143074A (en) Image processor, image processing method and computer- readable recording medium in which image processing program is recorded
RU2338252C1 (en) Method that prevents printing of out of focus pictures
JP4219577B2 (en) Image processing apparatus, image output apparatus, image processing method, and storage medium
JP2000013612A (en) Device and method for image processing and recording medium recorded with image processing program
US8131101B2 (en) Image processing method and image processing apparatus
JP4659354B2 (en) Image processing method and apparatus
JP2000276581A (en) Device and method for image processing, and recording medium with image processing program recorded thereon

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050614