JP6791299B2 - Color swatches, color swatch creation device and color swatch creation method, and image processing system using color swatches - Google Patents
Color swatches, color swatch creation device and color swatch creation method, and image processing system using color swatches Download PDFInfo
- Publication number
- JP6791299B2 JP6791299B2 JP2019087513A JP2019087513A JP6791299B2 JP 6791299 B2 JP6791299 B2 JP 6791299B2 JP 2019087513 A JP2019087513 A JP 2019087513A JP 2019087513 A JP2019087513 A JP 2019087513A JP 6791299 B2 JP6791299 B2 JP 6791299B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- color
- pixel
- pixels
- 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.)
- Active
Links
Landscapes
- Spectrometry And Color Measurement (AREA)
Description
本発明は、色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムに関する。 The present invention relates to a color swatch, a color swatch making apparatus and a color swatch making method, and an image processing system using the color swatch.
カラーチャートとしての色見本は、物体などにおける色の見えを模したものであって、従来の色見本は、均一な色の領域を矩形状に印刷した単色のパッチによって構成されている(例えば、特許文献1参照)。 A color swatch as a color chart imitates the appearance of a color in an object or the like, and a conventional color swatch is composed of a single color patch in which a uniform color area is printed in a rectangular shape (for example,). See Patent Document 1).
このような色見本は、本来、印刷物や物体の色の塗装などの彩色のための見本として、あるいは、印刷物や物体における彩色後の色再現性のチェックや比較などに用いられる。 Originally, such a color sample is used as a sample for coloring such as painting the color of a printed matter or an object, or for checking or comparing the color reproducibility of a printed matter or an object after coloring.
実際に彩色された物体では、現実空間内で色再現性のチェックなどが行われる。しかるに、物体における実際の色は、例えば、直接照明および間接照明の何れであるかなどの照明条件、物体の材質、物体における表面の凹凸形状、または、照明−物体−チェック者の視点などの位置関係による空間的分布を有しており、必ずしも均一ではない。 For an actually colored object, the color reproducibility is checked in the real space. However, the actual color of an object is, for example, the lighting conditions 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 illumination-object-checker's viewpoint. It has a spatial distribution due to relationships and is not always uniform.
特に、印刷物が現実空間内のオブジェクトやオブジェクトを含むシーンを撮影した写真の場合、たとえオブジェクトが均一に彩色されているとしても、そのオブジェクトの色は、撮影条件などにより空間的に不均一なものとなるのが普通である。 In particular, in the case of a photograph in which a printed matter captures an object or a scene containing an object in the real space, even if the object is uniformly colored, the color of the object is spatially uneven due to shooting conditions and the like. Is usually the case.
そのため、従来の色見本のような単色のパッチでは、空間的分布条件によっては均一でない、空間的分布を有する色の見えから受ける印象を再現するのは困難である。 Therefore, it is difficult to reproduce the impression received from the appearance of a color having a spatial distribution, which is not uniform depending on the spatial distribution condition, with a single color patch such as a conventional color sample.
このようなことから、現在では色見本、色見本の作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提案している。当該色見本では、元図(元画像)の所定領域に含まれる全画素を明度、彩度、および色相角に基づいて並べ替え、並び替えた後の各画素を色見本内でその所定領域に対応する領域に配置させている。そのようにして、当該色見本では、実際の環境下における色の見えから受ける印象を近似的に再現できるようになっている。 For these reasons, we are currently proposing a color sample, a color sample creating device, a color sample creating method, and an image processing system using the color sample. In the color sample, all the pixels included in the predetermined area of the original drawing (original image) are rearranged based on the lightness, saturation, and hue angle, and each pixel after the rearrangement is placed in the predetermined area in the color sample. It is placed in the corresponding area. In this way, the color sample can approximately reproduce the impression received from the appearance of colors in an actual environment.
しかしながら、当該色見本では、領域内の画素群のなかで近似する色の画素が分散された形で配置される場合がある。近似する色の画素が分散された形で配置された場合、その近似する色の画素が観測者に知覚されやすくなって、粒状度が高くなる。粒状度は、高くなるほど、観察者に粒状感を与えやすくなる。観測者にとって粒状感(粒状性)はノイズとして知覚されることから、粒状度は抑えることが望ましい。 However, in the color sample, pixels of similar colors may be arranged in a dispersed form in the pixel group in the region. 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 graininess is increased. The higher the granularity, the easier it is to give the observer a grainy feeling. Since the graininess (graininess) is perceived by the observer as noise, it is desirable to suppress the graininess.
本発明は、上述したような課題を解決するためになされたもので、実際の環境下における色の見えから受ける印象を近似的に再現できると共に、粒状度をより抑えた色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提供することにある。 The present invention has been made to solve the above-mentioned problems, and it is possible to approximately reproduce the impression received from the appearance of colors in an actual environment, and to create a color sample and a color sample with less granularity. An object of the present invention is to provide an apparatus, a method for creating a color sample, and an image processing system using the color sample.
本発明に係る色見本は、第1の画像内の第1の領域を構成する第1の画素数からなる第1の画素群から生成される、前記第1の画素群とは必ずしも一致しない第2の画素数からなる第2の画素群が配置される第2の領域を含む色見本であって、前記第1の画素群を構成する各画素に対し、明度が高い順に並べ替える第1の並べ替えを行い、前記第1の画素数と第2の画素数が一致しない場合には、各画素に対して明度、彩度、色相角で線形補間を行なうことにより、第2の画素数と同一の画素数となるように画素数調整を行い、前記第1の並び替えと前記必要に応じた画素数調整後の各画素に対し、前記第2の領域内の行を想定して、前記行ごとに同じ明度の画素が連続する場合には、これらを彩度順に並び替える第2の並び替えを行い、さらに前記第2の並び替えの後に前記各行ごとに明度と彩度がいずれも等しい画素が連続する場合にはこれらを色相角の順に並べ替える第3の並べ替えを行い、前記第2の領域内に配置されている。 The color swatch according to the present invention does not necessarily match the first pixel group generated from the first pixel group consisting of the first pixel number constituting the first region in the first image . A first color sample including a second region in which a second pixel group consisting of two pixels is arranged, and the pixels constituting the first pixel group are sorted in descending order of chromaticity . If the number of the first pixel and the number of the second pixel do not match after rearranging, the number of the second pixel is obtained by performing linear interpolation for each pixel with the brightness, saturation, and hue angle. The number of pixels is adjusted so that the number of pixels is the same, and for each pixel after the first rearrangement and the adjustment of the number of pixels as necessary, the row in the second region is assumed. When pixels of the same lightness are consecutive for each row, a second sort is performed to sort them in order of saturation, and after the second sort, the lightness and saturation are the same for each row. When the pixels are continuous, they are rearranged in the order of chromaticity angle, and the pixels are arranged in the second region.
本発明によれば、実際の環境下における色の見えから受ける印象を近似的に再現できると共に、粒状度をより抑えた色見本、色見本作成装置および色見本作成方法、並びに、色見本を用いる画像処理システムを提供できる。 According to the present invention, an impression received from the appearance of a color in an actual environment can be approximately reproduced, and a color swatch, a color swatch making device, a color swatch making method, and a color swatch with less granularity are used. 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 a configuration example 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 device 2 is an information processing device capable of performing correction processing on an input image (pre-correction image) to be corrected such as a photograph by using a color sample (second image) described later for color appearance. Is. The information processing device is, for example, a personal computer (PC), a tablet terminal, or the like.
また、この画像処理装置2は、色見本(第2の画像)の作成に用いる画像である元画像(第1の画像に相当することから、以降「第1の画像」と表記)の入力、および入力した第1の画像から色見本の作成などを行うことができる。本実施の形態による色見本作成装置は、この画像処理装置2に搭載された形で実現されている。 Further, the image processing device 2 inputs an original image (hereinafter referred to as "first image" because it corresponds to the first image) which is an image used for creating a color sample (second image). And a color sample can be created from the input first image. The color sample creating device according to the present embodiment is realized by 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 capable of storing a first image and a color sample created by using the first image as image data, respectively. 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 devices 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 group of networks 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 having the above configuration, the image processing device 2 can receive various data including images (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 device 2. The configuration example shown in FIG. 2 is an example, and the configuration of the image processing device 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 device 2 has 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, 27, and 21 to 27 of each unit. A bus 28 for connecting is provided.
ここでは、フラッシュメモリ22は、SSD(Solid State Drive)等のストレージを含むものとして表記している。そのフラッシュメモリ22には、各種プログラムおよび各種データが記憶されている。プログラムには、色見本の作成を可能にするプログラム(以降「色見本作成プログラム」と表記)22a、および色見本を参照して、修整対象とする画像(以降「修整前画像」と表記)の修整を行い、修整を行った後の修整前画像である修整画像を生成可能にするプログラム(以降「画像修整プログラム」と表記)22bが含まれる。 Here, the flash memory 22 is described as including a storage such as an SSD (Solid State Drive). Various programs and various data are stored in the flash memory 22. The program includes a program that enables the creation of color samples (hereinafter referred to as "color sample creation program") 22a, and an image to be modified (hereinafter referred to as "pre-correction image") with reference to the color sample. A program (hereinafter referred to as "image modification program") 22b that enables the generation of a modified image that is an image before modification after modification is performed is included.
RAM23は、主に、CPU21が各種プログラムを実行するためのワークに用いられる。フラッシュメモリ22に記憶された各種プログラムは、RAM23に読み出されて実行される。 The RAM 23 is mainly used as a work for the CPU 21 to execute various programs. Various programs stored in the flash memory 22 are read into 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 a group of input devices including, for example, a keyboard and a pointing device. Various instructions and various data inputs by the user can be performed via operations on the input device 25.
I/F26は、ネットワーク4を介した通信を可能にする。それにより、画像処理装置2は、I/F26を介して、サーバ装置3との通信を行う。 The I / F 26 enables communication via the network 4. As a result, the image processing device 2 communicates with the server device 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 medium drive device for driving a recording medium such as a scanner or an optical disk, a hard disk device, or a storage such as 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 inputting and outputting various data including images. However, here, for convenience of explanation, only the server device 3 is assumed as an input destination and an output destination of various data including images.
画像処理装置2と同様に、サーバ装置3の構成も限定されない。このことから、便宜的に、サーバ装置3も図2に示す構成例であると想定し、各部の符号は画像処理装置2と同じものを用いる。 Similar to the image processing device 2, the configuration of the server device 3 is not limited. For the sake of convenience, it is assumed that the server device 3 is also a configuration example shown in FIG. 2, and the reference numerals of the respective parts are the same as those of the image processing device 2.
図3は、本発明の実施の形態に係る画像処理システムの機能構成例を示すブロック図である。ここでは、画像処理装置2とサーバ装置3とに分けて、それらの機能構成例を示している。 FIG. 3 is a block diagram showing a functional configuration example of the image processing system according to the embodiment of the present invention. Here, the image processing device 2 and the server device 3 are divided into, and examples of their functional configurations are shown.
画像処理装置2には、図3に示すように、色見本作成装置210、および画像修整装置230が搭載されている。 As shown in FIG. 3, the image processing device 2 is equipped with a color sample creating device 210 and an image modifying device 230.
色見本作成装置210は、第1の画像を参照して色見本を作成できる、本実施の形態による色見本作成装置である。この色見本作成装置210は、フラッシュメモリ22に記憶された色見本作成プログラム22aをCPU21が実行することによって実現される。 The color sample creating device 210 is a color sample creating device according to the present embodiment, which can create a color sample by referring to the first image. The color sample creating device 210 is realized by the CPU 21 executing the color sample creating program 22a stored in the flash memory 22.
一方、画像修整装置230は、色見本を参照して、修整前画像を修整し、その修整によって得られる修整画像を作成できる装置である。この画像修整装置230は、フラッシュメモリ22に記憶された画像修整プログラム22bをCPU21が実行することによって実現される。 On the other hand, the image retouching device 230 is a device capable of retouching an uncorrected image with reference to a color sample and creating a retouched image obtained by the retouching. The image correction device 230 is realized by the CPU 21 executing the image correction program 22b stored in the flash memory 22.
始めに、画像修整装置230について詳細に説明する。この画像修整装置230は、図3に示すように、機能構成として、データ取得部231、画像入力部232、事例選択部233、修整部234、およびデータ出力部235を備える。 First, the image retouching device 230 will be described in detail. As shown in FIG. 3, the image retouching device 230 includes a data acquisition unit 231, an image input unit 232, a case selection unit 233, a retouching unit 234, and a data output unit 235 as functional configurations.
データ取得部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 22b stored in the flash memory 22. From this, the data acquisition unit 231 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, an I / F 26, and a bus 28.
サーバ装置3から取得する各種データには、色見本、修整前画像、および事例情報などが含まれる。 Various data acquired from the server device 3 include a color sample, an image before modification, case information, and the like.
事例情報は、修整前画像に対する修整内容を指定するための情報であり、修整時参照情報、および事例識別情報を含む。修整時参照情報は、修整方法を指定するための情報であり、事例識別情報は、修整を行ううえで参照する事例を表す情報である。 The case information is information for designating the modification contents for the image before modification, and includes reference information at the time of modification and case identification information. The reference information at the time of modification is information for designating the modification method, and the case identification information is information representing a case to be referred to when performing modification.
図4は、事例情報の構成例を説明する図である。 FIG. 4 is a diagram illustrating a configuration example of case information.
色見本を参照して修整前画像を修整する事例は、2つの色見本を参照する標準型と、1つの色見本を参照する転写型と、に大別される。図4(a)には標準型の事例情報、図4(b)には転写型の事例情報をそれぞれ示している。 Examples of modifying an image before modification 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. 4 (a) shows standard case information, and FIG. 4 (b) 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 color tone information, image B information, image B color tone information, impression expression information, selected area shape information, and selected area information. ..
タイプ情報は、事例のタイプ、つまり事例が標準型および転写型のうちの何れであるかを示す情報である。それにより、その情報の内容として、図4(a)では「標準型」、図4(b)では「転写型」をそれぞれ表記している。 The type information is information indicating the type of the case, that is, whether the case is a standard type or a transcription type. As a result, as the content of the information, the "standard type" is shown in FIG. 4 (a) and the "transfer type" is shown in FIG. 4 (b).
事例ID情報は、事例を1意に表す情報である。その情報の内容として、図4(a)では「0001」、図4(b)では「0001−2」をそれぞれ表記している。 The case ID information is information that represents a case. As the content 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”) that should be referred to as a case image before modification. As the content of the information, in FIG. 4A, “img0001.jpg” representing the file name is shown. Since the image A is not referred to in the transfer type, “NULL” indicating that the information does not exist is shown in FIG. 4 (b).
画像Aの色調情報は、画像A全体の色調を表す情報である。本実施の形態では、各画素はL*(エルスター)、a*(エースター)、b*(ビースター)の表色系の三要素のデータをもっていることを想定している。このことから、その情報の内容として、図4(a)では平均Lab値を表す「(50,12,15)」を表記している。なお、画素を表現するデータの種類は特に限定されるものではない。 The color tone information of the image A is information representing the color tone of the entire image A. In the present embodiment, it is assumed that each pixel has data of three elements of the color system of L * (Elster), a * (Aster), and b * (Beaster). For this reason, as the content of the information, "(50, 12, 15)" representing the average Lab value is shown in FIG. 4 (a). The type of data representing the pixels is not particularly limited.
画像B情報は、修整後の事例画像として参照すべき色見本(以降「画像B」とも表記する)を表す情報である。その情報の内容として、図4(a)および図4(b)ではそれぞれ「img0002.jpg」を表記している。標準型と転写型とで画像Bを区別するために、転写型での画像Bは「参照画像」とも表記することとする。 The image B information is information representing a color sample (hereinafter, also referred to as “image B”) that should be referred to as a modified case image. As the content of the information, "img0002.jpg" is shown in FIGS. 4 (a) and 4 (b), respectively. 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 color tone information of the image B is information representing the color tone of the entire image B. As the content of the information, "(34, 11, 14)" is shown in FIGS. 4 (a) and 4 (b).
印象表現情報は、画像AおよびB、または画像Bから観察者が受ける印象を表す情報である。その情報の内容として、図4(a)および図4(b)では「暗く滑らか」をそれぞれ表記している。 The impression expression information is information representing the impression received by the observer from the images A and B or the image B. As the content of the information, "dark and smooth" is described in FIGS. 4 (a) and 4 (b), respectively.
選択領域形状情報は、画像AおよびB、または画像Bのなかで参照すべき領域(第2の領域)の形状を表す情報である。その情報の内容として、図4(a)および図4(b)では「円」をそれぞれ表記している。 The selected area shape information is information representing the shape of the image A and B, or the area (second area) to be referred to in the image B. As the content of the information, "circle" is shown in FIGS. 4 (a) and 4 (b), respectively.
選択領域情報は、画像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 content of the information, "center (50, 50), radius 50" is shown in FIGS. 4 (a) and 4 (b), respectively.
図4(a)および図4(b)に内容を表記した選択領域形状情報、および選択領域情報は、図7に表すような色見本を想定したものである。選択領域(第2の領域)には画素が配置される行が複数、存在し、選択領域に配置される画素群(第2の画素群)は、行単位に分けて配置される。 The selected area shape information and the selected area information whose contents are described in FIGS. 4 (a) and 4 (b) are based on the assumption of a color sample as shown in FIG. 7. There are a plurality of rows in which pixels are arranged in the selection area (second area), and the pixel group (second pixel group) arranged in the selection area is divided into rows.
修整時参照情報は、画像処理オペレータ情報、画像処理パラメータ情報を含む。 The reference information at the time of modification includes image processing operator information and image processing parameter information.
画像処理オペレータ情報は、修整のための操作方法を表す情報である。その情報の内容として、図4(a)では「トーンカーブ(Lトーンカーブ)」、図4(b)では「転写オペレータ」をそれぞれ表記している。 The image processing operator information is information indicating an operation method for modification. As the content 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 the operation content for modifying the entire image. The image parameter information is information used to perform an operation specified by the image processing operator information. For this reason, 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 specifies an operation for modifying the unmodified image toward the image B (reference image) as a target. For this reason, 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 shown in FIG. 4 is only one example, and the configuration of the case information is not particularly limited. The method of describing 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 case information as shown in FIG. 4A or FIG. 4B, and also stores a plurality of unmodified 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 a designated unmodified image from the server device 3 according to a user's instruction. The user's instruction is given by operating the input device 25, and the unmodified image is acquired from the server device 3. For this reason, the image input unit 232 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, an input device 25, an I / F 26, and a bus 28.
事例選択部233は、例えばサーバ装置3から取得可能な事例情報をユーザに提示し、ユーザに所望の事例情報を選択させる機能である。データ取得部231によるサーバ装置3からのデータの取得は、事例選択部233によって制御される。この事例選択部233は、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24およびバス28によって実現される。 The case selection unit 233 is a function of presenting, for example, case information that can be acquired from the server device 3 to the user, and causing the user to select desired case information. The 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, a CPU 21, a flash memory 22, a RAM 23, a display device 24, and a bus 28.
修整部234は、ユーザが選択した事例情報を参照し、指定された修整前画像に対する修整を行う機能である。この修整部234は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28によって実現される。 The modification unit 234 is a function of referring to the case information selected by the user and performing modification on the designated pre-modification image. The modification unit 234 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, and a bus 28.
修整部234によって行われる修整前画像の修整について、図5および図6を参照して具体的に説明する。 The modification of the pre-modification image performed by the modification unit 234 will be specifically described with reference to FIGS. 5 and 6.
図5は、標準型の事例情報による修整前画像の修整方法例を説明する図である。 FIG. 5 is a diagram illustrating an example of a method of modifying an image before modification using standard case information.
標準型の事例情報による修整では、その事例情報で指定された画像A(図5(a))、および画像B(図5(b))が用いられる。画像処理オペレータ情報で指定されたトーンカーブ(図5(c))は、画像Aを画像Bに向けて階調補正するために作成される。修整前画像(図5(d)。ここでは「入力画像」と表記)は、作成したトーンカーブを用いて変換され、修整画像(図5(e))が作成される。図5に表す例では、修整前画像(例えば写真)にオブジェクトとして存在する人物の肌、その人物の服、その人物の背景となっている空および山、などが修整されている。 In the modification using the standard case information, the image A (FIG. 5 (a)) and the image B (FIG. 5 (b)) specified in the case information are used. The tone curve (FIG. 5C) specified by the image processing operator information is created to correct the gradation of the image A toward the image B. The unmodified image (FIG. 5 (d); hereinafter referred to as “input image”) is converted using the created tone curve to create a modified image (FIG. 5 (e)). In the example shown in FIG. 5, the skin of a person existing as an object in the unmodified image (for example, a photograph), the clothes of the person, the sky and mountains behind the person, and the like are modified.
図6は、転写型の事例情報による修整前画像の修整方法例を説明する図である。 FIG. 6 is a diagram illustrating an example of a method for modifying an image before modification using transfer-type case information.
転写型の事例情報による修整では、その事例情報で指定された画像B(図6(a))のみが用いられる。この転写型では、色彩転写などの既知の方法を用いて修整前画像(図6(b)。ここでは「入力画像」と表記)を修整し、修整画像(図6(c))を作成する。図6に表す例でも、修整前画像(例えば写真)にオブジェクトとして存在する人物の肌、その人物の服、その人物の背景となっている空および山、などが修整されている。 In the modification using the transfer type case information, only the image B (FIG. 6A) specified in the case information is used. In this transfer type, a pre-modification image (FIG. 6 (b); hereinafter referred to as “input image”) is modified using a known method such as color transfer to create a modified image (FIG. 6 (c)). .. Also in the example shown in FIG. 6, the skin of a person existing as an object in the unmodified image (for example, a photograph), the clothes of the person, the sky and mountains behind 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 shown in FIG. 3 is a function capable of outputting a modified image. In addition to the server device 3, there is a display device 24 shown in FIG. 2 as a specific output destination of the modified image. For this reason, the data output unit 235 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, a display device 24, an I / F 26, and a 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 shown 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 configurations.
通信部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. For this reason, the communication unit 32 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, an I / F 26, and a bus 28.
第1の記憶部33は、例えば修整前画像、第1の画像、事例情報、修整画像などの保存に用いられる。この第1の記憶部33は、例えばフラッシュメモリ22、およびRAM23が相当する。 The first storage unit 33 is used for storing, for example, an unmodified image, a first image, case information, a modified image, and the like. The first storage unit 33 corresponds to, for example, a flash memory 22 and a RAM 23.
第2の記憶部34は、例えば画像A、或いは画像Bとして用いられる色見本の保存に用いられる。この第2の記憶部34も、例えばフラッシュメモリ22、およびRAM23が相当する。 The second storage unit 34 is used for storing, for example, an image A or a color sample used as an image B. The second storage unit 34 also corresponds to, for example, a flash memory 22 and a 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 OS (Operating System) stored in the flash memory 22 or an application program for providing a service. For this reason, the control unit 31 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, and a bus 28.
本実施の形態としての画像処理システム100は、画像処理装置2の画像修整装置230とサーバ装置3とによって実現されている。 The image processing system 100 as the present embodiment is realized by the image correction device 230 and the server device 3 of the image processing device 2.
画像修整装置230がサーバ装置3から修整前画像を入力して、その修整前画像の修整を行うと想定した場合、画像処理システム100は、修整対象となる修整前画像をサーバ装置3が保存することで、その修整前画像を取得したことになる。取得された修整前画像は第1の記憶部33に保存される。このようなことから、画像処理システム100の画像取得部は、例えば制御部31、通信部32および第1の記憶部33によって実現される。 Assuming that the image retouching device 230 inputs the pre-retouched image from the server device 3 and retouches the pre-retouched image, the image processing system 100 stores the pre-retouched image to be retouched by the server device 3. By doing so, the image before the modification has been acquired. The acquired unmodified image is stored in the first storage unit 33. For this reason, the image acquisition unit of the image processing system 100 is realized by, for example, a control unit 31, a communication unit 32, and a first storage unit 33.
画像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 transmitted to the image processing device 2 as needed. From this, the image storage means of the image processing system 100 includes at least a second storage unit 34.
修整前画像に対する修整は、画像修整装置230が行う。画像修整装置230は、その修整前画像に対する修整を行うために、その修整前画像、その修整に必要な各種データをサーバ装置3から取得する。このようなことから、画像処理システム100の修整手段は、例えばサーバ装置3の制御部31、通信部32および第1の記憶部33、並びに画像修整装置230のデータ取得部231、画像入力部232および修整部234によって実現される。 The image retouching device 230 performs retouching on the image before retouching. The image modification device 230 acquires the image before modification and various data necessary for the modification from the server device 3 in order to modify the image before modification. For this reason, the retouching means of the image processing system 100 includes, for example, the control unit 31, the communication unit 32 and the first storage unit 33 of the server device 3, the data acquisition unit 231 and the image input unit 232 of the image retouching device 230. And realized by the retouching unit 234.
画像修整装置230は、サーバ装置3から修整前画像、および色見本(画像A、および画像B、或いは画像B)を含む各種必要なデータを受信し、受信した修整前画像の修整を行う。画像修整装置230は、サーバ装置3から受信したデータを、例え一時的でも記憶する。このことから、画像修整装置230自体も、1つの画像処理システム100として機能する。これは、画像処理システム100が、1台の情報処理装置だけでも実現できることを意味する。 The image retouching device 230 receives various necessary data including a pre-retouch image and a color sample (image A and image B, or image B) from the server device 3, and retouches the received pre-retouch image. The image correction device 230 stores the data received from the server device 3, even temporarily. For this reason, the image correction device 230 itself also functions as one image processing system 100. This means that the image processing system 100 can be realized by using only one information processing device.
画像修整装置230を1つの画像処理システムと見なした場合、画像取得手段は、例えば画像入力部232が相当する。画像記憶部は、例えばデータ取得部231、および修整部が相当する。修整手段は、例えばデータ取得部231、事例選択部233、および修整部234によって実現される。 When the image correction device 230 is regarded as one image processing system, the image acquisition means 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 retouching means is realized by, for example, a data acquisition unit 231, a case selection unit 233, and a retouching unit 234.
次に、色見本作成装置210について詳細に説明する。この色見本作成装置210は、図3に示すように、機能構成として、データ取得部211、配置決定部212、および色見本の作成部213、および登録部214を備える。 Next, the color sample creating device 210 will be described in detail. As shown in FIG. 3, the color sample creating device 210 includes a data acquisition unit 211, an arrangement determination unit 212, a color sample creation unit 213, and a registration unit 214 as functional configurations.
データ取得部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. The first image acquired from the server device 3 is designated by the user who visually recognizes the information displayed on the display device 24 by operating the input device 25. From this, the data acquisition unit 211 is a function corresponding to the image acquisition means, and is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, a display device 24, an input device 25, an I / F 26, and a bus 28.
配置決定部212は、ユーザが指定した第1の画像を参照し、色見本の第2の領域に配置すべき画素群(第2の画素群)を決定する機能である。この配置決定部212は、例えばCPU21、フラッシュメモリ22、RAM23、およびバス28によって実現される。 The arrangement determination unit 212 is a function of referring to the first image designated by the user and determining a pixel group (second pixel group) to be arranged in the second region of the color sample. The arrangement determination unit 212 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, and a 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 rearrangement unit 221, a second rearrangement unit 222, and a third rearrangement unit 223. The first sorting unit 221 and the second sorting unit 222, and the third sorting unit 223 are the first sorting means, the second sorting means, and the third sorting means, respectively. Corresponds to.
第1の画像には、図8に表すような第1の領域が予め設定されているか、或いはユーザによって設定される。この第1の領域は、色見本の第2の領域に配置する第2の画素群を作成するうえで参照される領域である。 In the first image, a first area as shown in FIG. 8 is preset or set by the user. This first region is a region referred to when creating a second pixel group to be arranged in the second region of the color swatch.
配置決定部212は、第1の領域を構成する画素群(第1の画素群)をRAM23にコピーする。 The arrangement determination unit 212 copies the pixel group (first pixel group) constituting the first region to the RAM 23.
図9は、RAM23にコピーされた第1の画素群を説明する図である。図9では、RAM23を「メモリ」と表記している。 FIG. 9 is a diagram illustrating a first pixel group copied to the RAM 23. In FIG. 9, the RAM 23 is referred to as a “memory”.
図9に表す矩形の枠は、それぞれ画素を表している。それにより、図9では、RAM23にコピーした第1の画素群を1列の画素の並びで表している。 Each of the rectangular frames shown in FIG. 9 represents a pixel. As a result, in FIG. 9, the first pixel group copied to the RAM 23 is represented by a row of pixels.
第1の並べ替え部221は、コピーした第1の画素群を対象に、明度(上記の想定により、ここではL*値)を基に並び替える第1の並べ替えを行う。この並び替えにより、図9に表す第1の画素群は図10に表すように変更される。本実施の形態では、明度に基づく第1の並び替えは、明度が高い順に画素を並び替える形で行うようにしている。第1の並び替えは、その逆で行うようにしても良い。 The first sorting unit 221 performs the first sorting of the copied first pixel group based on the brightness (L * value here based on the above assumption). Due to 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 by rearranging the pixels in descending order of lightness. The first sorting may be performed in the reverse order.
図9では、明度を色の濃さで表現している。色が薄いほど明度が高いことを表している。 In FIG. 9, the lightness is represented by the color depth. The lighter the color, the higher the brightness.
第1の領域内には、明度が同じ画素が複数、存在する場合がある。その場合、図10に表すように、第1の並び替えを行った後の第1の画素群には、明度が等しい画素が2つ以上、連続する箇所が1つ以上、存在することになる。本実施の形態では、その場合、第1の並び替え部221は、明度とは異なる人間の色覚に基づいた属性である彩度(=√(a*×a*+b*×b*))を基に並び替える第2の並び替え(特許請求の範囲に記載の「第4の並び替え」に相当)を行う。 In the first region, there may be a plurality of pixels having the same brightness. In that case, as shown in FIG. 10, in the first pixel group after the first rearrangement, there are two or more pixels having the same brightness and one or more consecutive points. .. In the present embodiment, in that case, the first rearrangement unit 221 sets the saturation (= √ (a * × a * + b * × b *)), which is an attribute based on human color vision different from the lightness. The second sort based on the basis (corresponding to the "fourth sort" described in the claims) is performed.
本実施の形態では、彩度に基づく第2の並び替えは、彩度が高い順に並び替える形で行っている。その第2の並び替えを行う対象は、明度が同じ画素が複数、連続している箇所のみである。そのような第2の並び替えを行うことにより、第1の画素群は、図10に表す状態から図11に表す状態に変更される。明度が同じ画素が複数、存在しない場合、第2の並び替えは行われない。 In the present embodiment, the second sorting based on the saturation is performed in the form of sorting in descending order of saturation. The target for the second rearrangement is only a plurality of consecutive pixels having the same brightness. By performing such a 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 brightness do not exist, the second rearrangement is not performed.
第1の並び替え、更には第2の並び替えを行っても、第1の画素群の画素数は変化しない。第1の画素群の画素数が第2の画素群の画素数より少ない場合、足りない分の画素を第1の画素群に追加する必要がある。本実施の形態では、その画素の追加(生成)は線形補間を用いて行っている。この画素の追加も第1の並び替え部221によって行われる。この画素の追加により、第2の並び替えを行った後の第1の画素群は、例えば図11に示す状態から図12に示す状態に変更され、第2の画素群の画素数を有するようになる。 Even if the first rearrangement and the second rearrangement are performed, the number of pixels of the first pixel group does not change. When 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 the present embodiment, the pixel is added (generated) by using linear interpolation. This pixel addition is also performed by the first rearrangement unit 221. By adding this pixel, the first pixel group after the second rearrangement is changed from the state shown in FIG. 11 to the state shown in FIG. 12, for example, so as to have 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 pixels is the same as the nth pixel from the beginning of the second pixel group is the Nth pixel from the beginning of the first pixel group after the first rearrangement or the second rearrangement. It is performed by linear interpolation so that it becomes a color value. When the number of pixels of the first pixel group is N1 and the number of pixels of the second pixel group is N2, N corresponding to n is obtained by, for example, 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 the data of the pixel to be added as the nth pixel, is the pixel value V of the Nth pixel in the first pixel group N after sorting. Interpolate. When N is not an integer, the pixel value V uses the pixel value Va of the a-th pixel, which is the largest integer that does not exceed N, and the pixel value Vb of the b-th pixel, which is the smallest integer that does not fall below N. V = Va + (Vb-Va) × (NA) ... (1)
To be calculated by.
上記のような線形補間が行われる各画素は、L*(エルスター),a*(エースター),b*(ビースター)の表色系の三要素のデータをもっている。そのため、画素値Vの算出は、明度であるL*値、クロマネティクス指数であるa*値およびb*値の全てを対象に行われる。 Each pixel on which linear interpolation is performed as described above has data of three elements of the color system of L * (Elster), a * (Aster), and b * (Beaster). Therefore, the calculation of the pixel value V is performed for all of the L * value which is the brightness and the a * value and the b * value which are the chromatic exponents.
このようにして、本実施の形態では、第1の画素群の画素数が第2の画素群の画素数より少ない場合、必要な数の画素を増加(追加)する。このため、第1の画素群の画素数に制限されることなく、第2の領域に全ての画素を配置した色見本を作成することができる。なお、画素の増加方法は、線形補間以外の方法を用いても良い。増加する画素数は、第1の画素群の画素数が第2の画素群の画素数以上となる数であれば良い。 In this way, 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 required number of pixels is increased (added). Therefore, it is possible to create a color sample in which all the pixels are arranged in the second region without being limited by the number of pixels of the first pixel group. As the pixel increasing method, a method other than linear interpolation may be used. The number of pixels to be increased may be any number as long as 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 above interpolation 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 cannot be arranged in the second region, it is not always 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 of the second pixel group. This first pixel group is output as a second pixel group for performing subsequent operations.
第2の並び替え部222は、第1の並び替え部221が出力した第2の画素群に対し、色相角を基に画素を並び替える第3の並び替え(特許請求の範囲に記載の「第2の並び替え」に相当)を行う。 The second rearrangement unit 222 rearranges the pixels based on the hue angle with respect to the second pixel group output by the first rearrangement unit 221 (the "claims". Corresponds to "second sort").
この第3の並び替えは、第2の領域に実際に配置される画素の位置関係を考慮するために、その第2の領域に画素を配置する行を想定し、行単位で行われる。 This third rearrangement is performed on a line-by-line basis, assuming a row in which the 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 illustrating an example of a second pixel group immediately before performing the third rearrangement.
図13に表記の「8」「14」「16」の各数値は、例えば第2の画素群を構成する各画素に割り当てられた画素番号を便宜的に表している。何れかの数値が近傍に表記された枠(画素)は、色が近似している、或いは明度、彩度、および色相角が全て近似している画素、つまり予め定めた許容範囲内で各画素値、或いは各画素値から算出される値が一致する画素である。ここでは、理解を容易とするために、何れかの数値が近傍に表記された枠(画素)の色は、他の枠(画素)の色と異ならせている。 Each numerical value of "8", "14", and "16" shown in FIG. 13 conveniently represents, for example, a pixel number assigned to each pixel 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 brightness, saturation, and hue angle are all similar, that is, each pixel within a predetermined allowable range. It is a pixel in which the 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 written 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 according to the lightness (in some cases, the saturation). However, when the second pixel group is simply arranged in the second region, as shown in FIG. 13, there is a possibility that pixels having similar hue angles are arranged apart from each other.
そのように離れて配置された画素は、その周辺の画素とは大きく異なる色に見える可能性が比較的に高い。例えば離れて配置された画素の色が赤(或いは緑)でその周辺の画素の色が緑(或いは赤)であれば、色相角は180度、或いは180度に近い角度になる。このようなこともあり、色相角が近似する画素が離れて配置された場合、観察者に粒状感を与えやすい。そのため、本実施の形態では、色相角に基づく第3の並び替えを行い、粒状感を観察者に与えるのをより抑制するようにしている。 Pixels so spaced apart are relatively likely to appear in a color that is significantly different from the surrounding pixels. For example, if the colors of the pixels arranged apart from each other are red (or green) and the colors of the peripheral pixels are green (or red), the hue angle is 180 degrees or an angle close to 180 degrees. For this reason, when pixels having similar hue angles are arranged apart from each other, it is easy to give the observer a grainy feeling. Therefore, in the present embodiment, the third rearrangement based on the hue angle is performed so as to further suppress giving a grainy feeling to the observer.
図14は、第3の並び替えを行った後の第2の画素群例を説明する図である。 FIG. 14 is a diagram illustrating an example of a second pixel group after performing 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 position where the pixel number is 7, and the pixel number is 7. It becomes a pixel. Similarly, in FIG. 13, each pixel arranged at the positions where the pixel numbers are 14 and 16 moves to the positions where the pixel numbers are 16 and 17, respectively, and becomes the pixels whose pixel numbers are 16 and 17. In this way, pixels with close hue angles are gathered in the vicinity, in other words, within a narrow range, so that the observer is not given a grainy feeling, or even if it is given a grainy feeling, the degree is further suppressed. become. Therefore, the created color sample also has less noise and feels more natural.
第3の並び替えにより、隣接する複数の行では色相角が近い画素を集めることができる。しかし、色が近似している、或いは明度、彩度、および色相角が全て近似している画素(許容範囲内で各画素値、或いは各画素値から算出される値が一致する画素。以降「近似画素」と表記)は離れた行に存在する可能性がある。その可能性は、各行の画素群における色相角ごとの画素数の比率が狭い範囲内に収まっていない場合に特に高くなる。 By the third rearrangement, it is possible to collect pixels having similar hue angles in a plurality of adjacent rows. However, pixels whose colors are similar, or whose lightness, saturation, and hue angle are all similar (pixels in which each pixel value within an allowable range or a value calculated from each pixel value matches. Notated as "approximate pixels") may be on 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 explaining a second pixel group example after the third rearrangement in a wider range. In FIG. 15, as in FIGS. 13 and 14, the approximate pixel of interest is represented by having a different color from the other pixels. As a result, in FIG. 15, the approximate pixel with the pixel number 43 is arranged at a position away from the group including the three approximate pixels with 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 grainy feeling for the same reason as described above. From this, in the present embodiment, the second rearrangement after the third rearrangement is performed, and the second rearrangement is performed, and the pixels are rearranged based on the color. (Corresponding to the "third rearrangement") is performed to further suppress giving a grainy feeling to the observer. As a result, the color swatches created by performing this fourth rearrangement will feel 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 a form in which pixels arranged at distant positions in the direction in which the rows overlap are densely packed.
図16は、第4の並べ替えを行った後の第2の画素群例を説明する図である。 FIG. 16 is a diagram illustrating an example of a second pixel group after performing 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 pixel arranged at the position where the pixel number is 43 in FIG. 15 is moved to the position where the pixel number is 29, and the pixel number is 29. It becomes a 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 the pixel whose pixel number is 43. By such replacement, more pixels having similar colors are arranged in a narrow range, so that a color sample that does not give a graininess (noise) can be created.
第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 creates a color sample by arranging pixels in an area other than the second area. From this, the creating unit 213 corresponds to the image creating means. The creation unit 213 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, and a bus 28.
図17は、作成された色見本例を示す図である。 FIG. 17 is a diagram showing a created color sample example.
上記のように、明度に基づく第1の並び替えは、明度が高い順に画素を並び替える形で行うようにしている。それにより、図17に示すように、明度が高い画素は、第2の領域の上部に配置するようにしている。これは、一般的な空間では、太陽、或いは電灯などの光源となるオブジェクトは、光源ではないオブジェクトよりも上部に存在することが多くことにより、多くの画像では上部が明るくなっているためである。言い換えれば、多くの画像に共通する特徴に合わせて第2の領域に画素を配置することにより、より自然な印象を与える色見本を作成するためである。 As described above, the first rearrangement based on the lightness is performed by rearranging the pixels in descending order of lightness. As a result, as shown in FIG. 17, the pixel with high brightness is arranged in the upper part of the second region. This is because in general space, objects that are light sources such as the sun or electric lamps are often located above objects that are not light sources, and in many images the upper part is bright. .. In other words, by arranging the pixels in the second region according to the features common to many images, a color sample that gives a more natural impression is created.
明度(および彩度)に基づく並び替えによって組織化された第1の画素群は、色相角、および色に着目し、第1の画素群のなかで人間の視覚特性上、望ましくない位置に配置の画素の再配置が行われる。その再配置は、配置位置が望ましくない画素を移動させると共に、その移動に合わせて、1つ以上の画素も移動させるか(図14)、或いは画素の移動先の画素と入れ替える(図16)。そのような再配置を行うことにより、作成される色見本の第2の領域には、組織化され、且つ人間の視覚特性上、極めて自然と感じさせるように画素が並ぶ第2の画素群がより確実に配置されることとなる。 The first pixel group, organized by sorting based on lightness (and saturation), focuses on the hue angle and color, and is placed in an undesired position in the first pixel group due to human visual characteristics. Pixels are rearranged. In the rearrangement, a pixel whose placement position is not desirable is moved, and one or more pixels are also moved according to the movement (FIG. 14), or the pixel is replaced with the pixel to which the pixel is moved (FIG. 16). In the second region of the color swatch created by such rearrangement, a second pixel group in which the pixels are arranged so as to be organized and feel extremely natural in terms of human visual characteristics is formed. It will be arranged more reliably.
なお、第2の領域以外の領域に配置する画素が予め決定されているような場合、作成部213は不要とすることができる。その場合、第3の並べ替え部223、或いはその第3の並べ替え部223を備えた配置決定部212が色見本を作成することとなる。 If the pixels to be arranged in an area other than the second area are predetermined, the creating unit 213 can be omitted. In that case, the third rearrangement unit 223 or the arrangement determination unit 212 including the third rearrangement unit 223 creates the color sample.
登録部214は、作成部213が作成した色見本を送信して、サーバ装置3に登録(保存)させる機能である。色見本の登録をユーザの指示に従って行う場合、登録部214は、例えばCPU21、フラッシュメモリ22、RAM23、表示装置24、入力装置25、I/F26およびバス28によって実現される。 The registration unit 214 is a function of transmitting a color sample created by the creation unit 213 and registering (storing) it in the server device 3. When the color sample is registered according to the user's instruction, the registration unit 214 is realized by, for example, a CPU 21, a flash memory 22, a RAM 23, a display device 24, an input device 25, an I / F 26, and a bus 28.
画像処理装置2に搭載された画像修整装置230は、上記のようにして作成された色見本を画像AおよびBとして、或いは参照画像(画像B)として、修整前画像の修整を行う。作成される色見本は、実際の環境下で視認した場合の被写体の色に対する印象をより近似的に再現している。そのため、画像修整装置230は、修整前画像上のオブジェクトの色を、そのオブジェクトを直接、見る観察者が受ける印象の実際の色、或いはその実際の色に近い色に修整した修整画像を作成することができる。 The image retouching device 230 mounted on the image processing device 2 retouches the pre-retouching image using the color samples created as described above as images A and B or as a reference image (image B). The created color swatch more closely reproduces the impression of the subject's color when viewed in an actual environment. Therefore, the image retouching device 230 creates a retouched image in which the color of the object on the pre-retouched image is retouched to the actual color of the impression that the observer who directly sees the object receives, or a color close to the actual color. be able to.
以下に、第1の画像を用いて色見本を作成する実施例について具体的に説明する。 An example of creating a color sample using the first image will be specifically described below.
(第1の実施例)
図18は、第1の実施例に係る色見本画像の作成手順を示すフローチャートである。図18にフローチャートを示す作成手順は、色見本作成プログラム22aをCPU21が実行することで実現される。図18では、便宜的に、ユーザが第1の画像を指定して色見本の作成を指示した後にCPU21が作成対象とする色見本に含まれる第2の領域内の画素の配置を決定するために実行する制御手順のみを示している。それにより、配置決定部212は、CPU21が図18に示す制御手順を実行することで実現される。その図18では、RAM23を「メモリ」と表記している。
(First Example)
FIG. 18 is a flowchart showing a procedure for creating a color sample image according to the first embodiment. The creation procedure shown in the flowchart in FIG. 18 is realized by the CPU 21 executing the color sample creation program 22a. In FIG. 18, for convenience, in order to determine the arrangement of pixels in the second region included in the color sample to be created by the CPU 21 after the user specifies the first image and instructs the creation of the color sample. Only the control procedure to be executed is shown in. As a result, the arrangement determination unit 212 is realized by the CPU 21 executing the control procedure shown in FIG. In FIG. 18, RAM 23 is referred to as “memory”.
先ず、CPU21は、サーバ装置3から受信した第1の画像中の第1の領域内に存在する画素を、RAM23内に確保したエリア(以降「第1エリア」と表記)にコピーする(ステップS1)。 First, the CPU 21 copies the pixels existing 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 the 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 portion of the first pixel group after the first rearrangement in which pixels of equal brightness are continuous, and when that portion is confirmed, the pixel at that location is confirmed. Is rearranged in 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)。 After that, the CPU 21 secures an area (hereinafter, referred to as “second area”) for storing the second pixel group arranged in the second area in the RAM 23 (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 uses linear interpolation to add the insufficient pixels as shown in FIG. The pixel value of the added pixel is determined (step S5). As a result, 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 steps S2 to S5 are procedures related to the first sorting unit 221. When the CPU 21 realizes the function of the first sorting unit 221, the CPU 21 executes the procedure 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 order of hue angles in units of rows existing in the second region (step S6). As a result, the second pixel group as shown in FIG. 13 is changed as shown in FIG. 14 or 15. This step S6 is a procedure relating to the second rearrangement unit 222.
次に、CPU21は、第2の画素群に対し、行が重なる方向に分散している近似色の画素をより密集するように近接配置するための第4の並び替えを行う(ステップS7)。これにより、図15に表すような第2の画素群は、図16に表すように変更される。その後、図18に示す制御手順が終了する。このステップS7は、第3の並べ替え部223に係わる手順である。 Next, the CPU 21 performs a fourth rearrangement for arranging pixels of approximate colors dispersed in the direction in which the rows overlap with respect to the second pixel group so as to be closer to each other (step S7). As a result, the second pixel group as shown in FIG. 15 is changed as shown in FIG. After that, the control procedure shown in FIG. 18 ends. This step S7 is a procedure relating to the third rearrangement unit 223.
ステップS7での第4の並び替えは、上記のように、必要に応じて行えば良い。第4の並び替えを行う必要性を自動的に判断するのに用いる指標としては、例えば粒状度を挙げることができる。 The fourth rearrangement in step S7 may be performed as needed, as described above. As an index used to automatically determine the necessity of performing the fourth sorting, for example, graininess 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とすることが考えられる。 To calculate the granularity, the second region is divided into the L *, a *, and b * power spectra obtained by FFT (Fast Fourier Transform) for each L *, a *, and b * value of the pixel. Techniques such as weighting according to the spatial frequency characteristics of color vision (contrast sensitivity characteristics (CSF)) and taking linear sums can be used (eg, K. Kagitani, H. Makoto, AND S. Imagawa, "Image noise evolution method". for color hardcopy ", in Spec. IS & T NIP12, 1996, pp. 173-76.). The determination as to whether or not to perform the fourth sorting may be performed depending on whether or not the calculated granularity value is equal to or greater than a predetermined value. As the predetermined value, for example, if the granularity is calculated by the method given in the example, it may be 0.1.
第4の並べ替えを行うか否かは、ユーザに選択させるようにしても良い。ユーザによる選択は、第3の並べ替えを行った後の第2の画素群を第2の領域に配置した色見本を表示装置24に表示させて、目視により行わせても良い。 The user may be allowed to select whether or not to perform the fourth sorting. The selection by the user may be made visually by displaying a color sample in which the second pixel group after the third rearrangement is arranged in the second region on the display device 24.
第4の並べ替え自体は、自己組織化写像(SOM:Self−Organizing Maps)によって行っても良い。自己組織化の手法としては、T. Kohonenが提唱したアルゴリズムが知られている(例えば、T. Kohonen, "Self−Organizing Maps", Springer, 2000など)。 The fourth sort itself may be performed by a self-organizing map (SOM: Self-Organizing Maps). As a method of self-organizing, an algorithm proposed by T. Kohonen is known (for example, T. Kohonen, "Self-Organizing Maps", Springer, 2000, etc.).
第4の並べ替えのための自己組織化写像は、例えば以下の手順で行えば良い。 The self-organizing map for the fourth sorting may be performed by, for example, the following procedure.
まず、手順1として第3の並べ替え後の第2の画素群を第2の領域に配置した色見本をRAM23に確保したエリア(以降「第3エリア」)に作成する。以降、作成した色見本は「第3の画像」と表記し、第3の画像内の第2の領域、その第2の領域に配置される第2の画素群は、それぞれ「第3の領域」「第3の画素群」と表記する。 First, as step 1, a color sample in which the second pixel group after the third rearrangement is arranged in the second area is created in the area secured in the RAM 23 (hereinafter, “third area”). Hereinafter, the created color sample is referred to as a "third image", and the second region in the third image and the second pixel group arranged in the second region are each "third region". It is expressed as "third pixel group".
次に手順2として、第2の領域(第2の画素群)の画素番号がiの画素(以降「画素i」と表記)との色差が最小であり、且つ第3の領域内で画素iとの位置関係が最も近い画素Iを探索する。ここでの位置関係とは、第2の領域と第3の領域を同一の空間と想定して評価した場合のものである。 Next, as step 2, the color difference between the pixel number of the second region (second pixel group) and the pixel i (hereinafter referred to as "pixel i") is the smallest, and the pixel i is within the third region. The pixel I having the closest positional relationship with is searched for. The positional relationship here is a case where the second region and the third region are evaluated assuming that they are the same space.
次に手順3として、第3の領域内で画素Iを中心とした、画素Iとその近傍の各画素JのL*、a*、b*の各値をそれぞれ変更する。 Next, as step 3, the values of L *, a *, and b * of the pixel I and each pixel J in the vicinity thereof centered on the pixel I are changed in the third region.
上記手順2、および手順3は、第2の領域内の全ての画素iに対して実施し、これを予め定めた最大繰り返し回数tだけ繰り返し行う。 The above steps 2 and 3 are carried out for all the pixels i in the second region, 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), a (t), and b (t) of L *, a *, and b * after being changed t times, the values L (t + 1), a (t + 1), and the values to be set next to b (t), and b (t + 1) may be calculated as follows, for example.
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 a * value between the pixel i in the second region and the pixel J in the third region, respectively. , B * value difference, h (t) is a function of the distance between pixel I and 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 (d2 / (2 · (σ (t) 2)) ... (5)
Here, α (t) is a monotonous decrease 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).
差dL(J,i)、da(J,i)、db(J,i)としては、例えばCIE(1976)L*a*b*空間における2点間のユークリッド距離で表されるCIE1976色差式により算出される値を用いることができる。他の色差式(CIE1994色差式など)により算出される値を用いても良い。 The difference dL (J, i), da (J, i), and db (J, i) are, for example, the CIE1976 color difference equation represented by the Euclidean distance between two points in the CIE (1976) L * a * b * space. The value calculated by can be used. A value calculated by another color difference formula (CIE1994 color difference formula, etc.) may be used.
Kohonenの自己組織化写像では、最初に第2の画素群と同じ画素数の画素群を別に確保し、確保した各画素の初期値を乱数によって割り当てるのが普通である。しかし、第1〜第3の並べ替えは何れも画素群の組織化のための手段である。このことから、自己組織化写像による第4の並べ替えでは、上記のような手順を採用し、第2の画素群の組織化された状態をより維持できるようにしている。 In Kohonen's self-organizing map, it is usual that a pixel group having the same number of pixels as the second pixel group is first secured separately, and the initial value of each secured pixel is assigned by a random number. However, the first to third sorts are all means for organizing the pixel group. For this reason, in the fourth rearrangement by the self-organizing map, the above-mentioned procedure is adopted so that the organized state of the second pixel group can be more maintained.
(第2の実施例)
上記第1の実施例では、第4の並べ替えは第2の領域全体を画素の移動可能範囲として行っている。第2の実施例では、画素の移動可能範囲を制限するようにしたものである。
(Second Example)
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 pixels is limited.
図19は、画素の移動可能範囲の制限方法を説明する図である。 FIG. 19 is a diagram illustrating a method of limiting the movable range of pixels.
第2の実施例では、図19に示すように、第2の領域を複数の部分領域に仮想的に分割し、画素の移動は、その画素が存在する部分領域内に制限している。それにより、第4の並べ替えは、部分領域毎に行うようにしている。 In the second embodiment, as shown in FIG. 19, the second region is virtually divided into a plurality of subregions, and the movement of the pixels is restricted to the subregions in which the pixels exist. As a result, the fourth rearrangement is performed for each partial area.
第2の領域を複数の部分領域に分割した場合、各部分領域の画素数は少なくなることから、移動すべき画素の移動先の探索は高速に行えるようになる。全ての部分領域で第4の並べ替えを行うとしても、第2の領域全体を対象にして第4の並べ替えを行う場合と比較して、処理は高速に行えるようになる。 When the second region is divided into a plurality of partial regions, the number of pixels in each partial region is reduced, so that the search for the destination of the pixel to be moved can be performed at high speed. Even if the fourth sorting is performed in all the partial areas, the processing can be performed at a higher speed than in the case where the fourth sorting is performed for the entire second area.
第2の領域を複数の部分領域に分割するのは、第3の並べ替えを行った場合、近似した色の画素が分散していたとしても、それらの画素は比較的に狭い領域内に存在することが多いためである。このことから、部分領域毎に第4の並べ替えを行っても、移動すべき画素を適切に移動させることができる。 The reason why the second region is divided into a plurality of subregions is that when the third rearrangement is performed, even if the pixels of similar colors are dispersed, those pixels are present in a relatively narrow region. This is because there are many things to do. From this, even if the fourth rearrangement is performed for each partial region, the pixels to be moved can be appropriately moved.
第2の領域を複数の部分領域に分割する場合、処理の更なる高速化の観点から、第4の並べ替えは、部分領域毎に必要性を判断し、その判断結果に応じて、個別に行うのが望ましい。第2の領域に対して第4の並べ替えを行うか否かの自動的な判断は、例えば部分領域毎に粒状度を算出し、算出した粒状度の平均値、或いは最大値などの統計量を更に算出し、算出した統計量により行うようにすれば良い。その判断は、ユーザに行わせても良い。 When the second region is divided into a plurality of subregions, the necessity of the fourth reordering is determined for each subregion from the viewpoint of further speeding up the processing, and each subregion is individually determined according to the determination result. It is desirable to do it. The automatic determination of whether or not to perform the fourth sort for the second region is, for example, calculating the granularity for each partial region and statistic such as the average value or the maximum value of the calculated granularity. Is further calculated, and the calculated statistic may be used. The judgment may be made by the user.
なお、第2の領域の分割は、ユーザによる設定に従って行わせることが考えられる。また、第2の領域全体の色の変化程度を確認し、その確認結果に応じて部分領域の大きさ、或いは形状などを自動的に設定して、第2の領域を分割するようにしても良い。 It is conceivable that the second area is divided according to the setting by the user. Further, even if the degree of color change of the entire second region is confirmed and the size or shape of the partial region is automatically set according to the confirmation result, the second region is divided. good.
図20は、第2の実施例に係る色見本画像の作成手順を示すフローチャートである。図20にフローチャートを示す作成手順も、色見本作成プログラム22aをCPU21が実行することで実現される。ここでも、図20には、ユーザが第1の画像を指定して色見本の作成を指示した後にCPU21が第2の領域内の画素の配置を決定するために実行する制御手順のみを示している。その図20では、RAM23を「メモリ」と表記している。 FIG. 20 is a flowchart showing a procedure for creating a color sample image according to the second embodiment. The creation procedure shown in the flowchart 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 that the CPU 21 executes to determine the placement of pixels in the second region after the user has specified a first image and instructed to create a color swatch. There is. In FIG. 20, the RAM 23 is referred to as a “memory”.
図20では、第1の実施例と同じ、或いはほぼ同じ内容の手順には、図18と同じ符号を付している。それにより、図20の説明では、図18には存在しない符号を付した手順に着目して行う。 In FIG. 20, the procedures having the same or almost the same contents as those in the first embodiment are designated by the same reference numerals as those in FIG. As a result, in the description of FIG. 20, the procedure with a reference numeral which does not exist in FIG. 18 will be focused on.
第2の実施例では、ステップS6の手順を実行した後、ステップS11に移行する。そのステップS11では、CPU21は、例えば図19に示すように、第2の領域を複数の部分領域に仮想的に分割する。 In the second embodiment, after executing the procedure of step S6, the process proceeds to step S11. In step S11, the CPU 21 virtually divides the second area into a plurality of partial areas, for example, as shown in FIG.
次に、CPU21は、部分領域毎に、粒状度を算出し、算出した粒状度のなかで最大となっている粒状度(最大粒状度)を抽出する(ステップS12)。 Next, the CPU 21 calculates the 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 or not the maximum granularity is equal to or less than a predetermined value (step S13). When the maximum granularity is equal to or less than a predetermined value, the determination in step S13 is yes, and the control procedure shown in FIG. 20 ends here.
一方、最大粒状度が所定値を越えていた場合、ステップS13の判定はnoとなり、ステップS14に移行する。 On the other hand, when the maximum granularity exceeds a 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 uses the self-organizing map to perform the fourth rearrangement in units of partial regions. The fourth rearrangement may be performed in units of partial regions, for example, by comparing a predetermined value different from the predetermined value referred to in step S13 with the granularity of each partial region. After performing the fourth rearrangement, the control procedure shown in FIG. 20 ends.
上記したように、本実施の形態によれば、色見本は、元図(第1の画像)の所定領域に含まれる全画素が抽象的に組織化されて第2の領域に再配置されることによって、実際の環境下における色の見えから受ける印象をより近似的に再現できる。 As described above, according to the present embodiment, in the color swatch, all the pixels included in the predetermined region of the original drawing (first image) are abstractly organized and rearranged in the second region. As a result, the impression received from the appearance of colors in an actual environment can be reproduced more approximately.
すなわち、画像処理装置2に搭載された色見本作成装置210は、元図となる第1の画像内の第1の領域に配置されている画素群を対象にして、明度を基に並べ替える第1の並べ替え、第2の領域内の行を想定して、行毎に、色相角を基に並べ替える第2の並べ替え、色を基に並べ替える第3の並べ替えを少なくとも行い、その結果、得られる画素群を第2の領域内に配置している。 That is, the color sample creating device 210 mounted on the image processing device 2 rearranges the pixel groups arranged in the first region in the first image which is the original drawing based on the brightness. Assuming the sorting of 1 and the rows in the second area, at least the second sorting of sorting based on the hue angle and the third sorting of sorting based on the color are performed for each row, and the sorting is performed. As a result, the obtained pixel group is arranged in the second region.
これにより、色見本作成装置210は、修整前画像が写真であっても、実際の写真を想定し、画素を抽象的に組織化するとともに、人間の視覚特性上、その組織化では望ましくない位置に配置される画素を最適な位置に配置した画素群を第2の領域(選択領域)に有する作成対象の色見本を作成することができる。そのため、色見本の印象は、修整前画像上に存在するオブジェクトを実際の環境下で見た場合のものに非常に近づけることができる。 As a result, even if the image before modification is a photograph, the color sample creating device 210 assumes an actual photograph and organizes the pixels in an abstract manner, and at the same time, the position which is not desirable in the organization due to human visual characteristics. It is possible to create a color sample to be created having a pixel group in which the pixels arranged in the above are arranged at the optimum positions in the second region (selected region). Therefore, the impression of the color swatch can be very close to that of the object existing on the unmodified image when viewed in an actual environment.
したがって、そのような色見本を用いて写真などの修整前画像(入力画像)の修整処理を行う場合には、人の視覚特性により沿った形の比較ができるようになる。この結果、修整前画像への修整は、実際の環境下における色の見えから受ける印象を、より近似的に再現するように行うことができる。 Therefore, when the unmodified image (input image) such as a photograph is modified using such a color sample, it becomes possible to compare the shapes according to the visual characteristics of a person. As a result, the modification to the pre-modification image can be performed so as to more closely reproduce the impression received from the appearance of the color in the actual environment.
また、このような色見本を用いることによって、画像処理システム100としては、ユーザは事例選択をより直観的に行えるようになる。それにより、操作上の利便性が向上し、ユーザは所望の修整画像をより容易、且つ迅速に得ることができるようになる。 Further, by using such a color sample, the image processing system 100 enables the user to more intuitively select a case. As a result, the convenience of operation is improved, and the user can obtain the desired modified image more easily and quickly.
なお、修整前画像として写真を例にとっているが、修整前画像は写真に限定されない。修整前画像上のオブジェクトの種類も特に限定されない。 Although a photograph is taken as an example of the image before modification, the image before modification is not limited to the photograph. The type of object on the unmodified image is also not particularly limited.
また、色見本は、矩形状でなくとも良い。第2の領域の形状も円に限定されない。 Further, the color sample does not have to be rectangular. The shape of the second region is also not limited to the circle.
以上説明したように、本発明は、実際の環境下における色の見えから受ける印象をより近似的に再現できるという効果を有し、色見本作成装置、色見本作成方法、色見本を用いる画像処理システムの全般に有用である。 As described above, the present invention has the effect of being able to more approximately reproduce the impression received from the appearance of colors in an actual environment, and has a color sample creating device, a color sample creating method, and image processing using a color sample. Useful for the entire 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 2 Sorting unit 223 3rd sorting unit 230 Image retouching device 231 Data acquisition unit 232 Image input unit 233 Case selection unit 234 Retouching unit 235 Data output unit
Claims (1)
前記第1の画素群を構成する各画素に対し、明度が高い順に並べ替える第1の並べ替えを行い、
前記第1の画素数と第2の画素数が一致しない場合には、各画素に対して明度、彩度、色相角で線形補間を行なうことにより、第2の画素数と同一の画素数となるように画素数調整を行い、
前記第1の並び替えと前記必要に応じた画素数調整後の各画素に対し、前記第2の領域内の行を想定して、前記行ごとに同じ明度の画素が連続する場合には、これらを彩度順に並び替える第2の並び替えを行い、
さらに前記第2の並び替えの後に前記各行ごとに明度と彩度がいずれも等しい画素が連続する場合にはこれらを色相角の順に並べ替える第3の並べ替えを行い、前記第2の領域内に配置されていることを特徴とする色見本。 A second pixel group consisting of a second pixel group generated from a first pixel group consisting of the first pixel number constituting the first region in the first image and not necessarily matching the first pixel group. A color swatch that includes a second region in which the pixels of
Each pixel constituting the first pixel group is rearranged in descending order of brightness, and the first rearrangement is performed.
When the number of the first pixel and the number of the second pixel do not match, the number of pixels is the same as the number of the second pixel by performing linear interpolation on each pixel with brightness, saturation, and hue angle. Adjust the number of pixels so that
When the rows in the second region are assumed for each pixel after the first rearrangement and the adjustment of the number of pixels as necessary, and the pixels having the same brightness are consecutive for each row, Perform a second sort to sort these in order of saturation,
Further, after the second rearrangement, when pixels having the same brightness and saturation are consecutive for each row, a third rearrangement is performed in which these are rearranged in the order of hue angle, and within the second region. A color swatch characterized by being placed in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019087513A 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 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019087513A 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 |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015075319A Division JP6544004B2 (en) | 2015-04-01 | 2015-04-01 | Color sample creating apparatus and color sample creating method, and image processing system using color sample |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019164151A JP2019164151A (en) | 2019-09-26 |
JP6791299B2 true JP6791299B2 (en) | 2020-11-25 |
Family
ID=68065962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019087513A Active 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 |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6791299B2 (en) |
-
2019
- 2019-05-07 JP JP2019087513A patent/JP6791299B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019164151A (en) | 2019-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3890211B2 (en) | Image processing method, image processing apparatus, program, and storage medium | |
JP4375781B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
EP0546773B1 (en) | Graphical user interface for editing a palette of colours | |
US20050063585A1 (en) | Image processing method and apparatus | |
US6885382B1 (en) | Image processing device, image processing system, output device, computer readable recording medium and image processing method | |
JP5973780B2 (en) | Color processing apparatus and method | |
US5717783A (en) | Color correction apparatus and method and color image processing system including the same | |
JPH11275377A (en) | Color data conversion method and apparatus | |
JP2005160086A (en) | Color space converting method, color adjusting device of color image, color adjusting method, and computer readable recording medium with program recorded thereon | |
US5487020A (en) | Refinement of color images using reference colors | |
JPH08186727A (en) | Device and method for processing picture | |
US9076369B2 (en) | Image modulation apparatus, method, and program | |
JP2004118442A (en) | Image color correction device, image color correction method, and image color correction program | |
US7327372B2 (en) | Color correcting parameter calculator, image color correcting device, method of calculating color correcting parameters, and program therefor | |
CN101088277A (en) | Method of electronic color image saturation processing | |
JP2012513722A (en) | Ridge-based color gamut mapping | |
JPH11196285A (en) | Image processing method, device and recording medium | |
JP6791299B2 (en) | Color swatches, color swatch creation device and color swatch creation method, and image processing system using color swatches | |
JP6402480B2 (en) | Color sample, device and method for creating the color sample, and image processing system using the color sample | |
JP5824423B2 (en) | Illumination light color estimation device, illumination light color estimation method, and illumination light color estimation program | |
JP3687193B2 (en) | Image processing apparatus and image processing method | |
US8743436B2 (en) | Color information processing apparatus and recording medium | |
KR101958263B1 (en) | The control method for VR contents and UI templates | |
JP6544004B2 (en) | Color sample creating apparatus and color sample creating method, and image processing system using color sample | |
WO2024195647A1 (en) | Information processing apparatus and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190507 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190613 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200324 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200525 |
|
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: 20201006 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20201019 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6791299 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |