Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4136918B2 - Image processing apparatus, image processing method, and image processing program - Google Patents
[go: Go Back, main page]

JP4136918B2 - Image processing apparatus, image processing method, and image processing program - Google Patents

Image processing apparatus, image processing method, and image processing program Download PDF

Info

Publication number
JP4136918B2
JP4136918B2 JP2003414631A JP2003414631A JP4136918B2 JP 4136918 B2 JP4136918 B2 JP 4136918B2 JP 2003414631 A JP2003414631 A JP 2003414631A JP 2003414631 A JP2003414631 A JP 2003414631A JP 4136918 B2 JP4136918 B2 JP 4136918B2
Authority
JP
Japan
Prior art keywords
image
processing
group
integrated
specifying information
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
JP2003414631A
Other languages
Japanese (ja)
Other versions
JP2005174070A (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.)
ATR Advanced Telecommunications Research Institute International
Original Assignee
ATR Advanced Telecommunications Research Institute International
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 ATR Advanced Telecommunications Research Institute International filed Critical ATR Advanced Telecommunications Research Institute International
Priority to JP2003414631A priority Critical patent/JP4136918B2/en
Publication of JP2005174070A publication Critical patent/JP2005174070A/en
Application granted granted Critical
Publication of JP4136918B2 publication Critical patent/JP4136918B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

本発明は、画像データに対して所定の加工、例えば、絵画風の加工を行う画像加工装置、画像加工方法及び画像加工プログラムに関するものである。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program for performing predetermined processing, for example, painting-like processing, on image data.

従来、写真画像をスキャナにより読み込み、読み込んだ画像データに対して、画素の色を変える色変換処理及び画像をひずませるひずみ変換処理等の種々の画像加工処理が行われている。例えば、入力された画像データとその画像データを領域分割した分割結果から、画素を分割領域ごとにグループに分け、それぞれのグループごとにグループ特徴を計算して記憶し、記憶したグループ特徴を基にそのグループの周囲のグループのグループ特徴を参考にしながらグループ特徴を加工し、加工したグループ特徴から新たに画素を構成することにより、絵画の筆触に対応する画素のグループを変換の単位として、画像データに新しくかつ豊富な表現を自動的に付与する画像加工合成装置が開発されている(特許文献1参照)。この場合、グループごとに特徴をまとめ、そのグループを単位として特徴を加工し、加工された特徴を保存するようにグループに画素を割り付けて画像を構成しているため、グループを筆触に見立てることができ、写真画像などの原画像を様々な筆触の画像に加工することができる。
特開平10−11569号公報(第3−9頁、図1−14)
2. Description of the Related Art Conventionally, various image processing processes such as a color conversion process for changing a pixel color and a distortion conversion process for distorting an image are performed on a read image data by a scanner. For example, from the input image data and the result of dividing the image data into regions, the pixels are divided into groups for each divided region, group features are calculated and stored for each group, and based on the stored group features By processing the group features with reference to the group features of the surrounding groups, and constructing new pixels from the processed group features, the pixel data corresponding to the stroke of the painting is used as the unit of conversion for the image data. An image processing / synthesizing apparatus has been developed that automatically assigns new and abundant expressions (see Patent Document 1). In this case, since the features are grouped for each group, the features are processed in units of the group, and the pixels are assigned to the group so as to save the processed features, so that the group can be regarded as a brush. It is possible to process an original image such as a photographic image into various brush-touch images.
JP-A-10-11569 (page 3-9, FIG. 1-14)

しかしながら、上記の画像加工合成装置では、ユーザが自身の画風を表現することはできるが、他人が加工した加工画像が気に入った場合でも、原画像から加工画像を作成する際の処理手順が分からないため、他人が加工した作品の画風になるように画像を加工することは困難である。特に、画像加工合成装置を使用するための充分な知識を有していない初心者(素人)の場合、画像加工合成装置を使いこなすことはできず、他人が加工した作品の画風になるように画像を加工することはできない。   However, in the above-described image processing / synthesizing apparatus, the user can express his / her style of painting, but even if he likes the processed image processed by others, the processing procedure for creating the processed image from the original image is not known. For this reason, it is difficult to process an image so that it becomes a style of a work processed by others. In particular, for beginners (amateurs) who do not have sufficient knowledge to use the image processing / synthesizing device, the image processing / synthesizing device cannot be used. It cannot be processed.

本発明の目的は、他人が加工した加工画像が気に入った場合に当該加工画像の画風になるように画像を容易に加工することができる画像加工装置、画像加工方法及び画像加工プログラムを提供することである。   An object of the present invention is to provide an image processing apparatus, an image processing method, and an image processing program capable of easily processing an image so that the processed image is styled when someone likes a processed image processed by others. It is.

本発明に係る画像加工装置は、画像データに対して絵画風の加工を行う画像加工装置であって、画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得手段と、原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段と、前記特定情報記憶手段を参照して前記取得手段により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得手段により取得された対象画像を画像処理する画像処理手段とを備え、前記画像処理手段は、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出手段と、前記特徴量算出手段により算出された特徴量をグループ領域毎に記憶するグループ特徴記憶手段と、前記グループ特徴記憶手段に記憶されている特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合手段と、前記統合手段により統合された統合領域を記憶する統合領域記憶手段と、前記統合領域記憶手段に記憶されている統合領域を単位として対象画像に対して画像加工処理を行う加工手段とを含み、前記統合手段は、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合するものである。 An image processing apparatus according to the present invention is an image processing apparatus that performs image-like processing on image data, and includes a target image to be subjected to image processing and a processed image created by performing image processing on an original image. Corresponding processing description describing the processing procedure when creating a processed image from the original image and processing description specifying information for specifying the processing description, the acquisition means for acquiring the processed image specifying information for specifying stores in advance Te, a specific information storage means for storing in advance in association with processing image identification information of processed image created by the processing described specified by the process description specifying information and the processing description specification information, the specific by referring to the information storage means to identify the processing description specifying information associated with the acquired processed image identification information by the acquisition unit, identified by the specified processing description specification information And image processing means for image processing the target image acquired by the acquisition unit using a physical description, the image processing means, of the group area for each group area by dividing the target image into a plurality of groups regions Based on the feature quantity calculation means for calculating the feature quantity, the group feature storage means for storing the feature quantity calculated by the feature quantity calculation means for each group area, and the feature quantity stored in the group feature storage means An integration unit that integrates a plurality of group regions to create a plurality of integration regions, an integration region storage unit that stores the integration region integrated by the integration unit, and an integration region that is stored in the integration region storage unit A processing unit that performs an image processing process on the target image as a unit, and the integration unit uses the feature amount stored in the group feature storage unit, A region in which the difference in feature amount between adjacent group regions is smaller than the first threshold and the number of group regions is equal to or greater than the first number is integrated as a first integrated region, and is further stored in the group feature storage unit. A feature amount difference between adjacent group regions is smaller than the first threshold, the number of group regions is equal to or greater than a second number less than the first number, and an integrated region A second threshold whose average value of a difference between a group region feature amount of a predetermined ratio or more and a group region feature amount in an adjacent integrated region is equal to or greater than the first threshold value The larger area is integrated as the second integrated area .

本発明に係る画像加工装置では、画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とが取得され、原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、処理記述特定情報と当該処理記述特
定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段を参照して、加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて対象画像を画像処理しているので、他人が加工した加工画像の加工画像特定情報を用いて当該加工画像の画風になるように対象画像を自動的に加工することができ、他人が加工した加工画像が気に入った場合に当該加工画像の画風になるように画像を容易に加工することができる。
また、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出し、算出した特徴量をグループ領域毎に記憶し、記憶している特徴量を基に複数のグループ領域を統合して複数の統合領域を作成し、統合された統合領域を単位として画像加工処理が行われるので、デザインとして必要な統一感の高い領域や対比効果の高い領域を抽出したり、グラデーションのある領域を一つの領域に統合することができ、対象画像に複数の表現を与える際に各表現を与える領域を簡便且つ不自然さなく優先順位を付けて抽出することができる。
さらに、記憶されている特徴量を用いて、隣接するグループ領域の特徴量の差が第1の閾値以下であり且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合しているので、広い範囲で統一感の高い領域を第1の統合領域として抽出することができ、グラデーションのある領域も一つの領域に統合することができる。また、記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく、そのグループ領域数が第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合しているので、狭い範囲で対比効果の高い領域を第2の統合領域として抽出することができる。
In the image processing apparatus according to the present invention, a target image to be subjected to image processing and processed image specifying information for specifying a processed image created by performing image processing on the original image are acquired, and the processed image is acquired from the original image. The process description describing the process procedure for creating the process is stored in advance in association with the process description specifying information for specifying the process description, and the process specified by the process description specifying information and the process description specifying information A process for specifying and specifying the process description specifying information associated with the processed image specifying information with reference to the specific information storage means that stores the processed image specifying information of the processed image created in accordance with the description in advance Since the target image is image-processed using the process description specified by the description specifying information, the processed image specifying information of the processed image processed by another person is used as the style of the processed image. Uni target image can be automatically processed, can be easily processed image so that the painting style of the processed image when you like is processed image by others processed.
Further, the target image is divided into a plurality of group areas, the feature amount of the group area is calculated for each group area, the calculated feature amount is stored for each group area, and a plurality of features are stored based on the stored feature quantities. Group areas are integrated to create multiple integrated areas, and image processing is performed using the integrated areas as a unit, so you can extract areas with a high degree of unity and contrast that are necessary for design, A region having gradation can be integrated into one region, and when a plurality of expressions are given to the target image, the areas to which each expression is given can be extracted simply and prioritized without unnaturalness.
Furthermore, using the stored feature values, a region where the difference between the feature values of adjacent group regions is equal to or smaller than the first threshold and the number of group regions is equal to or greater than the first number is defined as a first integrated region. Since they are integrated, an area with a high sense of unity in a wide range can be extracted as the first integrated area, and an area with gradation can be integrated into one area. Further, using the stored feature amount, a difference in feature amount between adjacent group regions is smaller than a first threshold, and the number of group regions is equal to or more than a second number smaller than the first number, and A second value in which an average value of a difference between a group region feature amount of a predetermined ratio or more among a plurality of group regions located at the boundary of the integration region and a group region feature amount in an adjacent integrated region is equal to or greater than a first threshold value; Since the region larger than the threshold is integrated as the second integrated region, a region with a high contrast effect in a narrow range can be extracted as the second integrated region.

画像加工装置は、画像処理手段により作成された加工画像の加工画像特定情報を生成する加工画像用生成手段をさらに備え、特定情報記憶手段は、加工画像用生成手段により生成された加工画像特定情報を加工画像の作成時に使用した処理記述の処理記述特定情報に対応付けて新たに記憶することが好ましい。   The image processing device further includes processed image generation means for generating processed image specifying information of the processed image created by the image processing means, and the specific information storage means is processed image specifying information generated by the processed image generating means. Is preferably stored in association with the process description specifying information of the process description used when creating the processed image.

この場合、作成された加工画像に対して当該加工画像を特定するための加工画像特定情報が生成され、生成された加工画像特定情報が加工画像の作成時に使用した処理記述の処理記述特定情報に対応付けて新たに記憶されるので、作成された加工画像を自動的にデータベース化することができる。   In this case, processed image specifying information for specifying the processed image is generated with respect to the generated processed image, and the generated processed image specifying information is the processing description specifying information of the processing description used when the processed image is created. Since the correspondence is newly stored, the created processed image can be automatically made into a database.

取得手段は、ユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とを取得し、画像加工装置は、取得手段により取得された加工画像の加工画像特定情報を生成するとともに、取得手段により取得された処理記述の処理記述特定情報を生成する処理記述用生成手段をさらに備え、特定情報記憶手段は、処理記述用生成手段により生成された加工画像特定情報を当該加工画像特定情報とともに生成された処理記述特定情報に対応付けて新たに記憶することが好ましい。   The acquisition unit acquires the processed image created by the user and the processing description used when the processed image is created, and the image processing device generates processed image specifying information of the processed image acquired by the acquisition unit, and The processing description generating means for generating the processing description specifying information of the processing description acquired by the acquiring means is further provided, and the specifying information storage means uses the processed image specifying information generated by the processing description generating means as the processed image specifying information. It is preferable to newly store the information in association with the process description specifying information generated together.

この場合、ユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とが取得され、取得された加工画像に対して当該加工画像を特定するための加工画像特定情報が生成されるとともに、取得された処理記述に対して当該処理記述を特定するための処理記述特定情報が生成され、生成された加工画像特定情報が当該加工画像特定情報とともに生成された処理記述特定情報に対応付けて新たに記憶されるので、ユーザが作成した加工画像の処理記述を自動的にデータベース化することができる。   In this case, the processed image created by the user and the processing description used when creating the processed image are acquired, and processed image specifying information for specifying the processed image is generated for the acquired processed image. In addition, processing description specifying information for specifying the processing description is generated for the acquired processing description, and the generated processed image specifying information is associated with the processing description specifying information generated together with the processed image specifying information. Therefore, the processing description of the processed image created by the user can be automatically made into a database.

取得手段は、ユーザが作成した加工画像と、当該加工画像と一体に組み込まれた処理記述とを取得し、処理記述用生成手段は、取得手段により取得された加工画像の加工画像特定情報を生成するとともに、当該加工画像から処理記述を抽出し、抽出した処理記述の処理記述特定情報を生成することが好ましい。   The acquisition unit acquires the processed image created by the user and the processing description integrated with the processed image, and the generation unit for processing description generates processed image specifying information of the processed image acquired by the acquiring unit. In addition, it is preferable to extract a process description from the processed image and generate process description specifying information of the extracted process description.

この場合、ユーザが作成した加工画像と、当該加工画像と一体に組み込まれた処理記述とが取得され、取得された加工画像に対して当該加工画像を特定するための加工画像特定情報が生成されるとともに、当該加工画像から処理記述を抽出し、抽出した処理記述に対して当該処理記述を特定するための処理記述特定情報が生成されるので、加工画像と処理記述との区別を意識することなく、加工画像と処理記述とを取り扱うことができ、ユーザの負担を軽減することができる。   In this case, the processed image created by the user and the processing description integrated with the processed image are acquired, and processed image specifying information for specifying the processed image is generated for the acquired processed image. At the same time, the processing description is extracted from the processed image, and processing description specifying information for specifying the processing description is generated for the extracted processing description. Therefore, be aware of the distinction between the processed image and the processing description. Therefore, the processed image and the processing description can be handled, and the burden on the user can be reduced.

画像加工装置は、所定のネットワークを介してクライアントコンピュータと通信可能に接続されたサーバコンピュータを含み、取得手段は、クライアントコンピュータからユーザが選択した対象画像及び加工画像特定情報を取得することが好ましい。   It is preferable that the image processing apparatus includes a server computer that is communicably connected to the client computer via a predetermined network, and the acquisition unit acquires the target image selected by the user and the processed image specifying information from the client computer.

この場合、ユーザは、自身が使用するコンピュータをクライアントコンピュータとして使用し、サーバコンピュータによる画像処理サービスを受けることができるので、ネットワークとしてインターネット等の公衆ネットワークを使用して画像処理サービスを容易に享受することができる。   In this case, the user can use the computer he or she uses as a client computer and receive an image processing service by a server computer, so that the user can easily enjoy the image processing service using a public network such as the Internet as a network. be able to.

統合手段は、第1及び第2の統合領域を作成する処理を複数回繰り返し、繰り返し回数に応じて第1の閾値を増加させることが好ましい。この場合、処理の繰り返し回数に応じて第1の閾値が増加するので、デザインとして必要な統一感の高い領域や対比効果の高い領域を確実に抽出することができる。   The integration unit preferably repeats the process of creating the first and second integrated regions a plurality of times, and increases the first threshold according to the number of repetitions. In this case, since the first threshold value increases in accordance with the number of repetitions of the process, it is possible to reliably extract a region with a high sense of unity and a region with a high contrast effect necessary for the design.

統合手段は、繰り返し回数に応じて第1の個数を減少させることが好ましい。この場合、繰り返し回数に応じて第1の個数が減少するので、デザインとして必要な統一感の高い領域をより確実に抽出することができる。   The integration unit preferably decreases the first number according to the number of repetitions. In this case, since the first number decreases according to the number of repetitions, it is possible to more reliably extract a region with a high sense of unity necessary for the design.

統合手段は、繰り返し処理毎に第1の統合領域を計算した後に統合されていないグループ領域から第2の統合領域を作成することが好ましい。また、統合領域記憶手段は、繰り返される統合処理の中間結果を繰り返し回数分全て又はその一部をも含めて記憶していることが好ましい。   It is preferable that the integration unit creates the second integrated area from the group areas that are not integrated after calculating the first integrated area for each repetition process. Moreover, it is preferable that the integrated area storage means stores intermediate results of repeated integration processes, including all or a part of the number of repetitions.

特徴量は、グループ領域毎の平均色、グループ領域毎の画像上の位置及びグループ毎の画素数を含むことが好ましい。この場合、グループ領域毎の平均色を特徴量として色差に応じて統合領域を作成することができるので、デザインとして必要な統一感の高い領域や対比効果の高い領域を正確に抽出することができる。   The feature amount preferably includes an average color for each group region, a position on the image for each group region, and the number of pixels for each group. In this case, since an integrated area can be created according to the color difference using the average color for each group area as a feature quantity, it is possible to accurately extract areas with a high unity and a high contrast effect necessary for the design. .

本発明に係る画像加工方法は、コンピュータを用いて画像データに対して絵画風の加工を行う画像加工方法であって、前記コンピュータが、画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得ステップと、前記コンピュータが、原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段を参照して、前記取得ステップにおいて取得した加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得ステップにおいて取得した対象画像を画像処理する画像処理ステップとを含み、前記画像処理ステップは、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出ステップと、前記特徴量算出ステップにおいて算出された特徴量をグループ領域毎に記憶するグループ特徴記憶ステップと、前記グループ特徴記憶ステップにおいて記憶された特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合ステップと、前記統合ステップにおいて統合された統合領域を記憶する統合領域記憶ステップと、前記統合領域記憶ステップにおいて記憶された統合領域を単位として対象画像に対して画像加工処理を行う加工ステップとを含み、前記統合ステップは、前記グループ特徴記憶ステップにおいて記憶された特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶ステップにおいて記憶された特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合するステップを含むものである。 An image processing method according to the present invention is an image processing method for performing image- like processing on image data using a computer, wherein the computer performs image processing on a target image to be subjected to image processing and an original image. and an acquisition step of acquiring and processing image specifying information for specifying the processing image created by the computer, a processing description that describes a processing procedure for creating a processed image from the original image, the process described stores in advance in association with the processing description specification information for specifying a correspondence between processed image specifying information processed image created by the processing described specified by the process description specifying information and the processing description specification information referring to the specific information storage means for storing in advance Te, the obtained processed image processing description specific information associated with the identification information in the acquiring step JP And, viewed contains an image processing step of the image processing target image obtained in said obtaining step by using the process described specified by the identified processing description specification information, the image processing step, a target image a plurality of groups regions A feature amount calculating step for calculating the feature amount of the group region for each group region, a group feature storing step for storing the feature amount calculated in the feature amount calculating step for each group region, and the group feature An integration step of creating a plurality of integrated regions by integrating a plurality of group regions based on the feature values stored in the storage step, an integrated region storage step of storing the integrated regions integrated in the integration step, and the integration Image processing is performed on the target image in units of the integrated region stored in the region storage step. And the integration step uses the feature amount stored in the group feature storage step, and the feature amount difference between adjacent group regions is smaller than a first threshold and the number of group regions Are integrated as a first integrated region, and the feature amount stored in the group feature storage step is used to calculate a difference in feature amount between adjacent group regions. Less than the threshold value, and the number of group areas is equal to or greater than a second number smaller than the first number, and adjacent to the feature amount of the group area of a predetermined ratio or more among a plurality of group areas located at the boundary of the integrated area A step of integrating, as a second integrated region, a region in which the average value of the differences from the feature amounts of the group regions in the integrated region is larger than the second threshold equal to or greater than the first threshold. Including

本発明に係る画像加工プログラムは、画像データに対して絵画風の加工を行うための画像加工プログラムであって、画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得手段と、原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段と、前記特定情報記憶手段を参照して前記取得手段により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得手段により取得された対象画像を画像処理する画像処理手段としてコンピュータを機能させ、前記画像処理手段は、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出手段と、前記特徴量算出手段により算出された特徴量をグループ領域毎に記憶するグループ特徴記憶手段と、前記グループ特徴記憶手段に記憶されている特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合手段と、前記統合手段により統合された統合領域を記憶する統合領域記憶手段と、前記統合領域記憶手段に記憶されている統合領域を単位として対象画像に対して画像加工処理を行う加工手段とを含み、前記統合手段は、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合するものである。 An image processing program according to the present invention is an image processing program for performing painting-like processing on image data, and is a processing created by subjecting a target image to be subjected to image processing and an original image to image processing. An acquisition means for acquiring processed image specifying information for specifying an image and a processing description describing a processing procedure for creating a processed image from an original image are used as processing description specifying information for specifying the processing description. stores in advance in association, a specific information storage means for storing in advance in association with processing image identification information of processed image created by the processing described specified by the process description specifying information and the process description specifying information, identify the process description specifying information associated with the processed image specifying information acquired by referring to the acquisition means to the specifying information storing means, the specified process description certain information Cause the computer to function as an image processing means for image processing the target image acquired by the acquisition unit using a processing description specified by the image processing means, a group by dividing the target image into a plurality of groups area region A feature amount calculating means for calculating the feature amount of the group area for each group; a group feature storing means for storing the feature amount calculated by the feature amount calculating means for each group area; An integration unit that integrates a plurality of group regions based on the feature quantity, creates a plurality of integrated regions, an integrated region storage unit that stores the integrated region integrated by the integration unit, and stores the integrated region in the integrated region storage unit Processing means for performing an image processing process on the target image in units of the integrated region, wherein the integration means includes the group feature description. Using the feature amount stored in the means, a region where the difference in feature amount between adjacent group regions is smaller than a first threshold and the number of group regions is equal to or greater than the first number is defined as a first integrated region. Further, using the feature quantities stored in the group feature storage means, the difference in feature quantities between adjacent group areas is smaller than the first threshold, and the number of group areas is the first number. The average of the difference between the feature amount of the group region in the adjacent integrated region and the feature amount of the adjacent integrated region among the plurality of group regions located at the boundary of the integrated region that is equal to or smaller than the second number A region whose value is greater than a second threshold value equal to or greater than the first threshold value is integrated as a second integrated region .

本発明によれば、他人が加工した加工画像の加工画像特定情報を用いて当該加工画像の画風になるように対象画像を自動的に加工することができ、他人が加工した加工画像が気に入った場合に当該加工画像の画風になるように画像を容易に加工することができる。   According to the present invention, the target image can be automatically processed using the processed image specifying information of the processed image processed by another person so that the processed image becomes the style of the processed image. In this case, the image can be easily processed so that the image of the processed image is obtained.

以下、本発明の一実施の形態による画像加工装置である画像加工サーバについて図面を参照しながら説明する。図1は、本発明の一の実施の形態による画像加工サーバを用いた画像加工システムの構成を示すブロック図である。   Hereinafter, an image processing server which is an image processing apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an image processing system using an image processing server according to an embodiment of the present invention.

図1に示す画像加工システムは、クライアントコンピュータ1及び画像加工サーバ2を備え、クライアントコンピュータ1及び画像加工サーバ2は、ネットワーク3を介して相互に通信可能に接続される。クライアントコンピュータ1は、ユーザが画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを送信するために使用され、ユーザが入力した対象画像及び加工画像特定情報を画像加工サーバ2へネットワーク3を介して送信する。   The image processing system shown in FIG. 1 includes a client computer 1 and an image processing server 2, and the client computer 1 and the image processing server 2 are connected to each other via a network 3 so that they can communicate with each other. The client computer 1 is used for transmitting a target image to be processed by the user and processed image specifying information for specifying a processed image created by performing image processing on the original image. The target image and the processed image specifying information are transmitted to the image processing server 2 via the network 3.

ここで、対象画像としては、種々の画像データを用いることができ、RGB表色系、XYZ表色系、L*a*b*表色系等で表現される画像データを用いたり、1枚又は複数枚の画像データを用いてもよい。また、対象画像は、ユーザが作成した画像データ、写真画像データ等を含み、加工画像は、ユーザ以外の他人等が加工した画像データ等を含み、加工画像特定情報は、本画像加工サービスを提供する事業者等が加工画像に付与して管理するユニークなID番号等を含み、例えば、現実の展示会又は所定のホームページに加工画像とともに表示等されるものである。したがって、加工画像特定情報とともに展示された加工画像をユーザが気に入った場合、この加工画像特定情報を記憶等することにより、ユーザは気に入った加工画像の加工画像特定情報を取得することができる。   Here, various image data can be used as the target image, and image data expressed in the RGB color system, XYZ color system, L * a * b * color system, or the like can be used. Alternatively, a plurality of pieces of image data may be used. The target image includes image data and photographic image data created by the user, the processed image includes image data processed by others other than the user, and the processed image specifying information provides the image processing service. Including a unique ID number that is assigned to the processed image and managed by the operator or the like, and is displayed together with the processed image in an actual exhibition or a predetermined homepage, for example. Therefore, when the user likes the processed image displayed together with the processed image specifying information, the user can acquire the processed image specifying information of the favorite processed image by storing the processed image specifying information.

画像加工サーバ2は、対象画像及び加工画像特定情報を取得し、原画像から加工画像を作成する際のすべての処理手順を記述した処理記述を加工画像特定情報から特定し、特定した処理記述に記述されているすべての処理手順を用いて対象画像を画像処理した後、加工画像をクライアントコンピュータ1へネットワーク3を介して送信する。クライアントコンピュータ1は、受信した加工画像を表示等し、ユーザは加工画像を入手することができる。   The image processing server 2 acquires the target image and the processed image specifying information, specifies the processing description describing all the processing procedures when creating the processed image from the original image from the processed image specifying information, and uses the specified processing description. After subjecting the target image to image processing using all the described processing procedures, the processed image is transmitted to the client computer 1 via the network 3. The client computer 1 displays the received processed image and the user can obtain the processed image.

ネットワーク3としては、例えば、インターネットが使用され、TCP/IP(Transmission Control Protocol/Internet Protocol)に従いクライアントコンピュータ1及び画像加工サーバ2間で相互にデータ等が送受信される。なお、ネットワーク3としては、インターネットに特に限定されず、イントラネット等の他のネットワーク、または、インターネット、イントラネット等の種々のネットワークを組み合わせたネットワーク等を用いてもよい。また、ネットワークではなく、専用線等によりクライアントコンピュータ1及び画像加工サーバ2を相互に接続してもよい。   As the network 3, for example, the Internet is used, and data and the like are transmitted and received between the client computer 1 and the image processing server 2 according to TCP / IP (Transmission Control Protocol / Internet Protocol). The network 3 is not particularly limited to the Internet, and may be another network such as an intranet, or a network that is a combination of various networks such as the Internet or an intranet. Further, the client computer 1 and the image processing server 2 may be connected to each other by a dedicated line or the like instead of the network.

クライアントコンピュータ1は、ROM(リードオンリメモリ)、CPU(中央演算処理装置)、RAM(ランダムアクセスメモリ)、ハードディスクドライブ等から構成される外部記憶装置、CD−ROMドライブ等から構成される記録媒体駆動装置、キーボード、マウス等から構成される入力装置、モデム又はルーター等から構成される通信装置、及びCRT(陰極線管)又は液晶表示装置等から構成される表示装置等を備える通常のコンピュータ等から構成される。ROMにはBIOS(Basic Input/Output System)等が予め記憶され、RAMはCPUの作業領域等として用いられ、ハードディスクドライブにはOS(Operating System)及び所定のクライアント用プログラム等が予め記憶され、CPUがこれらのプログラムを実行することにより、通信部11、制御部12、画像データ取得部13、表示部14及び操作部15として機能する。   The client computer 1 includes a ROM (Read Only Memory), a CPU (Central Processing Unit), a RAM (Random Access Memory), an external storage device composed of a hard disk drive, etc., a recording medium drive composed of a CD-ROM drive, etc. A computer, an input device composed of a keyboard, a mouse, etc., a communication device composed of a modem or a router, etc., and a normal computer equipped with a display device composed of a CRT (cathode ray tube) or a liquid crystal display device, etc. Is done. The ROM stores a BIOS (Basic Input / Output System) and the like in advance, the RAM is used as a work area of the CPU, and the hard disk drive stores an OS (Operating System) and a predetermined client program in advance. By executing these programs, they function as the communication unit 11, the control unit 12, the image data acquisition unit 13, the display unit 14, and the operation unit 15.

制御部12は、通信部11、画像データ取得部13、表示部14及び操作部15の動作を制御する。操作部15は、ユーザの種々の操作指令及び加工画像特定情報等を入力するために使用され、ユーザが入力した対象画像取得指令及び加工画像特定情報等を制御部12へ出力する。ユーザが操作部15を用いて対象画像取得指令を入力した場合、画像データ取得部13は、制御部12により制御され、スキャナ、デジタルカメラ等の画像データ出力装置(図示省略)から写真画像データ等の対象画像を取得して制御部12へ出力する。制御部12は、通信部11を用いて対象画像及び加工画像特定情報を画像加工サーバ2へ送信する。また、制御部12は、通信部11を用いて画像加工サーバ2から送信された加工画像を受信し、加工画像を表示部14に表示させる。   The control unit 12 controls operations of the communication unit 11, the image data acquisition unit 13, the display unit 14, and the operation unit 15. The operation unit 15 is used to input various user operation commands, processed image specifying information, and the like, and outputs a target image acquisition command, processed image specifying information, and the like input by the user to the control unit 12. When the user inputs a target image acquisition command using the operation unit 15, the image data acquisition unit 13 is controlled by the control unit 12, and photographic image data or the like from an image data output device (not shown) such as a scanner or a digital camera. Are obtained and output to the control unit 12. The control unit 12 transmits the target image and the processed image specifying information to the image processing server 2 using the communication unit 11. Further, the control unit 12 receives the processed image transmitted from the image processing server 2 using the communication unit 11 and causes the display unit 14 to display the processed image.

また、ユーザが作成した加工画像を当該加工画像の作成時に使用した処理記述とともに、画像加工サーバ2に登録することを希望し、ユーザが操作部15を用いて加工画像及び処理記述登録指令を入力した場合、画像データ取得部13は、ユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とを取得して制御部12へ出力する。制御部12は、通信部11を用いて加工画像及び処理記述を画像加工サーバ2へ送信する。   In addition, the user desires to register the processed image created by the user together with the processing description used when creating the processed image in the image processing server 2, and the user inputs the processed image and the processing description registration command using the operation unit 15. In this case, the image data acquisition unit 13 acquires the processed image created by the user and the processing description used when the processed image is generated, and outputs the acquired processed image to the control unit 12. The control unit 12 transmits the processed image and the processing description to the image processing server 2 using the communication unit 11.

ここで、処理記述は、加工画像に一体に組み込まれており、例えば、コメント欄を有する画像フォーマットにより加工画像が作成されている場合にコメント欄に加工画像の作成処理に使用された全ての処理手順を処理記述として書き込んだり、電子透かしとして画像データ自体に重畳することができる。この場合、処理記述のデータ量を充分に小さくするため、加工画像はベクトル情報により記述されることが好ましい。なお、処理記述は、加工画像と別体の形態でもよく、この場合、処理記述と加工画像とが個別に取得される。   Here, the processing description is integrated into the processed image, and for example, when the processed image is created in an image format having a comment field, all the processes used for the processed image creation process in the comment field The procedure can be written as a process description or superimposed on the image data itself as a digital watermark. In this case, the processed image is preferably described by vector information in order to sufficiently reduce the data amount of the processing description. The process description may be in a form separate from the processed image. In this case, the process description and the processed image are acquired separately.

画像加工サーバ2は、ROM、CPU、RAM、ハードディスクドライブ等から構成される外部記憶装置、及びルーター等から構成される通信装置等を備える通常のサーバコンピュータ等から構成される。ROMにはBIOS(Basic Input/Output System)等が予め記憶され、RAMはCPUの作業領域等として用いられ、ハードディスクドライブにはOS(Operating System)及び画像加工プログラム等が予め記憶され、CPUが画像加工プログラム等を実行することにより、通信部21、画像処理部22、特定情報記憶部23、加工画像用生成部24及び処理記述用生成部25として機能する。   The image processing server 2 includes a normal server computer including an external storage device including a ROM, a CPU, a RAM, a hard disk drive, and the like, and a communication device including a router. The ROM stores a BIOS (Basic Input / Output System) and the like in advance, the RAM is used as a work area of the CPU, the hard disk drive stores an OS (Operating System), an image processing program, and the like. By executing the processing program or the like, it functions as the communication unit 21, the image processing unit 22, the specific information storage unit 23, the processed image generation unit 24, and the processing description generation unit 25.

通信部21は、クライアントコンピュータ1から送信された対象画像及び加工画像特定情報を取得して画像処理部22へ出力する。特定情報記憶部23は、原画像から加工画像を作成する際の全ての処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め複数記憶するとともに、記憶している処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め複数記憶し、データベースとして機能する。例えば、加工画像特定情報「98765」を有する加工画像が処理記述特定情報「1234」を有する7個の処理A〜Gから構成される処理記述により作成された場合、処理記述特定情報「12345」に対応付けて処理A〜Gが処理記述としてテーブル形式で記憶されるとともに、処理記述特定情報「12345」に対して加工画像特定情報「9876」がテーブル形式で記憶される。   The communication unit 21 acquires the target image and the processed image specifying information transmitted from the client computer 1 and outputs them to the image processing unit 22. The specific information storage unit 23 stores in advance a plurality of process descriptions that describe all the processing procedures when creating a processed image from the original image in association with the process description specifying information for specifying the process description, A plurality of stored process description specifying information and processed image specifying information of the processed image created by the process description specified by the process description specifying information are stored in advance in association with each other, and function as a database. For example, when the processed image having the processed image specifying information “98765” is created by the processing description including the seven processes A to G having the processing description specifying information “1234”, the processing description specifying information “12345” is set. Correspondingly, the processes A to G are stored as process descriptions in a table format, and the processed image specifying information “9876” is stored in a table format for the process description specifying information “12345”.

画像処理部22は、特定情報記憶部23を参照して通信部21により取得された加工画像特定情報に対応付けられている処理記述特定情報を読み出し、読み出した処理記述特定情報に対応付けられている処理記述を読み出し、読み出した処理記述を用いて通信部21により取得された対象画像を画像処理して新たな加工画像を作成する。通信部21は、画像処理部22により作成された加工画像をクライアントコンピュータ1へネットワーク3を介して送信する。   The image processing unit 22 reads the processing description specifying information associated with the processed image specifying information acquired by the communication unit 21 with reference to the specifying information storage unit 23, and is associated with the read processing description specifying information. The process description is read out, and the target image acquired by the communication unit 21 is processed using the read process description to create a new processed image. The communication unit 21 transmits the processed image created by the image processing unit 22 to the client computer 1 via the network 3.

加工画像用生成部24は、画像処理部22により作成された加工画像に対して当該加工画像を特定するための加工画像特定情報を生成する。特定情報記憶部23は、加工画像用生成部24により生成された加工画像特定情報を加工画像の作成時に使用した処理記述の処理記述特定情報に対応付けて新たに記憶し、データベースを更新する。   The processed image generation unit 24 generates processed image specifying information for specifying the processed image with respect to the processed image created by the image processing unit 22. The specific information storage unit 23 newly stores the processed image specifying information generated by the processed image generation unit 24 in association with the processing description specifying information of the processing description used when creating the processed image, and updates the database.

また、クライアントコンピュータ1からユーザが作成した加工画像と、当該加工画像と一体に組み込まれた処理記述とが送信された場合、通信部21は、ユーザが作成した加工画像と、当該加工画像と一体に組み込まれた処理記述とを取得する。処理記述用生成部25は、通信部21により取得された加工画像に対して当該加工画像を特定するための加工画像特定情報を生成するとともに、当該加工画像から処理記述を抽出し、抽出した処理記述に対して当該処理記述を特定するための処理記述特定情報を生成する。特定情報記憶部23は、処理記述用生成部25により生成された加工画像特定情報を当該加工画像特定情報とともに生成された処理記述特定情報に対応付けて新たに記憶するとともに、当該処理記述特定情報に対応付けて通信部21により取得された処理記述を新たに記憶し、データベースを更新する。   When the processed image created by the user and the processing description integrated with the processed image are transmitted from the client computer 1, the communication unit 21 integrates the processed image created by the user with the processed image. And process description embedded in. The processing description generation unit 25 generates processed image specifying information for specifying the processed image with respect to the processed image acquired by the communication unit 21, extracts a processing description from the processed image, and extracts the processing Processing description specifying information for specifying the processing description is generated for the description. The specific information storage unit 23 newly stores the processed image specifying information generated by the processing description generating unit 25 in association with the processed description specifying information generated together with the processed image specifying information. The processing description acquired by the communication unit 21 in association with the information is newly stored, and the database is updated.

一方、クライアントコンピュータ1からユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とが個別に送信された場合、通信部21は、ユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とを個別に取得する。処理記述用生成部25は、通信部21により取得された加工画像に対して当該加工画像を特定するための加工画像特定情報を生成するとともに、通信部21により取得された処理記述に対して当該処理記述を特定するための処理記述特定情報を生成する。この場合も、上記と同様に、特定情報記憶部23は、加工画像特定情報、処理記述特定情報及び処理記述を互いに対応付けて新たに記憶してデータベースを更新する。   On the other hand, when the processed image created by the user and the processing description used when creating the processed image are individually transmitted from the client computer 1, the communication unit 21 transmits the processed image created by the user and the processed image. Acquire individually the process description used at the time of creation. The processing description generation unit 25 generates processed image specifying information for specifying the processed image with respect to the processed image acquired by the communication unit 21, and applies the processing description acquired by the communication unit 21 to the processing description. Process description specifying information for specifying the process description is generated. Also in this case, as described above, the specific information storage unit 23 updates the database by newly storing the processed image specifying information, the process description specifying information, and the process description in association with each other.

本実施の形態では、通信部21が取得手段の一例に相当し、特定情報記憶部23が特定情報記憶手段の一例に相当し、画像処理部22が画像処理手段の一例に相当し、加工画像用生成部24が加工画像用生成手段の一例に相当し、処理記述用生成部25が処理記述用生成手段の一例に相当する。   In the present embodiment, the communication unit 21 corresponds to an example of an acquisition unit, the specific information storage unit 23 corresponds to an example of a specific information storage unit, the image processing unit 22 corresponds to an example of an image processing unit, and a processed image The generating unit 24 corresponds to an example of a processed image generating unit, and the processing description generating unit 25 corresponds to an example of a processing description generating unit.

次に、上記のように構成された画像加工システムによる画像加工処理について説明する。図2は、図1に示す画像加工システムによる画像加工処理を説明するためのフローチャートである。   Next, image processing by the image processing system configured as described above will be described. FIG. 2 is a flowchart for explaining image processing by the image processing system shown in FIG.

まず、ユーザが操作部15を操作して対象画像取得指令及び加工画像特定情報を入力すると、ステップS11において、クライアントコンピュータ1の制御部12は、操作部15から対象画像取得指令及び加工画像特定情報を取得し、対象画像取得指令に従って画像データ取得部13を用いて対象画像を取得する。次に、ステップS12において、制御部12は、通信部11を用いて対象画像及び加工画像特定情報を画像加工サーバ2へ送信する。   First, when the user operates the operation unit 15 to input the target image acquisition command and the processed image specifying information, the control unit 12 of the client computer 1 in step S <b> 11 receives the target image acquisition command and the processed image specifying information from the operating unit 15. And the target image is acquired using the image data acquisition unit 13 in accordance with the target image acquisition command. Next, in step S <b> 12, the control unit 12 transmits the target image and the processed image specifying information to the image processing server 2 using the communication unit 11.

このとき、ステップS21において、画像加工サーバ2の通信部21は、クライアントコンピュータ1から送信された対象画像及び加工画像特定情報を受信して画像処理部22へ出力する。次に、ステップS22において、画像処理部22は、通信部21により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定情報記憶部23から読み出して処理記述特定情報を特定する。次に、ステップS23において、画像処理部22は、特定した処理記述特定情報に対応付けられている処理記述を特定情報記憶部23から読み出す。次に、ステップS24において、画像処理部22は、読み出した処理記述を用いて通信部21により取得された対象画像を画像処理し、処理記述により決定される画風の新たな加工画像を作成する。   At this time, in step S <b> 21, the communication unit 21 of the image processing server 2 receives the target image and the processed image specifying information transmitted from the client computer 1 and outputs them to the image processing unit 22. Next, in step S <b> 22, the image processing unit 22 reads out the processing description specifying information associated with the processed image specifying information acquired by the communication unit 21 from the specifying information storage unit 23 and specifies the processing description specifying information. . Next, in step S <b> 23, the image processing unit 22 reads out the process description associated with the specified process description specifying information from the specified information storage unit 23. Next, in step S <b> 24, the image processing unit 22 performs image processing on the target image acquired by the communication unit 21 using the read processing description, and creates a new processed image having a style determined by the processing description.

次に、ステップS25において、画像処理部22は、新たな加工画像を作成したことを加工画像用生成部24に通知して当該加工画像の加工画像特定情報を要求し、加工画像用生成部24は、要求のあった加工画像に対して当該加工画像を特定するための加工画像特定情報を生成して特定情報記憶部23へ出力する。ここで、加工画像特定情報の生成方法は、各加工画像に対してユニークなものを生成できれば種々の生成方法を用いることができ、例えば、特定情報記憶部23が加工画像を連番で管理している場合は未使用の番号のうち小さいものから順に使用される。   Next, in step S25, the image processing unit 22 notifies the processed image generation unit 24 that a new processed image has been created, requests processed image specifying information of the processed image, and generates the processed image generation unit 24. Generates processed image specifying information for specifying the processed image for the requested processed image and outputs the generated processed image specifying information to the specific information storage unit 23. Here, various generation methods can be used as the method for generating the processed image specifying information as long as a unique one can be generated for each processed image. For example, the specific information storage unit 23 manages the processed images with serial numbers. If it is, the unused numbers are used in ascending order.

次に、ステップS26において、特定情報記憶部23は、加工画像用生成部24により生成された加工画像特定情報を加工画像の作成時に使用した処理記述の処理記述特定情報に対応付けて新たに記憶してデータベースを更新する。この結果、作成された加工画像を自動的にデータベース化することができる。なお、特定情報記憶部23に記憶するデータとしては、加工画像特定情報のみに限定されず、加工画像及び/又は対象画像をも記憶してデータベース化してもよい。   Next, in step S26, the specific information storage unit 23 newly stores the processed image specifying information generated by the processed image generating unit 24 in association with the processing description specifying information of the processing description used when the processed image is created. And update the database. As a result, the created processed image can be automatically made into a database. The data stored in the specific information storage unit 23 is not limited to the processed image specifying information, and the processed image and / or the target image may be stored and databased.

最後に、ステップS27において、画像処理部22は、加工画像特定情報の記憶が完了した加工画像を通信部21へ出力し、通信部21は加工画像をクライアントコンピュータ1へ送信する。このとき、ステップS13において、クライアントコンピュータ1の通信部11は、画像加工サーバ2から送信された加工画像を受信して制御部12へ出力する。最後に、ステップS14において、制御部12は、加工画像を表示部14に表示させる。このようにして、ユーザは、気に入った加工画像がある場合、この加工画像の加工画像特定情報を知ることができれば、加工画像特定情報を画像加工サーバ2へ送信するだけで自分の画像に好みの処理を加えることができる。   Finally, in step S <b> 27, the image processing unit 22 outputs the processed image for which the storage of the processed image specifying information is completed to the communication unit 21, and the communication unit 21 transmits the processed image to the client computer 1. At this time, in step S <b> 13, the communication unit 11 of the client computer 1 receives the processed image transmitted from the image processing server 2 and outputs it to the control unit 12. Finally, in step S <b> 14, the control unit 12 displays the processed image on the display unit 14. In this way, when there is a processed image that the user likes, if the user can know the processed image specifying information of the processed image, the user can simply send the processed image specifying information to the image processing server 2 and can select his / her favorite image. Processing can be added.

上記の処理により、対象画像と加工画像特定情報とが取得され、特定情報記憶部23を参照して加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて対象画像を画像処理することができるので、他人が加工した加工画像の加工画像特定情報を用いて当該加工画像の画風になるように対象画像を自動的に加工することができ、他人が加工した加工画像が気に入った場合に当該加工画像の画風になるように画像を容易に加工することができる。   Through the above processing, the target image and the processed image specifying information are acquired, the processing description specifying information associated with the processed image specifying information is specified with reference to the specific information storage unit 23, and the specified processing description specifying information is specified. Since the target image can be image-processed using the processing description specified by the processing image, the target image is automatically processed using the processed image specifying information of the processed image processed by another person so that the processed image becomes the style of the processed image. When a user likes a processed image processed by another person, the image can be easily processed so that the processed image has a style.

次に、上記の画像加工処理の一部として実行される処理記述登録処理について説明する。図3は、図1に示す画像加工システムによる処理記述登録処理を説明するためのフローチャートである。   Next, a process description registration process executed as a part of the image processing process will be described. FIG. 3 is a flowchart for explaining the process description registration process by the image processing system shown in FIG.

まず、ユーザが操作部15を操作して処理記述登録指令を入力すると、ステップS31において、クライアントコンピュータ1の制御部12は、操作部15からの処理記述登録指令に従い、画像データ取得部13を用いて処理記述が一体に組み込まれている加工画像を取得する。次に、ステップS32において、制御部12は、通信部11を用いて処理記述が一体に組み込まれている加工画像を画像加工サーバ2へ送信する。   First, when the user operates the operation unit 15 to input a process description registration command, the control unit 12 of the client computer 1 uses the image data acquisition unit 13 in accordance with the process description registration command from the operation unit 15 in step S31. To obtain a processed image in which the process description is integrated. Next, in step S <b> 32, the control unit 12 transmits to the image processing server 2 the processed image in which the process description is integrated using the communication unit 11.

このとき、ステップS41において、画像加工サーバ2の通信部21は、クライアントコンピュータ1から送信された処理記述が一体に組み込まれている加工画像を受信して処理記述用生成部25へ出力する。次に、ステップS42において、処理記述用生成部25は、通信部21により取得された加工画像から処理記述を抽出して特定情報記憶部23へ出力する。   At this time, in step S41, the communication unit 21 of the image processing server 2 receives the processed image in which the processing description transmitted from the client computer 1 is integrated and outputs the processed image to the processing description generating unit 25. Next, in step S <b> 42, the process description generation unit 25 extracts the process description from the processed image acquired by the communication unit 21 and outputs the process description to the specific information storage unit 23.

次に、ステップS43において、処理記述用生成部25は、抽出した処理記述に対して当該処理記述を特定するための処理記述特定情報を生成して特定情報記憶部23へ出力する。ここで、処理記述特定情報の生成方法は、各処理記述に対してユニークなものを生成できれば種々の生成方法を用いることができ、例えば、特定情報記憶部23が処理記述を連番で管理している場合は未使用の番号のうち小さいものから順に使用される。   Next, in step S 43, the process description generation unit 25 generates process description specifying information for specifying the process description for the extracted process description, and outputs the process description specifying information to the specified information storage unit 23. Here, as a method for generating the process description specifying information, various generation methods can be used as long as a unique one can be generated for each process description. For example, the specific information storage unit 23 manages the process descriptions by serial numbers. If it is, the unused numbers are used in ascending order.

次に、ステップS44において、特定情報記憶部23は、ステップS42において抽出された処理記述をステップS43において生成された処理記述特定情報に対応付けて新たに記憶してデータベースを更新する。   Next, in step S44, the specific information storage unit 23 updates the database by newly storing the process description extracted in step S42 in association with the process description specifying information generated in step S43.

次に、ステップS45において、処理記述用生成部25は、ステップS41において受信した加工画像に対して当該加工画像を特定するための加工画像特定情報を生成して特定情報記憶部23へ出力する。最後に、ステップS46において、特定情報記憶部23は、処理記述用生成部25により生成された加工画像特定情報をステップS44において記憶した処理記述特定情報に対応付けて記憶してデータベースを更新する。この結果、ユーザが作成した加工画像の処理記述を自動的にデータベース化することができる。なお、上記の処理により生成された加工画像特定情報及び処理記述特定情報をユーザに了知させるため、加工画像特定情報及び処理記述特定情報を登録完了通知とともにクライアントコンピュータ1へ送信するようにしてもよい。   Next, in step S45, the process description generation unit 25 generates processed image specifying information for specifying the processed image with respect to the processed image received in step S41, and outputs the processed image specifying information to the specific information storage unit 23. Finally, in step S46, the specific information storage unit 23 updates the database by storing the processed image specifying information generated by the processing description generating unit 25 in association with the processing description specifying information stored in step S44. As a result, the processing description of the processed image created by the user can be automatically made into a database. Note that the processed image specifying information and the processing description specifying information may be transmitted to the client computer 1 together with the registration completion notification in order to let the user know the processed image specifying information and the processing description specifying information generated by the above processing. Good.

また、本実施の形態では、すべての加工画像及び処理記述に対してID番号となる加工画像特定情報及び処理記述特定情報を付与した状態で加工画像を管理することができるので、画像加工サーバ2により著作権管理システムを構築することができる。この結果、ユーザが加工画像特定情報を画像加工サーバ2へ送信した場合に、課金処理を行ってから加工画像をユーザに提供することができるので、処理に対して課金するだけでなく、画像に対しても課金することができ、著作権料を管理することも可能となる。   Further, in the present embodiment, since the processed image can be managed in a state where the processed image specifying information and the processing description specifying information as ID numbers are assigned to all the processed images and the processing descriptions, the image processing server 2 A copyright management system can be constructed. As a result, when the user transmits the processed image specifying information to the image processing server 2, the processed image can be provided to the user after performing the charging process. It is also possible to charge for it and to manage the copyright fee.

次に、図1に示す画像処理部22についてさらに詳細に説明する。図4は、図1に示す画像処理部22の一例の構成を示すブロック図である。図4に示す画像処理部22は、画像データ受付部31、グループ特徴計算部32、分割画像データ記憶部33、グループ特徴記憶部34、統合領域計算部35、統合領域記憶部36、及び画像加工部37を備える。   Next, the image processing unit 22 shown in FIG. 1 will be described in more detail. FIG. 4 is a block diagram showing a configuration of an example of the image processing unit 22 shown in FIG. 4 includes an image data reception unit 31, a group feature calculation unit 32, a divided image data storage unit 33, a group feature storage unit 34, an integrated region calculation unit 35, an integrated region storage unit 36, and image processing. The unit 37 is provided.

画像データ受付部31は、通信部21により取得された対象画像をグループ特徴計算部32へ出力するとともに、通信部21により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定情報記憶部23から読み出し、さらに、読み出した処理記述特定情報に対応付けられている処理記述を読み出してグループ特徴計算部32、統合領域計算部35及び画像加工部37へ出力する。   The image data receiving unit 31 outputs the target image acquired by the communication unit 21 to the group feature calculation unit 32 and specifies the process description specifying information associated with the processed image specifying information acquired by the communication unit 21. The information is read from the information storage unit 23, and the process description associated with the read process description specifying information is read and output to the group feature calculation unit 32, the integrated region calculation unit 35, and the image processing unit 37.

グループ特徴計算部32は、画像データ受付部31から出力される処理記述に従い、入力される対象画像を公知の領域分割処理により複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出し、各グループ領域の特徴量をグループ特徴記憶部34に記憶させるとともに、対象画像が分割された複数の分割画像データを分割画像データ記憶部33に記憶させる。   The group feature calculation unit 32 divides the input target image into a plurality of group regions by a known region division process according to the process description output from the image data reception unit 31, and the feature amount of the group region for each group region And the feature amount of each group area is stored in the group feature storage unit 34, and a plurality of divided image data obtained by dividing the target image is stored in the divided image data storage unit 33.

ここで、領域分割処理としては、種々の領域分割処理を用いることができ、絵画から筆触を抽出する方法(中島ら:「計算機による絵画画像の解析−油絵画像のタッチへの自動分割−」、電子情報通信学会春期全国大会予講集、D(1994))や5次元のK−平均アルゴリズム(泉ら:「色情報と位置情報とを併用したセグメンテーション手法の一検討」、電子情報通信学会春期全国大会予講集、D680(1991))、特開平10−11569号公報等に開示される手法を用いることができる。また、グループ領域の特徴量は、少なくとも、グループ領域毎の平均色、グループ領域毎の画像上の位置及びグループ毎の画素数を含み、必要に応じて上記の各領域分割処理によって得られた分割領域から抽出可能な特徴量を用いてもよい。   Here, as the area dividing process, various area dividing processes can be used, and a method of extracting a brush stroke from a painting (Nakajima et al .: “Analysis of a painting image by a computer—automatic division into an oil painting image touch”), IEICE Spring National Convention Preliminary Proceedings, D (1994)) and 5-dimensional K-means algorithm (Izumi et al .: “Study on segmentation method using color information and position information”, IEICE Spring National Convention Preliminary Lecture Collection, D680 (1991)), Japanese Patent Application Laid-Open No. 10-11569, etc. can be used. The feature amount of the group area includes at least the average color for each group area, the position on the image for each group area, and the number of pixels for each group, and the division obtained by the above-described area division processing as necessary A feature amount that can be extracted from the region may be used.

分割画像データ記憶部33は、分割画像データを当該グループ領域の領域番号に対応付けてテーブル形式で記憶する。グループ特徴記憶部34は、各グループ領域の特徴量を当該グループ領域の領域番号に対応付けてテーブル形式で記憶する。   The divided image data storage unit 33 stores the divided image data in a table format in association with the area number of the group area. The group feature storage unit 34 stores the feature amount of each group area in association with the area number of the group area in a table format.

統合領域計算部35は、画像データ受付部31から出力される処理記述に従い、グループ特徴記憶部34に記憶されている各グループ領域の特徴量を基に複数のグループ領域を統合して複数の統合領域を作成し、統合領域記憶部36に記憶する。具体的には、統合領域計算部35は、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合する。また、統合領域計算部35は、隣接するグループ領域間の特徴量の差が第1の閾値より小さく、そのグループ領域数が第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合する。   The integrated area calculation unit 35 integrates a plurality of group areas based on the feature amounts of each group area stored in the group feature storage unit 34 in accordance with the process description output from the image data reception unit 31. An area is created and stored in the integrated area storage unit 36. Specifically, the integrated area calculation unit 35 sets, as the first integrated area, an area in which the difference in feature amount between adjacent group areas is smaller than the first threshold and the number of group areas is equal to or greater than the first number. Integrate. In addition, the integrated region calculation unit 35 has a feature amount difference between adjacent group regions smaller than the first threshold, the number of group regions is equal to or more than a second number less than the first number, and An average value of a difference between a feature amount of a group region of a predetermined ratio or more among a plurality of group regions located at a boundary and a feature amount of a group region in an adjacent integrated region is larger than a second threshold value equal to or greater than a first threshold The area is integrated as a second integrated area.

このとき、統合領域計算部35は、第1及び第2の統合領域を作成する処理を複数回繰り返し、処理繰り返し回数に応じて第1の閾値を増加させ、処理繰り返し回数に応じて第1の個数を減少させる。本例では、グループ領域の特徴量として、各グループ領域の平均色を用い、隣接するグループ領域間の色差を基準に第1及び第2の統合領域を作成する。なお、統合領域の作成処理に使用される特徴量は、上記の例に特に限定されず、例えば、グループ領域の色成分c及びテクスチャ成分tを変数とする所定の関数f(c,t)を定義し、この関数f(c,t)を特徴量としてその差を基準に判定してもよい。   At this time, the integrated area calculation unit 35 repeats the process of creating the first and second integrated areas a plurality of times, increases the first threshold according to the number of process repetitions, and increases the first threshold according to the number of process repetitions. Reduce the number. In this example, the average color of each group area is used as the feature amount of the group area, and the first and second integrated areas are created based on the color difference between adjacent group areas. Note that the feature amount used for the integrated region creation process is not particularly limited to the above example. For example, a predetermined function f (c, t) having the color component c and the texture component t of the group region as variables is used. The function f (c, t) may be defined as a feature amount, and the difference may be used as a reference.

統合領域記憶部36は、作成された統合領域を記憶する。具体的には、統合領域記憶部36は、各統合領域を構成する複数のグループ領域の領域番号を当該統合領域の領域番号に対応付けてテーブル形式で記憶する。   The integrated area storage unit 36 stores the created integrated area. Specifically, the integrated area storage unit 36 stores the area numbers of a plurality of group areas constituting each integrated area in association with the area numbers of the integrated areas in a table format.

画像加工部37は、画像データ受付部31から出力される処理記述に従い、一又は複数の統合領域をプリセット表現領域として統合領域記憶部36から読み出し、読み出した統合領域を構成するグループ領域の特徴量をグループ特徴記憶部34から読み出す。次に画像加工部37は、予め設定されている複数の表現の中から処理記述により選択された表現になるようにプリセット表現を作成し、作成したプリセット表現を分割画像データ記憶部33に記憶されている複数の分割画像データに対して付加することにより、対象画像を絵画風画像等に加工して通信部21へ出力する。このとき、画像加工部37は、複数の統合領域が一つの領域として選択された場合でも、統合領域記憶部36に記憶されている統合領域を参照し、選択された統合領域の中からより面積の大きな統合領域を優先して統合領域単位で領域を選択する。   The image processing unit 37 reads one or a plurality of integrated regions as a preset expression region from the integrated region storage unit 36 in accordance with the processing description output from the image data receiving unit 31, and the feature amount of the group region constituting the read integrated region Are read from the group feature storage unit 34. Next, the image processing unit 37 creates a preset expression so that the expression selected by the process description is selected from a plurality of preset expressions, and the created preset expression is stored in the divided image data storage unit 33. By adding to the plurality of divided image data, the target image is processed into a painting-like image or the like and output to the communication unit 21. At this time, even when a plurality of integrated regions are selected as one region, the image processing unit 37 refers to the integrated region stored in the integrated region storage unit 36, and more area is selected from the selected integrated regions. An area is selected in units of integrated areas in preference to large integrated areas.

本例では、グループ特徴計算部32が特徴量算出手段の一例に相当し、グループ特徴記憶部34がグループ特徴記憶手段の一例に相当し、統合領域計算部35が統合手段の一例に相当し、統合領域記憶部36が統合領域記憶手段の一例に相当し、画像加工部37が加工手段の一例に相当する。   In this example, the group feature calculation unit 32 corresponds to an example of a feature amount calculation unit, the group feature storage unit 34 corresponds to an example of a group feature storage unit, and the integrated region calculation unit 35 corresponds to an example of an integration unit. The integrated area storage unit 36 corresponds to an example of an integrated area storage unit, and the image processing unit 37 corresponds to an example of a processing unit.

図5は、図4に示す画像処理部22による画像加工処理を説明するためのフローチャートである。まず、ステップS51において、画像データ受付部31は、通信部21から対象画像及び加工画像特定情報を取得し、対象画像をグループ特徴計算部32へ出力するとともに、加工画像特定情報に対応付けられている処理記述特定情報の処理記述を特定情報記憶部23から読み出してグループ特徴計算部32、統合領域計算部35及び画像加工部37へ出力する。   FIG. 5 is a flowchart for explaining the image processing by the image processing unit 22 shown in FIG. First, in step S51, the image data receiving unit 31 acquires the target image and the processed image specifying information from the communication unit 21, outputs the target image to the group feature calculating unit 32, and associates the target image with the processed image specifying information. The processing description of the specified processing description specific information is read from the specific information storage unit 23 and output to the group feature calculation unit 32, the integrated region calculation unit 35, and the image processing unit 37.

次に、ステップS52において、グループ特徴計算部32は、画像データ受付部31から出力される処理記述に従い、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出し、各グループ領域の特徴量をグループ特徴記憶部34に記憶させるとともに、複数の分割画像データを分割画像データ記憶部33に記憶させる。   Next, in step S52, the group feature calculation unit 32 divides the target image into a plurality of group regions according to the process description output from the image data reception unit 31, and calculates the feature amount of the group region for each group region. Then, the feature amount of each group region is stored in the group feature storage unit 34, and a plurality of divided image data is stored in the divided image data storage unit 33.

次に、統合領域計算部35は、画像データ受付部31から出力される処理記述に従い、まず、ステップS53において、処理繰り返し回数Iに1を加算して処理繰り返し回数Iをインクリメントする。ここで、処理繰り返し回数Iの初期値は予め0に設定されており、1回目の処理の場合、処理繰り返し回数Iは1に設定される。また、処理繰り返し回数Iの最大数となる繰り返し総数Rとしては、2回以上の値が予め設定されており、例えば、10回が設定されている。   Next, in accordance with the process description output from the image data receiving unit 31, the integrated area calculation unit 35 first increments the process repeat count I by adding 1 to the process repeat count I in step S53. Here, the initial value of the processing repetition count I is set to 0 in advance, and in the case of the first processing, the processing repetition count I is set to 1. In addition, as the total number of repetitions R that is the maximum number of processing repetitions I, a value of 2 or more is set in advance, for example, 10 is set.

次に、ステップS54において、統合領域計算部35は、あるグループ領域を注目グループ領域とし、注目領域に隣接するグループ領域の平均色と注目領域の平均色との差である色差Dが第1の閾値Tより小さいか否かすなわちD<Tであるか否かを判断し、色差Dが第1の閾値Tより小さくない場合は、ステップS54を繰り返して隣接する他のグループ領域との色差を比較し、色差Dが第1の閾値Tより小さい場合は、ステップS55へ処理を移行して、注目領域に対応付けて色差Dが第1の閾値Tより小さいグループ領域をテーブル形式で記憶し、グループ領域を統合していく。   Next, in step S54, the integrated region calculation unit 35 sets a certain group region as the target group region, and the color difference D that is the difference between the average color of the group region adjacent to the target region and the average color of the target region is the first. It is determined whether or not D is smaller than the threshold T, that is, whether or not D <T. If the color difference D is not smaller than the first threshold T, step S54 is repeated to compare the color difference with other adjacent group areas. If the color difference D is smaller than the first threshold T, the process proceeds to step S55, and the group area having the color difference D smaller than the first threshold T is stored in a table format in association with the attention area. Integrate areas.

ここで、基準閾値をBとすると、T=I×B/Rで表され、このとき、原画像の明るさのレンジをLとすると、B=L/80であり、処理繰り返し回数Iの増加に応じて第1の閾値Tが増加するように設定されている。なお、第1の閾値Tは、上式に特に限定されず、種々の変更が可能であり、例えば、上式の80を10〜200の範囲内の任意の数値に変更してもよい。また、グループ領域のうち扁平度の高い領域すなわち細長い領域を比較対象から排除して当該領域を乗り越えてグループ領域が統合されることを抑制するようにしてもよい。   Here, if the reference threshold is B, it is expressed as T = I × B / R. At this time, if the brightness range of the original image is L, B = L / 80, and the number of processing repetitions I increases. The first threshold value T is set so as to increase according to. The first threshold value T is not particularly limited to the above formula, and various changes are possible. For example, 80 in the above formula may be changed to any numerical value within the range of 10 to 200. In addition, a region having a high flatness, that is, a long and narrow region, may be excluded from the comparison target among the group regions, and the group region may be prevented from being integrated by overcoming the region.

次に、ステップS56において、統合領域計算部35は、隣接するグループ領域の全てに対してステップS54における比較処理を終了したか否かを判断し、隣接するグループ領域の全てに対して比較処理が終了していない場合は、ステップS54を繰り返して隣接する他のグループ領域との特徴量を比較し、隣接するグループ領域の全てに対して比較処理が終了した場合は、ステップS57へ処理を移行する。   Next, in step S56, the integrated region calculation unit 35 determines whether or not the comparison processing in step S54 has been completed for all of the adjacent group regions, and the comparison processing is performed for all of the adjacent group regions. If not completed, step S54 is repeated to compare the feature values with other adjacent group areas. If the comparison process is completed for all adjacent group areas, the process proceeds to step S57. .

次に、ステップS57において、統合領域計算部35は、全てのグループ領域を注目領域として処理したか否かを判断し、全てのグループ領域を注目領域として処理していない場合は、ステップS54を繰り返して他のグループ領域を注目領域として特徴量を比較し、全てのグループ領域を注目領域として処理した場合は、ステップS58へ処理を移行する。   Next, in step S57, the integrated area calculation unit 35 determines whether or not all group areas have been processed as attention areas. If all group areas have not been processed as attention areas, step S54 is repeated. When the feature amounts are compared using the other group areas as the attention area, and all the group areas are processed as the attention area, the process proceeds to step S58.

次に、ステップS58において、統合領域計算部35は、上記の処理により統合された領域のうち当該領域を構成するグループ領域の個数Nが第1の個数G/(U×I+1)以上の領域があるか否かを判断し、N≧G/(U×I+1)を満たす領域がない場合はステップS60へ処理を移行し、N≧G/(U×I+1)を満たす領域がある場合はステップS59へ処理を移行して、N≧G/(U×I+1)を満たす領域を第1の統合領域として作成し、各第1の統合領域を構成する複数のグループ領域の領域番号を当該第1の統合領域の領域番号に対応付けてテーブル形式で統合領域記憶部36に記憶させる。   Next, in step S58, the integrated area calculation unit 35 includes areas where the number N of group areas constituting the area is equal to or more than the first number G / (U × I + 1) among the areas integrated by the above processing. If there is no region that satisfies N ≧ G / (U × I + 1), the process proceeds to step S60. If there is a region that satisfies N ≧ G / (U × I + 1), step S59 is performed. , The region satisfying N ≧ G / (U × I + 1) is created as the first integrated region, and the region numbers of the plurality of group regions constituting each first integrated region are assigned to the first The information is stored in the integrated area storage unit 36 in a table format in association with the area number of the integrated area.

ここで、Gは、原画像を分割したグループ領域の総数であり、例えば、6435個が用いられ、Uは、単位領域数であり、例えば、120個が用いられ、Iは、上記の処理繰り返し回数である。この場合、広い範囲で統一感の高い領域を第1の統合領域として抽出することができるとともに、第1の閾値Tは処理繰り返し回数Iが増加するほど大きくなり、第1の個数は処理繰り返し回数Iが増加するほど小さくなるので、処理の繰り返しにより広い範囲で統一感の高い領域を第1の統合領域として繰り返し数に応じた優先順位を付けて抽出することができる。なお、第1の個数は、上式に特に限定されず、種々の変更が可能であり、例えば、上式の単位領域数Uを10〜100の範囲内の任意の数値に変更したり、処理繰り返し回数Iと無関係な一定値を用いてもよい。   Here, G is the total number of group areas into which the original image is divided, for example, 6435 is used, U is the number of unit areas, for example, 120 is used, and I is the above processing repetition. Is the number of times. In this case, a region with a high sense of unity can be extracted as a first integrated region in a wide range, and the first threshold T increases as the number of processing repetitions I increases, and the first number is the number of processing repetitions. Since I decreases as I increases, it is possible to extract a region having a high sense of unity over a wide range by repeating processing as a first integrated region with priority according to the number of repetitions. The first number is not particularly limited to the above formula and can be variously changed. For example, the number U of unit areas in the above formula can be changed to an arbitrary value within the range of 10 to 100, or the processing can be performed. A constant value unrelated to the number of repetitions I may be used.

次に、ステップS60において、統合領域計算部35は、上記の処理により第1の統合領域として抽出されていない残りの領域のうち当該領域を構成するグループ領域の個数Nが第2の個数以上あり、且つ統合された領域の境界に位置するグループ領域のうち8割以上のグループ領域の平均色と隣接する他の統合された領域に属するグループ領域の平均色との差の平均Aが第2の閾値より大きいか否かを判断し、これらの条件を満たす領域がない場合はステップS62へ処理を移行し、これらの条件を満たす領域がある場合はステップS61へ処理を移行してこれらの条件を満たす領域を第2の統合領域として作成し、各第2の統合領域を構成する複数のグループ領域の領域番号を当該第2の統合領域の領域番号に対応付けてテーブル形式で統合領域記憶部36に記憶させる。   Next, in step S60, the integrated region calculation unit 35 has the number N of group regions constituting the region out of the remaining regions that are not extracted as the first integrated region by the above processing is equal to or greater than the second number. The average A of the difference between the average color of 80% or more of the group areas among the group areas located at the boundary of the integrated areas and the average color of the group areas belonging to the other integrated areas adjacent to each other is the second It is determined whether or not the threshold value is greater than the threshold value. If there is no region that satisfies these conditions, the process proceeds to step S62. If there is a region that satisfies these conditions, the process proceeds to step S61 and these conditions are set. An area to be satisfied is created as a second integrated area, and the area numbers of a plurality of group areas constituting each second integrated area are associated with the area numbers of the second integrated area in a table format. It is stored in the case area storage unit 36.

本例では、例えば、第2の個数としては3個が用いられ、第2の閾値としては20(基準閾値Bの約6倍)が用いられる。なお、第2の個数及び第2の閾値は、上記の例に特に限定されず、第2の個数として2個又は4個以上の個数を用いたり、第2の閾値として上記の基準閾値Bの1〜20倍の範囲の中から任意の値を用いることができる。この場合、狭い範囲で対比効果の高い領域を第2の統合領域として抽出することができるとともに、第1の閾値Tは処理繰り返し回数Iが増加するほど大きくなるので、処理の繰り返しにより狭い範囲で対比効果の高い領域を第2の統合領域として繰り返し数に応じた優先順位を付けて抽出することができる。   In this example, for example, 3 is used as the second number, and 20 (about 6 times the reference threshold B) is used as the second threshold. Note that the second number and the second threshold are not particularly limited to the above example, and two or four or more numbers are used as the second number, or the reference threshold B is set as the second threshold. Any value can be used from the range of 1 to 20 times. In this case, a region having a high contrast effect in a narrow range can be extracted as the second integrated region, and the first threshold T increases as the number of processing repetitions I increases. A region having a high contrast effect can be extracted as a second integrated region with a priority according to the number of repetitions.

次に、ステップS62において、統合領域計算部35は、処理繰り返し回数Iが繰り返し総数Rに一致するか否かを判断し、処理繰り返し回数Iが繰り返し総数Rに達していない場合はステップS53へ移行して以降の処理を繰り返し、処理繰り返し回数Iが繰り返し総数Rに達している場合は統合領域作成処理を終了してステップS63へ処理を移行する。なお、処理繰り返し回数Iが繰り返し総数Rに達するまでに、全てのグループ領域が第1及び第2の統合領域に統合された場合も、統合領域作成処理を終了してステップS63へ移行するようにしてもよい。この処理により優先順位の高い(例えば、繰り返し数<3)第1の統合領域、第2の統合領域、その他の統合領域に分類することができる。   Next, in step S62, the integrated area calculation unit 35 determines whether or not the processing repetition count I matches the total repetition number R. If the processing repetition count I has not reached the total repetition count R, the process proceeds to step S53. Then, the subsequent processing is repeated, and when the processing repetition count I has reached the total number of repetitions R, the integrated region creation processing is terminated and the processing proceeds to step S63. Note that even when all the group areas are integrated into the first and second integrated areas before the process repetition count I reaches the total number of repetitions R, the integrated area creation process is terminated and the process proceeds to step S63. May be. By this processing, it is possible to classify into a first integrated region, a second integrated region, and other integrated regions with high priority (for example, the number of repetitions <3).

次に、ステップS63において、まず、画像加工部37は、画像データ受付部31から出力される処理記述に従い、一又は複数の統合領域をプリセット表現領域として統合領域記憶部36から読み出し、読み出された統合領域を構成するグループ領域の特徴量をグループ特徴記憶部34から読み出す。この場合、画像加工部37は統合領域単位で領域を選択するため、不自然さの少ない境界で表現を切り替えたり、統一感の高い領域のみに表現を付加する等の表現切り替えが可能となる。また、繰り返し回数に応じた優先順位の指定を変えることで指定領域を微調整することもできる。   Next, in step S63, first, the image processing unit 37 reads and reads one or a plurality of integrated regions from the integrated region storage unit 36 as preset expression regions in accordance with the process description output from the image data receiving unit 31. The feature amount of the group area constituting the integrated area is read from the group feature storage unit 34. In this case, since the image processing unit 37 selects a region in units of integrated regions, it is possible to switch the representation such as switching the representation at a boundary with less unnaturalness or adding the representation only to a region with a high sense of unity. Further, the designated area can be finely adjusted by changing the designation of the priority order according to the number of repetitions.

なお、的確な優先順位の指定を統合領域毎に自動で決める手法としては、統合領域に含まれるグループ領域数の増加がなくなったとき又は極端に減ったときの繰り返し回数で統合された統合領域結果を利用することができる。また、画像加工部37は、統合領域記憶部36に記憶されている統合領域だけでなく、グループ特徴記憶部34に記憶されている特徴量をも参照してグループ領域単位でプリセット表現領域として選択するようにしてもよく、この場合、きめ細かく領域を選択することができる。   In addition, as a method for automatically specifying the appropriate priority for each integrated area, the integrated area result that is integrated by the number of repetitions when the number of group areas included in the integrated area is no longer increased or extremely reduced Can be used. In addition, the image processing unit 37 selects not only the integrated region stored in the integrated region storage unit 36 but also the feature amount stored in the group feature storage unit 34 as a preset expression region in units of group regions. In this case, it is possible to select a region in detail.

その後、画像加工部37は、予め設定されている複数の表現の中から処理記述により選択された表現になるように、特開平10−11569号公報等に開示される特徴量加工処理等を用いてプリセット表現を作成し、作成したプリセット表現を分割画像データ記憶部33に記憶されている複数の分割画像データに対して付加することにより、対象画像を絵画風画像等に加工して通信部21へ出力する。   Thereafter, the image processing unit 37 uses a feature amount processing process disclosed in Japanese Patent Application Laid-Open No. 10-11569 or the like so as to obtain an expression selected by a process description from a plurality of preset expressions. The preset expression is created, and the created preset expression is added to the plurality of divided image data stored in the divided image data storage unit 33, thereby processing the target image into a painting-like image or the like, and the communication unit 21. Output to.

このとき、画素単位で画像処理を行うのではなく、グループ領域の特徴量を用いて画像処理を行うことができるので、特開平10−11569号公報に開示される技術と同様に、グループ領域を領域の大きさ及び方向、曲率等から構成されるベクトル情報により表現することができ、より人間にとって自然で且つ拡大率を自由に変えて作品を作り出すことができる。   At this time, since the image processing can be performed using the feature amount of the group area, instead of performing the image processing in units of pixels, the group area is determined in the same manner as the technique disclosed in Japanese Patent Laid-Open No. 10-11569. It can be expressed by vector information composed of the size and direction of the area, the curvature, etc., and it is more natural for human beings and a work can be created by freely changing the enlargement ratio.

図6は、分割画像、統合画像及び加工画像の一例を模式的に示す図である。図6の(a)は分割画像データ記憶部34に記憶される分割画像を示しており、図中の各楕円がグループ領域に対応する。また、図6の(b)は統合領域記憶部36に記憶される統合画像を示しており、この例では、背景に相当する統合領域R1及び人物に相当する統合領域R2が作成されている。最後に、図6の(c)は画像処理部22により作成された加工画像を示しており、背景に相当する統合領域R1に対してぼかした表現を付加したり、人物に相当する統合領域R2に対して明瞭な表現を付加することができる。   FIG. 6 is a diagram schematically illustrating an example of a divided image, an integrated image, and a processed image. FIG. 6A shows a divided image stored in the divided image data storage unit 34, and each ellipse in the drawing corresponds to a group region. FIG. 6B shows an integrated image stored in the integrated area storage unit 36. In this example, an integrated area R1 corresponding to the background and an integrated area R2 corresponding to the person are created. Finally, (c) of FIG. 6 shows a processed image created by the image processing unit 22, and a blurred expression is added to the integrated region R1 corresponding to the background, or an integrated region R2 corresponding to a person. A clear expression can be added.

図7は、対象画像の一例を示す図であり、図8は、統合画像の一例を示す図であり、図9は、加工画像の一例を示す図である。図7に示す対象画像を図4に示す画像処理部22により絵画風画像に加工した場合、図8に示すように各統合領域が設定された統合画像が作成され、例えば、領域T1は、繰り返し回数が1回目で抽出された統一感の高い領域であり、領域T2は、繰り返し回数が1回目で抽出された対比効果の高い領域であり、領域T3は、繰り返し回数が3回目で抽出された統一感の高い領域である。その後、各統合領域に絵画風の表現が付加され、図9に示す加工画像を作成することができた。   FIG. 7 is a diagram illustrating an example of a target image, FIG. 8 is a diagram illustrating an example of an integrated image, and FIG. 9 is a diagram illustrating an example of a processed image. When the target image shown in FIG. 7 is processed into a picture-like image by the image processing unit 22 shown in FIG. 4, an integrated image in which each integrated area is set is created as shown in FIG. 8, for example, the area T1 is repeated. The region is a region with a high sense of unity extracted at the first time, the region T2 is a region with a high contrast effect extracted at the first repetition, and the region T3 is extracted at the third repetition This is a highly unified area. Thereafter, a painting-like expression was added to each integrated region, and the processed image shown in FIG. 9 could be created.

上記の処理により、本例では、対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出し、算出した特徴量をグループ領域毎に記憶し、記憶している特徴量を基に複数のグループ領域を統合して複数の統合領域を作成し、統合された統合領域を単位として画像加工処理が行われるので、デザインとして必要な統一感の高い領域や対比効果の高い領域を抽出することができるとともに、グラデーションのある領域を一つの領域に統合することができる。この結果、対象画像に複数の表現を与える際に各表現を与える領域を簡便且つ不自然さなく抽出することができる。   With the above processing, in this example, the target image is divided into a plurality of group areas, the feature amount of the group area is calculated for each group area, and the calculated feature amount is stored and stored for each group area. Multiple group areas are integrated based on feature values to create multiple integrated areas, and image processing is performed in units of the integrated areas. A high area can be extracted and a gradation area can be integrated into one area. As a result, when giving a plurality of expressions to the target image, it is possible to easily and easily extract a region to which each expression is given.

なお、画像処理部22の構成は上記の例に特に限定されず、種々の変更が可能であり、例えば、統合領域を用いることなく、特開平10−11569号公報等に開示される画像処理技術を用いてもよい。   The configuration of the image processing unit 22 is not particularly limited to the above example, and various modifications are possible. For example, an image processing technique disclosed in Japanese Patent Laid-Open No. 10-11569 or the like without using an integrated region. May be used.

また、本実施の形態では、クライアント/サーバ・モデルを用いて画像加工サーバ2により画像を加工したが、クライアントコンピュータ1において画像を加工したり、1台のコンピュータで全ての処理を実行する等の種々の変更が可能である。   In the present embodiment, the image is processed by the image processing server 2 using the client / server model. However, the client computer 1 processes the image, or all processing is executed by one computer. Various changes are possible.

本発明の一の実施の形態による画像加工サーバを用いた画像加工システムの構成を示すブロック図である。It is a block diagram which shows the structure of the image processing system using the image processing server by one embodiment of this invention. 図1に示す画像加工システムによる画像加工処理を説明するためのフローチャートである。It is a flowchart for demonstrating the image processing process by the image processing system shown in FIG. 図1に示す画像加工システムによる処理記述登録処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process description registration process by the image processing system shown in FIG. 図1に示す画像処理部の一例の構成を示すブロック図である。It is a block diagram which shows the structure of an example of the image process part shown in FIG. 図4に示す画像処理部による画像加工処理を説明するためのフローチャートである。It is a flowchart for demonstrating the image process by the image process part shown in FIG. 分割画像、統合画像及び加工画像の一例を模式的に示す図である。It is a figure which shows typically an example of a divided image, an integrated image, and a process image. 対象画像の一例を示す図である。It is a figure which shows an example of a target image. 統合画像の一例を示す図である。It is a figure which shows an example of an integrated image. 加工画像の一例を示す図である。It is a figure which shows an example of a process image.

符号の説明Explanation of symbols

1 クライアントコンピュータ
2 画像加工サーバ
21 通信部
22 画像処理部
23 特定情報記憶部
24 加工画像用生成部
25 処理記述用生成部
31 画像データ受付部
32 グループ特徴計算部
33 分割画像データ記憶部
34 グループ特徴記憶部
35 統合領域計算部
36 統合領域記憶部
37 画像加工部
DESCRIPTION OF SYMBOLS 1 Client computer 2 Image processing server 21 Communication part 22 Image processing part 23 Specific information storage part 24 Processed image generation part 25 Process description generation part 31 Image data reception part 32 Group feature calculation part 33 Division | segmentation image data storage part 34 Group feature Storage unit 35 Integrated region calculation unit 36 Integrated region storage unit 37 Image processing unit

Claims (7)

画像データに対して絵画風の加工を行う画像加工装置であって、
画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得手段と、
原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段と、
前記特定情報記憶手段を参照して前記取得手段により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得手段により取得された対象画像を画像処理する画像処理手段とを備え
前記画像処理手段は、
対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出手段と、
前記特徴量算出手段により算出された特徴量をグループ領域毎に記憶するグループ特徴記憶手段と、
前記グループ特徴記憶手段に記憶されている特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合手段と、
前記統合手段により統合された統合領域を記憶する統合領域記憶手段と、
前記統合領域記憶手段に記憶されている統合領域を単位として対象画像に対して画像加工処理を行う加工手段とを含み、
前記統合手段は、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合することを特徴とする画像加工装置。
An image processing apparatus that performs image-like processing on image data,
An acquisition means for acquiring a target image to be subjected to image processing and processed image specifying information for specifying a processed image created by performing image processing on the original image;
A processing description describing a processing procedure for creating a processed image from an original image is stored in advance in association with processing description specifying information for specifying the processing description, and the processing description specifying information and the processing description specifying Specific information storage means for preliminarily storing the processed image specific information of the processed image created by the process description specified by the information,
The process description specifying information associated with the processed image specifying information acquired by the acquiring means with reference to the specifying information storage means is specified, and the process description specified by the specified process description specifying information is used. Image processing means for image processing the target image acquired by the acquisition means ,
The image processing means includes
A feature amount calculating means for dividing the target image into a plurality of group regions and calculating a feature amount of the group region for each group region;
Group feature storage means for storing the feature quantity calculated by the feature quantity calculation means for each group region;
Integration means for creating a plurality of integrated areas by integrating a plurality of group areas based on the feature quantities stored in the group feature storage means;
Integrated area storage means for storing the integrated area integrated by the integration means;
Processing means for performing image processing on the target image in units of integrated areas stored in the integrated area storage means,
The integration unit uses the feature amount stored in the group feature storage unit, and the difference in feature amount between adjacent group regions is smaller than a first threshold and the number of group regions is equal to or greater than the first number. Are integrated as a first integrated region, and using the feature amount stored in the group feature storage means, the difference in feature amount between adjacent group regions is smaller than the first threshold, The number of group areas is equal to or greater than a second number less than the first number, and a group area in an integrated area adjacent to a predetermined amount or more of a group area feature amount among a plurality of group areas located at the boundary of the integrated area An image processing apparatus that integrates a region having an average value of a difference from a region feature amount that is greater than a second threshold that is equal to or greater than the first threshold as a second integrated region .
前記画像処理手段により作成された加工画像の加工画像特定情報を生成する加工画像用生成手段をさらに備え、
前記特定情報記憶手段は、前記加工画像用生成手段により生成された加工画像特定情報を加工画像の作成時に使用した処理記述の処理記述特定情報に対応付けて新たに記憶することを特徴とする請求項1記載の画像加工装置。
Further comprising processed image generation means for generating processed image specifying information of the processed image created by the image processing means;
The specified information storage means newly stores the processed image specifying information generated by the processed image generating means in association with the processing description specifying information of the processing description used when creating the processed image. Item 12. The image processing apparatus according to Item 1.
前記取得手段は、ユーザが作成した加工画像と、当該加工画像の作成時に使用した処理記述とを取得し、
前記取得手段により取得された加工画像の加工画像特定情報を生成するとともに、前記取得手段により取得された処理記述の処理記述特定情報を生成する処理記述用生成手段をさらに備え、
前記特定情報記憶手段は、前記処理記述用生成手段により生成された加工画像特定情報を当該加工画像特定情報とともに生成された処理記述特定情報に対応付けて記憶するとともに、当該処理記述特定情報に対応付けて前記取得手段により取得された処理記述を記憶することを特徴とする請求項1又は2記載の画像加工装置。
The acquisition means acquires a processed image created by a user and a processing description used when the processed image is created,
The processing description generation information for generating the processing description specific information of the processing description acquired by the acquisition means and the processing image generation information for the processed image acquired by the acquisition means is further provided,
The specific information storage means stores the processed image specifying information generated by the processing description generating means in association with the processing description specifying information generated together with the processed image specifying information, and corresponds to the processing description specifying information. The image processing apparatus according to claim 1, wherein the processing description acquired by the acquisition unit is stored.
前記取得手段は、ユーザが作成した加工画像と、当該加工画像と一体に組み込まれた処理記述とを取得し、
前記処理記述用生成手段は、前記取得手段により取得された加工画像の加工画像特定情報を生成するとともに、当該加工画像から処理記述を抽出し、抽出した処理記述の処理記述特定情報を生成することを特徴とする請求項3記載の画像加工装置。
The acquisition means acquires a processed image created by a user and a processing description integrated with the processed image,
The processing description generation unit generates the processed image specifying information of the processed image acquired by the acquiring unit, extracts the processing description from the processed image, and generates the processing description specifying information of the extracted processing description The image processing apparatus according to claim 3.
前記画像加工装置は、所定のネットワークを介してクライアントコンピュータと通信可能に接続されたサーバコンピュータを含み、
前記取得手段は、前記クライアントコンピュータからユーザが選択した対象画像及び加工画像特定情報を取得することを特徴とする請求項1〜4のいずれかに記載の画像加工装置。
The image processing device includes a server computer communicably connected to a client computer via a predetermined network,
The image processing apparatus according to claim 1, wherein the acquisition unit acquires a target image and processed image specifying information selected by a user from the client computer.
コンピュータを用いて画像データに対して絵画風の加工を行う画像加工方法であって、
前記コンピュータが、画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得ステップと、
前記コンピュータが、原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段を参照して、前記取得ステップにおいて取得した加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得ステップにおいて取得した対象画像を画像処理する画像処理ステップとを含み、
前記画像処理ステップは、
対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出ステップと、
前記特徴量算出ステップにおいて算出された特徴量をグループ領域毎に記憶するグループ特徴記憶ステップと、
前記グループ特徴記憶ステップにおいて記憶された特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合ステップと、
前記統合ステップにおいて統合された統合領域を記憶する統合領域記憶ステップと、
前記統合領域記憶ステップにおいて記憶された統合領域を単位として対象画像に対して画像加工処理を行う加工ステップとを含み、
前記統合ステップは、前記グループ特徴記憶ステップにおいて記憶された特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶ステップにおいて記憶された特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合するステップを含むことを特徴とする画像加工方法。
An image processing method for performing image- like processing on image data using a computer,
An acquisition step in which the computer acquires a target image to be subjected to image processing and processed image specifying information for specifying a processed image created by performing image processing on the original image;
The computer stores in advance a process description describing a processing procedure for creating a processed image from an original image in association with process description specifying information for specifying the process description, and the process description specifying information and The processing image specifying information acquired in the acquisition step is referred to by referring to the specific information storage means that stores the processing image specifying information of the processing image created by the processing description specified by the processing description specifying information in advance in association with the processing image specifying information. identify the process description specifying information associated with, seen containing an image processing step of the image processing target image obtained in said obtaining step by using the process described specified by the specified process description specifying information,
The image processing step includes
A feature amount calculating step of dividing the target image into a plurality of group regions and calculating a feature amount of the group region for each group region;
A group feature storage step of storing the feature amount calculated in the feature amount calculation step for each group region;
An integration step of integrating a plurality of group regions based on the feature amounts stored in the group feature storage step to create a plurality of integration regions;
An integrated region storage step for storing the integrated region integrated in the integration step;
A processing step of performing image processing on the target image in units of the integrated region stored in the integrated region storage step,
In the integration step, the feature amount stored in the group feature storage step is used, a difference in feature amount between adjacent group regions is smaller than a first threshold value, and the number of group regions is equal to or more than the first number. The regions are integrated as a first integrated region, and the feature amount stored in the group feature storage step is used to make a difference in feature amount between adjacent group regions smaller than the first threshold, and the group region The number of group regions in the integrated region adjacent to the feature amount of the group region equal to or greater than a predetermined ratio among the plurality of group regions located at the boundary of the integrated region, the number of which is equal to or greater than the second number less than the first number. image, wherein the average value of the difference between the feature quantity includes the step of integrating the area greater than the first threshold value or more second threshold as a second combined area Engineering method.
画像データに対して絵画風の加工を行うための画像加工プログラムであって、
画像処理の対象となる対象画像と、原画像を画像処理して作成された加工画像を特定するための加工画像特定情報とを取得する取得手段と、
原画像から加工画像を作成する際の処理手順を記述した処理記述を、当該処理記述を特定するための処理記述特定情報に対応付けて予め記憶するとともに、前記処理記述特定情報と当該処理記述特定情報により特定される処理記述により作成された加工画像の加工画像特定情報とを対応付けて予め記憶する特定情報記憶手段と、
前記特定情報記憶手段を参照して前記取得手段により取得された加工画像特定情報に対応付けられている処理記述特定情報を特定し、特定した処理記述特定情報により特定される処理記述を用いて前記取得手段により取得された対象画像を画像処理する画像処理手段としてコンピュータを機能させ
前記画像処理手段は、
対象画像を複数のグループ領域に分割してグループ領域毎に当該グループ領域の特徴量を算出する特徴量算出手段と、
前記特徴量算出手段により算出された特徴量をグループ領域毎に記憶するグループ特徴記憶手段と、
前記グループ特徴記憶手段に記憶されている特徴量を基に複数のグループ領域を統合して複数の統合領域を作成する統合手段と、
前記統合手段により統合された統合領域を記憶する統合領域記憶手段と、
前記統合領域記憶手段に記憶されている統合領域を単位として対象画像に対して画像加工処理を行う加工手段とを含み、
前記統合手段は、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が第1の閾値より小さく且つそのグループ領域数が第1の個数以上となる領域を第1の統合領域として統合し、さらに、前記グループ特徴記憶手段に記憶されている特徴量を用いて、隣接するグループ領域間の特徴量の差が前記第1の閾値より小さく、そのグループ領域数が前記第1の個数より少ない第2の個数以上であり、且つ統合領域の境界に位置する複数のグループ領域のうち所定割合以上のグループ領域の特徴量と隣接する統合領域内のグループ領域の特徴量との差の平均値が前記第1の閾値以上の第2の閾値より大きい領域を第2の統合領域として統合することを特徴とする画像加工プログラム。
An image processing program for performing painting-like processing on image data,
An acquisition means for acquiring a target image to be subjected to image processing and processed image specifying information for specifying a processed image created by performing image processing on the original image;
A processing description describing a processing procedure for creating a processed image from an original image is stored in advance in association with processing description specifying information for specifying the processing description, and the processing description specifying information and the processing description specifying Specific information storage means for preliminarily storing the processed image specific information of the processed image created by the process description specified by the information,
The process description specifying information associated with the processed image specifying information acquired by the acquiring means with reference to the specifying information storage means is specified, and the process description specified by the specified process description specifying information is used. Causing the computer to function as image processing means for performing image processing on the target image obtained by the obtaining means ;
The image processing means includes
A feature amount calculating means for dividing the target image into a plurality of group regions and calculating a feature amount of the group region for each group region;
Group feature storage means for storing the feature quantity calculated by the feature quantity calculation means for each group region;
Integration means for creating a plurality of integrated areas by integrating a plurality of group areas based on the feature quantities stored in the group feature storage means;
Integrated area storage means for storing the integrated area integrated by the integration means;
Processing means for performing image processing on the target image in units of integrated areas stored in the integrated area storage means,
The integration unit uses the feature amount stored in the group feature storage unit, and the difference in feature amount between adjacent group regions is smaller than a first threshold and the number of group regions is equal to or greater than the first number. Are integrated as a first integrated region, and using the feature amount stored in the group feature storage means, a difference in feature amount between adjacent group regions is smaller than the first threshold, The number of group areas is equal to or greater than a second number smaller than the first number, and a group area in an integrated area adjacent to a predetermined amount or more of a group area feature amount among a plurality of group areas located at the boundary of the integrated area An image processing program that integrates, as a second integrated region, a region in which an average value of differences from a region feature amount is greater than a second threshold that is equal to or greater than the first threshold .
JP2003414631A 2003-12-12 2003-12-12 Image processing apparatus, image processing method, and image processing program Expired - Fee Related JP4136918B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003414631A JP4136918B2 (en) 2003-12-12 2003-12-12 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003414631A JP4136918B2 (en) 2003-12-12 2003-12-12 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2005174070A JP2005174070A (en) 2005-06-30
JP4136918B2 true JP4136918B2 (en) 2008-08-20

Family

ID=34734365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003414631A Expired - Fee Related JP4136918B2 (en) 2003-12-12 2003-12-12 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP4136918B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4930607B2 (en) * 2010-02-04 2012-05-16 カシオ計算機株式会社 Image processing apparatus and image processing program

Also Published As

Publication number Publication date
JP2005174070A (en) 2005-06-30

Similar Documents

Publication Publication Date Title
JP7247587B2 (en) Image style conversion device, image style conversion method, and program
CN110599393B (en) Picture style conversion method, device, equipment and computer readable storage medium
CN112771578B (en) Image generation using segmentation scaling and depth upscaling
CN109671126A (en) Using Neural Networks to Predict Block Displacement Maps
US20070091106A1 (en) Adaptive lexical classification system
US9098534B2 (en) Image display system, image display method, social network service system, and computer-readable medium
JP2020013563A (en) System and method for generating photorealistic composite images based on semantic information
US20050146537A1 (en) Selection of decorative picture suitable for input picture
US11288851B2 (en) Signal change apparatus, method, and program
JP7447251B2 (en) Assessing the visual quality of digital content
US20250209593A1 (en) Evaluating visual quality of digital content
WO2017073001A1 (en) Make parts generating device and make parts generating method
CN114037053A (en) Vehicle visual perception data enhancement method based on GAN and related equipment
JP2022038285A (en) Machine learning device and far-infrared image pickup device
JP2022003447A (en) Learning method, content reproduction device, and content reproduction system
JP4136918B2 (en) Image processing apparatus, image processing method, and image processing program
JP2021068141A (en) Region dividing device, dividing method, and dividing program
JP7148078B2 (en) Attribute estimation device, attribute estimation method, attribute estimator learning device, and program
CN113614791A (en) Dynamic three-dimensional imaging method
US11055881B2 (en) System and a method for providing color vision deficiency assistance
JP2003077001A (en) Face image communication device and program
JP2019032654A (en) Image processing apparatus, image processing method, and computer program
KR20200137933A (en) Reference content recommendation system and method utilizing color code
US20250252723A1 (en) Generating an implicit neural representation
CN113971631B (en) Image conversion method, model training method, device, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050421

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080318

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees