JP6544004B2 - Color sample creating apparatus and color sample creating method, and image processing system using color sample - Google Patents
Color sample creating apparatus and color sample creating method, and image processing system using color sample Download PDFInfo
- Publication number
- JP6544004B2 JP6544004B2 JP2015075319A JP2015075319A JP6544004B2 JP 6544004 B2 JP6544004 B2 JP 6544004B2 JP 2015075319 A JP2015075319 A JP 2015075319A JP 2015075319 A JP2015075319 A JP 2015075319A JP 6544004 B2 JP6544004 B2 JP 6544004B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- color sample
- pixels
- pixel
- rearrangement
- 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
Links
Landscapes
- Spectrometry And Color Measurement (AREA)
Description
本発明は、色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムに関する。 The present invention relates to a color sample, a color sample creating apparatus and a color sample creating method, and an image processing system using a color sample.
カラーチャートとしての色見本は、物体などにおける色の見えを模したものであって、従来の色見本は、均一な色の領域を矩形状に印刷した単色のパッチによって構成されている(例えば、特許文献1参照)。 A color swatch as a color chart imitates the appearance of a color on an object or the like, and a conventional color swatch is constituted by a single-color patch in which an area of uniform color is printed in a rectangular shape (for example, Patent Document 1).
このような色見本は、本来、印刷物や物体の色の塗装などの彩色のための見本として、あるいは、印刷物や物体における彩色後の色再現性のチェックや比較などに用いられる。 Such a color sample is originally used as a sample for coloring such as painting of a print or a color of an object, or used for checking or comparing color reproducibility after coloring on a print or an object.
実際に彩色された物体では、現実空間内で色再現性のチェックなどが行われる。しかるに、物体における実際の色は、例えば、直接照明および間接照明の何れであるかなどの照明条件、物体の材質、物体における表面の凹凸形状、または、照明−物体−チェック者の視点などの位置関係による空間的分布を有しており、必ずしも均一ではない。 For objects that are actually colored, a check of color reproducibility is performed in real space. However, the actual color of the object is, for example, the illumination condition such as direct illumination or indirect illumination, the material of the object, the uneven shape of the surface of the object, or the position of the illumination-object-checker's viewpoint etc. It has a spatial distribution of relationships and is not necessarily uniform.
特に、印刷物が現実空間内のオブジェクトやオブジェクトを含むシーンを撮影した写真の場合、たとえオブジェクトが均一に彩色されているとしても、そのオブジェクトの色は、撮影条件などにより空間的に不均一なものとなるのが普通である。 In particular, when the printed matter is a photograph of a photographed object or a scene containing an object in real space, even if the object is uniformly colored, the color of the object is spatially nonuniform due to the photographing conditions and the like. It is usually
そのため、従来の色見本のような単色のパッチでは、空間的分布条件によっては均一でない、空間的分布を有する色の見えから受ける印象を再現するのは困難である。 Therefore, it is difficult to reproduce an impression received from the appearance of a color having a spatial distribution, which is not uniform depending on the spatial distribution condition, in a monochrome patch such as a conventional color sample.
このようなことから、現在では色見本、色見本の作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提案している。当該色見本では、元図(元画像)の所定領域に含まれる全画素を明度、彩度、および色相角に基づいて並べ替え、並び替えた後の各画素を色見本内でその所定領域に対応する領域に配置させている。そのようにして、当該色見本では、実際の環境下における色の見えから受ける印象を近似的に再現できるようになっている。 Under such circumstances, color samples, color sample creating apparatuses and color sample creating methods, and image processing systems using color samples are currently proposed. In the color sample, all the pixels included in a predetermined area of the original drawing (original image) are rearranged based on the lightness, saturation, and hue angle, and each pixel after rearrangement is arranged in the predetermined area in the color sample. It is arranged in the corresponding area. As such, in the color sample, it is possible to approximately reproduce the impression received from the appearance of the color under the actual environment.
しかしながら、当該色見本では、領域内の画素群のなかで近似する色の画素が分散された形で配置される場合がある。近似する色の画素が分散された形で配置された場合、その近似する色の画素が観測者に知覚されやすくなって、粒状度が高くなる。粒状度は、高くなるほど、観察者に粒状感を与えやすくなる。観測者にとって粒状感(粒状性)はノイズとして知覚されることから、粒状度は抑えることが望ましい。 However, in the color sample, pixels of a similar color may be arranged in a dispersed manner in the pixel group in the area. When the pixels of the similar color are arranged in a dispersed manner, the pixels of the similar color are easily perceived by the observer, and the granularity is increased. The higher the granularity, the easier it is for the viewer to feel granular. Since graininess (graininess) is perceived as noise for the observer, it is desirable to suppress graininess.
本発明は、上述したような課題を解決するためになされたもので、実際の環境下における色の見えから受ける印象を近似的に再現できると共に、粒状度をより抑えた色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提供することにある。 The present invention has been made to solve the problems as described above, and it is possible to approximately reproduce an impression received from the appearance of color in an actual environment, and to create a color sample and a color sample with further reduced granularity. An apparatus, a color sample creation method, and an image processing system using the color sample.
本発明に係る色見本は、第1の画像内の第1の領域を構成する第1の画素群から生成する第2の画素群が配置される第2の領域を含み、第2の画素群を構成する各画素は、第1の画素群を構成する各画素に対し、明度を基に並べ替える第1の並べ替えを行い、第1の並べ替えを行った後の各画素に対し、第2の領域内の行を想定して、行毎に、色相角を基に並べ替える第2の並べ替えを行い、第2の並べ替えを行った後の各画素に対し、色を基に並べ替える第3の並べ替えを行い、第2の領域内に配置されている。 A color sample according to the present invention includes a second area in which a second pixel group generated from a first pixel group constituting a first area in a first image is arranged, and a second pixel group For each pixel constituting the first pixel group, the first rearrangement is performed based on the lightness, and for each pixel after the first rearrangement, the first arrangement is performed. Assuming a row in the second region, a second rearrangement is performed for each row based on the hue angle, and for each pixel after the second rearrangement, the arrangement is based on a color A third sort to replace is performed and arranged in the second area.
本発明によれば、実際の環境下における色の見えから受ける印象を近似的に再現できると共に、粒状度をより抑えた色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提供できる。 According to the present invention, it is possible to approximately reproduce an impression received from the appearance of color in an actual environment, and to use a color sample, a color sample creating apparatus and a color sample creating method, and a color sample with further reduced granularity. An image processing system can be provided.
以下、本発明に係る一実施の形態について、図面を参照して説明する。 Hereinafter, an embodiment according to the present invention will be described with reference to the drawings.
図1は、本発明の一実施の形態に係る画像処理システムの構成例を示すものである。 FIG. 1 shows an exemplary configuration of an image processing system according to an embodiment of the present invention.
図1に示すように、画像処理システム100は、例えば、画像処理装置2とサーバ装置3とを含む構成である。この画像処理システム100においては、画像処理装置2とサーバ装置3とがネットワーク4を介して互いに接続されている。 As shown in FIG. 1, the image processing system 100 includes, for example, an image processing device 2 and a server device 3. In the image processing system 100, the image processing device 2 and the server device 3 are connected to each other via the network 4.
画像処理装置2は、色の見えについて、後述する色見本(第2の画像)を用いて写真などの修整対象となる入力画像(修整前画像)の修整処理を行うことが可能な情報処理装置である。その情報処理装置とは、例えば、パーソナルコンピュータ(PC)、或いはタブレット端末などである。 The image processing apparatus 2 is an information processing apparatus capable of performing a retouching process of an input image (image before retouching) to be a retouching object such as a photograph by using a color sample (second image) described later. It is. The information processing apparatus is, for example, a personal computer (PC) or a tablet terminal.
また、この画像処理装置2は、色見本(第2の画像)の作成に用いる画像である元画像(第1の画像に相当することから、以降「第1の画像」と表記)の入力、および入力した第1の画像から色見本の作成などを行うことができる。本実施の形態による色見本作成装置は、この画像処理装置2に搭載された形で実現されている。 Further, the image processing apparatus 2 inputs an original image (hereinafter referred to as “first image” because it corresponds to the first image) which is an image used to create a color sample (second image). And, a color sample can be created from the input first image. The color sample creation device according to the present embodiment is realized in the form of being mounted on the image processing device 2.
サーバ装置3は、第1の画像、およびこの第1の画像を用いて作成された色見本をそれぞれ画像データとして記憶することができる情報処理装置である。ここではサーバ装置3は1台のみ示しているが、サーバ装置3は複数台、存在していても良い。つまり、サーバ装置3の台数は特に限定されない。画像処理装置2の台数も1台に限定されない。 The server device 3 is an information processing device that can store a first image and a color sample created using the first image as image data. Although only one server device 3 is shown here, a plurality of server devices 3 may exist. That is, the number of server devices 3 is not particularly limited. The number of image processing apparatuses 2 is not limited to one.
ネットワーク4は、例えばLAN(Local Area Network)、WAN(Wide Area Network)、インターネット、或いはそれらを2つ以上、含むネットワーク群である。ネットワーク4としては、画像処理装置2とサーバ装置3を直接、接続するケーブルであっても良い。画像処理装置2とサーバ装置3間は、無線により接続させても良い。 The network 4 is, for example, a LAN (Local Area Network), a WAN (Wide Area Network), the Internet, or a network group including two or more of them. The network 4 may be a cable that directly connects the image processing device 2 and the server device 3. The image processing device 2 and the server device 3 may be connected wirelessly.
上記した構成の画像処理システム100では、画像処理装置2は、ネットワーク4を介して、サーバ装置3から画像(画像データ)を含む各種データを受信することができ、サーバ装置3に各種データを送信することができる。本実施の形態では、サーバ装置3は、画像処理装置2が必要とする各種データを供給し、その画像処理装置2が生成した各種データを保存するデータベースサーバ装置として機能すると想定する。 In the image processing system 100 configured as described above, the image processing device 2 can receive various data including an image (image data) from the server device 3 via the network 4, and transmits various data to the server device 3. can do. In the present embodiment, it is assumed that the server device 3 functions as a database server device that supplies various data required by the image processing device 2 and stores various data generated by the image processing device 2.
図2は、画像処理装置2の構成例を示すブロック図である。図2に示す構成例は1例であり、画像処理装置2の構成は図2に示す構成例に限定されない。 FIG. 2 is a block diagram showing a configuration example of the image processing apparatus 2. The configuration example shown in FIG. 2 is an example, and the configuration of the image processing apparatus 2 is not limited to the configuration example shown in FIG.
図2に示すように、画像処理装置2は、CPU21、フラッシュメモリ22、RAM23、表示装置24、入力装置25、2つ以上のI/F(Interface)26、27、および各部21〜27間を接続するバス28を備える。 As shown in FIG. 2, the image processing apparatus 2 includes a CPU 21, a flash memory 22, a RAM 23, a display device 24, an input device 25, two or more I / Fs (Interfaces) 26 and 27, and parts 21 to 27. It has a bus 28 to be connected.
ここでは、フラッシュメモリ22は、SSD(Solid State Drive)等のストレージを含むものとして表記している。そのフラッシュメモリ22には、各種プログラムおよび各種データが記憶されている。プログラムには、色見本の作成を可能にするプログラム(以降「色見本作成プログラム」と表記)22a、および色見本を参照して、修整対象とする画像(以降「修整前画像」と表記)の修整を行い、修整を行った後の修整前画像である修整画像を生成可能にするプログラム(以降「画像修整プログラム」と表記)22bが含まれる。 Here, the flash memory 22 is described as including storage such as a solid state drive (SSD). The flash memory 22 stores various programs and various data. The program refers to a program (hereinafter referred to as “color sample creation program”) 22a that enables creation of a color sample and an image to be modified (hereinafter referred to as “pre-modification image”) with reference to the color sample. A program (hereinafter, referred to as an “image modifying program”) 22b that enables modification and generation of a modified image which is a pre-repairing image after the modification is included.
RAM23は、主に、CPU21が各種プログラムを実行するためのワークに用いられる。フラッシュメモリ22に記憶された各種プログラムは、RAM23に読み出されて実行される。 The RAM 23 is mainly used as a work for the CPU 21 to execute various programs. The various programs stored in the flash memory 22 are read out to the RAM 23 and executed.
表示装置24は、例えば、液晶表示装置である。この表示装置24は、CPU21の制御により、各種データを表示する。 The display device 24 is, for example, a liquid crystal display device. The display device 24 displays various data under the control of the CPU 21.
入力装置25は、例えばキーボード、およびポインティングデバイスを含む入力装置群である。ユーザによる各種指示、および各種データ入力は、入力装置25への操作を介して行うことができる。 The input device 25 is an input device group including, for example, a keyboard and a pointing device. Various instructions from the user and various data inputs can be performed through an operation on the input device 25.
I/F26は、ネットワーク4を介した通信を可能にする。それにより、画像処理装置2は、I/F26を介して、サーバ装置3との通信を行う。 The I / F 26 enables communication via the network 4. Thereby, the image processing apparatus 2 communicates with the server apparatus 3 via the I / F 26.
I/F27は、例えば外部機器との接続を可能とする接続用装置である。外部機器とは、例えばスキャナ、光学ディスクなどの記録媒体を駆動する媒体駆動装置、ハードディスク装置、或いは半導体メモリ(例えばUSB(Universal Serial Bus)メモリ)などのストレージである。 The I / F 27 is, for example, a connection device that enables connection with an external device. The external device is, for example, a storage device such as a medium drive device for driving a recording medium such as a scanner or an optical disk, a hard disk drive, or a semiconductor memory (for example, a USB (Universal Serial Bus) memory).
I/F26および27は、画像を含む各種データの入力、および出力に用いることができる。しかし、ここでは、説明上、便宜的に、画像を含む各種データの入力先、および出力先はサーバ装置3のみを想定する。 The I / Fs 26 and 27 can be used for input and output of various data including images. However, here, for convenience of explanation, it is assumed that only the server device 3 is an input destination and an output destination of various data including an image.
画像処理装置2と同様に、サーバ装置3の構成も限定されない。このことから、便宜的に、サーバ装置3も図2に示す構成例であると想定し、各部の符号は画像処理装置2と同じものを用いる。 Similarly to the image processing device 2, the configuration of the server device 3 is not limited. From this, for convenience, it is assumed that the server device 3 is also the configuration example shown in FIG. 2, and the reference numerals of the respective parts use the same ones as the image processing device 2.
図3は、本発明の実施の形態に係る画像処理システムの機能構成例を示すブロック図である。ここでは、画像処理装置2とサーバ装置3とに分けて、それらの機能構成例を示している。 FIG. 3 is a block diagram showing an example of the functional configuration of the image processing system according to the embodiment of the present invention. Here, the functional configuration examples of the image processing device 2 and the server device 3 are shown separately.
画像処理装置2には、図3に示すように、色見本作成装置210、および画像修整装置230が搭載されている。 As shown in FIG. 3, the image processing apparatus 2 is equipped with a color sample creation device 210 and an image modification device 230.
色見本作成装置210は、第1の画像を参照して色見本を作成できる、本実施の形態による色見本作成装置である。この色見本作成装置210は、フラッシュメモリ22に記憶された色見本作成プログラム22aをCPU21が実行することによって実現される。 The color sample creating apparatus 210 is a color sample creating apparatus according to the present embodiment that can create a color sample with reference to the first image. The color sample creating apparatus 210 is realized by the CPU 21 executing the color sample creating program 22 a stored in the flash memory 22.
一方、画像修整装置230は、色見本を参照して、修整前画像を修整し、その修整によって得られる修整画像を作成できる装置である。この画像修整装置230は、フラッシュメモリ22に記憶された画像修整プログラム22bをCPU21が実行することによって実現される。 On the other hand, the image modifying device 230 is a device capable of modifying an uncorrected image with reference to a color sample and creating a modified image obtained by the modification. The image modifying device 230 is realized by the CPU 21 executing the image modifying program 22 b stored in the flash memory 22.
始めに、画像修整装置230について詳細に説明する。この画像修整装置230は、図3に示すように、機能構成として、データ取得部231、画像入力部232、事例選択部233、修整部234、およびデータ出力部235を備える。 First, the image modifying device 230 will be described in detail. As shown in FIG. 3, the image modifying device 230 includes, as functional components, a data acquisition unit 231, an image input unit 232, a case selection unit 233, a modification unit 234, and a data output unit 235.
データ取得部231は、ネットワーク4を介してサーバ装置3から必要なデータを取得する機能である。フラッシュメモリ22に記憶された画像修整プログラム22bを実行するCPU21の制御によってサーバ装置3からデータが取得される。このことから、データ取得部231は、例えばCPU21、フラッシュメモリ22、RAM23、I/F26、およびバス28によって実現される。 The data acquisition unit 231 is a function of acquiring necessary data from the server device 3 via the network 4. Data is acquired from the server device 3 under the control of the CPU 21 that executes the image modification program 22 b stored in the flash memory 22. From this, the data acquisition unit 231 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the I / F 26, and the bus 28.
サーバ装置3から取得する各種データには、色見本、修整前画像、および事例情報などが含まれる。 The various data acquired from the server device 3 include a color sample, an image before modification, and case information.
事例情報は、修整前画像に対する修整内容を指定するための情報であり、修整時参照情報、および事例識別情報を含む。修整時参照情報は、修整方法を指定するための情報であり、事例識別情報は、修整を行ううえで参照する事例を表す情報である。 The case information is information for specifying modification content for the pre-repair image, and includes modification reference information and case identification information. The modification time reference information is information for specifying a modification method, and the case identification information is information representing a case to be referred to in performing modification.
図4は、事例情報の構成例を説明する図である。 FIG. 4 is a diagram for explaining a configuration example of case information.
色見本を参照して修整前画像を修整する事例は、2つの色見本を参照する標準型と、1つの色見本を参照する転写型と、に大別される。図4(a)には標準型の事例情報、図4(b)には転写型の事例情報をそれぞれ示している。 Examples of modifying an uncorrected image with reference to a color sample are roughly classified into a standard type that refers to two color samples and a transfer type that refers to one color sample. FIG. 4A shows standard type case information, and FIG. 4B shows transfer type case information.
事例識別情報は、タイプ情報、事例ID(Identifier)情報、画像A情報、画像Aの色調情報、画像B情報、画像Bの色調情報、印象表現情報、選択領域形状情報、および選択領域情報を含む。 The case identification information includes type information, case ID (Identifier) information, image A information, image A tone information, image B information, image B tone information, impression representation information, selected area shape information, and selected area information. .
タイプ情報は、事例のタイプ、つまり事例が標準型および転写型のうちの何れであるかを示す情報である。それにより、その情報の内容として、図4(a)では「標準型」、図4(b)では「転写型」をそれぞれ表記している。 Type information is information indicating the type of case, that is, whether the case is a standard type or a transcription type. Thus, as the contents of the information, “standard type” is shown in FIG. 4A and “transfer type” is described in FIG. 4B.
事例ID情報は、事例を1意に表す情報である。その情報の内容として、図4(a)では「0001」、図4(b)では「0001−2」をそれぞれ表記している。 The case ID information is information uniquely representing a case. As the contents of the information, “0001” is shown in FIG. 4A, and “0001-2” is shown in FIG. 4B.
画像A情報は、修整前の事例画像として参照すべき色見本(以降「画像A」とも表記する)を表す情報である。その情報の内容として、図4(a)ではファイル名を表す「img0001.jpg」を表記している。転写型では画像Aは参照しないことから、図4(b)では情報が存在しないことを表す「NULL」を表記している。 The image A information is information representing a color sample (hereinafter also referred to as “image A”) to be referred to as a case image before modification. As content of the information, “img0001.jpg” representing a file name is described in FIG. In the transfer type, since the image A is not referred to, “NULL” is written in FIG. 4B to indicate that no information exists.
画像Aの色調情報は、画像A全体の色調を表す情報である。本実施の形態では、各画素はL*(エルスター)、a*(エースター)、b*(ビースター)の表色系の三要素のデータをもっていることを想定している。このことから、その情報の内容として、図4(a)では平均Lab値を表す「(50,12,15)」を表記している。なお、画素を表現するデータの種類は特に限定されるものではない。 The tone information of the image A is information representing the tone of the entire image A. In this embodiment, it is assumed that each pixel has data of three elements of L * (Elster), a * (Aester), and b * (Bearster) color system. From this, in FIG. 4A, “(50, 12, 15)” representing the average Lab value is described as the content of the information. The type of data representing a pixel is not particularly limited.
画像B情報は、修整後の事例画像として参照すべき色見本(以降「画像B」とも表記する)を表す情報である。その情報の内容として、図4(a)および図4(b)ではそれぞれ「img0002.jpg」を表記している。標準型と転写型とで画像Bを区別するために、転写型での画像Bは「参照画像」とも表記することとする。 Image B information is information representing a color sample (hereinafter also referred to as “image B”) to be referred to as a case image after modification. In FIG. 4A and FIG. 4B, “img0002.jpg” is described as the contents of the information. In order to distinguish the image B between the standard type and the transfer type, the image B in the transfer type is also referred to as a "reference image".
画像Bの色調情報は、画像B全体の色調を表す情報である。その情報の内容として、図4(a)、および図4(b)では「(34,11,14)」を表記している。 The tone information of the image B is information representing the tone of the entire image B. As the contents of the information, “(34, 11, 14)” is described in FIGS. 4 (a) and 4 (b).
印象表現情報は、画像AおよびB、または画像Bから観察者が受ける印象を表す情報である。その情報の内容として、図4(a)および図4(b)では「暗く滑らか」をそれぞれ表記している。 The impression expression information is information representing an impression that the observer receives from the images A and B or the image B. In FIG. 4A and FIG. 4B, “dark and smooth” is described as the contents of the information.
選択領域形状情報は、画像AおよびB、または画像Bのなかで参照すべき領域(第2の領域)の形状を表す情報である。その情報の内容として、図4(a)および図4(b)では「円」をそれぞれ表記している。 The selected area shape information is information representing the shape of the area (second area) to be referred to in the images A and B or the image B. As the contents of the information, “circle” is described in FIG. 4 (a) and FIG. 4 (b).
選択領域情報は、画像AおよびB、または画像Bのなかで参照すべき領域を表す情報である。その情報の内容として、図4(a)および図4(b)では「中心(50,50),半径50」をそれぞれ表記している。 The selected area information is information representing an area to be referred to in the images A and B or the image B. As the contents of the information, “center (50, 50), radius 50” is described in FIGS. 4 (a) and 4 (b).
図4(a)および図4(b)に内容を表記した選択領域形状情報、および選択領域情報は、図7に表すような色見本を想定したものである。選択領域(第2の領域)には画素が配置される行が複数、存在し、選択領域に配置される画素群(第2の画素群)は、行単位に分けて配置される。 The selected area shape information and the selected area information whose contents are described in FIG. 4A and FIG. 4B are assumed to be a color sample as shown in FIG. There are a plurality of rows in which pixels are arranged in the selection area (second area), and a pixel group (second pixel group) arranged in the selection area is divided in line units.
修整時参照情報は、画像処理オペレータ情報、画像処理パラメータ情報を含む。 The modification reference information includes image processing operator information and image processing parameter information.
画像処理オペレータ情報は、修整のための操作方法を表す情報である。その情報の内容として、図4(a)では「トーンカーブ(Lトーンカーブ)」、図4(b)では「転写オペレータ」をそれぞれ表記している。 The image processing operator information is information representing an operation method for modification. As the contents of the information, “tone curve (L tone curve)” is shown in FIG. 4A and “transfer operator” is shown in FIG. 4B.
トーンカーブは、画像全体の修整を行ううえでの操作内容を指定する。画像パラメータ情報は、画像処理オペレータ情報によって指定される操作を行ううえで使用される情報である。このことから、標準型では、画像パラメータ情報として、トーンカーブの作成のために使用される制御点情報が登録される。 The tone curve specifies an operation content for modifying the entire image. Image parameter information is information used to perform an operation specified by the image processing operator information. From this, in the standard type, control point information used for creating a tone curve is registered as image parameter information.
転写オペレータは、画像B(参照画像)を目標として、その画像Bに向けて修整前画像を修整する操作を指定する。このことから、転写型では、画像パラメータ情報は「NULL(画像Bを参照)」となっている。 The transfer operator designates an operation for correcting the uncorrected image toward the image B, with the image B (reference image) as a target. From this, in the transfer type, the image parameter information is "NULL (see image B)".
なお、図4に示す事例情報の構成例は1例であり、事例情報の構成は特に限定されない。事例情報の記述方法も限定されない。事例情報の記述は、例えばXML(Extensible Markup Language)を用いて行っても良い。 The configuration example of the case information illustrated in FIG. 4 is one example, and the configuration of the case information is not particularly limited. The method of describing the case information is also not limited. The case information may be described using, for example, XML (Extensible Markup Language).
ここでは、サーバ装置3は、図4(a)或いは図4(b)に表すような事例情報を複数、保存すると共に、修整前画像を複数、保存していると想定する。 Here, it is assumed that the server device 3 stores a plurality of pieces of case information as shown in FIG. 4A or 4B and stores a plurality of uncorrected images.
上記の想定では、画像入力部232は、ユーザの指示に従って、指定された修整前画像をサーバ装置3から取得する機能である。ユーザの指示は、入力装置25への操作により行われ、修整前画像はサーバ装置3から取得される。このことから、画像入力部232は、例えばCPU21、フラッシュメモリ22、RAM23、入力装置25、I/F26およびバス28によって実現される。 In the above assumption, the image input unit 232 is a function of acquiring the specified uncorrected image from the server device 3 in accordance with the user's instruction. The user's instruction is performed by operating the input device 25, and the pre-modification image is acquired from the server device 3. From this, the image input unit 232 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the input device 25, the I / F 26, and the bus 28.
事例選択部233は、例えばサーバ装置3から取得可能な事例情報をユーザに提示し、ユーザに所望の事例情報を選択させる機能である。データ取得部231によるサーバ装置3からのデータの取得は、事例選択部233によって制御される。この事例選択部233は、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24およびバス28によって実現される。 The case selection unit 233 is a function that presents, for example, case information that can be acquired from the server device 3 to the user and causes the user to select desired case information. Acquisition of data from the server device 3 by the data acquisition unit 231 is controlled by the case selection unit 233. The case selection unit 233 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the display device 24, and the bus 28.
修整部234は、ユーザが選択した事例情報を参照し、指定された修整前画像に対する修整を行う機能である。この修整部234は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28によって実現される。 The modifying unit 234 is a function of modifying the specified uncorrected image with reference to the case information selected by the user. The modification unit 234 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, and the bus 28.
修整部234によって行われる修整前画像の修整について、図5および図6を参照して具体的に説明する。 The image retouching performed by the retouching unit 234 will be specifically described with reference to FIGS. 5 and 6.
図5は、標準型の事例情報による修整前画像の修整方法例を説明する図である。 FIG. 5 is a diagram for explaining an example of a method of correcting an image before correction by standard type case information.
標準型の事例情報による修整では、その事例情報で指定された画像A(図5(a))、および画像B(図5(b))が用いられる。画像処理オペレータ情報で指定されたトーンカーブ(図5(c))は、画像Aを画像Bに向けて階調補正するために作成される。修整前画像(図5(d)。ここでは「入力画像」と表記)は、作成したトーンカーブを用いて変換され、修整画像(図5(e))が作成される。図5に表す例では、修整前画像(例えば写真)にオブジェクトとして存在する人物の肌、その人物の服、その人物の背景となっている空および山、などが修整されている。 In the modification based on the standard type case information, the image A (FIG. 5 (a)) and the image B (FIG. 5 (b)) specified by the case information are used. The tone curve (FIG. 5C) specified by the image processing operator information is created to correct the tone of the image A toward the image B. The uncorrected image (FIG. 5 (d), referred to as "input image" in this case) is converted using the created tone curve to generate a corrected image (FIG. 5 (e)). In the example shown in FIG. 5, the skin of a person existing as an object in a pre-repairing image (for example, a photo), the clothes of the person, the sky and mountains as the background of the person, and the like are modified.
図6は、転写型の事例情報による修整前画像の修整方法例を説明する図である。 FIG. 6 is a view for explaining an example of a method of correcting an image before correction based on transfer type case information.
転写型の事例情報による修整では、その事例情報で指定された画像B(図6(a))のみが用いられる。この転写型では、色彩転写などの既知の方法を用いて修整前画像(図6(b)。ここでは「入力画像」と表記)を修整し、修整画像(図6(c))を作成する。図6に表す例でも、修整前画像(例えば写真)にオブジェクトとして存在する人物の肌、その人物の服、その人物の背景となっている空および山、などが修整されている。 In the modification based on the transfer type case information, only the image B (FIG. 6A) specified by the case information is used. In this transfer type, an uncorrected image (FIG. 6 (b), here referred to as “input image”) is corrected using a known method such as color transfer to create a corrected image (FIG. 6 (c)). . Also in the example shown in FIG. 6, the skin of a person existing as an object in the pre-repairing image (for example, a photo), the clothes of the person, the sky and mountains as the background of the person, and the like are modified.
図3に示すデータ出力部235は、修整画像を出力できる機能である。修整画像の具体的な出力先として、サーバ装置3の他に、図2に示す表示装置24がある。このことから、データ出力部235は、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24、I/F26およびバス28によって実現される。 The data output unit 235 illustrated in FIG. 3 is a function that can output a modified image. As a specific output destination of the modified image, in addition to the server device 3, there is a display device 24 shown in FIG. From this, the data output unit 235 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the display device 24, the I / F 26, and the bus 28.
ここで、画像処理装置2と接続されたサーバ装置3の機能構成例について具体的に説明する。 Here, a functional configuration example of the server device 3 connected to the image processing device 2 will be specifically described.
このサーバ装置3は、図3に示すように、機能構成として、制御部31、通信部32、第1の記憶部33、および第2の記憶部34を備える。 As illustrated in FIG. 3, the server device 3 includes a control unit 31, a communication unit 32, a first storage unit 33, and a second storage unit 34 as functional components.
通信部32は、ネットワーク4を介した通信を可能にする。ネットワーク4を介した通信は、フラッシュメモリ22に記憶されているネットワークOS(Operating System)、或いはサービスを提供するためのアプリケーション・プログラムをCPU21が実行することで可能になる。このことから、通信部32は、例えばCPU21、フラッシュメモリ22、RAM23、I/F26、およびバス28により実現される。 The communication unit 32 enables communication via the network 4. Communication via the network 4 is enabled by the CPU 21 executing a network OS (Operating System) stored in the flash memory 22 or an application program for providing a service. From this, the communication unit 32 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the I / F 26, and the bus 28.
第1の記憶部33は、例えば修整前画像、第1の画像、事例情報、修整画像などの保存に用いられる。この第1の記憶部33は、例えばフラッシュメモリ22、およびRAM23が相当する。 The first storage unit 33 is used, for example, for storing an uncorrected image, a first image, case information, a corrected image, and the like. The first storage unit 33 corresponds to, for example, the flash memory 22 and the RAM 23.
第2の記憶部34は、例えば画像A、或いは画像Bとして用いられる色見本の保存に用いられる。この第2の記憶部34も、例えばフラッシュメモリ22、およびRAM23が相当する。 The second storage unit 34 is used to store, for example, a color sample used as the image A or the image B. The second storage unit 34 also corresponds to, for example, the flash memory 22 and the RAM 23.
制御部31は、サーバ装置3全体を制御する。この制御は、フラッシュメモリ22に記憶されているネットワークOS(Operating System)、或いはサービスを提供するためのアプリケーション・プログラムをCPU21が実行することで実現される。このことから、制御部31は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28により実現される。 The control unit 31 controls the entire server device 3. This control is realized by the CPU 21 executing a network operating system (OS) stored in the flash memory 22 or an application program for providing a service. From this, the control unit 31 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, and the bus 28.
本実施の形態としての画像処理システム100は、画像処理装置2の画像修整装置230とサーバ装置3とによって実現されている。 The image processing system 100 according to the present embodiment is realized by the image modifying device 230 of the image processing device 2 and the server device 3.
画像修整装置230がサーバ装置3から修整前画像を入力して、その修整前画像の修整を行うと想定した場合、画像処理システム100は、修整対象となる修整前画像をサーバ装置3が保存することで、その修整前画像を取得したことになる。取得された修整前画像は第1の記憶部33に保存される。このようなことから、画像処理システム100の画像取得部は、例えば制御部31、通信部32および第1の記憶部33によって実現される。 Assuming that the image modifying device 230 inputs an uncorrected image from the server device 3 and modifies the uncorrected image, the image processing system 100 causes the server device 3 to save the uncorrected image to be corrected. That means that you have acquired the pre-retouched image. The acquired uncorrected image is stored in the first storage unit 33. From such a thing, the image acquisition part of the image processing system 100 is implement | achieved by the control part 31, the communication part 32, and the 1st memory | storage part 33, for example.
画像A、或いは画像Bとして用いられる色見本は、第2の記憶部34に保存され、必要に応じて画像処理装置2に送信される。このことから、画像処理システム100の画像記憶手段は、少なくとも第2の記憶部34を含むことになる。 The color sample used as the image A or the image B is stored in the second storage unit 34, and is transmitted to the image processing apparatus 2 as needed. From this, the image storage means of the image processing system 100 includes at least the second storage unit 34.
修整前画像に対する修整は、画像修整装置230が行う。画像修整装置230は、その修整前画像に対する修整を行うために、その修整前画像、その修整に必要な各種データをサーバ装置3から取得する。このようなことから、画像処理システム100の修整手段は、例えばサーバ装置3の制御部31、通信部32および第1の記憶部33、並びに画像修整装置230のデータ取得部231、画像入力部232および修整部234によって実現される。 The image modification device 230 performs the modification on the pre-repaired image. The image modifying device 230 acquires the pre-repairing image and various data necessary for the modification from the server 3 in order to modify the pre-repairing image. Because of this, the modification unit of the image processing system 100 includes, for example, the control unit 31 of the server device 3, the communication unit 32 and the first storage unit 33, and the data acquisition unit 231 of the image modification unit 230 and the image input unit 232. And the modification unit 234.
画像修整装置230は、サーバ装置3から修整前画像、および色見本(画像A、および画像B、或いは画像B)を含む各種必要なデータを受信し、受信した修整前画像の修整を行う。画像修整装置230は、サーバ装置3から受信したデータを、例え一時的でも記憶する。このことから、画像修整装置230自体も、1つの画像処理システム100として機能する。これは、画像処理システム100が、1台の情報処理装置だけでも実現できることを意味する。 The image modifying device 230 receives various necessary data including the pre-repairing image and the color sample (the image A and the image B or the image B) from the server device 3 and reconstitutes the received pre-repairing image. The image modifying device 230 temporarily stores the data received from the server device 3 even if it is temporary. From this, the image modifying device 230 itself also functions as one image processing system 100. This means that the image processing system 100 can be realized by only one information processing apparatus.
画像修整装置230を1つの画像処理システムと見なした場合、画像取得手段は、例えば画像入力部232が相当する。画像記憶部は、例えばデータ取得部231、および修整部が相当する。修整手段は、例えばデータ取得部231、事例選択部233、および修整部234によって実現される。 When the image modifying device 230 is regarded as one image processing system, the image acquisition unit corresponds to, for example, the image input unit 232. The image storage unit corresponds to, for example, a data acquisition unit 231 and a modification unit. The modification means is realized by, for example, the data acquisition unit 231, the case selection unit 233, and the modification unit 234.
次に、色見本作成装置210について詳細に説明する。この色見本作成装置210は、図3に示すように、機能構成として、データ取得部211、配置決定部212、および色見本の作成部213、および登録部214を備える。 Next, the color sample creation device 210 will be described in detail. As shown in FIG. 3, the color sample creation device 210 includes, as functional components, a data acquisition unit 211, a layout determination unit 212, a color sample creation unit 213, and a registration unit 214.
データ取得部211は、ネットワーク4を介してサーバ装置3から第1の画像を含む必要なデータを取得する機能である。フラッシュメモリ22に記憶された色見本作成プログラム22aを実行するCPU21の制御によってサーバ装置3から必要なデータが取得される。サーバ装置3から取得する第1の画像は、表示装置24に表示された情報を視認するユーザが入力装置25を操作して指定する。このことから、データ取得部211は、画像取得手段に相当する機能であり、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24、入力装置25、I/F26、およびバス28によって実現される。 The data acquisition unit 211 is a function of acquiring necessary data including the first image from the server device 3 via the network 4. Necessary data is acquired from the server device 3 under the control of the CPU 21 that executes the color sample creation program 22a stored in the flash memory 22. A user who visually recognizes the information displayed on the display device 24 operates the input device 25 to designate the first image acquired from the server device 3. From this, the data acquisition unit 211 is a function corresponding to an image acquisition unit, and is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the display device 24, the input device 25, the I / F 26, and the bus 28.
配置決定部212は、ユーザが指定した第1の画像を参照し、色見本の第2の領域に配置すべき画素群(第2の画素群)を決定する機能である。この配置決定部212は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28によって実現される。 The arrangement determination unit 212 is a function of determining a pixel group (second pixel group) to be arranged in the second area of the color sample, with reference to the first image specified by the user. The arrangement determination unit 212 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, and the bus 28.
配置決定部212は、第1の並べ替え部221、第2の並べ替え部222、および第3の並べ替え部223を備える。これら第1の並べ替え部221、第2の並べ替え部222、および第3の並べ替え部223は、それぞれ、第1の並べ替え手段、第2の並べ替え手段、および第3の並べ替え手段に相当する。 The arrangement determination unit 212 includes a first sorting unit 221, a second sorting unit 222, and a third sorting unit 223. The first sorting unit 221, the second sorting unit 222, and the third sorting unit 223 are respectively a first sorting unit, a second sorting unit, and a third sorting unit. It corresponds to
第1の画像には、図8に表すような第1の領域が予め設定されているか、或いはユーザによって設定される。この第1の領域は、色見本の第2の領域に配置する第2の画素群を作成するうえで参照される領域である。 In the first image, a first area as shown in FIG. 8 is set in advance or set by the user. This first area is an area to be referred to when creating a second pixel group arranged in the second area of the color sample.
配置決定部212は、第1の領域を構成する画素群(第1の画素群)をRAM23にコピーする。 The arrangement determining unit 212 copies the pixel group (first pixel group) constituting the first area to the RAM 23.
図9は、RAM23にコピーされた第1の画素群を説明する図である。図9では、RAM23を「メモリ」と表記している。 FIG. 9 is a diagram for explaining the first pixel group copied to the RAM 23. In FIG. 9, the RAM 23 is described as "memory".
図9に表す矩形の枠は、それぞれ画素を表している。それにより、図9では、RAM23にコピーした第1の画素群を1列の画素の並びで表している。 The rectangular frames shown in FIG. 9 each represent a pixel. Thus, in FIG. 9, the first pixel group copied to the RAM 23 is represented by an array of pixels in one column.
第1の並べ替え部221は、コピーした第1の画素群を対象に、明度(上記の想定により、ここではL*値)を基に並び替える第1の並べ替えを行う。この並び替えにより、図9に表す第1の画素群は図10に表すように変更される。本実施の形態では、明度に基づく第1の並び替えは、明度が高い順に画素を並び替える形で行うようにしている。第1の並び替えは、その逆で行うようにしても良い。 The first reordering unit 221 performs a first reordering that rearranges the copied first pixel group based on the lightness (in this case, L * value here). By this rearrangement, the first pixel group shown in FIG. 9 is changed as shown in FIG. In the present embodiment, the first rearrangement based on the lightness is performed in such a manner that the pixels are rearranged in the descending order of the lightness. The first rearrangement may be performed in reverse.
図9では、明度を色の濃さで表現している。色が薄いほど明度が高いことを表している。 In FIG. 9, the lightness is expressed by the color depth. The lighter the color, the higher the lightness.
第1の領域内には、明度が同じ画素が複数、存在する場合がある。その場合、図10に表すように、第1の並び替えを行った後の第1の画素群には、明度が等しい画素が2つ以上、連続する箇所が1つ以上、存在することになる。本実施の形態では、その場合、第1の並び替え部221は、明度とは異なる人間の色覚に基づいた属性である彩度(=√(a*×a*+b*×b*))を基に並び替える第2の並び替え(特許請求の範囲に記載の「第4の並び替え」に相当)を行う。 There may be a plurality of pixels having the same lightness in the first region. In that case, as shown in FIG. 10, in the first pixel group after the first rearrangement, two or more pixels having the same lightness and one or more continuous portions exist. . In this embodiment, in this case, the first rearrangement unit 221 sets saturation (= √ (a * × a * + b * × b *)), which is an attribute based on human color perception different from lightness. A second rearrangement (corresponding to the “fourth rearrangement” described in the claims) is performed to rearrange the basis.
本実施の形態では、彩度に基づく第2の並び替えは、彩度が高い順に並び替える形で行っている。その第2の並び替えを行う対象は、明度が同じ画素が複数、連続している箇所のみである。そのような第2の並び替えを行うことにより、第1の画素群は、図10に表す状態から図11に表す状態に変更される。明度が同じ画素が複数、存在しない場合、第2の並び替えは行われない。 In the present embodiment, the second rearrangement based on saturation is performed in the form of rearrangement in descending order of saturation. The object to be subjected to the second rearrangement is only a portion where a plurality of pixels having the same lightness are continuous. By performing such second rearrangement, the first pixel group is changed from the state shown in FIG. 10 to the state shown in FIG. If a plurality of pixels having the same lightness do not exist, the second rearrangement is not performed.
第1の並び替え、更には第2の並び替えを行っても、第1の画素群の画素数は変化しない。第1の画素群の画素数が第2の画素群の画素数より少ない場合、足りない分の画素を第1の画素群に追加する必要がある。本実施の形態では、その画素の追加(生成)は線形補間を用いて行っている。この画素の追加も第1の並び替え部221によって行われる。この画素の追加により、第2の並び替えを行った後の第1の画素群は、例えば図11に示す状態から図12に示す状態に変更され、第2の画素群の画素数を有するようになる。 Even when the first rearrangement and the second rearrangement are performed, the number of pixels in the first pixel group does not change. If the number of pixels in the first pixel group is smaller than the number of pixels in the second pixel group, it is necessary to add the missing pixels to the first pixel group. In this embodiment, the addition (generation) of the pixels is performed using linear interpolation. This addition of pixels is also performed by the first rearrangement unit 221. By the addition of this pixel, the first pixel group after the second rearrangement is changed from the state shown in FIG. 11, for example, to the state shown in FIG. 12, and has the number of pixels of the second pixel group. become.
画素の追加は、第2の画素群の先頭からn番目の画素が、第1の並び替え、或いは第2の並び替えを行った後の第1の画素群の先頭からN番目の画素と同じ色彩値になるようにする線形補間により行う。第1の画素群の画素数をN1、第2の画素群の画素数をN2とする場合、nに対応するNは、例えば、N=N1×(n/N2)により求める。 The addition of the pixel is the same as the N-th pixel from the head of the first pixel group after the first rearrangement or the second rearrangement after the n-th pixel from the head of the second pixel group It is carried out by linear interpolation to achieve color values. When the number of pixels in the first pixel group is N1 and the number of pixels in the second pixel group is N2, N corresponding to n is obtained, for example, by N = N1 × (n / N2).
Nが整数であった場合、n番目の画素として追加する画素のデータである画素値Vは、並び替え後の第1の画素群NでN番目に位置する画素の画素値Vとなるように補間する。Nが整数でない場合、画素値Vは、Nを上回らない最大の整数であるa番目の画素の画素値Vaと、Nを下回らない最小の整数であるb番目の画素の画素値Vbとを用いて
V=Va+(Vb−Va)×(N−a) … (1)
により求める。
When N is an integer, the pixel value V, which is data of the pixel to be added as the n-th pixel, is the pixel value V of the N-th pixel in the first pixel group N after rearrangement Interpolate. When N is not an integer, the pixel value V uses the pixel value Va of the ath pixel which is the largest integer not exceeding N and the pixel value Vb of the bth pixel which is the smallest integer not less than N V = Va + (Vb-Va) x (N-a) (1)
It asks by.
上記のような線形補間が行われる各画素は、L*(エルスター),a*(エースター),b*(ビースター)の表色系の三要素のデータをもっている。そのため、画素値Vの算出は、明度であるL*値、クロマネティクス指数であるa*値およびb*値の全てを対象に行われる。 Each pixel on which the linear interpolation as described above is performed has data of three elements of color systems of L * (Elster), a * (Aester), and b * (Bearster). Therefore, the calculation of the pixel value V is performed for all of the lightness L * value, the chromaticness index a * value and the b * value.
このようにして、本実施の形態では、第1の画素群の画素数が第2の画素群の画素数より少ない場合、必要な数の画素を増加(追加)する。このため、第1の画素群の画素数に制限されることなく、第2の領域に全ての画素を配置した色見本を作成することができる。なお、画素の増加方法は、線形補間以外の方法を用いても良い。増加する画素数は、第1の画素群の画素数が第2の画素群の画素数以上となる数であれば良い。 Thus, in the present embodiment, when the number of pixels in the first pixel group is smaller than the number of pixels in the second pixel group, the necessary number of pixels is increased (added). For this reason, it is possible to create a color sample in which all the pixels are arranged in the second region without being limited to the number of pixels in the first pixel group. Note that the method of increasing the pixel may use a method other than linear interpolation. The number of pixels to be increased may be a number such that the number of pixels in the first pixel group is equal to or greater than the number of pixels in the second pixel group.
上記のような補間は、第1の画素群の画素数が第2の画素群の画素数より多い場合であっても適用することができる。この場合、第2の領域に配置できない画素が存在することから、補間を必ず行う必要はない。 The interpolation as described above can be applied even when the number of pixels in the first pixel group is larger than the number of pixels in the second pixel group. In this case, since there are pixels that can not be arranged in the second area, it is not necessary to perform interpolation.
上記のようにして、第1の並び替え部221は、第2の画素群の画素数と同数の画素を有する第1の画素群を生成する。この第1の画素群は、以降の操作を行うために第2の画素群として出力される。 As described above, the first rearrangement unit 221 generates a first pixel group having the same number of pixels as the number of pixels in the second pixel group. The first pixel group is output as a second pixel group to perform the subsequent operation.
第2の並び替え部222は、第1の並び替え部221が出力した第2の画素群に対し、色相角を基に画素を並び替える第3の並び替え(特許請求の範囲に記載の「第2の並び替え」に相当)を行う。 The second reordering unit 222 performs a third reordering process for reordering the pixels based on the hue angle with respect to the second pixel group output by the first reordering unit 221 (see the claims. Equivalent to the second sort).
この第3の並び替えは、第2の領域に実際に配置される画素の位置関係を考慮するために、その第2の領域に画素を配置する行を想定し、行単位で行われる。 The third rearrangement is performed row by row, assuming a row in which pixels are arranged in the second region, in order to consider the positional relationship of the pixels actually arranged in the second region.
図13は、第3の並び替えを行う直前の第2の画素群例を説明する図である。 FIG. 13 is a diagram for explaining an example of a second pixel group immediately before performing the third rearrangement.
図13に表記の「8」「14」「16」の各数値は、例えば第2の画素群を構成する各画素に割り当てられた画素番号を便宜的に表している。何れかの数値が近傍に表記された枠(画素)は、色が近似している、或いは明度、彩度、および色相角が全て近似している画素、つまり予め定めた許容範囲内で各画素値、或いは各画素値から算出される値が一致する画素である。ここでは、理解を容易とするために、何れかの数値が近傍に表記された枠(画素)の色は、他の枠(画素)の色と異ならせている。 The numerical values “8”, “14” and “16” shown in FIG. 13 represent, for example, the pixel numbers assigned to the respective pixels constituting the second pixel group. A frame (pixel) in which any numerical value is written in the vicinity is a pixel whose color is similar or whose lightness, saturation, and hue angle are all similar, that is, each pixel within a predetermined allowable range It is a pixel whose value or the value calculated from each pixel value matches. Here, in order to facilitate understanding, the color of the frame (pixel) in which any numerical value is described in the vicinity is made different from the color of the other frame (pixel).
第1の並び替え部221が生成した第2の画素群では、明度(場合によっては更に彩度)に従って画素が並び替えられている。しかし、その第2の画素群を単に第2の領域に配置した場合、図13に示すように、色相角が近似する画素が離れて配置される可能性がある。 In the second pixel group generated by the first rearrangement unit 221, the pixels are rearranged in accordance with the lightness (in some cases, saturation). However, when the second pixel group is simply disposed in the second region, as shown in FIG. 13, there is a possibility that pixels with similar hue angles are spaced apart.
そのように離れて配置された画素は、その周辺の画素とは大きく異なる色に見える可能性が比較的に高い。例えば離れて配置された画素の色が赤(或いは緑)でその周辺の画素の色が緑(或いは赤)であれば、色相角は180度、或いは180度に近い角度になる。このようなこともあり、色相角が近似する画素が離れて配置された場合、観察者に粒状感を与えやすい。そのため、本実施の形態では、色相角に基づく第3の並び替えを行い、粒状感を観察者に与えるのをより抑制するようにしている。 A pixel that is so spaced away is relatively likely to appear as a color that is significantly different than its surrounding pixels. For example, if the color of the pixel placed apart is red (or green) and the color of the surrounding pixels is green (or red), the hue angle will be 180 degrees or an angle close to 180 degrees. Because of this, when pixels with approximate hue angles are separated, it is easy to give the viewer a granular feeling. Therefore, in the present embodiment, the third rearrangement based on the hue angle is performed to further suppress giving the graininess to the observer.
図14は、第3の並び替えを行った後の第2の画素群例を説明する図である。 FIG. 14 is a diagram for explaining an example of a second pixel group after the third rearrangement.
図14に示すように、第3の並び替えを行うことによって、図13では画素番号が8となる位置に配置された画素は、画素番号が7となる位置に移動し、画素番号が7の画素となる。同様に、図13では画素番号が14、16となる位置に配置された各画素はそれぞれ、画素番号が16、17となる位置に移動し、画素番号が16、17の画素となる。そのようにして、色相角が近い画素が近傍に、言い換えれば狭い範囲内に集められることから、観察者に粒状感を与えないか、たとえ粒状感を与えるとしても、その程度はより抑えられるようになる。従って、作成される色見本も、ノイズが少なく、より自然と感じられるものとなる。 As shown in FIG. 14, by performing the third rearrangement, the pixels arranged at the position where the pixel number is 8 in FIG. 13 are moved to the positions where the pixel number is 7, and the pixel number is 7 It becomes a pixel. Similarly, in FIG. 13, the pixels arranged at positions where the pixel numbers are 14 and 16 move to positions where the pixel numbers are 16 and 17 and become pixel numbers 16 and 17 respectively. In this way, pixels close in hue angle are collected in the vicinity, that is, within a narrow range, so that the degree of graininess is not given to the observer, or even if graininess is given, the degree is further suppressed become. Therefore, the created color sample also has less noise and feels more natural.
第3の並び替えにより、隣接する複数の行では色相角が近い画素を集めることができる。しかし、色が近似している、或いは明度、彩度、および色相角が全て近似している画素(許容範囲内で各画素値、或いは各画素値から算出される値が一致する画素。以降「近似画素」と表記)は離れた行に存在する可能性がある。その可能性は、各行の画素群における色相角ごとの画素数の比率が狭い範囲内に収まっていない場合に特に高くなる。 By the third rearrangement, pixels adjacent in hue angle can be collected in adjacent rows. However, pixels whose colors are similar or whose lightness, saturation, and hue angle are all similar (each pixel value within the allowable range, or a pixel whose value calculated from each pixel value is the same. Note that “approximated pixels” may exist in distant rows. The possibility is particularly high when the ratio of the number of pixels for each hue angle in the pixel group of each row is not within a narrow range.
図15は、第3の並び替えを行った後の第2の画素群例をより広範囲に説明する図である。この図15でも、図13および図14と同様に、注目する近似画素は、他の画素と色を異ならせることで表現している。それにより、図15では、画素番号が43の近似画素が、画素番号が7、16、17の3つの近似画素を含む集団から離れた位置に配置されていることを表している。 FIG. 15 is a diagram for more extensively describing the second pixel group example after the third rearrangement. In FIG. 15 as well as in FIGS. 13 and 14, the approximate pixel of interest is expressed by making the color different from that of the other pixels. Thus, in FIG. 15, it is represented that the approximate pixel having the pixel number 43 is disposed at a position distant from the group including the three approximate pixels having the pixel numbers 7, 16, and 17.
近似画素が行の重なる方向上の離れた位置に配置されていても、上記と同じ理由により、観察者に粒状感を与えやすい。このことから、本実施の形態では、第3の並べ替えを行った後の第2の画素群に対し、色を基に画素を並び替える第4の並び替え(特許請求の範囲に記載の「第3の並び替え」に相当)を行い、粒状感を観察者に与えるのを更に抑制するようにしている。それにより、この第4の並べ替えを行うことによって、作成される色見本は更に自然と感じられるものとなる。 Even if the approximate pixels are arranged at distant positions in the overlapping direction of the rows, it is easy to give the observer a granular feeling for the same reason as described above. Because of this, in the present embodiment, a fourth rearrangement is performed in which the pixels are rearranged based on the color with respect to the second pixel group after the third rearrangement. (Corresponding to the third sort) to further suppress giving the sense of graininess to the observer. As a result, by performing the fourth rearrangement, the color sample created is more natural.
第3の並べ替え部223は、第3の並べ替えを行った後の第2の画素群に対し、第4の並び替えを行う。この並べ替えは、行が重なる方向上、離れた位置に配置される画素を密集させる形で行われる。 The third rearrangement unit 223 performs the fourth rearrangement on the second pixel group after the third rearrangement. This rearrangement is performed in such a manner as to concentrate pixels arranged at distant positions in the overlapping direction of the rows.
図16は、第4の並べ替えを行った後の第2の画素群例を説明する図である。 FIG. 16 is a diagram for explaining an example of a second pixel group after the fourth rearrangement.
図16に示すように、第4の並べ替えを行うことにより、図15では画素番号が43となる位置に配置された近似画素は、画素番号が29となる位置に移動し、画素番号が29の画素となる。図15では画素番号が29となる位置に配置された画素は、画素番号が43となる位置に移動し、画素番号が43の画素となる。そのような入れ替えにより、色が近似する画素をより多く、狭い範囲内に配置させることから、より粒状感(ノイズ)を与えない色見本を作成することができる。 As shown in FIG. 16, by performing the fourth rearrangement, the approximate pixels arranged at the position where the pixel number is 43 in FIG. 15 are moved to the positions where the pixel number is 29 and the pixel number is 29 The pixel of In FIG. 15, the pixel arranged at the position where the pixel number is 29 moves to the position where the pixel number is 43 and becomes a pixel whose pixel number is 43. With such replacement, more color-approximating pixels are arranged within a narrow range, so it is possible to create a color sample that does not give a more granular feeling (noise).
第4の並べ替えを行うことにより、第2の領域における全ての画素の配置が確定する。作成部213は、第2の領域以外の領域に対して画素を配置して、色見本を作成する。このことから、作成部213は画像作成手段に相当する。この作成部213は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28によって実現される。 By performing the fourth rearrangement, the arrangement of all the pixels in the second region is determined. The creation unit 213 arranges pixels in an area other than the second area to create a color sample. From this, the creation unit 213 corresponds to an image creation unit. The creation unit 213 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, and the bus 28.
図17は、作成された色見本例を示す図である。 FIG. 17 is a diagram showing an example of a created color sample.
上記のように、明度に基づく第1の並び替えは、明度が高い順に画素を並び替える形で行うようにしている。それにより、図17に示すように、明度が高い画素は、第2の領域の上部に配置するようにしている。これは、一般的な空間では、太陽、或いは電灯などの光源となるオブジェクトは、光源ではないオブジェクトよりも上部に存在することが多くことにより、多くの画像では上部が明るくなっているためである。言い換えれば、多くの画像に共通する特徴に合わせて第2の領域に画素を配置することにより、より自然な印象を与える色見本を作成するためである。 As described above, the first rearrangement based on the lightness is performed in such a manner that the pixels are rearranged in the descending order of the lightness. Thereby, as shown in FIG. 17, the pixels with high lightness are arranged in the upper part of the second region. This is because in general space, objects that become light sources such as the sun or a light are often present at the top of objects that are not light sources, and thus the upper part is brighter in many images. . In other words, by arranging the pixels in the second region in accordance with the features common to many images, it is to create a color sample that gives a more natural impression.
明度(および彩度)に基づく並び替えによって組織化された第1の画素群は、色相角、および色に着目し、第1の画素群のなかで人間の視覚特性上、望ましくない位置に配置の画素の再配置が行われる。その再配置は、配置位置が望ましくない画素を移動させると共に、その移動に合わせて、1つ以上の画素も移動させるか(図14)、或いは画素の移動先の画素と入れ替える(図16)。そのような再配置を行うことにより、作成される色見本の第2の領域には、組織化され、且つ人間の視覚特性上、極めて自然と感じさせるように画素が並ぶ第2の画素群がより確実に配置されることとなる。 The first pixel group organized by rearrangement based on lightness (and saturation) is placed at an undesirable position in the first pixel group due to human visual characteristics, paying attention to the hue angle and color. Rearrangement of pixels is performed. The relocation moves the pixel whose position is not desirable and moves one or more pixels according to the movement (FIG. 14) or replaces it with the pixel to which the pixel is moved (FIG. 16). By performing such rearrangement, in the second area of the color sample created, the second pixel group is organized so that the pixels are aligned so as to make the human visual characteristics feel extremely natural. It will be arranged more reliably.
なお、第2の領域以外の領域に配置する画素が予め決定されているような場合、作成部213は不要とすることができる。その場合、第3の並べ替え部223、或いはその第3の並べ替え部223を備えた配置決定部212が色見本を作成することとなる。 In addition, when the pixel arrange | positioned to area | regions other than a 2nd area | region is determined beforehand, preparation part 213 can be made unnecessary. In this case, the third rearrangement unit 223 or the arrangement determination unit 212 including the third rearrangement unit 223 creates a color sample.
登録部214は、作成部213が作成した色見本を送信して、サーバ装置3に登録(保存)させる機能である。色見本の登録をユーザの指示に従って行う場合、登録部214は、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24、入力装置25、I/F26およびバス28によって実現される。 The registration unit 214 is a function that transmits the color sample created by the creation unit 213 and causes the server device 3 to register (store) the color sample. When registration of a color sample is performed according to a user's instruction, the registration unit 214 is realized by, for example, the CPU 21, the flash memory 22, the RAM 23, the display device 24, the input device 25, the I / F 26, and the bus 28.
画像処理装置2に搭載された画像修整装置230は、上記のようにして作成された色見本を画像AおよびBとして、或いは参照画像(画像B)として、修整前画像の修整を行う。作成される色見本は、実際の環境下で視認した場合の被写体の色に対する印象をより近似的に再現している。そのため、画像修整装置230は、修整前画像上のオブジェクトの色を、そのオブジェクトを直接、見る観察者が受ける印象の実際の色、或いはその実際の色に近い色に修整した修整画像を作成することができる。 The image modifying device 230 mounted on the image processing device 2 modifies the uncorrected image as the color sample created as described above as the images A and B or as a reference image (image B). The created color sample more closely reproduces the impression on the color of the subject when viewed under the actual environment. Therefore, the image modifying device 230 creates a modified image in which the color of the object on the uncorrected image is modified to the actual color of the impression received by the observer who directly sees the object or a color close to the actual color. be able to.
以下に、第1の画像を用いて色見本を作成する実施例について具体的に説明する。 Below, the Example which produces a color sample using a 1st image is described concretely.
(第1の実施例)
図18は、第1の実施例に係る色見本画像の作成手順を示すフローチャートである。図18にフローチャートを示す作成手順は、色見本作成プログラム22aをCPU21が実行することで実現される。図18では、便宜的に、ユーザが第1の画像を指定して色見本の作成を指示した後にCPU21が作成対象とする色見本に含まれる第2の領域内の画素の配置を決定するために実行する制御手順のみを示している。それにより、配置決定部212は、CPU21が図18に示す制御手順を実行することで実現される。その図18では、RAM23を「メモリ」と表記している。
(First embodiment)
FIG. 18 is a flowchart showing the procedure of creating a color sample image according to the first embodiment. The creation procedure whose flowchart is shown in FIG. 18 is realized by the CPU 21 executing the color sample creation program 22a. In FIG. 18, for convenience, after the user designates a first image and instructs creation of a color sample, the CPU 21 determines the arrangement of pixels in a second region included in the color sample to be created. Only the control procedure to be executed is shown. Thus, the arrangement determining unit 212 is realized by the CPU 21 executing the control procedure shown in FIG. In FIG. 18, the RAM 23 is described as "memory".
先ず、CPU21は、サーバ装置3から受信した第1の画像中の第1の領域内に存在する画素を、RAM23内に確保したエリア(以降「第1エリア」と表記)にコピーする(ステップS1)。 First, the CPU 21 copies the pixels present in the first area in the first image received from the server device 3 to the area secured in the RAM 23 (hereinafter referred to as “first area”) (step S1). ).
次に、CPU21は、コピーした画素、つまり第1の画素群を対象に、第1の並べ替えを行う(ステップS2)。この第1の並べ替えにより、図9に示すようにコピーされた第1の画素群は、図10に示すように変更される。 Next, the CPU 21 performs first rearrangement on the copied pixels, that is, the first pixel group (step S2). By this first rearrangement, the first pixel group copied as shown in FIG. 9 is changed as shown in FIG.
次に、CPU21は、第1の並べ替えを行った後の第1の画素群のなかで等しい明度の画素が連続する箇所の確認を行い、その箇所が確認された場合に、その箇所の画素を彩度順に並べ替えする第2の並べ替えを行う(ステップS3)。この第2の並べ替えにより、図10に示すような第1の画素群は、図11に示すように変更される。 Next, the CPU 21 confirms a location where pixels of equal brightness continue in the first pixel group after the first rearrangement, and if the location is confirmed, the pixel at the location Are rearranged in the order of saturation (step S3). By this second rearrangement, the first pixel group as shown in FIG. 10 is changed as shown in FIG.
その後、CPU21は、第2の領域に配置する第2の画素群を格納するためのエリア(以降「第2エリア」と表記する)をRAM23に確保する(ステップS4)。 Thereafter, the CPU 21 secures in the RAM 23 an area (hereinafter referred to as a “second area”) for storing the second pixel group arranged in the second area (step S4).
次に、CPU21は、第1の画素群の画素数が第2の画素群の画素数よりも少ない場合に、線形補間を用いて、図12に表すように足りない分の画素を追加し、追加した画素の画素値を決定する(ステップS5)。これにより、図13に表すような第2の画素群が第2エリアに格納される。 Next, when the number of pixels in the first pixel group is smaller than the number of pixels in the second pixel group, the CPU 21 adds a missing pixel as shown in FIG. 12 using linear interpolation. The pixel value of the added pixel is determined (step S5). Thereby, the second pixel group as shown in FIG. 13 is stored in the second area.
上記ステップS2〜S5は、第1の並べ替え部221に係わる手順である。CPU21は、第1の並べ替え部221の機能を実現させる場合、ステップS2〜S5の手順を実行する。 The above steps S2 to S5 are procedures relating to the first rearrangement unit 221. When realizing the function of the first rearrangement unit 221, the CPU 21 executes the procedures of steps S2 to S5.
次に、CPU21は、第2の領域に存在する行単位で、色相角順に画素を並び替える第3の並び替えを行う(ステップS6)。これにより、図13に表すような第2の画素群は、図14、或いは図15に表すように変更される。このステップS6は、第2の並べ替え部222に係わる手順である。 Next, the CPU 21 performs a third rearrangement in which the pixels are rearranged in the hue angle order in row units existing in the second area (step S6). Thus, the second pixel group as shown in FIG. 13 is changed as shown in FIG. 14 or FIG. This step S6 is a procedure related to the second rearrangement unit 222.
次に、CPU21は、第2の画素群に対し、行が重なる方向に分散している近似色の画素をより密集するように近接配置するための第4の並び替えを行う(ステップS7)。これにより、図15に表すような第2の画素群は、図16に表すように変更される。その後、図18に示す制御手順が終了する。このステップS7は、第3の並べ替え部223に係わる手順である。 Next, the CPU 21 performs fourth rearrangement on the second pixel group so as to closely arrange pixels of approximate colors dispersed in the overlapping direction of the rows (step S7). Thereby, the second pixel group as shown in FIG. 15 is changed as shown in FIG. Thereafter, the control procedure shown in FIG. 18 ends. This step S7 is a procedure relating to the third sorting unit 223.
ステップS7での第4の並び替えは、上記のように、必要に応じて行えば良い。第4の並び替えを行う必要性を自動的に判断するのに用いる指標としては、例えば粒状度を挙げることができる。 The fourth rearrangement in step S7 may be performed as necessary as described above. As an index used to automatically determine the necessity of performing the fourth rearrangement, for example, granularity can be mentioned.
粒状度の算出には、第2の領域を画素のL*、a*、b*の値毎にFFT(高速フーリエ変換)して得られるL*、a*、b*の各パワースペクトルに人間の色覚の空間周波数特性(コントラスト感度特性(CSF))に従って重み付けし、線形和をとるなどの手法を用いることができる(例えばK. Kagitani, H. Makoto, AND S. Imakawa, "Image noise evaluation method for color hardcopy", in Proc. IS&T NIP12, 1996, pp. 173−76.)。第4の並べ替えを行うか否かの判断は、算出した粒状度の値が所定値以上か否かにより行えば良い。その所定値としては、例えば例に挙げた手法により算出した粒状度であれば、0.1とすることが考えられる。 For calculation of the granularity, the power spectrum of L *, a *, b * obtained by FFT (fast Fourier transform) of the second region for each value of L *, a *, b * of the pixel is According to the spatial frequency characteristics (contrast sensitivity characteristics (CSF)) of color vision of the eye, methods such as taking linear sums can be used (for example, K. Kagitani, H. Makoto, AND S. Imakawa, "Image noise evaluation method for color hardcopy ", in Proc. IS & T NIP12, 1996, pp. 173-76.). The determination as to whether or not to perform the fourth rearrangement may be made based on whether the calculated granularity value is equal to or more than a predetermined value. The predetermined value may be, for example, 0.1 if the granularity is calculated by the method described in the example.
第4の並べ替えを行うか否かは、ユーザに選択させるようにしても良い。ユーザによる選択は、第3の並べ替えを行った後の第2の画素群を第2の領域に配置した色見本を表示装置24に表示させて、目視により行わせても良い。 The user may select whether or not to perform the fourth rearrangement. The selection by the user may be performed visually by causing the display device 24 to display a color sample in which the second pixel group after the third rearrangement is arranged in the second region.
第4の並べ替え自体は、自己組織化写像(SOM:Self−Organizing Maps)によって行っても良い。自己組織化の手法としては、T. Kohonenが提唱したアルゴリズムが知られている(例えば、T. Kohonen, "Self−Organizing Maps", Springer, 2000など)。 The fourth permutation itself may be performed by self-organizing maps (SOM). As a method of self-organization, an algorithm proposed by T. Kohonen is known (for example, T. Kohonen, "Self-Organizing Maps", Springer, 2000, etc.).
第4の並べ替えのための自己組織化写像は、例えば以下の手順で行えば良い。 The self-organizing mapping for the fourth rearrangement may be performed, for example, by the following procedure.
まず、手順1として第3の並べ替え後の第2の画素群を第2の領域に配置した色見本をRAM23に確保したエリア(以降「第3エリア」)に作成する。以降、作成した色見本は「第3の画像」と表記し、第3の画像内の第2の領域、その第2の領域に配置される第2の画素群は、それぞれ「第3の領域」「第3の画素群」と表記する。 First, as procedure 1, a color sample in which the second rearranged second pixel group after the third rearrangement is arranged in the second area is created in an area secured in the RAM 23 (hereinafter referred to as “third area”). Hereinafter, the created color sample is referred to as “third image”, and the second region in the third image and the second pixel group arranged in the second region It is written as “third pixel group”.
次に手順2として、第2の領域(第2の画素群)の画素番号がiの画素(以降「画素i」と表記)との色差が最小であり、且つ第3の領域内で画素iとの位置関係が最も近い画素Iを探索する。ここでの位置関係とは、第2の領域と第3の領域を同一の空間と想定して評価した場合のものである。 Next, as procedure 2, the color difference between the pixel number of the second region (second pixel group) and the pixel with the pixel number i (hereinafter referred to as “pixel i”) is minimum, and the pixel i in the third region is The pixel I closest in positional relationship with the pixel I is searched. The positional relationship here is one in the case where the second area and the third area are evaluated assuming the same space.
次に手順3として、第3の領域内で画素Iを中心とした、画素Iとその近傍の各画素JのL*、a*、b*の各値をそれぞれ変更する。 Next, as procedure 3, each value of L *, a *, b * of the pixel I and each pixel J in the vicinity of the pixel I in the third region is changed.
上記手順2、および手順3は、第2の領域内の全ての画素iに対して実施し、これを予め定めた最大繰り返し回数tだけ繰り返し行う。 The above procedures 2 and 3 are performed on all the pixels i in the second area, and this is repeated for a predetermined maximum number of repetitions t.
t回、変更した後のL*、a*、b*の各値L(t)、a(t)、およびb(t)の次に設定する値L(t+1)、a(t+1)、およびb(t+1)は、例えば以下のように算出すれば良い。
L(t+1)=L(t)+h(t)・dL(J,i) … (2)
a(t+1)=a(t)+h(t)・da(J,i) … (3)
b(t+1)=b(t)+h(t)・db(J,i) … (4)
ただし、dL(J,i)、da(J,i)、db(J,i)は、それぞれ、第2の領域の画素iと第3の領域の画素J間のL*値、a*値、b*値の差、h(t)は画素Iと画素Jの距離の関数である。
The values L (t + 1), a (t + 1), and L (t) to be set next to L *, a *, b * after changing t times L (t), a (t), and b (t) b (t + 1) may be calculated, for example, as follows.
L (t + 1) = L (t) + h (t) · dL (J, i) (2)
a (t + 1) = a (t) + h (t) · da (J, i) (3)
b (t + 1) = b (t) + h (t) · db (J, i) (4)
However, dL (J, i), da (J, i), and db (J, i) are the L * value and the a * value between the pixel i in the second area and the pixel J in the third area, respectively. , B * value difference, h (t) is a function of the distance between the pixel I and the pixel J.
h(t)は、例えば以下のような関数である。
h(t)=α(t)・exp(d2/(2・(σ(t)2)) … (5)
ここで、α(t)は繰り返し回数tに対する単調減少関数、dは画素Iと画素Jの距離、σ(t)は各繰り返し回数における定数である。α(t)は、例えばα(t)=1−t/(T+1)のような関数である。
h (t) is, for example, the following function.
h (t) = α (t) · exp (d 2 / (2 · (σ (t) 2 )) (5)
Here, α (t) is a monotonically decreasing function with respect to the number of repetitions t, d is the distance between the pixel I and the pixel J, and σ (t) is a constant at each number of repetitions. α (t) is a function such as α (t) = 1−t / (T + 1), for example.
差dL(J,i)、da(J,i)、db(J,i)としては、例えばCIE(1976)L*a*b*空間における2点間のユークリッド距離で表されるCIE1976色差式により算出される値を用いることができる。他の色差式(CIE1994色差式など)により算出される値を用いても良い。 As the differences dL (J, i), da (J, i), and db (J, i), for example, a CIE 1976 color difference expression represented by Euclidean distance between two points in CIE (1976) L * a * b * space The value calculated by can be used. A value calculated by another color difference formula (such as CIE 1994 color difference formula) may be used.
Kohonenの自己組織化写像では、最初に第2の画素群と同じ画素数の画素群を別に確保し、確保した各画素の初期値を乱数によって割り当てるのが普通である。しかし、第1〜第3の並べ替えは何れも画素群の組織化のための手段である。このことから、自己組織化写像による第4の並べ替えでは、上記のような手順を採用し、第2の画素群の組織化された状態をより維持できるようにしている。 In Kohonen's self-organizing mapping, it is common to first secure another pixel group having the same number of pixels as the second pixel group, and assign the initial value of each secured pixel by random numbers. However, the first to third permutations are all means for organizing the pixel group. From this, in the fourth rearrangement by the self-organizing mapping, the procedure as described above is adopted so that the organized state of the second pixel group can be more maintained.
(第2の実施例)
上記第1の実施例では、第4の並べ替えは第2の領域全体を画素の移動可能範囲として行っている。第2の実施例では、画素の移動可能範囲を制限するようにしたものである。
Second Embodiment
In the first embodiment, the fourth rearrangement is performed with the entire second region as the movable range of the pixels. In the second embodiment, the movable range of the pixel is limited.
図19は、画素の移動可能範囲の制限方法を説明する図である。 FIG. 19 is a diagram for explaining a method of limiting the movable range of the pixel.
第2の実施例では、図19に示すように、第2の領域を複数の部分領域に仮想的に分割し、画素の移動は、その画素が存在する部分領域内に制限している。それにより、第4の並べ替えは、部分領域毎に行うようにしている。 In the second embodiment, as shown in FIG. 19, the second area is virtually divided into a plurality of partial areas, and the movement of the pixel is limited to the partial area in which the pixel exists. Thus, the fourth rearrangement is performed for each partial area.
第2の領域を複数の部分領域に分割した場合、各部分領域の画素数は少なくなることから、移動すべき画素の移動先の探索は高速に行えるようになる。全ての部分領域で第4の並べ替えを行うとしても、第2の領域全体を対象にして第4の並べ替えを行う場合と比較して、処理は高速に行えるようになる。 When the second area is divided into a plurality of partial areas, the number of pixels in each partial area is reduced, so that the search for the movement destination of the pixel to be moved can be performed at high speed. Even if the fourth rearrangement is performed on all the partial areas, the processing can be performed at high speed as compared to the case where the fourth rearrangement is performed on the entire second area.
第2の領域を複数の部分領域に分割するのは、第3の並べ替えを行った場合、近似した色の画素が分散していたとしても、それらの画素は比較的に狭い領域内に存在することが多いためである。このことから、部分領域毎に第4の並べ替えを行っても、移動すべき画素を適切に移動させることができる。 The second area is divided into a plurality of partial areas because, when the third rearrangement is performed, even if the pixels of the similar color are dispersed, those pixels exist within a relatively narrow area. It is because it is often done. From this, even if the fourth rearrangement is performed for each partial area, the pixel to be moved can be appropriately moved.
第2の領域を複数の部分領域に分割する場合、処理の更なる高速化の観点から、第4の並べ替えは、部分領域毎に必要性を判断し、その判断結果に応じて、個別に行うのが望ましい。第2の領域に対して第4の並べ替えを行うか否かの自動的な判断は、例えば部分領域毎に粒状度を算出し、算出した粒状度の平均値、或いは最大値などの統計量を更に算出し、算出した統計量により行うようにすれば良い。その判断は、ユーザに行わせても良い。 When the second area is divided into a plurality of partial areas, the fourth rearrangement determines the necessity for each partial area from the viewpoint of further speeding up of the process, and the judgment is made individually according to the judgment result. It is desirable to do. The automatic determination as to whether or not to perform the fourth rearrangement on the second region is, for example, calculating the granularity for each partial region, and calculating the average value of the calculated granularity or a statistical value such as the maximum value Is further calculated, and may be performed using the calculated statistic. The determination may be made by the user.
なお、第2の領域の分割は、ユーザによる設定に従って行わせることが考えられる。また、第2の領域全体の色の変化程度を確認し、その確認結果に応じて部分領域の大きさ、或いは形状などを自動的に設定して、第2の領域を分割するようにしても良い。 The division of the second area may be performed according to the setting by the user. Also, the degree of change in color of the entire second area is checked, and the size or shape of the partial area is automatically set according to the check result to divide the second area. good.
図20は、第2の実施例に係る色見本画像の作成手順を示すフローチャートである。図20にフローチャートを示す作成手順も、色見本作成プログラム22aをCPU21が実行することで実現される。ここでも、図20には、ユーザが第1の画像を指定して色見本の作成を指示した後にCPU21が第2の領域内の画素の配置を決定するために実行する制御手順のみを示している。その図20では、RAM23を「メモリ」と表記している。 FIG. 20 is a flowchart showing the procedure of creating a color sample image according to the second embodiment. The creation procedure whose flowchart is shown in FIG. 20 is also realized by the CPU 21 executing the color sample creation program 22a. Again, FIG. 20 shows only the control procedure executed by the CPU 21 to determine the arrangement of pixels in the second region after the user designates the first image and instructs creation of a color sample. There is. In FIG. 20, the RAM 23 is described as "memory".
図20では、第1の実施例と同じ、或いはほぼ同じ内容の手順には、図18と同じ符号を付している。それにより、図20の説明では、図18には存在しない符号を付した手順に着目して行う。 In FIG. 20, procedures the same as or substantially the same as in the first embodiment are assigned the same reference numerals as in FIG. Thus, in the description of FIG. 20, attention is paid to the procedures given with reference numerals that are not present in FIG.
第2の実施例では、ステップS6の手順を実行した後、ステップS11に移行する。そのステップS11では、CPU21は、例えば図19に示すように、第2の領域を複数の部分領域に仮想的に分割する。 In the second embodiment, after the procedure of step S6 is performed, the process proceeds to step S11. In the step S11, the CPU 21 virtually divides the second area into a plurality of partial areas as shown in FIG. 19, for example.
次に、CPU21は、部分領域毎に、粒状度を算出し、算出した粒状度のなかで最大となっている粒状度(最大粒状度)を抽出する(ステップS12)。 Next, the CPU 21 calculates granularity for each partial region, and extracts the maximum granularity (maximum granularity) among the calculated granularity (step S12).
次に、CPU21は、最大粒状度が所定値以下か否か判断する(ステップS13)。最大粒状度が所定値以下であった場合、ステップS13の判断はyesとなり、ここで図20に示す制御手順が終了する。 Next, the CPU 21 determines whether the maximum granularity is equal to or less than a predetermined value (step S13). If the maximum granularity is equal to or less than the predetermined value, the determination in step S13 is yes, and the control procedure illustrated in FIG. 20 ends here.
一方、最大粒状度が所定値を越えていた場合、ステップS13の判定はnoとなり、ステップS14に移行する。 On the other hand, when the maximum granularity exceeds the predetermined value, the determination in step S13 is no, and the process proceeds to step S14.
そのステップS14では、CPU21は、上記自己組織化写像を用いて、部分領域単位で第4の並び替えを行う。その第4の並び替えは、例えばステップS13で参照する所定値とは別の所定値を各部分領域の粒状度と比較することにより、部分領域単位で行っても良い。第4の並び替えを行った後、図20に示す制御手順が終了する。 In step S14, the CPU 21 performs the fourth rearrangement in units of partial areas using the self-organizing map. The fourth rearrangement may be performed in units of partial areas, for example, by comparing the granularity of each partial area with a predetermined value different from the predetermined value referred to in step S13. After the fourth rearrangement, the control procedure shown in FIG. 20 ends.
上記したように、本実施の形態によれば、色見本は、元図(第1の画像)の所定領域に含まれる全画素が抽象的に組織化されて第2の領域に再配置されることによって、実際の環境下における色の見えから受ける印象をより近似的に再現できる。 As described above, according to the present embodiment, in the color sample, all the pixels included in the predetermined area of the original image (first image) are abstractly organized and rearranged in the second area. By this, it is possible to more closely reproduce the impression received from the appearance of color under the actual environment.
すなわち、画像処理装置2に搭載された色見本作成装置210は、元図となる第1の画像内の第1の領域に配置されている画素群を対象にして、明度を基に並べ替える第1の並べ替え、第2の領域内の行を想定して、行毎に、色相角を基に並べ替える第2の並べ替え、色を基に並べ替える第3の並べ替えを少なくとも行い、その結果、得られる画素群を第2の領域内に配置している。 That is, the color sample creation device 210 mounted on the image processing device 2 rearranges the pixel group arranged in the first area in the first image as the original drawing based on the lightness. Perform at least a second reordering, reordering based on hue angle, and a third reordering, reordering based on color, on a row-by-row basis, assuming a line in reordering 1 and a second area As a result, the pixel group obtained is arranged in the second region.
これにより、色見本作成装置210は、修整前画像が写真であっても、実際の写真を想定し、画素を抽象的に組織化するとともに、人間の視覚特性上、その組織化では望ましくない位置に配置される画素を最適な位置に配置した画素群を第2の領域(選択領域)に有する作成対象の色見本を作成することができる。そのため、色見本の印象は、修整前画像上に存在するオブジェクトを実際の環境下で見た場合のものに非常に近づけることができる。 Thereby, even if the uncorrected image is a picture, the color sample creation device 210 assumes an actual picture and organizes the pixels in an abstract manner, and in the visual characteristics of the human being, the position which is not desirable in that organization. It is possible to create a color sample to be created that has in the second area (selected area) a group of pixels in which the pixels arranged in are arranged at optimal positions. Therefore, the impression of the color sample can be made very close to that of the object existing on the uncorrected image as seen in the actual environment.
したがって、そのような色見本を用いて写真などの修整前画像(入力画像)の修整処理を行う場合には、人の視覚特性により沿った形の比較ができるようになる。この結果、修整前画像への修整は、実際の環境下における色の見えから受ける印象を、より近似的に再現するように行うことができる。 Therefore, when such a color sample is used to perform a pre-modification image (input image) modification process, such as a photograph, it is possible to compare the shapes according to the human visual characteristics. As a result, the retouching to the uncorrected image can be performed so as to more closely reproduce the impression received from the appearance of colors under the actual environment.
また、このような色見本を用いることによって、画像処理システム100としては、ユーザは事例選択をより直観的に行えるようになる。それにより、操作上の利便性が向上し、ユーザは所望の修整画像をより容易、且つ迅速に得ることができるようになる。 Also, by using such a color sample, the image processing system 100 enables the user to make case selection more intuitively. As a result, the operational convenience is improved, and the user can obtain a desired retouched image more easily and quickly.
なお、修整前画像として写真を例にとっているが、修整前画像は写真に限定されない。修整前画像上のオブジェクトの種類も特に限定されない。 Although a photo is taken as an example of the pre-modification image, the pre-modification image is not limited to the photo. The type of object on the pre-modification image is also not particularly limited.
また、色見本は、矩形状でなくとも良い。第2の領域の形状も円に限定されない。 The color sample may not be rectangular. The shape of the second region is also not limited to a circle.
以上説明したように、本発明は、実際の環境下における色の見えから受ける印象をより近似的に再現できるという効果を有し、色見本作成装置、色見本作成方法、色見本を用いる画像処理システムの全般に有用である。 As described above, the present invention has the effect of being able to more closely reproduce the impression received from the appearance of colors in an actual environment, and a color sample creation device, a color sample creation method, and image processing using a color sample Useful for the whole system.
2 画像処理装置
3 サーバ装置
21 CPU
22 フラッシュメモリ
22a 色見本作成プログラム
22b 画像修整プログラム
24 表示装置
25 入力装置
26,27 I/F
31 制御部
32 通信部
33 第1の記憶部
34 第2の記憶部
100 画像処理システム
210 色見本作成装置
211 データ取得部
212 配置決定部
213 作成部
214 登録部
221 第1の並べ替え部
222 第2の並べ替え部
223 第3の並べ替え部
230 画像修整装置
231 データ取得部
232 画像入力部
233 事例選択部
234 修整部
235 データ出力部
2 Image Processing Device 3 Server Device 21 CPU
22 flash memory 22a color sample creation program 22b image modification program 24 display device 25 input device 26, 27 I / F
31 control unit 32 communication unit 33 first storage unit 34 second storage unit 100 image processing system 210 color sample creation device 211 data acquisition unit 212 arrangement determination unit 213 creation unit 214 registration unit 221 first rearrangement unit 222 first Second sorting unit 223 third sorting unit 230 image modification device 231 data acquisition unit 232 image input unit 233 case selection unit 234 modification unit 235 data output unit
Claims (9)
前記画像取得手段が取得した前記第1の画素群を構成する各画素に対し、明度を基に並べ替える第1の並べ替えを行う第1の並べ替え手段と、
前記第1の並べ替え手段が前記第1の並べ替えを行った後の各画素に対し、作成対象とする色見本に含まれる第2の領域内の行を想定して、前記行毎に、色相角を基に並べ替える第2の並べ替えを行う第2の並べ替え手段と、
前記第2の並べ替え手段が前記第2の並べ替えを行った後の各画素に対し、色を基に並べ替える第3の並べ替えを行う第3の並べ替え手段と、
前記第3の並べ替え手段が前記第3の並べ替えを行った後の各画素を前記第2の領域に配置した色見本を作成する画像作成手段と、を具備したことを特徴とする色見本作成装置。 An image acquisition unit that acquires at least a first pixel group disposed in a first region of a first image;
A first reordering means for performing a first reordering for reordering based on lightness for each pixel constituting the first pixel group acquired by the image acquisition means;
For each pixel after the first sorting means has performed the first sorting, assuming a row in a second area included in a color sample to be created, for each row, Second reordering means for performing second reordering according to hue angles;
A third reordering means for performing a third reordering for reordering based on color for each pixel after the second reordering means has performed the second reordering;
A color sample including: an image creating unit that creates a color sample in which each pixel after the third sorting unit performs the third sorting is disposed in the second area; Creation device.
取得した前記第1の画素群を構成する各画素に対し、明度を基に並べ替える第1の並べ替えを行うステップと、前記第1の並べ替えを行った後の各画素に対し、作成対象の色見本に含まれる第2の領域内の行を想定して、前記行毎に、色相角を基に並べ替える第2の並べ替えを行うステップと、
前記第2の並べ替えを行った後の各画素に対し、色を基に並べ替える第3の並べ替えを行うステップと、
前記第3の並べ替えを行った後の各画素を前記第2の領域に配置した色見本を作成するステップと、を有することを特徴とする色見本の色見本作成方法。 Obtaining at least a first group of pixels arranged in a first region of a first image;
A step of performing a first rearrangement on the basis of lightness for each of the pixels forming the first pixel group acquired, and a creation target for each pixel after the first rearrangement Performing a second reordering step of reordering on the basis of hue angles for each row assuming a row in a second area included in the color sample;
Performing a third rearrangement on the basis of color for each pixel after the second rearrangement;
Creating a color sample in which the pixels after the third rearrangement are arranged in the second area.
前記修整前画像に対する修整を行ううえで参照される事例画像として、第1の画像の第1の領域に配置されている第1の画素群に対し、明度、色相角、および色に基づく並び替えを少なくとも行って生成された画素群が選択領域に配置されている色見本を記憶した画像記憶手段と、
前記画像記憶手段に記憶された色見本を参照して、前記修整前画像に対する修整を行う修整手段と、を具備したことを特徴とする画像処理システム。 An image acquisition unit that acquires an uncorrected image that is an image to be corrected;
Reordering based on lightness, hue angle, and color with respect to the first pixel group disposed in the first region of the first image as a case image to be referred to in performing the retouching on the uncorrected image An image storage unit storing a color sample in which a pixel group generated by at least
An image processing system comprising: modifying means for modifying the uncorrected image with reference to a color sample stored in the image storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015075319A JP6544004B2 (en) | 2015-04-01 | 2015-04-01 | Color sample creating apparatus and color sample creating method, and image processing system using color sample |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015075319A JP6544004B2 (en) | 2015-04-01 | 2015-04-01 | Color sample creating apparatus and color sample creating method, and image processing system using color sample |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019087513A Division JP6791299B2 (en) | 2019-05-07 | 2019-05-07 | Color swatches, color swatch creation device and color swatch creation method, and image processing system using color swatches |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016194484A JP2016194484A (en) | 2016-11-17 |
| JP6544004B2 true JP6544004B2 (en) | 2019-07-17 |
Family
ID=57322939
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015075319A Expired - Fee Related JP6544004B2 (en) | 2015-04-01 | 2015-04-01 | Color sample creating apparatus and color sample creating method, and image processing system using color sample |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6544004B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111324986A (en) * | 2020-02-17 | 2020-06-23 | 北京印刷学院 | Optimized color sample set obtaining method and device and color gamut index obtaining method and device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1169190A (en) * | 1997-08-25 | 1999-03-09 | Oki Data:Kk | Threshold processing unit for color image |
| JP2007170883A (en) * | 2005-12-20 | 2007-07-05 | Fuji Xerox Co Ltd | Test chart, image data, and image forming device and method |
| JP5753055B2 (en) * | 2011-10-05 | 2015-07-22 | 花王株式会社 | Skin image analysis apparatus and skin image analysis method |
| JP5319003B1 (en) * | 2012-09-17 | 2013-10-16 | 保子 中川 | Personal color diagnostic drape and personal color diagnostic method using the personal color diagnostic drape |
| US8915435B2 (en) * | 2013-01-25 | 2014-12-23 | Hewlett-Packard Development Company, L.P. | Characterization of color charts |
-
2015
- 2015-04-01 JP JP2015075319A patent/JP6544004B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016194484A (en) | 2016-11-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20170206678A1 (en) | Method and data processing device for computer-assisted hair coloring guidance | |
| US5495539A (en) | Image production using multidimensional selection of image transformations | |
| US10453423B2 (en) | Perceptually optimised color calibration method and system | |
| CN108476292A (en) | Unified multi-image fusion method | |
| US20130207995A1 (en) | Image modulation apparatus, method, and program | |
| US20210150295A1 (en) | Colored visual markers for variable use | |
| US6456293B1 (en) | Method and apparatus for working with constrained color on a computer terminal display | |
| KR102905560B1 (en) | Halo correction in digital images and a device for implementing said correction | |
| US20240242319A1 (en) | Perceptually accurate image rendering | |
| KR20070090224A (en) | How to Process Electronic Color Image Saturation | |
| JP2012513722A (en) | Ridge-based color gamut mapping | |
| JP6544004B2 (en) | Color sample creating apparatus and color sample creating method, and image processing system using color sample | |
| JP6402480B2 (en) | Color sample, device and method for creating the color sample, and image processing system using the color sample | |
| JP2013141200A (en) | Image processor, program, image processing method, and imaging apparatus | |
| JP6791299B2 (en) | Color swatches, color swatch creation device and color swatch creation method, and image processing system using color swatches | |
| CN112817437A (en) | Colored visual indicia for variable use | |
| US11055881B2 (en) | System and a method for providing color vision deficiency assistance | |
| KR20000010958A (en) | Color correction device, color correction method, picture processing device, and picture processing method | |
| WO2024195647A1 (en) | Information processing apparatus and computer program | |
| CN107492365B (en) | Method and device for obtaining color gamut mapping fitting function | |
| US7564592B2 (en) | Color image edge enhancement method | |
| US20150187329A1 (en) | Method and system for implementing flexible color schemes in a raster image | |
| US8879119B2 (en) | Image tone conversion apparatus, recording medium, and system | |
| CN117726779A (en) | Game object color changing method, device, electronic equipment and readable storage medium | |
| JPH04329487A (en) | Method and device for extracting area |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180226 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180919 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180925 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181126 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190305 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190507 |
|
| 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: 20190521 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190603 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6544004 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |