JP5719665B2 - Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program - Google Patents

Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program Download PDF

Info

Publication number
JP5719665B2
JP5719665B2 JP2011087667A JP2011087667A JP5719665B2 JP 5719665 B2 JP5719665 B2 JP 5719665B2 JP 2011087667 A JP2011087667 A JP 2011087667A JP 2011087667 A JP2011087667 A JP 2011087667A JP 5719665 B2 JP5719665 B2 JP 5719665B2
Authority
JP
Japan
Prior art keywords
image
original image
original
unit
composite
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
JP2011087667A
Other languages
Japanese (ja)
Other versions
JP2012222667A (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.)
Kansai University
Original Assignee
Kansai University
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 Kansai University filed Critical Kansai University
Priority to JP2011087667A priority Critical patent/JP5719665B2/en
Publication of JP2012222667A publication Critical patent/JP2012222667A/en
Application granted granted Critical
Publication of JP5719665B2 publication Critical patent/JP5719665B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムに関し、特に原画像に対して挿入画像を合成または分離する画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムに関する。   The present invention relates to an image composition processing device, an image separation processing device, an image processing system, an image composition processing method, an image separation processing method, an image processing method, and a program, and in particular, an image that synthesizes or separates an insertion image from an original image. The present invention relates to a composition processing device, an image separation processing device, an image processing system, an image composition processing method, an image separation processing method, an image processing method, and a program.

従来、自然画像である原画像に、別の画像データを挿入画像として合成する電子透かし技術が知られている。電子透かし技術では、原画像に対して挿入画像を目立たないように合成する必要がある。そこで、原画像の空間周波数成分を抽出して、高周波領域に挿入画像を合成することで、挿入画像を原画像に対して目立たなくすることが知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, a digital watermark technique for synthesizing another image data as an insertion image with an original image that is a natural image is known. In the digital watermark technique, it is necessary to synthesize an inserted image so as not to stand out from the original image. Therefore, it is known that the spatial frequency component of the original image is extracted and the inserted image is synthesized in the high frequency region, thereby making the inserted image less noticeable with respect to the original image (see, for example, Patent Document 1).

また、他の電子透かし技術として、原画像の見た目に影響の少ない部分に挿入画像を合成する画素置換法が知られている。また、原画像および挿入画像に対してアマダール変換を施す画素空間利用法が知られている。   As another electronic watermarking technique, a pixel replacement method is known in which an inserted image is synthesized with a portion having little influence on the appearance of an original image. In addition, a pixel space utilization method for performing Amadal transformation on an original image and an inserted image is known.

特開2010−011252号公報JP 2010-011252 A

しかしながら、原画像の空間周波数成分を利用して原画像に挿入画像を合成する場合、原画像を周波数成分に変換してからその係数を利用して挿入画像を合成するので、相対的に計算量、メモリ量などに対する負荷が高くなってしまう。画像置換法および画素空間利用法を利用して原画像に挿入画像を合成する場合でも、合成原理や手順が複雑で、実現困難である場合が多い。合成画像から挿入画像を分離する場合も同様に、分離原理や手順が複雑であるので、実現困難である場合が多い。   However, when the insertion image is synthesized with the original image using the spatial frequency component of the original image, the insertion image is synthesized using the coefficients after converting the original image into the frequency component. The load on the memory amount becomes high. Even when an insertion image is synthesized with an original image using an image replacement method and a pixel space utilization method, the synthesis principle and procedure are often complicated and difficult to implement. Similarly, when an insertion image is separated from a composite image, the separation principle and procedure are similarly complicated, and this is often difficult to implement.

本発明は、斯かる事情に鑑み、原画像に対する挿入画像の合成または分離をより簡素にする画像処理装置、画像処理システム、画像処理方法、およびプログラムを提供することを課題とする。   In view of such circumstances, it is an object of the present invention to provide an image processing device, an image processing system, an image processing method, and a program that make it easier to synthesize or separate an inserted image from an original image.

本発明に係る画像合成処理装置は、所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理装置であって、前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成する埋込画像作成部と、前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する伸長原画像作成部と、前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成する合成画像作成部とを備える。 An image composition processing device according to the present invention is an image composition processing device for compositing at least one insertion image to an original image based on a predetermined composition condition, and is configured to block an inserted image that has been blocked in accordance with the composition condition . An embedded image that creates an embedded image by inserting a predetermined code element that is equal to the data amount of each element into a position adjacent to the position of each element that is quantized data in a predetermined direction. Elements included in the quantized data of the original image that is blocked in each of the element of the inserted image included in the embedding image and the code element inserted in the element according to the synthesis condition and the synthesis condition A decompressed original image creating unit that creates a decompressed original image by decompressing the original image in a predetermined direction by duplicating each element of the quantized data of the original image in order to synthesize one of them, the synthesis conditions Therefore, and a composite image creation unit that creates a synthesized and the synthesized image and the elements included in each element and an extended original images included in the embedded image.

斯かる構成によれば、挿入画像への所定の符号要素の挿入、原画像の伸長、および所定の条件にしたがう合成により合成画像を作成するので、簡素な作業で合成画像を作成できる。   According to such a configuration, since the composite image is created by inserting a predetermined code element into the inserted image, decompressing the original image, and compositing according to a predetermined condition, the composite image can be created with a simple operation.

本発明に係る画像分離処理装置は、上記画像合成処理装置で作成された合成画像から挿入画像を分離する画像分離処理装置であって、ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素から、所定の合成条件を利用して、伸長原画像の各要素を復元する伸長原画像復元部と、ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を、所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元する挿入画像復元部とを備える。   An image separation processing device according to the present invention is an image separation processing device that separates an insertion image from a composite image created by the image composition processing device, wherein each element that is quantized data of a blocked composite image A decompressed original image restoration unit that restores each element of the decompressed original image using a predetermined composition condition from an element in which the predetermined code element and each element of the decompressed original image are synthesized is blocked. Among the elements that are the quantized data of the combined image, the elements of the expanded original image extracted at positions adjacent to each other in the predetermined direction from the elements in which the elements of the inserted image and the elements of the expanded original image are combined An insertion image restoration unit that restores each element of the insertion image from each element of the synthesized image by removing the elements using a predetermined synthesis condition.

斯かる構成によれば、合成画像からの伸長原画像の復元、合成画像からの伸長原画像の要素の除去による挿入画像の各要素の復元、および復元された挿入画像の各要素の結合という、簡素な作業で合成画像から挿入画像を分離できる。   According to such a configuration, restoration of the decompressed original image from the synthesized image, restoration of each element of the inserted image by removing elements of the decompressed original image from the synthesized image, and combination of each element of the restored inserted image, The inserted image can be separated from the composite image with a simple operation.

また、本発明に係る画像処理システムは、合成画像を作成する上記画像合成処理装置と、該合成画像から挿入画像を分離する上記画像分離処理装置とを備える。   An image processing system according to the present invention includes the above-described image composition processing device that creates a composite image, and the above-described image separation processing device that separates an insertion image from the composite image.

斯かる構成によれば、簡素な作業で挿入画像および原画像を合成できるとともに、簡素な作業で合成画像から挿入画像が分離できるので、全体として簡素な作業で合成画像の作成および分離をすることができる。   According to such a configuration, the insertion image and the original image can be combined with a simple operation, and the insertion image can be separated from the composite image with a simple operation. Therefore, the composite image can be created and separated with a simple operation as a whole. Can do.

本発明に係る画像合成方法は、所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理方法であって、前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成するステップと、前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成するステップと、前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成するステップとを備える。 An image composition method according to the present invention is an image composition processing method for compositing at least one inserted image to an original image based on a predetermined composition condition , wherein a quantum of an inserted image blocked according to the composition condition into a position adjacent in the predetermined direction with respect to the position of each element of the data, by inserting a predetermined code elements that are equally blocked into data amount of each element, creating a buried image, wherein One of the elements included in the quantized data of the original image blocked in each of the element of the inserted image included in the embedded image and the code element inserted for the element according to the synthesis condition the order to synthesize in correspondence, and creating an extension original image by decompressing the original image in a predetermined direction by duplicating each element of the quantized data of the original image, according to the synthesis conditions, Umakomiga And a step of creating a composite to composite images and each element in the extended original image and each element in.

斯かる構成によれば、挿入画像への所定の符号要素の挿入、原画像の伸長、および所定の合成条件にしたがう合成により合成画像を作成するので、簡素な作業で合成画像を作成できる。   According to such a configuration, since a composite image is created by inserting a predetermined code element into the inserted image, decompressing the original image, and compositing according to a predetermined compositing condition, it is possible to create a composite image with a simple operation.

本発明に係る画像分離方法は、上記画像合成方法で作成された合成画像から挿入画像を分離する画像分離方法であって、ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素から、所定の合成条件を利用して、伸長原画像の各要素を復元するステップと、ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を、所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元するステップと、復元された挿入画像を結合するステップとを備える。   An image separation method according to the present invention is an image separation method for separating an inserted image from a composite image created by the above image composition method, and is a predetermined element among elements that are quantized data of a composite image that has been blocked. A step of restoring each element of the decompressed original image from the elements in which the code element of the image and each element of the decompressed original image are synthesized using a predetermined composition condition, and quantized data of the blocked composite image Among the elements that are, the elements of the expanded original image extracted at positions adjacent to each other in the predetermined direction from the elements in which the elements of the inserted image and the elements of the expanded original image are combined And removing the elements of the combined image from the elements of the combined image, and combining the restored inserted image.

斯かる構成によれば、合成画像からの伸長原画像の復元、合成画像からの伸長原画像の要素の除去による挿入画像の各要素の復元、および復元された挿入画像の各要素の結合という、簡素な作業で合成画像から挿入画像を分離できる。   According to such a configuration, restoration of the decompressed original image from the synthesized image, restoration of each element of the inserted image by removing elements of the decompressed original image from the synthesized image, and combination of each element of the restored inserted image, The inserted image can be separated from the composite image with a simple operation.

また、本発明に係る画像処理方法は、合成画像を作成する上記画像合成方法と、該合成画像から挿入画像を分離する上記画像分離方法とを備える。   An image processing method according to the present invention includes the above-described image composition method for creating a composite image, and the above-described image separation method for separating an insertion image from the composite image.

斯かる構成によれば、簡素な作業で挿入画像および原画像を合成できるとともに、簡素な作業で合成画像から挿入画像を分離できるので、全体として簡素な作業で合成画像の作成および分離をすることができる。   According to such a configuration, the inserted image and the original image can be combined with a simple operation, and the inserted image can be separated from the combined image with a simple operation. Therefore, the composite image can be created and separated with a simple operation as a whole. Can do.

本発明にかかるプログラムは、コンピュータを、所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理装置として機能させるプログラムであって、コンピュータを、前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成する埋込画像作成部、前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する伸長原画像作成部と、前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成する合成画像作成部として機能させる。 A program according to the present invention is a program that causes a computer to function as an image composition processing device that synthesizes at least one inserted image with an original image based on a predetermined composition condition. Insert a predetermined code element that is equal to the data amount of each element and embed it at a position adjacent to the position of each element that is quantized data of the inserted insertion image in a predetermined direction. An embedded image creating unit for creating an image, and in accordance with the synthesis condition, each of an element of an inserted image included in the embedded image and a code element inserted with respect to the element are quantized to block the original image In order to synthesize one of the elements included in the quantized data, the original image is expanded and stretched in a predetermined direction by duplicating each element of the quantized data of the original image. An elongate original image creating section that creates an original image, in accordance with the synthesis conditions, as a composite image creation unit that creates a synthesized and the synthesized image and the elements included in each element and an extended original images included in the embedded image Make it work.

斯かる構成によれば、挿入画像への所定の符号要素の挿入、原画像の伸長、および所定の条件にしたがう合成により合成画像を作成するので、簡素な作業で合成画像を作成できる。   According to such a configuration, since the composite image is created by inserting a predetermined code element into the inserted image, decompressing the original image, and compositing according to a predetermined condition, the composite image can be created with a simple operation.

また、本発明に係るプログラムは、コンピュータを、上記画像合成処理装置として機能させるプログラムを利用して作成された合成画像から、挿入画像を分離する画像分離処理装置として機能させるプログラムであって、コンピュータを、ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素とから、所定の合成条件を利用して、伸長原画像の各要素を復元する伸長原画像復元部、ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元する挿入画像復元部として機能させる。   A program according to the present invention is a program that causes a computer to function as an image separation processing device that separates an inserted image from a composite image created by using a program that causes the computer to function as the image composition processing device. Is decompressed from the elements that are the quantized data of the blocked composite image, using the predetermined composition conditions, from the elements in which the predetermined code element and each element of the decompressed original image are combined The decompressed original image restoration unit that restores each element of the original image, and among the elements that are the quantized data of the blocked composite image, the elements of the inserted image and the elements of the decompressed original image are combined The elements of the inserted image are restored from the elements of the composite image by removing the elements of the decompressed original image extracted at adjacent positions in the predetermined direction from the elements of the composite image. To function as an insertion image restoration unit that.

斯かる構成によれば、合成画像からの伸長原画像の復元、合成画像からの伸長原画像の要素の除去による挿入画像の各要素の復元、および復元された挿入画像の各要素の結合という、簡素な作業で合成画像から挿入画像を分離できる。   According to such a configuration, restoration of the decompressed original image from the synthesized image, restoration of each element of the inserted image by removing elements of the decompressed original image from the synthesized image, and combination of each element of the restored inserted image, The inserted image can be separated from the composite image with a simple operation.

また、本発明に係るプログラムは、コンピュータを、合成画像を作成する上記画像合成処理装置として機能させるプログラムと、該合成画像から挿入画像を分離する上記画像分離処理装置として機能させるプログラムとを備える。   In addition, a program according to the present invention includes a program that causes a computer to function as the image synthesis processing device that creates a composite image, and a program that causes the computer to function as the image separation processing device that separates an insertion image from the composite image.

斯かる構成によれば、簡素な作業で挿入画像および原画像を合成できるとともに、簡素な作業で合成画像から挿入画像を分離できるので、全体として簡素な作業で合成画像の作成および分離をすることができる。   According to such a configuration, the inserted image and the original image can be combined with a simple operation, and the inserted image can be separated from the combined image with a simple operation. Therefore, the composite image can be created and separated with a simple operation as a whole. Can do.

以上の如く、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムによれば、原画像に対する挿入画像の合成または分離をより簡素にできるという優れた効果を奏する。   As described above, according to the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, There is an excellent effect that the separation can be simplified.

本発明の一実施形態に係る画像処理システムのシステム構成図を示す。1 shows a system configuration diagram of an image processing system according to an embodiment of the present invention. FIG. 同実施形態に係る画像合成処理装置(画像分離処理装置)のハードウェア構成図を示す。2 is a hardware configuration diagram of an image composition processing device (image separation processing device) according to the embodiment. FIG. 同実施形態に係る画像合成処理装置のブロック図を示す。1 is a block diagram of an image composition processing device according to the embodiment. FIG. 同実施形態に係る合成条件決定部のブロック図を示す。The block diagram of the synthetic | combination condition determination part which concerns on the same embodiment is shown. 同実施形態に係る画像合成部のブロック図を示す。The block diagram of the image composition part concerning the embodiment is shown. 同実施形態に係る画像分離処理装置のブロック図を示す。FIG. 2 is a block diagram of an image separation processing device according to the embodiment. 同実施形態に係る画像分離部のブロック図を示す。The block diagram of the image separation part which concerns on the same embodiment is shown. 同実施形態に係る合成画像の作成におけるフローチャートを示す。3 shows a flowchart in creating a composite image according to the embodiment. 同実施形態に係る合成条件の決定におけるフローチャートを示す。6 shows a flowchart for determining a synthesis condition according to the embodiment. 同実施形態に係る挿入画像の分離におけるフローチャートを示す。5 shows a flowchart of separating an inserted image according to the embodiment. 同実施形態に係る挿入画像と原画像とを合成する概略図を示す。The schematic which synthesize | combines the insertion image and original image which concern on the embodiment is shown. 同実施形態に係る合成画像から挿入画像を分離する概略図を示す。The schematic diagram which isolate | separates an insertion image from the synthesized image which concerns on the embodiment is shown. 同実施形態に係る原画像および挿入画像を示し、図13(a)は、第1の原画像を示し、図13(b)は、第2の原画像を示し、図13(c)は、挿入画像を示す。FIG. 13A shows a first original image, FIG. 13B shows a second original image, and FIG. 13C shows an original image and an inserted image according to the embodiment. An inserted image is shown. 同実施形態に係る、所定の混合比率で合成された第1の合成画像と、第1の合成画像から分離された挿入画像とを示し、図14(a)は、所定の混合比率で合成された第1の合成画像を示し、図14(b)は、第1の合成画像から分離された挿入画像を示す。FIG. 14A shows a first synthesized image synthesized at a predetermined mixing ratio and an inserted image separated from the first synthesized image according to the embodiment, and FIG. FIG. 14B shows an insertion image separated from the first composite image. 同実施形態に係る、所定の混合比率で合成された第2の合成画像と、第2の合成画像から分離された挿入画像とを示し、図15(a)は、所定の混合比率で合成された第2の合成画像を示し、図15(b)は、第2の合成画像から分離された挿入画像を示す。FIG. 15A shows a second synthesized image synthesized at a predetermined mixing ratio and an inserted image separated from the second synthesized image according to the embodiment, and FIG. FIG. 15B shows an insertion image separated from the second composite image. 他の実施形態に係る、画像合成部のブロック図を示す。The block diagram of the image composition part based on other embodiments is shown. 他の実施形態に係る、合成条件の決定におけるフローチャートを示す。The flowchart in determination of the synthetic | combination conditions based on other embodiment is shown. 他の実施形態に係る、所定の相対比率で合成された第3の合成画像と、第3の合成画像から分離された挿入画像とを示し、図18(a)は、所定の相対比率で合成された第3の合成画像を示し、図18(b)は、第2の合成画像から分離された挿入画像を示す。FIG. 18A shows a third synthesized image synthesized at a predetermined relative ratio and an inserted image separated from the third synthesized image according to another embodiment, and FIG. FIG. 18B shows the inserted image separated from the second composite image. 他の実施形態に係る、所定の相対比率で合成された第4の合成画像と、第4の合成画像から分離された挿入画像とを示し、図19(a)は、所定の相対比率で合成された第4の合成画像を示し、図19(b)は、第4の合成画像から分離された挿入画像を示す。FIG. 19A shows a fourth synthesized image synthesized at a predetermined relative ratio and an inserted image separated from the fourth synthesized image according to another embodiment, and FIG. FIG. 19B shows an inserted image separated from the fourth composite image.

<第1の実施形態>
以下、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおける第1の実施形態について、図1〜図15を参酌して説明する。
<First Embodiment>
FIG. 1 to FIG. 15 show a first embodiment of an image composition processing device, an image separation processing device, an image processing system, an image composition processing method, an image separation processing method, an image processing method, and a program according to the present invention. Take this into account.

図1に示すように、画像処理システム1は、原画像と原画像に埋め込む挿入画像とを合成する画像合成処理装置2と、原画像および挿入画像を画像合成処理装置2に提供する画像提供装置3と、画像合成処理装置2において合成された合成画像を出力する合成画像出力装置4と、合成画像出力装置4において出力された合成画像から挿入画像を分離する画像分離処理装置5とを備える。なお、原画像は、例えば、複数の階調をもつ自然画像であってよい。また、挿入画像は、例えば、白と黒とで表される2値画像であってよい。本実施形態において、原画像は、複数の階調をもつ自然画像であり、挿入画像は、QRコード(登録商標)であるとして説明する。   As shown in FIG. 1, an image processing system 1 includes an image composition processing device 2 that synthesizes an original image and an insert image embedded in the original image, and an image providing device that provides the image composition processing device 2 with the original image and the insert image. 3, a synthesized image output device 4 that outputs a synthesized image synthesized by the image synthesis processing device 2, and an image separation processing device 5 that separates an insertion image from the synthesized image output by the synthesized image output device 4. The original image may be a natural image having a plurality of gradations, for example. Further, the insertion image may be a binary image represented by white and black, for example. In the present embodiment, description will be made assuming that the original image is a natural image having a plurality of gradations, and the inserted image is a QR code (registered trademark).

[画像合成処理装置] [Image composition processing device]

図2に示すように、本実施形態に係る画像合成処理装置2は、ホスト・コントローラ282により相互に接続されるCPU205、RAM220、グラフィック・コントローラ275、および表示装置280を有するCPU205周辺部と、入出力コントローラ284によりホスト・コントローラ282に接続される通信インターフェイス230、ハードディスクドライブ240、およびCD−ROMドライブ260を有する入出力部と、入出力コントローラ284に接続されるROM210と、入出力チップ270を有するレガシー入出力部とを備える。   As shown in FIG. 2, the image composition processing device 2 according to the present embodiment includes a CPU 205 peripheral unit including a CPU 205, a RAM 220, a graphic controller 275, and a display device 280 connected to each other by a host controller 282. An input / output unit having a communication interface 230, a hard disk drive 240, and a CD-ROM drive 260 connected to the host controller 282 by the output controller 284, a ROM 210 connected to the input / output controller 284, and an input / output chip 270 It has a legacy input / output unit.

ホスト・コントローラ282は、RAM220と、高い転送レートでRAM220をアクセスするCPU205およびグラフィック・コントローラ275とを接続する。CPU205は、ROM210およびRAM220に格納されたプログラムに基づいて動作して、各部を制御する。グラフィック・コントローラ275は、CPU205等がRAM220内に設けたフレーム・バッファ上に作成する画像データを取得して、表示装置280上に表示させる。これに代えて、グラフィック・コントローラ275は、CPU205等が作成する画像データを格納するフレーム・バッファを内部に含んでもよい。   The host controller 282 connects the RAM 220 to the CPU 205 and the graphic controller 275 that access the RAM 220 at a high transfer rate. The CPU 205 operates based on programs stored in the ROM 210 and the RAM 220 to control each unit. The graphic controller 275 acquires image data created on a frame buffer provided in the RAM 220 by the CPU 205 or the like and displays it on the display device 280. Alternatively, the graphic controller 275 may include a frame buffer that stores image data created by the CPU 205 or the like.

入出力コントローラ284は、ホスト・コントローラ282と、比較的高速な入出力装置である通信インターフェイス230、ハードディスクドライブ240、CD−ROMドライブ260を接続する。通信インターフェイス230は、ネットワークを介して他の装置と通信する。ハードディスクドライブ240は、画像合成処理装置2内のCPU205が使用するプログラムおよびデータを格納する。CD−ROMドライブ260は、CD−ROM295からプログラムまたはデータを読み取り、RAM220を介してハードディスクドライブ240に提供する。   The input / output controller 284 connects the host controller 282 to the communication interface 230, the hard disk drive 240, and the CD-ROM drive 260, which are relatively high-speed input / output devices. The communication interface 230 communicates with other devices via a network. The hard disk drive 240 stores programs and data used by the CPU 205 in the image composition processing apparatus 2. The CD-ROM drive 260 reads a program or data from the CD-ROM 295 and provides it to the hard disk drive 240 via the RAM 220.

また、入出力コントローラ284には、ROM210と、入出力チップ270の比較的低速な入出力装置とが接続される。ROM210は、画像合成処理装置2が起動時に実行するブート・プログラム、画像合成処理装置2のハードウェアに依存するプログラム等を格納する。入出力チップ270は、例えばパラレル・ポート、シリアル・ポート、キーボード・ポート、マウス・ポート等を介して各種の入出力装置を接続する。   The input / output controller 284 is connected to the ROM 210 and a relatively low-speed input / output device of the input / output chip 270. The ROM 210 stores a boot program that the image composition processing device 2 executes at startup, a program that depends on the hardware of the image composition processing device 2, and the like. The input / output chip 270 connects various input / output devices via, for example, a parallel port, a serial port, a keyboard port, a mouse port, and the like.

RAM220を介してハードディスクドライブ240に提供されるプログラムは、CD−ROM295またはICカード等の記録媒体に格納されて利用者によって提供される。プログラムは、記録媒体から読み出され、RAM220を介して画像合成処理装置2内のハードディスクドライブ240にインストールされ、CPU205において実行される。画像合成処理装置2にインストールされて実行されるプログラムは、CPU205等に働きかけて制御部として機能させ、画像合成処理装置2を制御させる。   A program provided to the hard disk drive 240 via the RAM 220 is stored in a recording medium such as a CD-ROM 295 or an IC card and provided by a user. The program is read from the recording medium, installed in the hard disk drive 240 in the image composition processing apparatus 2 via the RAM 220, and executed by the CPU 205. A program installed and executed in the image composition processing apparatus 2 works on the CPU 205 or the like to function as a control unit, and controls the image composition processing apparatus 2.

画像合成処理装置2は、例えば、携帯端末、パーソナルコンピュータ等であってよい。画像合成処理装置2は、画像提供部3および合成画像出力装置4と有線または無線で接続されて、原画像、挿入画像、および合成画像を送受信する。図3に示すように、画像合成処理装置2は、ユーザからの入力を受け付ける入力デバイス21aと、画像提供装置3から原画像および挿入画像を取得する画像取得部21と、画像取得部21が取得した原画像および挿入画像を格納する画像格納部22と、原画像および挿入画像の合成条件を決定する合成条件決定部23と、合成条件決定部23が決定した合成条件を格納する合成条件格納部24と、決定された合成条件にしたがって原画像および挿入画像を合成する画像合成部25と、合成画像および決定された合成条件を合成画像出力部4に出力する画像出力部26とを備える。   The image composition processing device 2 may be, for example, a mobile terminal, a personal computer, or the like. The image composition processing device 2 is connected to the image providing unit 3 and the composite image output device 4 by wire or wirelessly, and transmits and receives an original image, an insertion image, and a composite image. As illustrated in FIG. 3, the image composition processing device 2 is acquired by the input device 21 a that receives input from the user, the image acquisition unit 21 that acquires the original image and the insertion image from the image providing device 3, and the image acquisition unit 21. An image storage unit 22 for storing the original image and the inserted image, a synthesis condition determination unit 23 for determining a synthesis condition for the original image and the insertion image, and a synthesis condition storage unit for storing the synthesis condition determined by the synthesis condition determination unit 23 24, an image combining unit 25 that combines the original image and the inserted image in accordance with the determined combining condition, and an image output unit 26 that outputs the combined image and the determined combining condition to the combined image output unit 4.

入力デバイス21aは、例えばキーボードやマウス等である。入力デバイス21aは、画像提供装置3に格納されている原画像および合成画像のうち、ユーザから合成を希望する原画像および挿入画像を選択する情報の入力を受け付ける。入力デバイス21aは、入力された、原画像および挿入画像を選択する情報を、画像取得部21に送る。   The input device 21a is, for example, a keyboard or a mouse. The input device 21a accepts input of information for selecting an original image and an insertion image desired to be synthesized from a user among original images and synthesized images stored in the image providing device 3. The input device 21 a sends the input information for selecting the original image and the inserted image to the image acquisition unit 21.

なお、入力デバイス21aは、スキャナ等の画像読取部であってもよく、入力デバイス21aに原画像または挿入画像が直接入力されてもよい。原画像または挿入画像が入力デバイス21aに入力された場合、入力デバイス21aは、入力された原画像または挿入画像を合成条件決定部23に送る。また、入力デバイス21aは、原画像および挿入画像を合成する合成条件の入力を受け付けてもよい。合成条件が入力された場合、入力デバイス21aは、入力された合成条件を合成条件決定部23に送る。   The input device 21a may be an image reading unit such as a scanner, and an original image or an insertion image may be directly input to the input device 21a. When the original image or the insertion image is input to the input device 21 a, the input device 21 a sends the input original image or insertion image to the synthesis condition determination unit 23. Further, the input device 21a may accept an input of a synthesis condition for synthesizing the original image and the insertion image. When the synthesis condition is input, the input device 21 a sends the input synthesis condition to the synthesis condition determination unit 23.

画像取得部21は、例えば、LANカードや、無線通信手段、またはI/Oポート等を含む。画像取得部21は、入力デバイス21aから送られた原画像および挿入画像を選択する情報を取得する。画像取得部21は、選択された原画像および挿入画像を画像提供装置3から取得する。画像取得部21は、取得した原画像および挿入画像を画像格納部22に送る。   The image acquisition unit 21 includes, for example, a LAN card, a wireless communication unit, an I / O port, or the like. The image acquisition unit 21 acquires information for selecting an original image and an insertion image sent from the input device 21a. The image acquisition unit 21 acquires the selected original image and insertion image from the image providing device 3. The image acquisition unit 21 sends the acquired original image and insertion image to the image storage unit 22.

画像格納部22は、例えば、ハードディスク、RAM、光メディア、またはSSDなどの記憶装置であってよい。画像格納部22は、画像受信部21によって受信された原画像および挿入画像を格納する。   The image storage unit 22 may be a storage device such as a hard disk, a RAM, an optical medium, or an SSD. The image storage unit 22 stores the original image and the insertion image received by the image receiving unit 21.

合成条件決定部23は、図4に示すように、原画像および挿入画像のそれぞれの画像を評価する画像評価部231と、原画像および挿入画像の合成画像における混合比率を決定する混合比率決定部232と、挿入画像に埋め込まれる符号要素の挿入条件を決定する符号挿入条件決定部233と、原画像の伸長条件を決定する伸長条件決定部234とを有する。合成条件決定部23は、全体としてCPU205が機能することで、原画像および挿入画像の所定の合成条件を決定する。   As shown in FIG. 4, the synthesis condition determination unit 23 includes an image evaluation unit 231 that evaluates each of the original image and the insertion image, and a mixing ratio determination unit that determines a mixing ratio in the composite image of the original image and the insertion image. 232, a code insertion condition determining unit 233 that determines an insertion condition of a code element to be embedded in the inserted image, and an expansion condition determining unit 234 that determines an expansion condition of the original image. The synthesis condition determination unit 23 determines a predetermined synthesis condition for the original image and the insertion image by the function of the CPU 205 as a whole.

画像評価部231は、画像格納部22に格納されている原画像および挿入画像を読み出す。画像評価部231は、読み出された挿入画像の枚数、量子化された原画像のサイズ、および量子化された挿入画像のサイズを評価する。画像評価部231は、評価して得られた挿入画像の枚数、量子化された原画像のサイズ、および量子化された挿入画像のサイズを伸長条件決定部234、および合成条件格納部24に送る。なお、本実施形態においては、簡便のために、画像評価部231は、挿入画像の枚数を1枚、原画像のサイズと挿入画像のサイズとを同じと評価して、評価結果を符号挿入条件決定部233、伸長条件決定部234、および合成条件格納部24に送るものとする。   The image evaluation unit 231 reads the original image and the insertion image stored in the image storage unit 22. The image evaluation unit 231 evaluates the number of read insertion images, the size of the quantized original image, and the size of the quantized insertion image. The image evaluation unit 231 sends the number of insertion images obtained by evaluation, the size of the quantized original image, and the size of the quantized insertion image to the decompression condition determination unit 234 and the synthesis condition storage unit 24. . In this embodiment, for the sake of simplicity, the image evaluation unit 231 evaluates that the number of inserted images is one, the size of the original image and the size of the inserted image are the same, and the evaluation result is a code insertion condition. The data is sent to the determination unit 233, the expansion condition determination unit 234, and the synthesis condition storage unit 24.

また、画像評価部231は、取得した原画像および挿入画像の画素値等を評価する。例えば、本実施形態において、画像評価部231は、原画像および挿入画像に含まれる画素の画素値や画像全体の色合い、輝度値等を評価する。例えば、画像評価部231は、原画像の輝度値が全体として高く、挿入画像の輝度値が全体として低いという評価をする。画像評価部231は、原画像および挿入画像の画素値等を評価して得られた結果を、混合比率決定部232、符号挿入条件決定部233、および伸長条件決定部234に送る。   In addition, the image evaluation unit 231 evaluates the pixel values and the like of the acquired original image and insertion image. For example, in this embodiment, the image evaluation unit 231 evaluates the pixel values of the pixels included in the original image and the inserted image, the hue of the entire image, the luminance value, and the like. For example, the image evaluation unit 231 performs an evaluation that the luminance value of the original image is high as a whole and the luminance value of the insertion image is low as a whole. The image evaluation unit 231 sends the results obtained by evaluating the pixel values of the original image and the insertion image to the mixing ratio determination unit 232, the code insertion condition determination unit 233, and the expansion condition determination unit 234.

混合比率決定部232は、画像評価部231から受け取った評価結果から、合成画像における原画像と挿入画像との混合比率を決定する。混合比率決定部232は、原画像に対して挿入画像が目立たなくなり、かつ原画像から挿入画像を抽出できる程度の混合比率を決定する。   The mixing ratio determination unit 232 determines the mixing ratio of the original image and the insertion image in the composite image from the evaluation result received from the image evaluation unit 231. The mixing ratio determining unit 232 determines a mixing ratio such that the insertion image is not noticeable with respect to the original image and the insertion image can be extracted from the original image.

例えば、原画像の輝度値が全体として高く、挿入画像の輝度値が全体として低いと評価されている場合、混合比率決定部232は、基準となる所定の混合比率に対して、合成画像における原画像の混合比率を相対的に低くし、挿入画像の混合比率を相対的に高くする。混合比率決定部232は、決定された混合比率を、合成条件格納部24に送る。なお、入力デバイス21aに混合比率の入力があった場合、混合比率決定部232は、入力された混合比率を合成条件格納部24に送る。   For example, when it is evaluated that the luminance value of the original image is high as a whole and the luminance value of the insertion image is low as a whole, the mixing ratio determination unit 232 performs the original ratio in the composite image with respect to a predetermined mixing ratio as a reference. The mixing ratio of images is relatively low, and the mixing ratio of inserted images is relatively high. The mixing ratio determination unit 232 sends the determined mixing ratio to the synthesis condition storage unit 24. When the input device 21 a receives a mixture ratio, the mixture ratio determination unit 232 sends the input mixture ratio to the synthesis condition storage unit 24.

なお、原画像に対して挿入画像が目立たなくなり、かつ原画像から挿入画像を抽出できる程度の混合比率としては、原画像と挿入画像とのS/N比が40dB程度であるのが好ましい。例えば、合成画像出力装置4が合成画像を電子データとして格納する場合、混合比率決定部232は、挿入画像の混合比率を0.004程度にするのが好ましい。すなわち、原画像の混合比率を0.996程度にするのが好ましい。画像合成処理装置2が合成画像を印刷物として合成画像出力装置4に出力する場合には、混合比率決定部232は、挿入画像の混合比率を0.3から0.03の間程度にするのが好ましい。すなわち、原画像の混合比率を0.7から0.97の間程度にするのが好ましい。本実施形態では、原画像の混合比率を0.996、挿入画像の混合比率を0.004として説明する。   It should be noted that the mixing ratio at which the inserted image is less noticeable than the original image and the inserted image can be extracted from the original image is preferably such that the S / N ratio between the original image and the inserted image is about 40 dB. For example, when the composite image output device 4 stores the composite image as electronic data, the mixing ratio determination unit 232 preferably sets the mixing ratio of the inserted image to about 0.004. That is, it is preferable that the mixing ratio of the original image is about 0.996. When the image composition processing device 2 outputs the composite image as a printed matter to the composite image output device 4, the mixing ratio determination unit 232 may set the mixing ratio of the inserted image to about 0.3 to 0.03. preferable. That is, it is preferable that the mixing ratio of the original image is set to a value between 0.7 and 0.97. In the present embodiment, description will be made assuming that the mixing ratio of the original image is 0.996 and the mixing ratio of the inserted image is 0.004.

符号挿入条件決定部233は、画像評価部231から受け取った評価結果を利用して、埋込画像を作成するために、挿入画像に挿入する符号要素を決定する。すなわち、符号挿入条件決定部233は、原画像のサイズと、挿入画像のサイズと、原画像および挿入画像の画素値等とを利用して、挿入画像に挿入する符号要素を決定する。ここで、符号挿入条件決定部233は、挿入画像の量子化データを所定のデータ量ごとにブロック化して、ブロックに含まれる各要素と同じデータ量の符号要素を決定する。具体的には、符号挿入条件決定部233は、挿入画像の量子化データを行ベクトル毎にブロック化して、ブロックに含まれる各要素のデータ量に等しいデータ量の符号要素を決定する。   The code insertion condition determination unit 233 uses the evaluation result received from the image evaluation unit 231 to determine a code element to be inserted into the insertion image in order to create an embedded image. That is, the code insertion condition determination unit 233 determines a code element to be inserted into the insertion image using the size of the original image, the size of the insertion image, the pixel values of the original image and the insertion image, and the like. Here, the code insertion condition determination unit 233 blocks the quantized data of the inserted image for each predetermined data amount, and determines a code element having the same data amount as each element included in the block. Specifically, the code insertion condition determination unit 233 blocks the quantized data of the inserted image for each row vector, and determines a code element having a data amount equal to the data amount of each element included in the block.

例えば、符号挿入条件決定部233が、原画像および挿入画像のサイズが同じで、原画像の輝度が高く、挿入画像の輝度が低いという評価を受け取った場合を考える。この場合、符号挿入条件決定部233は、符号要素として、ブロック化された挿入画像の量子化データの各行ベクトルに含まれる要素と同じデータ量で、より白に近いデータをもつ符号要素を決定する。なお、本実施形態では、簡便のために、符号挿入条件決定部233は、奇数列目が0で偶数列目が1である行ベクトルを符号要素として決定するものとする。すなわち、符号挿入条件決定部233は、符号要素を(1,0,1,0,1,0,・・・)の行ベクトルに決定するものとする。符号挿入条件決定部233は、決定された符合要素を、合成条件格納部24に送る。なお、入力デバイス21aが符号要素の直接入力を受け付けた場合、符号挿入条件決定部233は、画像評価部231による画像評価を利用する符号要素の決定に代えて、入力された符号要素を決定された符合要素として合成条件格納部24に送ってもよい。   For example, consider a case where the code insertion condition determination unit 233 receives an evaluation that the sizes of the original image and the inserted image are the same, the luminance of the original image is high, and the luminance of the inserted image is low. In this case, the code insertion condition determination unit 233 determines a code element having data closer to white with the same data amount as the element included in each row vector of the quantized data of the blocked insertion image as the code element. . In the present embodiment, for the sake of simplicity, the code insertion condition determination unit 233 determines a row vector in which the odd-numbered columns are 0 and the even-numbered columns are 1 as code elements. That is, the code insertion condition determination unit 233 determines a code element as a row vector of (1, 0, 1, 0, 1, 0,...). The code insertion condition determination unit 233 sends the determined code element to the synthesis condition storage unit 24. When the input device 21a accepts direct input of a code element, the code insertion condition determination unit 233 determines the input code element instead of determining the code element using image evaluation by the image evaluation unit 231. It may be sent to the synthesis condition storage unit 24 as a code element.

伸長条件決定部234は、画像評価部231から受け取った評価結果から、所定の方向に原画像を伸長する伸長条件を決定する。具体的には、伸長条件決定部234は、挿入画像の枚数と、原画像および挿入画像のサイズとから、所定の方向に原画像を伸長する伸長条件を決定する。   The expansion condition determination unit 234 determines an expansion condition for expanding the original image in a predetermined direction from the evaluation result received from the image evaluation unit 231. Specifically, the expansion condition determination unit 234 determines an expansion condition for expanding the original image in a predetermined direction from the number of inserted images and the size of the original image and the inserted image.

本実施形態では、挿入画像が1枚であり、原画像および挿入画像のサイズが等しいと評価されているので、伸長条件決定部234は、原画像を縦方向に2倍にすることを伸長条件として決定する。換言すると、伸長条件決定部234は、原画像の量子化データを列方向に2倍に伸長することを伸長条件として決定する。伸長条件決定部234は、決定した伸長条件を合成条件格納部24に送る。なお、入力デバイス21aが伸長条件の直接入力を受け付けた場合、伸長条件決定部234は、決定された伸長条件に代えて、入力された伸長条件を合成条件格納部24に送ってもよい。   In this embodiment, since it is evaluated that the number of inserted images is one and the sizes of the original image and the inserted image are equal, the decompression condition determination unit 234 determines that the original image is doubled in the vertical direction. Determine as. In other words, the expansion condition determining unit 234 determines that the quantized data of the original image is expanded twice in the column direction as the expansion condition. The expansion condition determination unit 234 sends the determined expansion condition to the synthesis condition storage unit 24. When the input device 21a accepts direct input of the expansion condition, the expansion condition determination unit 234 may send the input expansion condition to the synthesis condition storage unit 24 instead of the determined expansion condition.

合成条件格納部24は、例えば、ハードディスク、RAM、またはSSD等の記憶装置で有ってよい。合成条件格納部24は、画像評価部231から送られた挿入画像の枚数、挿入画像および原画像のサイズ、混合比率決定部232から送られた混合比率、符号挿入条件決定部233から送られた符号要素、ならびに伸長条件決定部234から送られた伸長条件を原画像と挿入画像との合成条件として格納する。   The synthesis condition storage unit 24 may be a storage device such as a hard disk, a RAM, or an SSD, for example. The composition condition storage unit 24 sends the number of inserted images sent from the image evaluation unit 231, the size of the inserted image and the original image, the mixing ratio sent from the mixing ratio determination unit 232, and the code insertion condition determination unit 233. The code element and the decompression condition sent from the decompression condition determination unit 234 are stored as a composition condition for the original image and the insertion image.

画像合成部25は、図5に示すように、決定された合成条件にしたがって埋込画像を作成する埋込画像作成部251と、決定された合成条件にしたがって伸長原画像を作成する伸長画像作成部252と、作成された埋込画像と作成された伸長原画像とを合成する合成画像作成部253とを有する。画像合成部25は、全体としてCPU205が機能することで、埋込画像と伸長原画像とを合成する。   As shown in FIG. 5, the image composition unit 25 creates an embedded image creation unit 251 that creates an embedded image according to the determined composition condition, and a decompressed image creation that creates a decompressed original image according to the determined composition condition. A unit 252 and a synthesized image creating unit 253 that synthesizes the created embedded image and the created decompressed original image. The image combining unit 25 combines the embedded image and the decompressed original image by the CPU 205 functioning as a whole.

埋込画像作成部251は、画像格納部22に格納されている挿入画像を取得する。また、埋込画像作成部251は、合成条件格納部24に格納されている合成条件を取得する。埋込画像作成部251は、所定の方法を利用して、挿入画像をブロック化する。埋込画像作成部251は、ブロック化された挿入画像の量子化データにおける各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成する。なお、埋込画像作成部251は、ブロック化する方法として、合成条件格納部24に予め格納されている方法を取得して利用してもよく、符号挿入条件決定部233から合成条件として受け取ってもよい。埋込画像作成部251は、作成された埋込画像を合成画像作成部253に送る。   The embedded image creation unit 251 acquires an insertion image stored in the image storage unit 22. In addition, the embedded image creation unit 251 acquires the synthesis condition stored in the synthesis condition storage unit 24. The embedded image creating unit 251 blocks the inserted image using a predetermined method. The embedded image creating unit 251 is a predetermined code element that is blocked equal to the data amount of each element at a position adjacent to the position of each element in the quantized data of the blocked insertion image in a predetermined direction. To create an embedded image. Note that the embedded image creation unit 251 may acquire and use a method stored in advance in the synthesis condition storage unit 24 as a method of blocking, and receive it from the code insertion condition determination unit 233 as a synthesis condition. Also good. The embedded image creation unit 251 sends the created embedded image to the composite image creation unit 253.

より詳しくは、埋込画像作成部251は、取得した合成条件に含まれる、挿入画像の枚数、伸長条件、および符号要素にしたがって、決定された符合要素を挿入画像に挿入して埋込画像を作成する。例えば、挿入画像が1枚の場合、埋込画像作成部251は、伸長条件に合わせて作成される伸長原画像のサイズに対して、挿入画像の枚数を加味した埋込画像のサイズを同じサイズにするように埋込画像を作成する。すなわち、合成条件に、挿入画像が1枚であり、原画像の量子化データを列方向に2倍に伸長するという伸長条件と、符号要素とが含まれている場合、埋込画像作成部251は、ブロック化された挿入画像の各行ベクトルの直上の行に、合成条件に含まれる符号要素を挿入することで埋込画像を作成する。これにより、埋込画像作成部251は、挿入画像のサイズに対して、列方向のサイズを2倍にした埋込画像を作成する。このようにして、埋込画像作成部251は、列方向に2倍に伸長される原画像のサイズと、作成された埋込画像のサイズとを同じサイズにする。埋込画像作成部251は、作成した埋込画像を合成画像作成部253に送る。   More specifically, the embedded image creating unit 251 inserts the determined code element into the inserted image according to the number of inserted images, the expansion condition, and the code element included in the acquired composition condition, and inserts the embedded image. create. For example, when the number of inserted images is one, the embedded image creating unit 251 has the same size of the embedded image with the number of inserted images added to the size of the decompressed original image created in accordance with the decompression conditions. An embedded image is created as follows. That is, when the composition condition includes one insertion image and the expansion condition that the quantized data of the original image is expanded twice in the column direction and the code element, the embedded image creation unit 251 Creates an embedded image by inserting a code element included in the synthesis condition into a row immediately above each row vector of the blocked insertion image. Thereby, the embedded image creating unit 251 creates an embedded image in which the size in the column direction is doubled with respect to the size of the inserted image. In this way, the embedded image creation unit 251 sets the size of the original image that is doubled in the column direction and the size of the created embedded image to the same size. The embedded image creation unit 251 sends the created embedded image to the composite image creation unit 253.

本実施形態において、埋込画像作成部251は、挿入画像が1枚であり、原画像の量子化データを列方向に2倍に伸長するという伸長条件と、符号要素の行ベクトル(1,0,1,0,1,0,・・・)にしたがって、埋込画像を作成する。埋込画像作成部251は、挿入画像の直上の行に符号要素を挿入することで、伸長された原画像のサイズと、埋込画像のサイズとを同じサイズにする。これにより、埋込画像作成部251は、埋込画像の量子化データにおいて、奇数行を符号要素の行ベクトル、偶数行を挿入画像の量子化データの各行ベクトルとする埋込画像を作成する。   In the present embodiment, the embedded image creation unit 251 includes a decompression condition that there is one inserted image and the quantized data of the original image is doubled in the column direction, and a row vector (1,0) of the code element. , 1, 0, 1, 0,...) To create an embedded image. The embedded image creation unit 251 inserts a code element in the line immediately above the inserted image, thereby making the size of the expanded original image the same as the size of the embedded image. Thereby, the embedded image creation unit 251 creates an embedded image in the quantized data of the embedded image, with the odd-numbered row as the row vector of the code element and the even-numbered row as each row vector of the quantized data of the inserted image.

伸長画像作成部252は、画像格納部22から原画像を取得する。また、伸長画像作成部252は、合成条件格納部24から合成条件を取得する。伸長画像作成部252は、埋込画像に含まれる挿入画像の要素と、該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する。具体的には、伸長画像作成部252は、合成条件に含まれる伸長条件にしたがって原画像を伸長することで、埋込画像の要素と、該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうち同じ要素をもつ1組のブロックを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する。伸長画像作成部252は、作成した伸長原画像を合成画像作成部253に送る。   The expanded image creation unit 252 acquires the original image from the image storage unit 22. In addition, the decompressed image creation unit 252 acquires a synthesis condition from the synthesis condition storage unit 24. The decompressed image creating unit 252 includes, among the elements included in the quantized data of the original image that is blocked in each of the element of the inserted image included in the embedded image and the code element inserted into the element. In order to synthesize one of these, the original image is expanded in a predetermined direction by duplicating each element of the quantized data of the original image to create a decompressed original image. Specifically, the decompressed image creation unit 252 decompresses the original image according to the decompression conditions included in the synthesis conditions, thereby allowing each of the embedded image element and the code element inserted for the element to be embedded. The original image is copied by duplicating each element of the quantized data of the original image in order to synthesize a set of blocks having the same elements among the elements included in the quantized data of the blocked original image. An expanded original image is created by expanding in a predetermined direction. The expanded image creation unit 252 sends the created expanded original image to the composite image creation unit 253.

本実施形態では、合成条件が原画像を列方向に2倍に伸長するという伸長条件を含むので、伸長画像作成部252は、原画像の量子化データを列方向に2倍に伸長する。具体的には、伸長画像作成部252は、原画像の各行ベクトルの各要素を、該行ベクトルの直上に複製することで、原画像を伸長して伸長原画像を作成する。すなわち、伸長画像作成部252は、(2n−1)行の行ベクトル(nは自然数)に含まれる各要素と、2n行の行ベクトル(nは自然数)に含まれる各要素とが等しい伸長原画像を作成する。   In the present embodiment, since the synthesis condition includes an expansion condition that the original image is expanded twice in the column direction, the expanded image creation unit 252 expands the quantized data of the original image twice in the column direction. Specifically, the expanded image creation unit 252 creates an expanded original image by expanding the original image by duplicating each element of each row vector of the original image directly above the row vector. That is, the decompressed image creating unit 252 decompresses the originals in which each element included in the (2n-1) -row row vector (n is a natural number) is equal to each element included in the 2n-row row vector (n is a natural number). Create an image.

合成画像作成部253は、合成条件格納部24から合成条件を取得する。また、合成画像作成部253は、取得した合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成する。   The composite image creation unit 253 acquires the composite condition from the composite condition storage unit 24. In addition, the composite image creation unit 253 creates a composite image by combining each element included in the embedded image and each element included in the decompressed original image in accordance with the acquired composite condition.

すなわち、合成画像作成部253は、所定の合成条件に含まれる混合比率を利用して、以下の式を満たすように合成画像を作成する。
(式1)
ij=A11,ij+A22,ij
That is, the composite image creation unit 253 creates a composite image so as to satisfy the following expression, using a mixing ratio included in a predetermined composition condition.
(Formula 1)
X ij = A 1 S 1, ij + A 2 S 2, ij

ここで、Xijは、量子化された合成画像の第i行第j列目を示し、A1は、伸長原画像(原画像)の混合比率を示し、S1,ijは、量子化された伸長原画像の第i行第j列目を示し、A2は、埋込画像(挿入画像)の混合比率を示し、S2,ijは、量子化された埋込画像の第i行第j列目を示す。 Here, X ij indicates the i-th row and j-th column of the quantized composite image, A 1 indicates the mixing ratio of the decompressed original image (original image), and S 1, ij is quantized. A 2 indicates the mixing ratio of the embedded image (inserted image), and S 2, ij indicates the i-th row of the quantized embedded image. The j-th column is shown.

合成画像作成部253は、このようにして、伸長原画像の量子化データである各要素と、埋込画像の量子化データである各要素とを対応させて合成画像を作成する。本実施形態において、合成画像作成部253は、符号要素と複製された原画像の各行ベクトルとが合成される奇数行と、挿入画像の各行ベクトルと原画像の各行ベクトルとが合成される偶数行とをもつ合成画像を作成する。合成画像作成部253は、作成した合成画像を画像出力部26に送る。本実施形態では、合成画像作成部253は、伸長原画像の混合比率0.996と埋込画像の混合比率0.004とを利用して、伸長原画像および埋込画像とを合成する。そして、合成画像作成部253は、符号要素の行ベクトル(1,0,1,0,1,0,・・・)と複製された原画像の量子化データの行ベクトルとが合成された奇数行と、ブロック化された挿入画像の量子化データの各行ベクトルとブロック化された原画像の量子化データの各行ベクトルとが合成された偶数行とをもつ合成画像を作成する。   In this way, the composite image creation unit 253 creates a composite image by associating each element that is the quantized data of the decompressed original image with each element that is the quantized data of the embedded image. In the present embodiment, the composite image creation unit 253 includes an odd row in which the code element and each row vector of the copied original image are combined, and an even row in which each row vector of the insertion image and each row vector of the original image are combined. Create a composite image with The composite image creation unit 253 sends the created composite image to the image output unit 26. In the present embodiment, the composite image creation unit 253 combines the decompressed original image and the embedded image using the decompressed original image mixing ratio of 0.996 and the embedded image blending ratio of 0.004. The composite image creation unit 253 then generates an odd number obtained by combining the row vector (1,0,1,0,1,0, ...) of the code element and the row vector of the quantized data of the copied original image. A composite image having a row and even rows obtained by combining each row vector of the quantized data of the blocked insertion image and each row vector of the quantized data of the blocked original image is created.

画像出力部26は、例えば、LANカードや、無線通信手段、またはI/Oポート等を含む。画像出力部26は、作成された合成画像を合成画像出力装置4に送る。また、画像出力部26は、作成された合成画像とともに、合成条件格納部24に格納されている合成条件を取得して、合成画像出力装置4に送る。   The image output unit 26 includes, for example, a LAN card, a wireless communication unit, an I / O port, or the like. The image output unit 26 sends the generated composite image to the composite image output device 4. In addition, the image output unit 26 acquires the synthesis condition stored in the synthesis condition storage unit 24 together with the created synthesized image, and sends the synthesis condition to the synthesized image output device 4.

[画像提供装置]
画像提供装置3は、例えば、データベースを備えるサーバであり、画像合成処理装置2に提供する少なくとも1枚の原画像および少なくとも1枚の挿入画像を格納している。
[Image providing device]
The image providing device 3 is, for example, a server including a database, and stores at least one original image and at least one inserted image provided to the image composition processing device 2.

[合成画像出力装置]
合成画像出力装置4は、例えば、サーバやパーソナルコンピュータ、携帯端末等であり、画像合成処理装置2から合成画像を取得して、画像提供装置3から送られた合成画像および合成条件を、合成画像出力装置4内に設けられているデータベース(図示しない)等に格納する。なお、合成画像出力装置4は、例えば、プリンタでもよく、画像合成処理装置2から合成画像を取得して、合成画像を印刷する。
[Composite image output device]
The composite image output device 4 is, for example, a server, a personal computer, a portable terminal, or the like. The composite image output device 4 acquires a composite image from the image composite processing device 2 and uses the composite image and the composite condition sent from the image providing device 3 as the composite image. The data is stored in a database (not shown) provided in the output device 4. The composite image output device 4 may be, for example, a printer, obtains a composite image from the image composition processing device 2, and prints the composite image.

[画像分離処理装置]
次に、画像分離処理装置5について説明する。画像分離処理装置5のハードウェア構成は、画像提供装置3のハードウェア構成に対して、画像分離処理装置5にインストールされて実行されるプログラムが、CPU205等に働きかけて制御部として機能させ、画像分離処理装置5を制御させる点で相違する。その他構成は、画像提供装置3の構成と同様であるので、ここでの説明を省略する。
[Image Separation Processing Device]
Next, the image separation processing device 5 will be described. The hardware configuration of the image separation processing device 5 is such that a program that is installed and executed in the image separation processing device 5 operates on the CPU 205 or the like to function as a control unit with respect to the hardware configuration of the image providing device 3. The difference is that the separation processing device 5 is controlled. The other configuration is the same as the configuration of the image providing device 3, and the description thereof is omitted here.

画像分離処理装置5は、図6に示すように、合成画像出力装置4から取得する合成画像を選択入力する入力デバイス51aと、合成画像出力装置4から選択された合成画像を取得する合成画像取得部51と、合成画像取得部51で取得された合成画像を格納する画像格納部52と、合成画像および抽出された挿入画像を表示する画像表示部53と、取得した合成画像の合成条件を取得する合成条件取得部54と、合成画像出力装置4から取得した合成条件を格納する合成条件格納部55と、合成条件に基づいて合成画像から挿入画像を分離する画像分離部56とを備える。なお、本実施形態では、画像合成処理装置2における実施形態において詳述した合成画像から挿入画像を分離する場合で説明する。   As illustrated in FIG. 6, the image separation processing device 5 selects and inputs a composite image acquired from the composite image output device 4, and acquires a composite image selected from the composite image output device 4. 51, an image storage unit 52 that stores the composite image acquired by the composite image acquisition unit 51, an image display unit 53 that displays the composite image and the extracted inserted image, and a composite condition of the acquired composite image A synthesizing condition acquisition unit 54, a synthesizing condition storage unit 55 that stores the synthesizing condition acquired from the synthesizing image output device 4, and an image separation unit 56 that separates the inserted image from the synthesizing image based on the synthesizing condition. In the present embodiment, a case will be described in which the insertion image is separated from the composite image detailed in the embodiment of the image composition processing device 2.

入力デバイス51aは、例えば、キーボードやマウスであり、合成画像出力装置4に格納されている合成画像から、挿入画像の分離を希望する合成画像の選択入力をユーザから受け付ける。入力デバイス51aは、入力された合成画像の選択を、合成画像取得部51に送る。なお、合成画像出力装置4がプリンタ等の印刷機器である場合、入力デバイス51aは、スキャナ等の画像読取部を含んでもよく、合成画像を読み取って、合成画像取得部51に送ってもよい。さらに、入力デバイス51aは、合成画像に係る合成条件の入力を受け付けて、入力された該合成条件を合成条件取得部54に送ってもよい。   The input device 51 a is, for example, a keyboard or a mouse, and receives from the user a selection input of a composite image for which an insertion image is desired to be separated from a composite image stored in the composite image output device 4. The input device 51a sends the input composite image selection to the composite image acquisition unit 51. When the composite image output device 4 is a printing device such as a printer, the input device 51 a may include an image reading unit such as a scanner, or may read a composite image and send it to the composite image acquisition unit 51. Furthermore, the input device 51a may receive an input of a synthesis condition related to the synthesized image and send the input synthesis condition to the synthesis condition acquisition unit 54.

合成画像取得部51は、例えば、LANカードや、無線通信手段、またはI/Oポート等を含む。合成画像取得部51は、入力デバイス51aに入力された合成画像の選択に基づいて、合成画像出力装置4から合成画像を取得する。合成画像取得部51は、取得した合成画像を画像格納部52に送る。また、合成画像取得部51は、合成画像出力装置4から合成画像の合成条件を取得して画像表示部53に送る。なお、入力デバイス51aがスキャナ等の画像読取部である場合には、合成画像取得部51は、入力デバイス51aで読取られた合成画像のデータを画像格納部52に送る。   The composite image acquisition unit 51 includes, for example, a LAN card, a wireless communication unit, an I / O port, or the like. The composite image acquisition unit 51 acquires a composite image from the composite image output device 4 based on the selection of the composite image input to the input device 51a. The composite image acquisition unit 51 sends the acquired composite image to the image storage unit 52. Further, the composite image acquisition unit 51 acquires a composite condition of the composite image from the composite image output device 4 and sends it to the image display unit 53. If the input device 51 a is an image reading unit such as a scanner, the composite image acquisition unit 51 sends the composite image data read by the input device 51 a to the image storage unit 52.

画像格納部52は、例えば、ハードディスク、RAM、光メディア、またはSSDなどの記憶装置であってよい。画像格納部52は、合成画像取得部51から送られた合成画像を格納する。   The image storage unit 52 may be a storage device such as a hard disk, a RAM, an optical medium, or an SSD, for example. The image storage unit 52 stores the composite image sent from the composite image acquisition unit 51.

画像表示部53は、例えば、ディスプレイであり、画像格納部52に格納された合成画像を取得して、ユーザに対して表示する。また、画像表示部53は、画像分離部56において分離された挿入画像をユーザに対して表示する。   The image display unit 53 is, for example, a display, acquires the composite image stored in the image storage unit 52, and displays it to the user. The image display unit 53 displays the insertion image separated by the image separation unit 56 to the user.

合成条件取得部54は、CPU205が機能することで、選択された合成画像に対応する合成条件を、合成画像出力装置4から取得する。合成条件取得部54は、取得した合成条件を、合成条件格納部55に送る。なお、入力デバイス51aに合成条件が入力された場合、合成条件取得部54は、入力された合成条件を合成条件格納部55に送る。本実施形態では、合成条件取得部54は、1枚の挿入画像、原画像と挿入画像とのサイズが同じ、符号要素が(1,0,1,0,1,0,・・・)である、原画像の伸長条件が列方向に2倍である、原画像の混合比率が0.996である、挿入画像の混合比率が0.004であるといった合成条件を合成画像出力装置4から取得する。   The composite condition acquisition unit 54 acquires the composite condition corresponding to the selected composite image from the composite image output device 4 when the CPU 205 functions. The synthesis condition acquisition unit 54 sends the acquired synthesis conditions to the synthesis condition storage unit 55. When a synthesis condition is input to the input device 51a, the synthesis condition acquisition unit 54 sends the input synthesis condition to the synthesis condition storage unit 55. In the present embodiment, the synthesis condition acquisition unit 54 has one inserted image, the size of the original image and the inserted image is the same, and the code element is (1, 0, 1, 0, 1, 0,...). A composite condition such that the original image expansion condition is double in the column direction, the original image mixing ratio is 0.996, and the insertion image mixing ratio is 0.004 is acquired from the composite image output device 4. To do.

合成条件格納部55は、例えば、ハードディスク、RAM、光メディア、またはSSDなどの記憶装置であってよい。合成条件格納部55は、合成条件取得部54から送られた合成条件を格納する。   The synthesis condition storage unit 55 may be a storage device such as a hard disk, a RAM, an optical medium, or an SSD. The synthesis condition storage unit 55 stores the synthesis conditions sent from the synthesis condition acquisition unit 54.

画像分離部56は、図7に示すように、合成画像から原画像を復元する原画像復元部561と、合成画像から原画像を復元する挿入画像復元部562とを有する。   As illustrated in FIG. 7, the image separation unit 56 includes an original image restoration unit 561 that restores an original image from a synthesized image, and an insertion image restoration unit 562 that restores the original image from the synthesized image.

原画像復元部561は、画像格納部52から合成画像を取得する。また、原画像復元部561は、合成条件格納部55から該合成画像に係る合成条件を取得する。原画像復元部561は、ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と複製された原画像の各要素とが合成されている要素から、取得した合成条件を利用して、伸長原画像の各要素を復元する。すなわち、原画像復元部561は、所定の符号要素と伸長原画像の各要素とが合成されている要素を特定して、合成条件を利用して合成画像から原画像を復元する。原画像復元部561は、合成画像の量子化データと、復元された原画像の量子化データとを、挿入画像復元部562に送る。   The original image restoration unit 561 acquires a composite image from the image storage unit 52. In addition, the original image restoration unit 561 acquires the synthesis condition relating to the synthesized image from the synthesis condition storage unit 55. The original image restoration unit 561 obtains a synthesis condition acquired from an element in which a predetermined code element and each element of the copied original image are synthesized among the elements that are the quantized data of the synthesized image that has been blocked. Is used to restore each element of the decompressed original image. That is, the original image restoration unit 561 identifies an element in which a predetermined code element and each element of the decompressed original image are synthesized, and restores the original image from the synthesized image using the synthesis condition. The original image restoration unit 561 sends the synthesized image quantization data and the restored original image quantization data to the insertion image restoration unit 562.

例えば、原画像復元部561は、ブロック化された合成画像の量子化データである各要素のうち、奇数行に当たる行に着目する。原画像復元部561は、合成条件に含まれる、混合比率および符号要素を利用して、符合要素と複製された原画像のブロックとが合成されている要素から、埋込画像の混合比率を加味して符号要素を除去する。これにより、原画像復元部561は、符号要素と複製された原画像のブロックとが合成されている要素から、伸長原画像の混合比率が加味された、複製された原画像のブロックの要素のみを抽出できる。原画像復元部561は、さらに、伸長原画像の混合比率を利用して、複製された原画像のブロックの各要素を復元するとともに、複製された原画像の各ブロックを列方向で結合することで原画像を復元する。原画像復元部561は、ブロック化された合成画像の量子化データと、復元された原画像の量子化データとを、挿入画像復元部562に送る。   For example, the original image restoration unit 561 pays attention to a row corresponding to an odd-numbered row among elements that are quantized data of a combined composite image that has been blocked. The original image restoration unit 561 takes into account the mixing ratio of the embedded image from the element in which the code element and the copied original image block are combined using the mixing ratio and the code element included in the combining condition. Then, the code element is removed. As a result, the original image restoration unit 561 has only the elements of the duplicated original image block in which the mixing ratio of the decompressed original image is added from the element in which the code element and the duplicated original image block are combined. Can be extracted. The original image restoration unit 561 further restores each element of the duplicated original image block by using the mixing ratio of the decompressed original image and combines the duplicated original image blocks in the column direction. To restore the original image. The original image restoration unit 561 sends the block-combined synthesized image quantization data and the restored original image quantization data to the insertion image restoration unit 562.

より具体的には、原画像復元部561は、合成画像の量子化データの各要素に対して、奇数行に着目する。そして、式1を変形した式2を利用してブロック化された原画像の量子化データの各要素を復元する。
(式2)
1,(2i)j=S1,(2i-1)j=X(2i-1)j/A1−A22,(2i-1)j/A1
More specifically, the original image restoration unit 561 focuses on odd rows for each element of the quantized data of the composite image. Then, each element of the quantized data of the original image that has been blocked is restored using Expression 2 obtained by transforming Expression 1.
(Formula 2)
S 1, (2i) j = S 1, (2i-1) j = X (2i-1) j / A 1 -A 2 S 2, (2i-1) j / A 1

ここで、Xijは、量子化された合成画像の第i行第j列目を示し、A1は、伸長原画像(原画像)の混合比率を示し、S1,ijは、量子化された伸長原画像の第i行第j列目を示し、A2は、埋込画像(挿入画像)の混合比率を示し、S2,ijは、量子化された埋込画像の第i行第j列目を示す。 Here, X ij indicates the i-th row and j-th column of the quantized composite image, A 1 indicates the mixing ratio of the decompressed original image (original image), and S 1, ij is quantized. A 2 indicates the mixing ratio of the embedded image (inserted image), and S 2, ij indicates the i-th row of the quantized embedded image. The j-th column is shown.

本実施形態では、原画像復元部561は、合成画像の奇数行に着目する。まず、原画像復元部561は、合成画像の奇数行を合成画像から抽出する。そして、原画像復元部561は、抽出された各要素を列方向で結合する。原画像復元部561は、埋込画像の混合比率0.004を加味して、符号要素(1,0,1,0,1,0,・・・)を結合された画像から除去する。これにより、原画像復元部561は、原画像を復元する。原画像復元部561は、ブロック化された合成画像の量子化データと、復元された原画像の量子化データとを、挿入画像復元部562に送る。   In the present embodiment, the original image restoration unit 561 focuses on odd-numbered rows of the composite image. First, the original image restoration unit 561 extracts odd-numbered rows of the composite image from the composite image. Then, the original image restoration unit 561 combines the extracted elements in the column direction. The original image restoration unit 561 removes the code element (1, 0, 1, 0, 1, 0,...) From the combined image in consideration of the mixing ratio 0.004 of the embedded image. As a result, the original image restoration unit 561 restores the original image. The original image restoration unit 561 sends the block-combined synthesized image quantization data and the restored original image quantization data to the insertion image restoration unit 562.

挿入画像復元部562は、原画像復元部561から、ブロック化された合成画像の量子化データと、復元された原画像の量子化データとを取得する。挿入画像復元部562は、ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の各要素を復元する。具体的には、挿入画像復元部562は、合成条件に含まれる、挿入画像の枚数、混合比率、および複製された原画像の各要素を利用して、ブロック化された合成画像の量子化データの偶数行から挿入画像の各要素を復元する。   The inserted image restoration unit 562 acquires, from the original image restoration unit 561, the quantized data of the combined composite image and the restored quantized data of the original image. The inserted image restoration unit 562 is adjacent in a predetermined direction from elements in which each element of the inserted image and each element of the decompressed original image are synthesized among the elements that are the quantized data of the synthesized image that has been blocked. Each element of the decompressed original image extracted at the position to be restored is restored. Specifically, the inserted image restoration unit 562 uses the number of inserted images, the mixing ratio, and the elements of the copied original image included in the synthesis condition to quantize the quantized data of the synthesized image that has been blocked. Restore each element of the inserted image from the even rows of.

例えば、挿入画像復元部562は、ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と、原画像の各要素とが合成されている偶数行の要素に着目する。挿入画像復元部562は、合成条件に含まれる混合比率と複製された原画像の各要素とを利用して、挿入画像の各要素と原画像の各要素とが合成されている偶数行の要素から、伸長原画像の混合比率を加味して原画像の各要素を除去する。これにより、挿入画像復元部562は、挿入画像の各要素と原画像の各要素とが合成されている偶数行の要素から、埋込画像の混合比率が加味された挿入画像の要素を抽出できる。挿入画像復元部562は、さらに、埋込画像の混合比率を利用して、挿入画像の各要素を復元する。   For example, the inserted image restoration unit 562 pays attention to the elements in the even-numbered rows in which the elements of the inserted image and the elements of the original image are combined among the elements that are the quantized data of the combined image that has been blocked. To do. The inserted image restoration unit 562 uses the mixing ratio included in the composition condition and each element of the duplicated original image, and even-numbered elements in which each element of the inserted image and each element of the original image are synthesized Then, each element of the original image is removed in consideration of the mixing ratio of the expanded original image. Thereby, the inserted image restoration unit 562 can extract the elements of the inserted image in which the mixing ratio of the embedded image is added from the elements in the even-numbered rows in which the elements of the inserted image and the elements of the original image are combined. . The inserted image restoration unit 562 further restores each element of the inserted image using the mixing ratio of the embedded images.

より具体的には、挿入画像復元部562は、合成画像の量子化データの各要素に対して、偶数行に着目する。そして、式2で得たS1,(2i)jをもとに、以下の式3を利用して原画像の量子化データの各要素を復元する。
(式3)
2,(2i)j=X(2i)j/A2−A11,(2i)j/A2
More specifically, the inserted image restoration unit 562 focuses on even-numbered rows for each element of the quantized data of the composite image. Then, based on S 1, (2i) j obtained in Expression 2, each element of the quantized data of the original image is restored using Expression 3 below.
(Formula 3)
S 2, (2i) j = X (2i) j / A 2 -A 1 S 1, (2i) j / A 2

ここで、Xijは、量子化された合成画像の第i行第j列目を示し、A1は、伸長原画像(原画像)の混合比率を示し、S1,ijは、量子化された伸長原画像の第i行第j列目を示し、A2は、埋込画像(挿入画像)の混合比率を示し、S2,ijは、量子化された埋込画像の第i行第j列目を示す。 Here, X ij indicates the i-th row and j-th column of the quantized composite image, A 1 indicates the mixing ratio of the decompressed original image (original image), and S 1, ij is quantized. A 2 indicates the mixing ratio of the embedded image (inserted image), and S 2, ij indicates the i-th row of the quantized embedded image. The j-th column is shown.

本実施形態では、挿入画像復元部562は、合成画像の偶数行に着目する。まず、挿入画像復元部562は、合成画像の偶数行を合成画像から抽出する。挿入画像復元部562は、抽出した偶数行の各要素を結合する。挿入画像復元部562は、結合された各要素から、伸長原画像の混合比率0.996を加味して、結合された各要素から原画像の各要素を除去する。これにより、挿入画像復元部562は、
なお、挿入画像復元部562は、合成条件格納部55から合成条件を取得して、合成条件に含まれる挿入画像の枚数に合わせて、挿入画像を復元してもよい。
In the present embodiment, the inserted image restoration unit 562 focuses on even-numbered rows of the composite image. First, the inserted image restoration unit 562 extracts even-numbered rows of the composite image from the composite image. The inserted image restoration unit 562 combines the extracted elements in the even-numbered rows. The inserted image restoration unit 562 removes each element of the original image from the combined elements by adding the expansion original image mixing ratio of 0.996 from the combined elements. Thereby, the inserted image restoration unit 562
The inserted image restoration unit 562 may acquire the synthesis condition from the synthesis condition storage unit 55 and restore the inserted image in accordance with the number of inserted images included in the synthesis condition.

本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像処理方法、およびプログラムの構成については以上の通りであり、次に、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像処理方法、およびプログラムの作用について、図8〜図10に示すフローチャートを利用して説明する。   The configuration of the image composition processing device, the image separation processing device, the image processing system, the image processing method, and the program according to the present embodiment is as described above. Next, the image composition processing device, the image separation according to the present embodiment. The operations of the processing device, the image processing system, the image processing method, and the program will be described using the flowcharts shown in FIGS.

[合成画像の作成]
まず、原画像および挿入画像から合成画像を作成する手順を図8および図9に示すフローチャートを利用して説明する。画像取得部21は、合成画像出力装置4から原画像を取得する(ステップS61)。画像取得部21は、入力デバイス21aに入力された原画像を選択する入力にしたがって、合成画像出力装置4から原画像を取得してもよい。画像格納部22は、画像取得部21によって取得された原画像を格納する。
[Create composite image]
First, a procedure for creating a composite image from an original image and an inserted image will be described using the flowcharts shown in FIGS. The image acquisition unit 21 acquires an original image from the composite image output device 4 (step S61). The image acquisition unit 21 may acquire the original image from the composite image output device 4 in accordance with an input for selecting the original image input to the input device 21a. The image storage unit 22 stores the original image acquired by the image acquisition unit 21.

さらに、画像取得部21は、合成画像出力装置4から挿入画像を取得する(ステップS62)。画像取得部21は、入力デバイス21aに入力された挿入画像を選択する入力にしたがって、合成画像出力装置4から挿入画像を取得してもよい。画像格納部22は、画像取得部21によって取得された挿入画像を格納する。   Furthermore, the image acquisition unit 21 acquires an insertion image from the composite image output device 4 (step S62). The image acquisition unit 21 may acquire an insertion image from the composite image output device 4 in accordance with an input for selecting the insertion image input to the input device 21a. The image storage unit 22 stores the insertion image acquired by the image acquisition unit 21.

合成条件決定部23は、画像格納部22に格納された原画像および挿入画像について、合成条件を決定する(ステップS63)。図9に示すように、合成条件の決定は、原画像および挿入画像のそれぞれの画像の画素値の評価等(ステップS631)と、原画像および挿入画像の混合比率の決定(ステップS632)と、挿入画像へ符号要素を挿入する条件の決定(ステップS633)と、原画像の伸長条件の決定(ステップS634)とを含む。   The composition condition determination unit 23 determines a composition condition for the original image and the insertion image stored in the image storage unit 22 (step S63). As shown in FIG. 9, the composition conditions are determined by evaluating the pixel values of the original image and the inserted image (step S631), determining the mixing ratio of the original image and the inserted image (step S632), This includes determining a condition for inserting a code element into the inserted image (step S633) and determining an expansion condition for the original image (step S634).

まず、画像評価部231は、原画像に挿入される挿入画像の枚数と、原画像のサイズと、挿入画像のサイズとを評価する。また、画像評価部231は、原画像および挿入画像に含まれる画素の画素値や画像全体の色合いおよび輝度等を評価する(ステップS631)。画像評価部231は、評価した結果を評価結果として、混合比率決定部232、符号挿入条件決定部233、および伸長条件決定部234に送る。また、画像評価部231は、評価結果を合成条件格納部24に送る。   First, the image evaluation unit 231 evaluates the number of inserted images to be inserted into the original image, the size of the original image, and the size of the inserted image. Further, the image evaluation unit 231 evaluates the pixel values of the pixels included in the original image and the inserted image, the color and luminance of the entire image, and the like (step S631). The image evaluation unit 231 sends the evaluation result as an evaluation result to the mixing ratio determination unit 232, the code insertion condition determination unit 233, and the expansion condition determination unit 234. In addition, the image evaluation unit 231 sends the evaluation result to the synthesis condition storage unit 24.

混合比率決定部232は、画像評価部231から送られた評価結果にしたがって、原画像と挿入画像を合成した合成画像における、原画像および挿入画像のそれぞれの混合比率を決定する(ステップS632)。混合比率決定部232は、合成画像において、挿入画像が原画像に対して目立たず、かつ合成画像から挿入画像を分離できる程度の混合比率を決定する。混合比率決定部232は、決定した混合比率を合成条件格納部24に送る。   The mixing ratio determining unit 232 determines the respective mixing ratios of the original image and the inserted image in the combined image obtained by combining the original image and the inserted image, according to the evaluation result sent from the image evaluation unit 231 (step S632). The mixing ratio determining unit 232 determines a mixing ratio in the combined image such that the inserted image is not conspicuous with respect to the original image and the inserted image can be separated from the combined image. The mixing ratio determination unit 232 sends the determined mixing ratio to the synthesis condition storage unit 24.

符号挿入条件決定部233は、画像評価部231から送られた評価結果にしたがって、挿入画像に挿入する符号要素を決定する(ステップS633)。たとえば、画像評価部231が評価結果において、原画像の輝度が高く、挿入画像の輝度が低いと評価している場合、符号挿入条件決定部233は、白に近い量子化データとなる符号要素を、挿入画像に挿入すべき符号要素として決定する。符号挿入条件決定部233は、決定した符合要素を合成条件格納部24に送る。合成条件格納部24は、挿入画像の枚数、伸長条件、混合比率、および符号要素を合成条件として格納する。   The code insertion condition determination unit 233 determines a code element to be inserted into the insertion image according to the evaluation result sent from the image evaluation unit 231 (step S633). For example, when the image evaluation unit 231 evaluates that the luminance of the original image is high and the luminance of the insertion image is low in the evaluation result, the code insertion condition determination unit 233 selects a code element that becomes quantized data close to white. The code element to be inserted into the inserted image is determined. The code insertion condition determination unit 233 sends the determined code element to the synthesis condition storage unit 24. The composition condition storage unit 24 stores the number of inserted images, the expansion condition, the mixing ratio, and the code element as composition conditions.

伸長条件決定部234は、画像評価部231から送られた評価結果にしたがって、原画像の伸長条件を決定する(ステップS634)。伸長条件決定部234は、原画像を伸長する伸長条件として、原画像の伸長率および伸長方向を決定する。より詳しくは、伸長条件決定部234は、原画像に合成される挿入画像の枚数、および原画像に対する挿入画像の大きさに応じて、原画像の伸長率および伸長方向を決定する。例えば、原画像と同じ大きさの挿入画像を1枚合成する場合には、伸長条件決定部234は、縦方向に原画像を2倍に伸長する伸長条件を決定する。伸長条件決定部234は、決定した伸長条件を合成条件格納部24に送る。合成条件格納部24は、送られた伸長条件を格納する。   The expansion condition determination unit 234 determines the expansion condition of the original image according to the evaluation result sent from the image evaluation unit 231 (step S634). The expansion condition determination unit 234 determines the expansion rate and expansion direction of the original image as expansion conditions for expanding the original image. More specifically, the expansion condition determination unit 234 determines the expansion rate and expansion direction of the original image according to the number of insertion images combined with the original image and the size of the insertion image with respect to the original image. For example, when one inserted image having the same size as the original image is synthesized, the expansion condition determination unit 234 determines an expansion condition for expanding the original image twice in the vertical direction. The expansion condition determination unit 234 sends the determined expansion condition to the synthesis condition storage unit 24. The synthesis condition storage unit 24 stores the sent decompression conditions.

埋込画像作成部251は、画像格納部22に格納されている挿入画像を読み出す。また、埋込画像作成部251は、合成条件格納部24に格納されている合成条件を読み出す。そして、埋込画像作成部251は、読み出された合成条件にしたがって、所定の符号要素を挿入画像に挿入して埋込画像を作成する(ステップS64)。埋込画像作成部251は、作成した埋込画像を合成画像作成部253に送る。   The embedded image creation unit 251 reads the insertion image stored in the image storage unit 22. Further, the embedded image creation unit 251 reads out the synthesis condition stored in the synthesis condition storage unit 24. Then, the embedded image creating unit 251 creates an embedded image by inserting a predetermined code element into the inserted image in accordance with the read synthesis condition (step S64). The embedded image creation unit 251 sends the created embedded image to the composite image creation unit 253.

伸長画像作成部252は、画像格納部22に格納されている挿入画像を読み出す。また、伸長画像作成部252は、合成条件格納部24に格納されている合成条件を読み出す。そして、伸長画像作成部252は、読み出された合成条件にしたがって、原画像を伸長して伸長原画像を作成する(ステップS65)。伸長画像作成部252は、作成した伸長原画像を合成画像作成部253に送る。   The expanded image creation unit 252 reads the insertion image stored in the image storage unit 22. In addition, the decompressed image creation unit 252 reads the synthesis condition stored in the synthesis condition storage unit 24. Then, the expanded image creation unit 252 creates an expanded original image by expanding the original image in accordance with the read synthesis condition (step S65). The expanded image creation unit 252 sends the created expanded original image to the composite image creation unit 253.

合成画像作成部253は、合成条件格納部24に格納されている合成条件を読み出す。また、合成画像作成部253は、埋込画像作成部251から埋込画像を取得するとともに、伸長画像作成部252から伸長原画像を取得する。そして、合成画像作成部253は、合成条件にしたがって、埋込画像作成部251から送られた埋込画像と、伸長画像作成部252から送られた伸長原画像とを合成して、合成画像を作成する(ステップS66)。   The composite image creation unit 253 reads out the synthesis conditions stored in the synthesis condition storage unit 24. The composite image creation unit 253 obtains an embedded image from the embedded image creation unit 251 and obtains an expanded original image from the expanded image creation unit 252. The composite image creation unit 253 then synthesizes the embedded image sent from the embedded image creation unit 251 and the decompressed original image sent from the decompressed image creation unit 252 in accordance with the composition conditions, Create (step S66).

より詳しくは、合成画像作成部253は、合成条件に含まれる原画像および挿入画像の混合比率にしたがって、埋込画像作成部251から送られた埋込画像と、伸長画像作成部252から送られた伸長原画像とを合成して、合成画像を作成する。合成画像作成部253は、作成した合成画像を画像出力部26に送る。   More specifically, the composite image creation unit 253 sends the embedded image sent from the embedded image creation unit 251 and the expanded image creation unit 252 in accordance with the mixing ratio of the original image and the insertion image included in the synthesis conditions. The expanded original image is synthesized to create a synthesized image. The composite image creation unit 253 sends the created composite image to the image output unit 26.

画像出力部26は、合成条件格納部24から合成条件を読み出す。画像出力部26は、読み出した合成条件と、合成画像作成部253から送られた合成画像とを合成画像出力装置4に出力する(ステップS67)。   The image output unit 26 reads the synthesis condition from the synthesis condition storage unit 24. The image output unit 26 outputs the read synthesis condition and the synthesized image sent from the synthesized image creation unit 253 to the synthesized image output device 4 (step S67).

[挿入画像の分離]
次に、合成画像から挿入画像を分離する手順を図10に示すフローチャートを利用して説明する。合成画像取得部51は、入力デバイス51aに入力された合成画像を選択する情報に基づいて、出力装置4から合成画像を取得する(ステップS70)。合成画像取得部51は、取得した合成画像を画像格納部52に送る。画像格納部52は、合成画像取得部51から送られた合成画像を格納する。画像表示部53は、画像格納部52に格納された合成画像を取得して表示する。
[Separation of inserted images]
Next, the procedure for separating the insertion image from the composite image will be described using the flowchart shown in FIG. The composite image acquisition unit 51 acquires a composite image from the output device 4 based on information for selecting the composite image input to the input device 51a (step S70). The composite image acquisition unit 51 sends the acquired composite image to the image storage unit 52. The image storage unit 52 stores the composite image sent from the composite image acquisition unit 51. The image display unit 53 acquires and displays the composite image stored in the image storage unit 52.

合成条件取得部54は、入力デバイス51aに入力された合成画像を選択する情報に基づいて、合成画像の合成条件を合成画像出力装置4から取得する(ステップS71)。合成条件取得部54は、取得した合成条件を合成条件格納部55に送る。合成条件格納部55は、合成条件取得部54から送られた合成条件を格納する。   Based on the information for selecting the composite image input to the input device 51a, the composite condition acquisition unit 54 acquires the composite condition of the composite image from the composite image output device 4 (step S71). The synthesis condition acquisition unit 54 sends the acquired synthesis conditions to the synthesis condition storage unit 55. The synthesis condition storage unit 55 stores the synthesis conditions sent from the synthesis condition acquisition unit 54.

画像分離部56は、画像格納部52に格納されている合成画像を取得する。また、画像分離部56は、合成条件格納部55に格納されている合成条件を取得する。原画像復元部561は、合成条件にしたがって、ブロック化された合成画像の量子化データの各要素から、符号要素とブロック化された原画像の量子化データの各要素とが合成されている要素を特定および抽出する。さらに、原画像復元部561は、合成条件にしたがって、符号要素とブロック化された原画像の量子化データの各要素とが合成されている要素から、符号要素を取り除く。これにより、原画像復元部561は、符号要素とブロック化された原画像の量子化データの各要素とから、原画像の各要素を復元する(ステップS72)。原画像復元部561は、ブロック化された合成画像の量子化データと、復元した原画像の各要素とを挿入画像復元部562に送る。   The image separation unit 56 acquires the composite image stored in the image storage unit 52. In addition, the image separation unit 56 acquires the synthesis conditions stored in the synthesis condition storage unit 55. The original image restoration unit 561 is an element in which the code element and each element of the quantized data of the blocked original image are synthesized from each element of the quantized data of the blocked synthesized image according to the synthesis condition. Identify and extract Further, the original image restoration unit 561 removes the code element from the element in which the code element and each element of the quantized data of the blocked original image are synthesized according to the synthesis condition. As a result, the original image restoration unit 561 restores each element of the original image from the code element and each element of the quantized data of the blocked original image (step S72). The original image restoration unit 561 sends the quantized data of the composite image that has been blocked and each element of the restored original image to the insertion image restoration unit 562.

挿入画像復元部562は、合成条件にしたがって、ブロック化された合成画像の量子化データの各要素から、挿入画像の各要素と原画像の各要素とが合成されている要素を特定および抽出する。挿入画像復元部562は、抽出した各要素を結合する。さらに、挿入画像復元部562は、合成条件にしたがって、原画像復元部561から送られた原画像の各要素を利用して、挿入画像の各要素と原画像の各要素とが合成されている要素から、原画像の各要素を除去することで挿入画像を復元する。挿入画像復元部562は、結合された挿入画像を画像表示部53に送る。画像表示部53は、送られた合成画像を表示する(ステップS73)。   The inserted image restoration unit 562 identifies and extracts an element in which each element of the inserted image and each element of the original image are synthesized from each element of the quantized data of the blocked synthesized image according to the synthesis condition. . The inserted image restoration unit 562 combines the extracted elements. Furthermore, the inserted image restoration unit 562 combines each element of the inserted image and each element of the original image using each element of the original image sent from the original image restoration unit 561 according to the synthesis condition. The inserted image is restored by removing each element of the original image from the elements. The inserted image restoration unit 562 sends the combined inserted image to the image display unit 53. The image display unit 53 displays the sent composite image (step S73).

次に、本実施形態に係る量子化データである原画像と量子化データである挿入画像との合成と、量子化データである合成画像からの量子化データである挿入画像の分離とを、簡易なモデルを利用して説明する。なお、ここでは、簡便のために、原画像および挿入画像の画像サイズを2×2行列、符号要素を(0,2)の行ベクトル、混合比率を50%として説明する。   Next, the synthesis of the original image that is the quantized data and the inserted image that is the quantized data, and the separation of the inserted image that is the quantized data from the synthesized image that is the quantized data, are simplified. This will be explained using various models. Here, for the sake of simplicity, description will be made assuming that the image size of the original image and the inserted image is a 2 × 2 matrix, the code element is a row vector of (0, 2), and the mixing ratio is 50%.

[合成画像の作成]
図11を参照して説明する。埋込画像作成部251は、量子化データである挿入画像の各行の直上に、符号要素(0,2)の行ベクトルを挿入することで、埋込画像を作成する。これにより、埋込画像は、(0,2)の行ベクトルをもつ奇数行と、挿入画像の行ベクトルをもつ偶数行とを有する。すなわち、埋込画像は、図11に示すような、2×4行列の量子化データになる。
[Create composite image]
This will be described with reference to FIG. The embedded image creating unit 251 creates an embedded image by inserting the row vector of the code element (0, 2) immediately above each row of the inserted image that is quantized data. Thus, the embedded image has an odd number of rows having a row vector of (0, 2) and an even number of rows having a row vector of the insertion image. That is, the embedded image becomes 2 × 4 matrix quantized data as shown in FIG.

伸長画像作成部252は、量子化データである原画像の各行ベクトルを、列方向に複製することで、伸長原画像を作成する。これにより、伸長原画像は、同じ要素の行ベクトルをもつ1行目および2行目と、同じ要素の行ベクトルをもつ3行目および4行目とを有する。すなわち、伸長原画像は、図11に示すような、2×4行列の量子化データになる。   The expanded image creation unit 252 creates an expanded original image by replicating each row vector of the original image, which is quantized data, in the column direction. As a result, the decompressed original image has the first and second rows having the same element row vector, and the third and fourth rows having the same element row vector. That is, the decompressed original image becomes 2 × 4 matrix quantized data as shown in FIG.

画像合成部25は、混合比率50%で、量子化データである埋込画像と、量子化データである伸長原画像とを合成する。これにより、図11に示すような、2×4行列の量子化データである合成画像が生成される。   The image composition unit 25 synthesizes the embedded image that is the quantized data and the expanded original image that is the quantized data at a mixing ratio of 50%. As a result, a composite image that is 2 × 4 matrix quantized data as shown in FIG. 11 is generated.

[挿入画像の分離]
図12を参照して、図11において生成された合成画像から挿入画像を分離する場合を説明する。まず、原画像復元部561は、量子化データである合成画像から、奇数行を抽出して結合する。原画像復元部561は、混合比率50%を加味して、結合された各要素から符号要素(0,2)を除去することで、原画像を復元する。これにより、原画像復元部561は、合成前の量子化データである原画像を合成画像から分離できる。なお、図11では、原画像と推定される画像として、推定原画像と記載している。
[Separation of inserted images]
With reference to FIG. 12, the case where an insertion image is isolate | separated from the synthetic | combination image produced | generated in FIG. 11 is demonstrated. First, the original image restoration unit 561 extracts and combines odd-numbered rows from the synthesized image that is the quantized data. The original image restoration unit 561 restores the original image by removing the code element (0, 2) from the combined elements in consideration of the mixing ratio of 50%. Thereby, the original image restoration unit 561 can separate the original image which is the quantized data before the synthesis from the synthesized image. In FIG. 11, an estimated original image is described as an image estimated as an original image.

挿入画像復元部562は、量子化データである合成画像から、偶数行を抽出して結合する。挿入画像復元部562は、混合比率50%を加味して、結合された各要素から原画像の各要素を除去することで、挿入画像を復元する。これにより、挿入画像復元部562は、合成前の量子化データである挿入画像を合成画像から分離できる。   The inserted image restoration unit 562 extracts and combines even-numbered rows from the synthesized image that is the quantized data. The inserted image restoration unit 562 restores the inserted image by removing each element of the original image from the combined elements in consideration of the mixing ratio of 50%. Accordingly, the inserted image restoration unit 562 can separate the inserted image that is the quantized data before the synthesis from the synthesized image.

<実施例1>
次に、本実施形態に係る実施例を説明する。実施例1においては図13(a)に示す画像を原画像とし、図13(c)に示す1枚の画像を挿入画像とした。また、原画像の混合比率を0.996、挿入画像の混合比率を0.004とした。
<Example 1>
Next, examples according to the present embodiment will be described. In Example 1, the image shown in FIG. 13A was used as an original image, and one image shown in FIG. 13C was used as an insertion image. Also, the mixing ratio of the original image was 0.996, and the mixing ratio of the inserted image was 0.004.

画像合成処理装置2を利用して、原画像と挿入画像とを合成することで、図14(a)に示すような、挿入画像の目立たない合成画像を得ることができた。そして、画像分離処理装置5を利用して、図14(a)に示す合成画像から挿入画像を分離することで、図12(b)に示す挿入画像を得ることができた。このように、合成画像において挿入画像を目立たなくすることができるとともに、合成画像から挿入画像を抽出することができた。   By synthesizing the original image and the insertion image using the image composition processing device 2, a composite image in which the insertion image is not conspicuous as shown in FIG. 14A can be obtained. Then, by using the image separation processing device 5 to separate the insert image from the composite image shown in FIG. 14A, the insert image shown in FIG. 12B can be obtained. Thus, the inserted image can be made inconspicuous in the synthesized image, and the inserted image can be extracted from the synthesized image.

<実施例2>
実施例2として、図13(b)に示す画像を原画像とし、図13(c)に示す1枚の画像を挿入画像とした。また、原画像の混合比率を0.996、挿入画像の混合比率を0.004とした。
<Example 2>
As Example 2, the image shown in FIG. 13B was an original image, and one image shown in FIG. 13C was an inserted image. Also, the mixing ratio of the original image was 0.996, and the mixing ratio of the inserted image was 0.004.

画像合成処理装置2を利用して、原画像と挿入画像とを合成することで、図15(a)に示すような、挿入画像の目立たない合成画像を得ることができた。そして、画像分離処理装置5を利用して、図15(a)に示す合成画像から挿入画像を分離することで、図15(b)に示す挿入画像を得ることができた。このように、合成画像において挿入画像を目立たなくすることができるとともに、合成画像から挿入画像を抽出することができた。   By synthesizing the original image and the insertion image using the image composition processing device 2, a composite image in which the insertion image is not conspicuous as shown in FIG. 15A can be obtained. Then, the insertion image shown in FIG. 15B can be obtained by separating the insertion image from the composite image shown in FIG. 15A by using the image separation processing device 5. Thus, the inserted image can be made inconspicuous in the synthesized image, and the inserted image can be extracted from the synthesized image.

以上より、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムは、原画像に対する挿入画像の合成または分離をより簡素にできる。すなわち、原画像および挿入画像の分離原理や手順を簡素化することができるとともに、メモリ使用量などの負荷についても軽減することができる。   As described above, the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment synthesize or separate the inserted image from the original image. It can be simpler. That is, the separation principle and procedure of the original image and the inserted image can be simplified, and the load such as memory usage can be reduced.

また、挿入画像を原画像に挿入して目立たなくすることができるので、原画像および挿入画像を別々に表示または印刷する必要がない。したがって、挿入画像の外観が原画像に対して目立つことを防止でき、原画像の外観を良好に保つことができる。特に、挿入画像がQRコード(登録商標)やバーコード等の場合には、原画像に対してQRコード(登録商標)やバーコード等が目立つことを防止でき、原画像の外観を良好に保つことができる。   Further, since the inserted image can be inserted into the original image to make it unnoticeable, it is not necessary to display or print the original image and the inserted image separately. Therefore, the appearance of the inserted image can be prevented from being conspicuous with respect to the original image, and the appearance of the original image can be kept good. In particular, when the inserted image is a QR code (registered trademark), a barcode, or the like, it is possible to prevent the QR code (registered trademark), a barcode, or the like from being conspicuous with respect to the original image, and to maintain a good appearance of the original image. be able to.

<第2の実施形態>
次に、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおける第2の実施形態について、図16〜図19を参酌して説明する。なお、図16〜図19において、図1〜図15の符号と同一の符号を付した部分は、第1の実施形態と同一の構成又は要素を表す。
<Second Embodiment>
Next, the second embodiment of the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention will be described with reference to FIGS. To explain. 16 to 19, the parts denoted by the same reference numerals as those in FIGS. 1 to 15 represent the same configurations or elements as those in the first embodiment.

本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムは、図16に示すように、第1の実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムに対して、混合比率決定部232を相対比率決定部235に変更したものである。したがって、本実施形態においては、相対比率決定部235以外の説明を省略する。   An image composition processing device, an image separation processing device, an image processing system, an image composition processing method, an image separation processing method, an image processing method, and a program according to the present embodiment are the same as those in the first embodiment as shown in FIG. A mixture ratio determining unit 232 is changed to a relative ratio determining unit 235 for the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program. It is. Therefore, in this embodiment, description other than the relative ratio determination unit 235 is omitted.

相対比率決定部235は、画像評価部231から受け取った評価結果から、合成画像における原画像と挿入画像との相対比率を決定する。相対比率決定部235は、原画像に対して挿入画像が目立たなくなり、かつ原画像から挿入画像が抽出できる程度の相対比率を決定する。相対比率決定部235は、決定された相対比率を、合成条件格納部24に送る。なお、入力デバイス21aに相対比率の入力があった場合、相対比率決定部235は、入力された相対比率を合成条件格納部24に送る。   The relative ratio determination unit 235 determines the relative ratio between the original image and the insertion image in the composite image from the evaluation result received from the image evaluation unit 231. The relative ratio determination unit 235 determines a relative ratio such that the insertion image is not noticeable with respect to the original image and the insertion image can be extracted from the original image. The relative ratio determination unit 235 sends the determined relative ratio to the synthesis condition storage unit 24. When a relative ratio is input to the input device 21a, the relative ratio determination unit 235 sends the input relative ratio to the synthesis condition storage unit 24.

例えば、原画像の輝度値が全体的に高く、挿入画像の輝度値が全体的に低いと評価されている場合、相対比率決定部235は、基準となる相対比率から、原画像の輝度値に合わせて相対比率を高くする。また、原画像の一部に白が多く、挿入画像に黒が多いと評価されている場合、相対比率決定部235は、基準となる相対比率から、相対比率を低くする。   For example, when it is evaluated that the luminance value of the original image is high overall and the luminance value of the inserted image is low overall, the relative ratio determination unit 235 converts the luminance value of the original image from the reference relative ratio. At the same time, increase the relative ratio. Further, when it is evaluated that part of the original image is white and the inserted image is black, the relative ratio determination unit 235 lowers the relative ratio from the reference relative ratio.

ここで、相対比率とは、原画像に対する挿入画像の画素値を相対的に変化させる比率である。相対比率を利用することで、合成画像の各要素は以下の式を利用して決定される。
(式4)
ij=(PS2,ij+1)S1,ij
Here, the relative ratio is a ratio that changes the pixel value of the inserted image relative to the original image. By using the relative ratio, each element of the composite image is determined using the following formula.
(Formula 4)
X ij = (PS 2, ij +1) S 1, ij

ここで、Xijは、合成画像Xの第i行第j列目の画素値を示し、Pは、相対比率を示し、S1,ijは、原画像S1の第i行第j列目の画素値を示し、S2,ijは、挿入画像S2の第i行第j列目の画素値を示す。 Here, X ij represents the pixel value of the i-th row and j-th column of the composite image X, P represents the relative ratio, and S 1, ij represents the i-th row and j-th column of the original image S 1 . S 2, ij indicates the pixel value of the i-th row and j-th column of the insertion image S 2 .

すなわち、相対比率を利用する場合、混合比率を利用する場合における式1の混合比率を、以下の式5のように置き換えて利用することができる。
(式5)
1=PS1,ij
2=1
That is, when the relative ratio is used, the mixing ratio of Expression 1 in the case of using the mixing ratio can be replaced with Expression 5 below.
(Formula 5)
A 1 = PS 1, ij
A 2 = 1

本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムの構成は以上の通りであり、次に、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムの作用について図17に示すフローチャートを参照して説明する。なお、合成条件決定部23における作用以外については、混合比率を利用する点を除いて第1の実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムと同一であるので、ここでの説明を省略する。   The configurations of the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment are as described above. Next, the present embodiment The operation of the image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program according to FIG. 17 will be described. Except for the operation of the synthesis condition determination unit 23, the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, and the image separation according to the first embodiment except that the mixture ratio is used. Since the processing method, the image processing method, and the program are the same, the description thereof is omitted here.

すなわち、図17に示すフローチャートでは、第1の実施形態における、図9に示すフローチャートにおける混合比率の決定(ステップS632)が、相対比率の決定に置き換えられる。相対比率決定部235は、画像評価部231から送られた評価結果にしたがって、原画像と挿入画像を合成した合成画像における、原画像に対する挿入画像の相対比率を決定する(ステップS635)。相対比率決定部235は、合成画像において、挿入画像が原画像に対して目立たず、かつ合成画像から挿入画像を分離できる程度の相対比率を決定する。相対比率決定部235は、決定した混合比率を合成条件格納部24に送る。   That is, in the flowchart shown in FIG. 17, the determination of the mixing ratio (step S632) in the flowchart shown in FIG. 9 in the first embodiment is replaced with the determination of the relative ratio. The relative ratio determination unit 235 determines the relative ratio of the insertion image to the original image in the combined image obtained by combining the original image and the insertion image in accordance with the evaluation result sent from the image evaluation unit 231 (step S635). The relative ratio determining unit 235 determines a relative ratio in the synthesized image so that the inserted image is not conspicuous with respect to the original image and the inserted image can be separated from the synthesized image. The relative ratio determination unit 235 sends the determined mixing ratio to the synthesis condition storage unit 24.

<実施例3>
実施例3として、実施例1と同じ図13(a)に示す原画像および図13(c)に示す挿入画像を利用した。また、相対比率を−0.04とした。
<Example 3>
As Example 3, the same original image shown in FIG. 13A as in Example 1 and the inserted image shown in FIG. 13C were used. The relative ratio was set to -0.04.

画像合成処理装置2を利用して、原画像と挿入画像とを合成することで、図18(a)に示すような、挿入画像の目立たない合成画像を得ることができた。そして、画像分離処理装置5を利用して、図18(a)に示す合成画像から挿入画像を分離することで、図18(b)に示す挿入画像を得ることができた。このように、合成画像において挿入画像を目立たなくすることができるとともに、合成画像から挿入画像を抽出することができた。   By synthesizing the original image and the insertion image using the image composition processing device 2, a composite image in which the insertion image is not conspicuous as shown in FIG. 18A can be obtained. Then, the insertion image shown in FIG. 18B can be obtained by separating the insertion image from the composite image shown in FIG. 18A by using the image separation processing device 5. Thus, the inserted image can be made inconspicuous in the synthesized image, and the inserted image can be extracted from the synthesized image.

<実施例4>
実施例4として、実施例2と同じ図13(b)に示す原画像および図13(c)に示す挿入画像を利用した。また、相対比率を−0.04とした。
<Example 4>
As Example 4, the same original image shown in FIG. 13B and the inserted image shown in FIG. 13C were used as in Example 2. The relative ratio was set to -0.04.

画像合成処理装置2を利用して、原画像と挿入画像とを合成することで、図19(a)に示すような、挿入画像の目立たない合成画像を得ることができた。そして、画像分離処理装置5を利用して、図19(a)に示す合成画像から挿入画像を分離することで、図19(b)に示す挿入画像を得ることができた。このように、合成画像において挿入画像を目立たなくすることができるとともに、合成画像から挿入画像を抽出することができた。   By synthesizing the original image and the insertion image using the image composition processing device 2, a composite image in which the insertion image is not conspicuous as shown in FIG. 19A can be obtained. Then, by using the image separation processing device 5 to separate the insertion image from the composite image shown in FIG. 19A, the insertion image shown in FIG. 19B can be obtained. Thus, the inserted image can be made inconspicuous in the synthesized image, and the inserted image can be extracted from the synthesized image.

以上により、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムによれば、第1の実施形態と同様に、原画像に対する挿入画像の合成または分離をより簡素にできる。すなわち、原画像および挿入画像の分離原理や手順を簡素化することができるとともに、メモリ使用量などの負荷についても軽減することができる。   As described above, according to the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment, as in the first embodiment. Thus, the composition or separation of the inserted image with respect to the original image can be simplified. That is, the separation principle and procedure of the original image and the inserted image can be simplified, and the load such as memory usage can be reduced.

また、挿入画像を原画像に挿入して目立たなくすることができるので、原画像および挿入画像を別々に表示または印刷する必要がない。したがって、挿入画像の外観が原画像に対して目立つことを防止でき、原画像の外観を良好に保つことができる。特に、挿入画像がQRコード(登録商標)やバーコード等の場合には、原画像に対してQRコード(登録商標)やバーコード等が目立つことを防止でき、原画像の外観を良好に保つことができる。   Further, since the inserted image can be inserted into the original image to make it unnoticeable, it is not necessary to display or print the original image and the inserted image separately. Therefore, the appearance of the inserted image can be prevented from being conspicuous with respect to the original image, and the appearance of the original image can be kept good. In particular, when the inserted image is a QR code (registered trademark), a barcode, or the like, it is possible to prevent the QR code (registered trademark), a barcode, or the like from being conspicuous with respect to the original image, and to maintain a good appearance of the original image be able to.

なお、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムは、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。また、上記した複数の実施形態の構成や方法等を任意に採用して組み合わせてもよく(1つの実施形態に係る構成や方法等を他の実施形態に係る構成や方法等に適用してもよく)、さらに、下記する各種の変更例に係る構成や方法等を任意に選択して、上記した実施形態に係る構成や方法等に採用してもよいことは勿論である。   The image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention are not limited to the above-described embodiments. Of course, various modifications can be made without departing from the scope of the present invention. Further, the configurations and methods of the plurality of embodiments described above may be arbitrarily adopted and combined (even if the configurations and methods according to one embodiment are applied to the configurations and methods according to other embodiments). Of course, it is of course possible to arbitrarily select configurations, methods, and the like according to various modifications described below and employ them in the configurations, methods, and the like according to the above-described embodiments.

例えば、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムおいては、混合比率決定部232による混合比率の決定、および符号挿入条件決定部233による符号要素の決定の前に、伸長条件決定部234は、原画像の伸長条件を決定してもよい。   For example, in the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, the mixing ratio determination unit 232 determines the mixing ratio. Before the code element is determined by the code insertion condition determination unit 233, the expansion condition determination unit 234 may determine the expansion condition of the original image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、原画像の量子化データの各列ベクトルと、挿入画像の量子化データの各列ベクトルとをそれぞれブロック化してもよい。すなわち、原画像の各ブロックに含まれるデータ量と、挿入画像の各ブロックに含まれるデータ量とが等しくなるようにブロック化されるのであれば、どのようなブロック化方法を採用してもよい。これにより、原画像または挿入画像の画素値に合わせて、適したブロック化方法を採用することができる。   Further, in the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, each column vector of the quantized data of the original image and Each column vector of the quantized data of the inserted image may be blocked. That is, any blocking method may be adopted as long as the data amount included in each block of the original image and the data amount included in each block of the inserted image are equalized. . Thereby, a suitable blocking method can be adopted in accordance with the pixel value of the original image or the inserted image.

また、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、挿入画像としてQRコード(登録商標)を利用して説明したが、挿入画像は、どのような画像であってもよい。例えば、文字や記号等であってもよい。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment, a QR code (registered trademark) is used as an insertion image. Although described using, the inserted image may be any image. For example, it may be a character or a symbol.

また、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、符号挿入条件決定部233は、採用されたブロック化方法や、符号要素の挿入方法を合成条件に含めて合成条件格納部24に送ってもよい。これにより、画像分離処理装置5において、画像分離部56が合成条件を取得することで、画像提供装置3において採用されたブロック化方法または符号要素の挿入方法を利用して合成画像から挿入画像を分離することができる。   The code insertion condition determination unit 233 is employed in the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment. Alternatively, the blocking method or the code element insertion method may be included in the synthesis condition and sent to the synthesis condition storage unit 24. As a result, in the image separation processing device 5, the image separation unit 56 obtains the composition condition, so that the insertion image is extracted from the composite image using the blocking method or the code element insertion method employed in the image providing device 3. Can be separated.

また、本実施形態に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいて、混合比率決定部232は、原画像または挿入画像に含まれる領域毎に異なる混合比率を決定してもよい。例えば、混合比率決定部232が原画像の混合比率を決定する場合に、混合比率決定部232は、白の多い領域に対して高い混合比率を決定して、黒の多い領域に対して低い混合比率を決定してもよい。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present embodiment, the mixing ratio determining unit 232 is an original image or an insertion A different mixing ratio may be determined for each region included in the image. For example, when the mixing ratio determination unit 232 determines the mixing ratio of the original image, the mixing ratio determination unit 232 determines a high mixing ratio for a region with a lot of white and a low mixing for a region with a lot of black. The ratio may be determined.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、挿入画像が2枚以上になる場合に、伸長画像作成部252は、原画像を4倍以上に伸長して、2枚以上の挿入画像を挿入してもよい。例えば、挿入画像が2枚である場合、伸長画像作成部252は、原画像の各行ベクトルの各要素を、該行ベクトルの直上の行に3回複製することで、原画像を4倍に伸長して伸長原画像を作成する。すなわち、伸長画像作成部252は、(4n−3)行の行ベクトル(nは自然数)に含まれる各要素と、(4n−2)、(4n−1)、および4n行の行ベクトル(nは自然数)のそれぞれに含まれる各要素とが等しい伸長原画像を作成する。合成画像作成部253は、(4n−3)行および(4n−2)行に、1枚目の挿入画像に係る埋込画像の行ベクトルを挿入し、(4n−1)行および4n行に、2枚目の挿入画像に係る埋込画像の行ベクトルを挿入することで、2枚の挿入画像を原画像に合成することができる。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, when there are two or more inserted images, The expanded image creation unit 252 may expand the original image four times or more and insert two or more inserted images. For example, when there are two inserted images, the expanded image creation unit 252 expands the original image four times by copying each element of each row vector of the original image three times to the row immediately above the row vector. To create a decompressed original image. That is, the decompressed image creating unit 252 includes each element included in the (4n-3) row vector (n is a natural number), the (4n-2), (4n-1), and 4n row vectors (n Is an expanded original image in which each element included in each is a natural number). The composite image creation unit 253 inserts the row vector of the embedded image related to the first inserted image into the (4n-3) row and the (4n-2) row, and the (4n-1) row and the 4n row. By inserting the row vector of the embedded image related to the second inserted image, the two inserted images can be combined with the original image.

この場合、合成画像出力装置4の挿入画像復元部562は、合成条件に含まれる挿入画像の枚数が2枚であることを取得する。挿入画像復元部562は、(4n−3)行および(4n−2)行から1枚目の挿入画像の分離し、(4n−1)行および4n行から2枚目の挿入画像を分離する。これにより、原画像に対して、複数の挿入画像に係る情報を合わせて挿入することができる。   In this case, the inserted image restoration unit 562 of the synthesized image output device 4 acquires that the number of inserted images included in the synthesized condition is two. The inserted image restoration unit 562 separates the first inserted image from rows (4n-3) and (4n-2), and separates the second inserted image from rows (4n-1) and 4n. . Thereby, it is possible to insert information related to a plurality of insertion images together with the original image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、伸長画像作成部252は、原画像の量子化データの列方向への伸長率に合わせて列方向に伸長するとともに、行方向についても該伸長率に合わせて伸長してもよい。これにより、原画像の縦横比を崩すことなく、原画像と挿入画像とを合成することができる。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, the expanded image creation unit 252 includes the quantum of the original image. The data may be expanded in the column direction in accordance with the expansion rate in the column direction, and may be expanded in the row direction in accordance with the expansion rate. As a result, the original image and the inserted image can be synthesized without destroying the aspect ratio of the original image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、ブロック化された原画像の量子化データの各要素に隣接する位置であれば、いずれの方向に埋込画像の各要素を合成してもよい。例えば、1枚の挿入画像を原画像に合成する場合で、原画像および挿入画像のサイズが同じ場合、伸長画像作成部252は、ブロック化された原画像の量子化データを行方向および列方向にそれぞれ3倍することで、原画像の1つのブロックに対して複製された8つのブロックを作成して、伸長原画像を作成してもよい。埋込画像作成部251は、ブロック化された挿入画像の量子化データの各要素に対して、符号要素を各要素の周囲の8ブロックに挿入して埋込画像を作成してもよい。合成画像作成部253は、伸長原画像と埋込画像とを合成することで合成画像を作成してもよい。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, the quantized data of the blocked original image Each element of the embedded image may be combined in any direction as long as the position is adjacent to each element. For example, when a single inserted image is combined with the original image, and the sizes of the original image and the inserted image are the same, the expanded image creation unit 252 converts the quantized data of the blocked original image into the row direction and the column direction. In this case, eight times may be created by replicating one block of the original image by multiplying each by three to create an expanded original image. The embedded image creation unit 251 may create an embedded image by inserting a code element into 8 blocks around each element of the quantized data of the blocked insertion image. The composite image creation unit 253 may create a composite image by combining the decompressed original image and the embedded image.

これにより、合成画像は、挿入画像の要素と原画像の要素とが合成されている1つの要素に対して、符号要素と原画像の要素とが合成されている8つの要素を含む。したがって、8つの要素から符号要素を除いた原画像の要素のそれぞれの閾値処理を実行することにより、原画像の要素をより確実に合成画像から分離することができる。すなわち、量子化誤差やノイズ等があっても、合成画像から原画像の各要素をより確実に分離することができる。したがって、挿入画像の各要素についても、より確実に合成画像から分離することができる。特に、合成画像出力装置4がプリンタ等である場合に、画像分離処理装置5は、合成画像出力装置4で印刷された合成画像を読取って、より確実に合成画像から挿入画像を分離できる。   Thus, the composite image includes eight elements in which the code element and the element of the original image are combined with one element in which the element of the insertion image and the element of the original image are combined. Therefore, by executing the threshold processing of each element of the original image obtained by removing the sign element from the eight elements, the elements of the original image can be more reliably separated from the synthesized image. That is, each element of the original image can be more reliably separated from the synthesized image even if there is a quantization error or noise. Therefore, each element of the inserted image can be more reliably separated from the synthesized image. In particular, when the composite image output device 4 is a printer or the like, the image separation processing device 5 can read the composite image printed by the composite image output device 4 and more reliably separate the insertion image from the composite image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、画像合成処理装置2が電子データとして画像提供装置3に合成画像を出力する場合、画像合成部25は、合成条件を合成画像のヘッダに含めてもよい。この場合、画像出力部26は、合成条件のみを合成画像出力装置4に出力してもよい。これにより、画像分離処理装置5は、合成画像の取得以外に別途、合成条件を取得する必要がない。したがって、画像分離処理装置5において、合成条件の取得が出来ずに、挿入画像の分離が出来なくなることを防止できる。   In the image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program according to the present invention, the image composition processing device 2 provides an image as electronic data. When outputting a composite image to the device 3, the image composition unit 25 may include a composition condition in the header of the composite image. In this case, the image output unit 26 may output only the synthesis condition to the synthesized image output device 4. Thereby, the image separation processing device 5 does not need to acquire the synthesis condition separately other than the acquisition of the composite image. Therefore, in the image separation processing device 5, it is possible to prevent the combined image from being acquired and the inserted image from being separated.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいては、画素値として、RGB成分、CMY成分、またはこれらのそれぞれの成分を利用することができる。これにより、例えば、画像合成部25は、伸長原画像および埋込画像のR成分のみを利用して合成画像を作成してもよい。これにより、原画像および挿入画像の色合いに合わせて、合成画像を作成することができる。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, as the pixel value, an RGB component, a CMY component, or Each of these components can be utilized. Thereby, for example, the image composition unit 25 may create a composite image using only the R component of the decompressed original image and the embedded image. As a result, a composite image can be created in accordance with the colors of the original image and the inserted image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいて、合成条件決定部23で合成条件を決定せずに、既知の合成条件を合成条件格納部24に格納しておき、画像合成部25は、既知の合成条件を利用して伸長原画像と埋込画像とを合成してもよい。同様に、合成条件格納部55が合成条件格納部24に格納されている合成条件と同じ既知の合成条件を格納しており、画像分離部56が既知の合成条件を利用して、合成画像を原画像と挿入画像とに分離してもよい。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, the composition condition determining unit 23 does not determine the composition condition. In addition, a known synthesis condition may be stored in the synthesis condition storage unit 24, and the image synthesis unit 25 may synthesize the decompressed original image and the embedded image using the known synthesis condition. Similarly, the synthesis condition storage unit 55 stores the same known synthesis conditions as the synthesis conditions stored in the synthesis condition storage unit 24, and the image separation unit 56 uses the known synthesis conditions to generate a synthesized image. You may isolate | separate into an original image and an insertion image.

また、本発明に係る画像合成処理装置、画像分離処理装置、画像処理システム、画像合成処理方法、画像分離処理方法、画像処理方法、およびプログラムにおいて、画像提供装置3は、予め原画像と挿入画像とのサイズを同一にした上で、該原画像と該挿入画像とを格納していてもよい。   In the image composition processing device, the image separation processing device, the image processing system, the image composition processing method, the image separation processing method, the image processing method, and the program according to the present invention, the image providing device 3 includes the original image and the inserted image in advance. And the original image and the inserted image may be stored.

1…画像処理システム、2…画像合成処理装置、3…画像提供装置、4…合成画像出力装置、5…画像分離処理装置、21…画像取得部、21a…入力デバイス、22…画像格納部、23…合成条件決定部、24…合成条件格納部、25…画像合成部、26…画像出力部、51…合成画像取得部、51a…入力デバイス、52…画像格納部、53…画像表示部、54…合成条件取得部、55…合成条件格納部、56…画像分離部、231…画像評価部、232…混合比率決定部、233…符号挿入条件決定部、234…伸長条件決定部、235…相対比率決定部、251…埋込画像作成部、252…伸長画像作成部、253…合成画像作成部、561…原画像復元部、562…挿入画像復元部   DESCRIPTION OF SYMBOLS 1 ... Image processing system, 2 ... Image composition processing apparatus, 3 ... Image provision apparatus, 4 ... Composite image output apparatus, 5 ... Image separation processing apparatus, 21 ... Image acquisition part, 21a ... Input device, 22 ... Image storage part, 23... Composition condition determining unit 24... Composition condition storage unit 25... Image composition unit 26... Image output unit 51... Composite image acquisition unit 51 a. 54 ... Composition condition acquisition unit, 55 ... Composition condition storage unit, 56 ... Image separation unit, 231 ... Image evaluation unit, 232 ... Mixing ratio decision unit, 233 ... Code insertion condition decision unit, 234 ... Decompression condition decision unit, 235 ... Relative ratio determination unit, 251 ... embedded image creation unit, 252 ... expanded image creation unit, 253 ... composite image creation unit, 561 ... original image restoration unit, 562 ... insertion image restoration unit

Claims (9)

所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理装置であって、
前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成する埋込画像作成部と、
前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する伸長原画像作成部と、
前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成する合成画像作成部と
を備えることを特徴とする画像合成処理装置。
An image composition processing device for compositing at least one insertion image with an original image based on a predetermined composition condition ,
In accordance with the synthesis condition, a predetermined code element that is blocked equal to the data amount of each element is placed at a position adjacent to the position of each element that is quantized data of the blocked insertion image in a predetermined direction. An embedded image creating unit for inserting and creating an embedded image;
According to the synthesis condition , one of the elements included in the quantized data of the original image blocked into each of the element of the inserted image included in the embedded image and the code element inserted into the element A decompressed original image creating unit that creates an expanded original image by expanding each original image in a predetermined direction by duplicating each element of the quantized data of the original image,
The following synthesis conditions, the image synthesis processing apparatus characterized by comprising a composite image creation unit that creates a synthesized and the synthesized image and the elements included in the extended original image and each of the elements included in the embedded image.
請求項1の画像合成処理装置で作成された合成画像から挿入画像を分離する画像分離処理装置であって、
ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素から、所定の合成条件を利用して、伸長原画像の各要素を復元する伸長原画像復元部と、
ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を、所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元する挿入画像復元部と
を備えることを特徴とする画像分離処理装置。
An image separation processing device for separating an insertion image from a composite image created by the image composition processing device of claim 1,
Of the elements that are the quantized data of the combined image that has been blocked, the elements of the expanded original image are synthesized from the elements in which the predetermined code element and each element of the expanded original image are combined using predetermined composition conditions. A decompressed original image restoration unit for restoring each element;
Out of the elements that are the quantized data of the combined image that has been blocked, the expansion extracted from the element in which each element of the inserted image and each element of the expanded original image are combined in a predetermined direction An image separation processing apparatus comprising: an insertion image restoration unit that restores each element of an insertion image from each element of a synthesized image by removing elements of the original image using a predetermined synthesis condition.
合成画像を作成する請求項1に記載の画像合成処理装置と、該合成画像から挿入画像を分離する請求項2に記載の画像分離処理装置とを備えることを特徴とする画像処理システム。   An image processing system comprising: the image composition processing device according to claim 1 that creates a composite image; and the image separation processing device according to claim 2 that separates an insertion image from the composite image. 所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理方法であって、
前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成するステップと、
前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成するステップと、
前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成するステップと
を備えることを特徴とする画像合成処理方法。
An image composition processing method for compositing at least one inserted image with an original image based on a predetermined composition condition ,
In accordance with the synthesis condition, a predetermined code element that is blocked equal to the data amount of each element is placed at a position adjacent to the position of each element that is quantized data of the blocked insertion image in a predetermined direction. Inserting to create an embedded image;
According to the synthesis condition , one of the elements included in the quantized data of the original image blocked into each of the element of the inserted image included in the embedded image and the code element inserted into the element To create a decompressed original image by decompressing the original image in a predetermined direction by duplicating each element of the quantized data of the original image in order to synthesize them in correspondence with each other;
The following synthesis conditions, the image synthesis processing method characterized by comprising the steps of: creating a synthesized and the synthesized image and the elements included in the extended original image and each of the elements included in the embedded image.
請求項4の画像合成方法で作成された合成画像から挿入画像を分離する画像分離処理方法であって、
ブロック化された合成画像の量子化データである各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素から、所定の合成条件を利用して、伸長原画像の各要素を復元するステップと、
ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を、所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元するステップと、
復元された挿入画像の各要素を結合するステップと
を備えることを特徴とする画像分離処理方法。
An image separation processing method for separating an insertion image from a composite image created by the image composition method of claim 4,
Of the elements that are the quantized data of the combined image that has been blocked, the elements of the expanded original image are synthesized from the elements in which the predetermined code element and each element of the expanded original image are combined using predetermined composition conditions. Restoring each element; and
Out of the elements that are the quantized data of the combined image that has been blocked, the expansion extracted from the element in which each element of the inserted image and each element of the expanded original image are combined in a predetermined direction Restoring each element of the inserted image from each element of the synthesized image by removing elements of the original image using a predetermined synthesis condition;
And a step of combining the elements of the restored inserted image.
合成画像を作成する請求項4に記載の画像合成処理方法と、該合成画像から挿入画像を分離する請求項5に記載の画像分離処理方法とを備えることを特徴とする画像処理方法。   An image processing method comprising: an image composition processing method according to claim 4 for creating a composite image; and an image separation processing method according to claim 5 for separating an insertion image from the composite image. コンピュータを、所定の合成条件に基づいて、少なくとも1つの挿入画像を原画像に合成する画像合成処理装置として機能させるプログラムであって、
コンピュータを、
前記合成条件にしたがって、ブロック化された挿入画像の量子化データである各要素の位置に対して所定の方向で隣接する位置に、各要素のデータ量に等しくブロック化された所定の符号要素を挿入して、埋込画像を作成する埋込画像作成部、
前記合成条件にしたがって、埋込画像に含まれる挿入画像の要素と該要素に対して挿入された符号要素とのそれぞれに、ブロック化された原画像の量子化データに含まれる要素のうちの1つを対応させて合成すべく、原画像の量子化データの各要素を複製することで原画像を所定の方向に伸長して伸長原画像を作成する伸長原画像作成部と、
前記合成条件にしたがって、埋込画像に含まれる各要素と伸長原画像に含まれる各要素とを合成して合成画像を作成する合成画像作成部
として機能させることを特徴とするプログラム。
A program for causing a computer to function as an image composition processing device for compositing at least one insertion image to an original image based on a predetermined composition condition ,
Computer
In accordance with the synthesis condition, a predetermined code element that is blocked equal to the data amount of each element is placed at a position adjacent to the position of each element that is quantized data of the blocked insertion image in a predetermined direction. An embedded image creation unit that inserts and creates an embedded image,
According to the synthesis condition , one of the elements included in the quantized data of the original image blocked into each of the element of the inserted image included in the embedded image and the code element inserted into the element A decompressed original image creating unit that creates an expanded original image by expanding each original image in a predetermined direction by duplicating each element of the quantized data of the original image,
The following synthesis conditions, a program for causing to function as the composite image creation unit that creates a synthesized and the synthesized image and the elements included in each element and an extended original images included in the embedded image.
コンピュータを、請求項7の画像合成処理装置として機能させるプログラムを利用して作成された合成画像から、挿入画像を分離する画像分離処理装置として機能させるプログラムであって、
コンピュータを、
ブロック化された合成画像の量子化である各要素のうち、所定の符号要素と伸長原画像の各要素とが合成されている要素とから、所定の合成条件を利用して、伸長原画像の各要素を復元する伸長原画像復元部、
ブロック化された合成画像の量子化データである各要素のうち、挿入画像の各要素と伸長原画像の各要素とが合成されている要素から、所定の方向で隣接する位置で抽出された伸長原画像の要素を所定の合成条件を利用して除去することで、合成画像の各要素から挿入画像の各要素を復元する挿入画像復元部
として機能させることを特徴とするプログラム。
A program that causes a computer to function as an image separation processing device that separates an insertion image from a composite image created by using a program that causes the computer to function as an image composition processing device according to claim 7,
Computer
Among the elements that are quantized blocks of the synthesized image, the elements of the decompressed original image are synthesized from the elements in which the predetermined code element and each element of the decompressed original image are synthesized using a predetermined composition condition. A decompressed original image restoration unit that restores each element,
Out of the elements that are the quantized data of the combined image that has been blocked, the expansion extracted from the element in which each element of the inserted image and each element of the expanded original image are combined in a predetermined direction A program that functions as an inserted image restoration unit that restores each element of an inserted image from each element of a synthesized image by removing elements of the original image using a predetermined synthesis condition.
コンピュータを、合成画像を作成する請求項7の画像合成処理装置として機能させるプログラムと、該合成画像から挿入画像を分離する請求項8に記載の画像分離処理装置として機能させるプログラムとを備えることを特徴とするプログラム。   A program for causing a computer to function as the image composition processing device according to claim 7 for creating a composite image, and a program for causing the computer to function as the image separation processing device according to claim 8 for separating an insertion image from the composite image. A featured program.
JP2011087667A 2011-04-11 2011-04-11 Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program Expired - Fee Related JP5719665B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011087667A JP5719665B2 (en) 2011-04-11 2011-04-11 Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011087667A JP5719665B2 (en) 2011-04-11 2011-04-11 Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2012222667A JP2012222667A (en) 2012-11-12
JP5719665B2 true JP5719665B2 (en) 2015-05-20

Family

ID=47273697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011087667A Expired - Fee Related JP5719665B2 (en) 2011-04-11 2011-04-11 Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program

Country Status (1)

Country Link
JP (1) JP5719665B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882780B2 (en) * 2003-05-16 2007-02-21 日本ビクター株式会社 Encryption information embedding device and encryption information reproducing device
JP4260781B2 (en) * 2005-06-30 2009-04-30 富士通株式会社 Information embedding device, information embedding method, and information embedding program
JP4873623B2 (en) * 2006-07-28 2012-02-08 Kddi株式会社 Method and apparatus for embedding barcode in color image, and computer program
JP5011583B2 (en) * 2009-11-05 2012-08-29 Necアクセステクニカ株式会社 Image processing method and apparatus

Also Published As

Publication number Publication date
JP2012222667A (en) 2012-11-12

Similar Documents

Publication Publication Date Title
JP5558767B2 (en) Image processing apparatus and processing method thereof
JPH08235346A (en) Picture processor
JPH0793559A (en) Method for storage of compressed image of high-resolution computer graphics
JP2011193394A (en) Image processing apparatus, image processing method, and program
JP2830690B2 (en) Image processing device
JP4012201B2 (en) Image data compression apparatus and restoration apparatus, and image data compression program and restoration program
JP2008278042A (en) Image coding device, decoding device, and control method for them
JP2007180710A (en) Data processing method, data processing device and data processing system
JP4797835B2 (en) Image composition device, image display device, image coding device, image composition program, image display program, and image coding program
CN112118449B (en) Method and device for compressing and decompressing image
JP4871015B2 (en) Image processing apparatus and image processing method
JP5719665B2 (en) Image composition processing device, image separation processing device, image processing system, image composition processing method, image separation processing method, image processing method, and program
JP4073942B2 (en) Image compression apparatus and image expansion apparatus, and computer-readable recording medium recording a program for causing a computer to execute the image compression method and the image expansion method
JP2003189109A (en) Image processor and image processing method, and computer program
JP4462055B2 (en) Image processing apparatus and image processing method
JP2007005907A (en) Image processing method, image processor, image processing program, and recording medium
JP2005101967A (en) Image processor, image processing program, image processing method, and data structure for data conversion
JP2008228168A (en) Image processing apparatus and program
JP3346051B2 (en) Image processing device
JP3707419B2 (en) Image compression apparatus, image compression method, image expansion apparatus, and program
JP2005045342A (en) Image processing apparatus and image processing program for allowing computer to perform image processing
JP6428232B2 (en) Image processing apparatus and image composition method
JP2007335983A (en) Image processor
JP2005018465A (en) Image processor, method, and program
JP2000227848A (en) Image processor

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130805

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141205

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150323

R150 Certificate of patent or registration of utility model

Ref document number: 5719665

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees