JP2019208125A - Image editing device, image editing method, and image editing program - Google Patents

Image editing device, image editing method, and image editing program Download PDF

Info

Publication number
JP2019208125A
JP2019208125A JP2018102447A JP2018102447A JP2019208125A JP 2019208125 A JP2019208125 A JP 2019208125A JP 2018102447 A JP2018102447 A JP 2018102447A JP 2018102447 A JP2018102447 A JP 2018102447A JP 2019208125 A JP2019208125 A JP 2019208125A
Authority
JP
Japan
Prior art keywords
image
reflectance
color
shadow
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018102447A
Other languages
Japanese (ja)
Inventor
泰 山口
Yasushi Yamaguchi
泰 山口
駿 岩佐
Shun Iwasa
駿 岩佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Tokyo NUC
Original Assignee
University of Tokyo NUC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Tokyo NUC filed Critical University of Tokyo NUC
Priority to JP2018102447A priority Critical patent/JP2019208125A/en
Publication of JP2019208125A publication Critical patent/JP2019208125A/en
Pending legal-status Critical Current

Links

Abstract

To provide an image editing device, an image editing method, and an image editing program capable of more flexibly editing a color of an image.SOLUTION: The image editing device includes: a decomposition unit for decomposing an image obtained by photographing an object into a reflectance image representing a reflectance of the object and a shadow image representing a shadow of the object; a selection unit for selecting a plurality of representative colors on the basis of the number of pixels colors included in the reflectance image or the number of pixels of a similar color of the colors; a first generation unit for generating a first change image in which one of the colors included in the reflectance image is changed from the reflectance image, on the basis of the change of any of the representative colors to a different color; and a second generation unit for generating a composite image by composing the first change image and the shadow image.SELECTED DRAWING: Figure 1

Description

本発明は、画像編集装置、画像編集方法及び画像編集プログラムに関する。   The present invention relates to an image editing apparatus, an image editing method, and an image editing program.

従来、画像の領域の指定を受け付けて、指定された領域の色を変更することで画像を編集する画像編集装置が用いられている。領域の指定は自由に行うことができ、指定された領域の色の変更も自由に行うことができることがある。   2. Description of the Related Art Conventionally, an image editing apparatus that accepts designation of an image area and edits the image by changing the color of the designated area has been used. The area can be freely specified, and the color of the specified area can be freely changed.

下記非特許文献1には、k−means法を応用して画像を代表する色である「パレットカラー」を抽出し、パレットカラーを変更することにより画像全体の色の編集を行う技術が開示されている。ここで、パレットカラーの変更は、パレットカラーの輝度の順序を変えないように行われる。これにより、たとえば影の部分の色を明るい色に変更した場合に、影の部分が周囲より明るくなって不自然な画像となることが防止される。   Non-Patent Document 1 below discloses a technique for editing a color of an entire image by extracting a “palette color” that is a color representing an image by applying the k-means method and changing the palette color. ing. Here, the palette color is changed so as not to change the order of brightness of the palette colors. As a result, for example, when the color of the shadow portion is changed to a bright color, the shadow portion is prevented from becoming brighter than the surroundings and resulting in an unnatural image.

Huiwen Chang, Ohad Fried, Yiming Liu, Stephen DiVerdi, and Adam Finkel-stein, "Palette-based Photo Recoloring," ACM Transactions on Graphics (Proc. SIGGRAPH) 34(4), July 2015.Huiwen Chang, Ohad Fried, Yiming Liu, Stephen DiVerdi, and Adam Finkel-stein, "Palette-based Photo Recoloring," ACM Transactions on Graphics (Proc. SIGGRAPH) 34 (4), July 2015.

非特許文献1に記載の技術によって、画像の領域の指定が不要となり、画像を代表する色が抽出されることで、画像編集に不慣れな者であっても容易に画像の編集を行うことができるようになる。しかしながら、非特許文献1に記載の技術のように、パレットカラーの輝度の順序に制限が存在すると、影ではなく物体自体の暗い色を明るい色に変更した場合に、変更前から明るかった色がさらに明るくなることとなり、画像に白飛びが発生することがある。逆に物体自体が明るい色を暗い色に変更した場合に、変更前から暗かった色がさらに暗くなることとなり、画像に黒つぶれが発生することがある。そのため、非特許文献1に記載の技術では、画像の色の編集に対して実質的に制限があった。   By the technique described in Non-Patent Document 1, it is not necessary to specify an image area, and a color representing the image is extracted, so that even a person unfamiliar with image editing can easily edit the image. become able to. However, as in the technique described in Non-Patent Document 1, if there is a limitation in the order of the brightness of the palette colors, when the dark color of the object itself instead of the shadow is changed to a bright color, the bright color from before the change is changed. It becomes brighter and whiteout may occur in the image. Conversely, when the object itself is changed from a bright color to a dark color, the dark color before the change becomes darker, and the image may be blacked out. For this reason, the technique described in Non-Patent Document 1 has substantially limited editing of image colors.

そこで、本発明は、画像の色をより柔軟に編集することができる画像編集装置、画像編集方法及び画像編集プログラムを提供する。   Therefore, the present invention provides an image editing apparatus, an image editing method, and an image editing program that can edit the color of an image more flexibly.

本発明の一態様に係る画像編集装置は、対象を撮影した画像を、対象の反射率を表す反射率画像と、対象の陰影を表す陰影画像とに分解する分解部と、反射率画像に含まれる複数の色の画素数又は複数の色の類似色の画素数に基づいて、複数の代表色を選択する選択部と、複数の代表色のいずれかを異なる色に変更したことに基づいて、反射率画像から、反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成する第1生成部と、第1変更画像と、陰影画像とを合成して合成画像を生成する第2生成部と、を備える。   An image editing apparatus according to an aspect of the present invention includes an image obtained by photographing an object, a decomposition unit that decomposes the image into a reflectance image that represents the reflectance of the object and a shadow image that represents the shadow of the object, and the reflectance image. On the basis of the number of pixels of a plurality of colors or the number of pixels of similar colors of a plurality of colors, based on the selection unit for selecting a plurality of representative colors and changing one of the plurality of representative colors to a different color, From the reflectance image, a first generation unit that generates a first modified image in which any one of a plurality of colors included in the reflectance image is modified, a first modified image, and a shadow image are combined to generate a composite image A second generating unit.

この態様によれば、画像を反射率画像と陰影画像に分解し、反射率画像の代表色の変更に基づいて第1変更画像を生成し、第1変更画像と陰影画像を合成して合成画像を生成することで、陰影と独立して画像の色を編集することができ、画像の色をより柔軟に編集することができる。例えば、変更前から明るかった色をさらに明るく変更したとしても、画像に白飛びが発生することが防止される。また、変更前に明るかった色を暗く変更したとしても、画像に黒つぶれが発生することが防止される。   According to this aspect, the image is decomposed into the reflectance image and the shadow image, the first modified image is generated based on the change in the representative color of the reflectance image, and the first modified image and the shadow image are synthesized to form the composite image. Thus, the color of the image can be edited independently of the shadow, and the color of the image can be edited more flexibly. For example, even if the bright color before the change is changed to brighter, it is possible to prevent whiteout from occurring in the image. Further, even if the bright color before the change is changed to dark, it is possible to prevent blackout from occurring in the image.

上記態様において、複数の代表色の数の増加を抑制しつつ、複数の代表色によって反射率画像に含まれる複数の色が代表されるように、複数の代表色の数を決定する決定部をさらに備えてもよい。   In the above aspect, a determination unit that determines the number of the plurality of representative colors so that the plurality of colors included in the reflectance image is represented by the plurality of representative colors while suppressing an increase in the number of the plurality of representative colors. Further, it may be provided.

反射率画像の複数の代表色の数をより多くすると、複数の代表色によって反射率画像に含まれる複数の色をより良く代表することができるようになり、結果的に微妙な調整が可能となるが、画像の色のバランスをとることが難しくなり、編集時間を要するようになる。一方、反射率画像の複数の代表色の数をより少なくすると、画像の色の編集時間が短くなるが、複数の代表色によって反射率画像に含まれる複数の色をより良く代表することが難しくなる。この態様によれば、決定部により、複数の代表色の数が適切に決定され、不慣れな者であっても容易に画像の編集を行うことができるようになる。   When the number of multiple representative colors in the reflectance image is increased, the multiple representative colors can better represent the multiple colors included in the reflectance image, resulting in fine adjustments. However, it becomes difficult to balance the colors of the images, and editing time is required. On the other hand, if the number of the plurality of representative colors of the reflectance image is reduced, the editing time of the color of the image is shortened. However, it is difficult to better represent the plurality of colors included in the reflectance image by the plurality of representative colors. Become. According to this aspect, the number of the representative colors is appropriately determined by the determining unit, and even an inexperienced person can easily edit the image.

上記態様において、第1生成部は、複数の代表色を互いに独立に変更したことに基づいて、反射率画像から第1変更画像を生成してもよい。   In the above aspect, the first generation unit may generate the first changed image from the reflectance image based on changing the plurality of representative colors independently of each other.

この態様によれば、反射率画像の複数の代表色を互いに独立に変更したことに基づいて第1変更画像を生成することで、例えば複数の代表色の輝度の順序を保つように代表色を変更する場合と比較して、画像の色をより柔軟に編集することができる。   According to this aspect, by generating the first changed image based on the plurality of representative colors of the reflectance image being changed independently of each other, for example, the representative colors are set so as to maintain the order of the luminances of the plurality of representative colors. Compared with the case of changing, the color of the image can be edited more flexibly.

上記態様において、第1生成部は、陰影画像の色の変更に基づいて、陰影画像から、陰影画像の色を変更した第2変更画像を生成し、第2生成部は、第1変更画像と、第2変更画像とを合成して、合成画像を生成してもよい。   In the above aspect, the first generation unit generates a second change image in which the color of the shadow image is changed from the shadow image based on the change in the color of the shadow image, and the second generation unit includes the first change image and The second changed image may be combined to generate a combined image.

この態様によれば、陰影画像の色の変更に基づいて第2変更画像を生成し、第1変更画像と第2変更画像を合成して合成画像を生成することで、画像の一部の色を変更するだけでなく、画像全体の明るさや色を変更して、照明の変更を再現することができる。   According to this aspect, the second changed image is generated based on the change in the color of the shadow image, and the combined image is generated by combining the first changed image and the second changed image, so that the color of a part of the image It is possible to reproduce the change in lighting by changing the brightness and color of the entire image.

上記態様において、反射率画像、陰影画像及び画像と、第1変更画像、第2変更画像及び合成画像と、を比較可能に表示する表示部をさらに備えてもよい。   The said aspect WHEREIN: You may further provide the display part which displays a reflectance image, a shadow image, and an image, a 1st change image, a 2nd change image, and a synthesized image so that comparison is possible.

この態様によれば、色を変更する前後の画像を比較可能に表示することで、どのような変更を行ったかを一目で把握でき、画像の色の編集がより円滑となるように支援することができる。   According to this aspect, it is possible to grasp at a glance what kind of change has been made by displaying the images before and after the color change in a comparable manner, and assisting in the smooth editing of the color of the image. Can do.

上記態様において、表示部は、少なくとも第1生成部により第1変更画像の生成が行われた場合に、第1変更画像及び合成画像を更新して表示し、第2変更画像の生成が行われた場合に、前記第2変更画像及び前記合成画像を更新して表示してもよい。   In the above aspect, the display unit updates and displays the first modified image and the composite image when the first modified image is generated by at least the first generating unit, and the second modified image is generated. In this case, the second modified image and the composite image may be updated and displayed.

この態様によれば、反射率画像の代表色が変更された場合に、その変更に連動するように第1変更画像及び合成画像が更新されて表示され、代表色の変更により画像がどのように変化するかを一目で把握できる。また、陰影画像の色が変更された場合に、その変更に連動するように第2変更画像及び合成画像が更新されて表示され、陰影画像の変更により画像がどのように変化するかを一目で把握できる。これにより、画像の色の編集がより円滑となるように支援することができる。   According to this aspect, when the representative color of the reflectance image is changed, the first changed image and the composite image are updated and displayed in conjunction with the change, and how the image is changed by changing the representative color. You can see at a glance whether it changes. In addition, when the color of the shadow image is changed, the second changed image and the composite image are updated and displayed in conjunction with the change, and it is possible to see at a glance how the image changes due to the change of the shadow image. I can grasp. Thereby, it can assist so that the edit of the color of an image may become smoother.

本発明の他の態様に係る画像編集方法は、対象を撮影した画像を、対象の反射率を表す反射率画像と、対象の陰影を表す陰影画像とに分解することと、反射率画像に含まれる複数の色の画素数又は複数の色の類似色の画素数に基づいて、複数の代表色を選択することと、複数の代表色のいずれかを異なる色に変更したことに基づいて、反射率画像から、反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成することと、第1変更画像と、陰影画像とを合成して合成画像を生成することと、を含む。   An image editing method according to another aspect of the present invention includes an image obtained by photographing an object, decomposed into a reflectance image representing the reflectance of the object and a shadow image representing the shadow of the object, and included in the reflectance image. Based on the selection of a plurality of representative colors based on the number of pixels of a plurality of colors or the number of similar colors of a plurality of colors, and the reflection based on changing one of the plurality of representative colors to a different color. Generating a first changed image in which any one of a plurality of colors included in the reflectance image is changed from the rate image, synthesizing the first changed image and the shadow image, and generating a synthesized image; including.

この態様によれば、画像を反射率画像と陰影画像に分解し、反射率画像の代表色の変更に基づいて第1変更画像を生成し、第1変更画像と陰影画像を合成して合成画像を生成することで、陰影と独立して画像の色を編集することができ、画像の色をより柔軟に編集することができる。   According to this aspect, the image is decomposed into the reflectance image and the shadow image, the first modified image is generated based on the change in the representative color of the reflectance image, and the first modified image and the shadow image are synthesized to form the composite image. Thus, the color of the image can be edited independently of the shadow, and the color of the image can be edited more flexibly.

本発明の他の態様に係る画像編集プログラムは、画像編集装置に備えられたコンピュータを、対象を撮影した画像を、対象の反射率を表す反射率画像と、対象の陰影を表す陰影画像とに分解する分解部、反射率画像に含まれる複数の色の画素数又は複数の色の類似色の画素数に基づいて、複数の代表色を選択する選択部、複数の代表色のいずれかを異なる色に変更したことに基づいて、反射率画像から、反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成する第1生成部、及び第1変更画像と、陰影画像とを合成して、合成画像を生成する第2生成部、として機能させる。   An image editing program according to another aspect of the present invention provides a computer provided in an image editing apparatus to convert an image obtained by capturing an object into a reflectance image representing the reflectance of the object and a shadow image representing the shadow of the object. A separation unit for separation, a selection unit for selecting a plurality of representative colors based on the number of pixels of a plurality of colors included in the reflectance image, or the number of similar colors of the plurality of colors, or a plurality of representative colors are different. A first generation unit that generates a first changed image in which any one of a plurality of colors included in the reflectance image is changed from the reflectance image based on the change to the color, a first changed image, and a shadow image And function as a second generation unit that generates a composite image.

この態様によれば、画像を反射率画像と陰影画像に分解し、反射率画像の代表色の変更に基づいて第1変更画像を生成し、第1変更画像と陰影画像を合成して合成画像を生成することで、陰影と独立して画像の色を編集することができ、画像の色をより柔軟に編集することができる。   According to this aspect, the image is decomposed into the reflectance image and the shadow image, the first modified image is generated based on the change in the representative color of the reflectance image, and the first modified image and the shadow image are synthesized to form the composite image. Thus, the color of the image can be edited independently of the shadow, and the color of the image can be edited more flexibly.

本発明によれば、画像の色をより柔軟に編集することができる画像編集装置、画像編集方法及び画像編集プログラムが提供される。   According to the present invention, an image editing apparatus, an image editing method, and an image editing program capable of editing the color of an image more flexibly are provided.

本発明の実施形態に係る画像編集装置の機能ブロックを示す図である。It is a figure which shows the functional block of the image editing apparatus which concerns on embodiment of this invention. 本実施形態に係る画像編集装置の物理的構成を示す図である。It is a figure which shows the physical structure of the image editing apparatus which concerns on this embodiment. 本発明の実施形態に係る画像編集装置により編集される画像の一例である。It is an example of the image edited by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により画像から分解された反射率画像の一例である。It is an example of the reflectance image decomposed | disassembled from the image by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により画像から分解された陰影画像の一例である。It is an example of the shadow image decomposed | disassembled from the image by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により生成された第1変更画像の一例である。It is an example of the 1st change image produced | generated by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により生成された第2変更画像の一例である。It is an example of the 2nd change image produced | generated by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により生成された合成画像の一例である。It is an example of the synthesized image produced | generated by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により実行される画像編集処理の第1例のフローチャートである。It is a flowchart of the 1st example of the image editing process performed by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により表示される画像編集画面の一例である。It is an example of the image edit screen displayed by the image editing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像編集装置により実行される画像編集処理の第2例のフローチャートである。It is a flowchart of the 2nd example of the image editing process performed by the image editing apparatus which concerns on embodiment of this invention. 従来例の画像編集装置により編集される画像の一例である。It is an example of the image edited by the image editing apparatus of a prior art example. 従来例の画像編集装置により編集された画像の一例である。It is an example of the image edited with the image editing apparatus of the prior art example.

以下、本発明の一側面に係る実施の形態(以下、「本実施形態」と表記する。)を、図面に基づいて説明する。なお、各図において、同一の符号を付したものは、同一又は同様の構成を有する。   Hereinafter, an embodiment according to an aspect of the present invention (hereinafter referred to as “the present embodiment”) will be described with reference to the drawings. In addition, in each figure, what attached | subjected the same code | symbol has the same or similar structure.

はじめに、従来例の画像編集装置による画像の色の編集と、その課題について説明する。図12は、従来例の画像編集装置により編集される画像IMG1の一例である。画像IMG1は、黄土色のベッド、ベッドに置かれた2つの茶色のクッション、灰色のカーペット及び朱色のソファといった対象が撮影された画像である。   First, the editing of the color of an image by the conventional image editing apparatus and the problem will be described. FIG. 12 shows an example of an image IMG1 edited by the conventional image editing apparatus. The image IMG1 is an image obtained by photographing objects such as an ocher bed, two brown cushions placed on the bed, a gray carpet, and a vermilion sofa.

従来例の画像編集装置は、画像IMG1の画素の色を、その色が用いられている回数に応じて重み付けしてLab空間等の色空間にプロットし、プロットした分布を例えば16×16×16に離散化する。そして、最も重みの大きい点を第1の代表色として選択する。その後、色空間において第1の代表色と距離が近い点について重みを減ずる処理を行った後、2番目に重みの大きい点を第2の代表色として選択する。従来例の画像編集装置では、そのようにして5つの代表色を選択している。   The image editing apparatus of the conventional example weights the color of the pixel of the image IMG1 according to the number of times the color is used and plots it in a color space such as Lab space, and the plotted distribution is, for example, 16 × 16 × 16. To discretize. Then, the point having the largest weight is selected as the first representative color. Then, after performing a process of reducing the weight for a point that is close to the first representative color in the color space, the point having the second largest weight is selected as the second representative color. In the conventional image editing apparatus, five representative colors are selected in this way.

従来例の画像編集装置によって、画像IMG1から抽出された代表色は、輝度が高い順に、黄土色C1、灰色C2、濃い灰色C3、朱色C4及び茶色C5である。ここで、黄土色C1は、ベッドの色であり、灰色C2はカーペットの色であり、朱色C4はソファの色であり、茶色C5はクッションの色である。   The representative colors extracted from the image IMG1 by the image editing apparatus of the conventional example are ocher color C1, gray C2, dark gray C3, vermilion C4, and brown C5 in descending order of luminance. Here, the ocher C1 is the color of the bed, the gray C2 is the color of the carpet, the vermillion C4 is the color of the sofa, and the brown C5 is the color of the cushion.

ここで、濃い灰色C3は、カーペットのうち影が重なった部分の色である。このように、従来例の画像編集装置では、同一の対象の明るい部分の色と暗い部分の色を、異なる代表色として選択する場合がある。したがって、濃い灰色C3を明るくする際には同時に灰色C2や黄土色C1も明るくする必要があり、逆に灰色C2を暗くする際には濃い灰色C3、朱色C4、茶色C5をそれ以上に暗くしないと不都合が生じる。   Here, dark gray C3 is the color of the part of the carpet where the shadows overlap. As described above, in the image editing apparatus of the conventional example, the bright portion color and the dark portion color of the same target may be selected as different representative colors. Therefore, when lightening the dark gray C3, it is necessary to lighten the gray C2 and the ocher C1 at the same time. Conversely, when darkening the gray C2, the dark gray C3, vermilion C4, and brown C5 are not darkened any more. And inconvenience arises.

従来例の画像編集装置は、代表色である黄土色C1、灰色C2、濃い灰色C3、朱色C4及び茶色C5いずれかの変更を受け付けて、これらの色の輝度の順序を保つように、全ての代表色の変更を行う。ここでは、朱色C4を白色に変更する例について説明する。   The image editing apparatus of the conventional example accepts a change of any one of the representative colors of ocher C1, gray C2, dark gray C3, vermillion C4, and brown C5, and keeps the order of luminance of these colors so that all Change the representative color. Here, an example in which vermilion C4 is changed to white will be described.

図13は、従来例の画像編集装置により編集された画像IMG11の一例である。従来例の画像編集装置は、朱色C4を白色C14に変更する指示を受け付けると、朱色C4より輝度の高い色である黄土色C1、灰色C2及び濃い灰色C3について、白色C14よりも輝度が高くなるように、黄土色C1を明るい黄色C11に変更し、灰色C2を明るいクリーム色C12に変更し、濃い灰色C3をクリーム色C13に変更する。なお、茶色C5は、そのまま変更されない。   FIG. 13 shows an example of an image IMG11 edited by a conventional image editing apparatus. When receiving an instruction to change the vermilion C4 to the white C14, the image editing apparatus of the conventional example has higher luminance than the white C14 for the ocher C1, gray C2, and dark gray C3, which are brighter than the vermilion C4. Thus, the ocher color C1 is changed to the bright yellow color C11, the gray C2 is changed to the bright cream color C12, and the dark gray C3 is changed to the cream color C13. The brown C5 is not changed as it is.

従来例の画像編集装置により編集された画像IMG11では、代表色として選択された黄土色C1、灰色C2及び濃い灰色C3が黄色C11、明るいクリーム色C12及びクリーム色C13に変更されたことで、白飛びが発生している。また、朱色C4を白色C14に変更したことで、ソファの一部の色は白色C14に変更されているが、影の部分は茶色C5に近い暗い朱色のまま変更されていない。   In the image IMG11 edited by the image editing apparatus of the conventional example, the ocher color C1, gray C2, and dark gray C3 selected as the representative colors are changed to yellow C11, light cream color C12, and cream color C13. Flying has occurred. In addition, by changing the vermilion color C4 to white C14, a part of the color of the sofa is changed to white C14, but the shadow portion remains dark vermilion close to brown C5.

このように、従来例の画像編集装置は、複数の代表色の輝度の順序を保つように代表色の変更を行うため、輝度の低い色を輝度の高い色に変更した場合に、変更前から輝度が高かった色がさらに明るくなることとなり、画像に白飛びが発生することがある。また、明るい色を暗い色に変更した場合に、変更前から暗かった色がさらに暗くなることとなり、画像に黒つぶれが発生することがある。そのため、従来例の画像編集装置では、画像の色の編集に対して実質的に制限があった。   As described above, the image editing apparatus of the conventional example changes the representative color so that the order of the luminances of the plurality of representative colors is maintained. A color with high brightness will become brighter, and whiteout may occur in the image. In addition, when a bright color is changed to a dark color, a dark color before the change is further darkened, and blackout may occur in the image. For this reason, the image editing apparatus of the conventional example is substantially limited in editing the color of the image.

図1は、本発明の実施形態に係る画像編集装置10の機能ブロックを示す図である。画像編集装置10は、分解部11、選択部12、第1生成部13、第2生成部14、決定部15、記憶部16、入力部10e及び表示部10fを備える。   FIG. 1 is a diagram showing functional blocks of an image editing apparatus 10 according to an embodiment of the present invention. The image editing apparatus 10 includes a decomposition unit 11, a selection unit 12, a first generation unit 13, a second generation unit 14, a determination unit 15, a storage unit 16, an input unit 10e, and a display unit 10f.

分解部11は、対象を撮影した画像を、対象の反射率を表す反射率画像と、対象の陰影を表す陰影画像とに分解する。分解部11は、既存のアルゴリズムに基づいて、画像を反射率画像と陰影画像とに分解してよい。分解部11は、例えば、S.Bell、外2名、”Intrinsic Images in the Wild”、ACM Transactions on Graphics (SIGGRAPH 2014)に記載された技術を用いて、画像を反射率画像(reflectance image)と陰影画像(shading image)とに分解してよい。分解部11による画像の分解は、RGB値を有する画素毎に行われてよく、画像のRGB値Ii(iはR,G,Bのいずれかを表す)は、反射率画像のRGB値Riと、陰影画像のRGB値Siとの積Ii=Ri×Siに分解されてよい。ただし、陰影画像は、グレースケール画像であってよい。 The decomposition unit 11 decomposes an image obtained by capturing an object into a reflectance image that represents the reflectance of the object and a shadow image that represents the shadow of the object. The decomposition unit 11 may decompose the image into a reflectance image and a shadow image based on an existing algorithm. The decomposition unit 11 is, for example, S.I. Bell, two others, “Intrinsic Images in the Wild”, using the techniques described in ACM Transactions on Graphics (SIGGRAPH 2014), splitting the image into a reflectance image and a shading image You can do it. The decomposition of the image by the decomposition unit 11 may be performed for each pixel having an RGB value, and the RGB value I i (i represents any of R, G, and B) of the image is the RGB value R of the reflectance image. and i, may be decomposed into a product I i = R i × S i between the RGB value S i of the shaded image. However, the shaded image may be a grayscale image.

選択部12は、反射率画像に含まれる複数の色の画素数又は反射率画像に含まれる複数の色の類似色の画素数に基づいて、複数の代表色を選択する。選択部12は、反射率画像の画素の色を、その色が用いられている画素数に応じて重み付けしてLab空間等の色空間にプロットし、プロットした分布を例えば16×16×16に離散化して、最も重みの大きい点を第1の代表色として選択してよい。また、「類似色」は、色空間において反射率画像に含まれる複数の色の近傍にある色であってよく、選択部12は、16×16×16に離散化した分布を平均化して、平均化した後に最も重みの大きい「類似色」を、第1の代表色として選択してよい。また、色空間において第1の代表色と距離が近い点について重みを減ずる処理を行った後、2番目に重みの大きい点を第2の代表色として選択してよい。選択部12により選択される複数の代表色の数は、決定部15により決定されてよい。   The selection unit 12 selects a plurality of representative colors based on the number of pixels of a plurality of colors included in the reflectance image or the number of pixels of a similar color of the plurality of colors included in the reflectance image. The selection unit 12 weights the color of the pixel of the reflectance image according to the number of pixels in which the color is used and plots the color in a color space such as Lab space, and the plotted distribution is, for example, 16 × 16 × 16. It is possible to discretize and select the point with the largest weight as the first representative color. Further, the “similar color” may be a color in the vicinity of a plurality of colors included in the reflectance image in the color space, and the selection unit 12 averages the distribution that is discretized into 16 × 16 × 16, The “similar color” having the largest weight after averaging may be selected as the first representative color. In addition, after performing the process of reducing the weight for a point that is close to the first representative color in the color space, the point having the second largest weight may be selected as the second representative color. The number of representative colors selected by the selection unit 12 may be determined by the determination unit 15.

第1生成部13は、複数の代表色のいずれかを異なる色に変更したことに基づいて、反射率画像から、反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成する。第1生成部13は、例えば、複数の代表色のいずれかを異なる色に変更する指示を入力部10eにより受け付けて、反射率画像に含まれる複数の色のうち指示された色が変更されるように、反射率画像から第1変更画像を生成してよい。   The first generation unit 13 generates a first changed image obtained by changing any of the plurality of colors included in the reflectance image from the reflectance image based on changing any of the plurality of representative colors to a different color. Generate. For example, the first generation unit 13 receives an instruction to change any of the plurality of representative colors to a different color by the input unit 10e, and changes the instructed color among the plurality of colors included in the reflectance image. As described above, the first modified image may be generated from the reflectance image.

第2生成部14は、第1変更画像と、陰影画像とを合成して合成画像を生成する。第2生成部14は、第1変更画像のRGB値R1i(iはR,G,Bのいずれかを表す)と、陰影画像のRGB値Siとの積によって、合成画像のRGB値I1i=R1i×Siを算出してよい。 The second generation unit 14 combines the first changed image and the shadow image to generate a combined image. The second generation unit 14 calculates the RGB value I1 of the composite image by the product of the RGB value R1 i (i represents any of R, G, and B) of the first changed image and the RGB value S i of the shadow image. i = R1 i × S i may be calculated.

このように、画像を反射率画像と陰影画像に分解し、反射率画像の代表色の変更に基づいて第1変更画像を生成し、第1変更画像と陰影画像を合成して合成画像を生成することで、陰影と独立して画像内の物体の色を編集することができ、画像の色をより柔軟に編集することができる。例えば、変更前から暗かった色をさらに明るく変更したとしても、画像に白飛びが発生することが防止される。また、変更前に明るかった色を暗く変更したとしても、画像に黒つぶれが発生することが防止される。   In this way, the image is decomposed into a reflectance image and a shadow image, a first modified image is generated based on a change in the representative color of the reflectance image, and a composite image is generated by combining the first modified image and the shadow image. Thus, the color of the object in the image can be edited independently of the shadow, and the color of the image can be edited more flexibly. For example, even if the color that was dark before the change is changed to be brighter, whiteout is prevented from occurring in the image. Further, even if the bright color before the change is changed to dark, it is possible to prevent blackout from occurring in the image.

決定部15は、複数の代表色の数の増加を抑制しつつ、複数の代表色によって反射率画像に含まれる複数の色が代表されるように、複数の代表色の数を決定する。決定部15は、例えば、BIC(Bayesian Information Criterion)が最小となるように、複数の代表色の数を決定してよい。すなわち、複数の代表色の数をkと表し、反射率画像の画素数×3(RGBの3色)をnと表し、複数の代表色によって反射率画像を表すモデルの尤度をLと表すとき、決定部15は、BIC=k×ln(n)−2×ln(L)が最小となるように複数の代表色の数を決定してよい。   The determination unit 15 determines the number of representative colors such that the plurality of colors included in the reflectance image are represented by the plurality of representative colors while suppressing an increase in the number of representative colors. For example, the determination unit 15 may determine the number of representative colors so that the BIC (Bayesian Information Criterion) is minimized. That is, the number of a plurality of representative colors is represented as k, the number of pixels of the reflectance image × 3 (three colors of RGB) is represented as n, and the likelihood of a model representing the reflectance image with a plurality of representative colors is represented as L. At this time, the determination unit 15 may determine the number of representative colors such that BIC = k × ln (n) −2 × ln (L) is minimized.

反射率画像の複数の代表色の数をより多くすると、複数の代表色によって反射率画像に含まれる複数の色をより良く代表することができるようになり、結果的に微妙な調整が可能となるが、画像の色のバランスをとることが難しくなり、編集時間を要するようになる。一方、反射率画像の複数の代表色の数をより少なくすると、画像の色の編集時間が短くなるが、複数の代表色によって反射率画像に含まれる複数の色をより良く代表することが難しくなる。決定部15により、複数の代表色の数が適切に決定され、不慣れな者であっても容易に画像の編集を行うことができるようになる。   When the number of multiple representative colors in the reflectance image is increased, the multiple representative colors can better represent the multiple colors included in the reflectance image, resulting in fine adjustments. However, it becomes difficult to balance the colors of the images, and editing time is required. On the other hand, if the number of the plurality of representative colors of the reflectance image is reduced, the editing time of the color of the image is shortened. However, it is difficult to better represent the plurality of colors included in the reflectance image by the plurality of representative colors. Become. The determining unit 15 appropriately determines the number of representative colors, and even an unaccustomed person can easily edit an image.

なお、選択部12及び決定部15は、いわゆるx−means法を用いて、反射率画像に含まれる複数の色をクラスタリングして、BICを用いてクラスタリング数を決定し、複数の代表色を選択してよい。   Note that the selection unit 12 and the determination unit 15 use a so-called x-means method to cluster a plurality of colors included in the reflectance image, determine a clustering number using a BIC, and select a plurality of representative colors. You can do it.

第1生成部13は、複数の代表色を互いに独立に変更したことに基づいて、反射率画像から第1変更画像を生成してもよい。第1生成部13は、例えば、複数の代表色のいずれかを異なる色に変更する指示を入力部10eにより受け付けて、反射率画像に含まれる複数の色のうち変更に係る代表色に関連する色のみが変更されるように、反射率画像から第1変更画像を生成してよい。   The first generation unit 13 may generate the first changed image from the reflectance image based on changing the plurality of representative colors independently of each other. For example, the first generation unit 13 receives an instruction to change any one of the plurality of representative colors to a different color by the input unit 10e, and relates to the representative color related to the change among the plurality of colors included in the reflectance image. The first changed image may be generated from the reflectance image so that only the color is changed.

反射率画像の複数の代表色を互いに独立に変更したことに基づいて第1変更画像を生成することで、例えば複数の代表色の輝度の順序を保つように代表色を変更する場合と比較して、画像の色をより柔軟に編集することができる。   Compared with the case where the representative color is changed to maintain the order of the luminance of the representative colors, for example, by generating the first changed image based on the fact that the representative colors of the reflectance image are changed independently of each other. Thus, the color of the image can be edited more flexibly.

第1生成部13は、陰影画像の色の変更に基づいて、陰影画像から、陰影画像の色相、彩度及び明度のうち少なくともいずれかを変更した第2変更画像を生成してもよい。そして、第2生成部14は、第1変更画像と、第2変更画像とを合成して、合成画像を生成してもよい。   The first generation unit 13 may generate a second changed image in which at least one of hue, saturation, and brightness of the shadow image is changed from the shadow image based on the change of the color of the shadow image. Then, the second generation unit 14 may generate a combined image by combining the first changed image and the second changed image.

陰影画像の色の変更に基づいて第2変更画像を生成し、第1変更画像と第2変更画像を合成して合成画像を生成することで、画像の一部の色を変更するだけでなく、画像全体の明るさや色を変更して、照明の変更を再現することができる。   A second changed image is generated based on the change in the color of the shaded image, and the first changed image and the second changed image are combined to generate a combined image, thereby not only changing the color of a part of the image. The lighting change can be reproduced by changing the brightness and color of the entire image.

図2は、本実施形態に係る画像編集装置10の物理的構成を示す図である。画像編集装置10は、演算部に相当するCPU(Central Processing Unit)10aと、記憶部に相当するRAM(Random Access Memory)10bと、記憶部に相当するROM(Read only Memory)10cと、通信部10dと、入力部10eと、表示部10fと、測定部10gと、を有する。これらの各構成は、バスを介して相互にデータ送受信可能に接続される。なお、本例では画像編集装置10が一台のコンピュータで構成される場合について説明するが、画像編集装置10は、複数のコンピュータが組み合わされて実現されてもよい。また、図2で示す構成は一例であり、画像編集装置10はこれら以外の構成を有してもよいし、これらの構成のうち一部を有さなくてもよい。   FIG. 2 is a diagram illustrating a physical configuration of the image editing apparatus 10 according to the present embodiment. The image editing apparatus 10 includes a CPU (Central Processing Unit) 10a corresponding to a calculation unit, a RAM (Random Access Memory) 10b corresponding to a storage unit, a ROM (Read only Memory) 10c corresponding to a storage unit, and a communication unit. 10d, an input unit 10e, a display unit 10f, and a measurement unit 10g. Each of these components is connected to each other via a bus so that data can be transmitted and received. In this example, the case where the image editing apparatus 10 is configured by one computer will be described. However, the image editing apparatus 10 may be realized by combining a plurality of computers. The configuration illustrated in FIG. 2 is an example, and the image editing apparatus 10 may have a configuration other than these, or may not have a part of these configurations.

CPU10aは、RAM10b又はROM10cに記憶されたプログラムの実行に関する制御やデータの演算、加工を行う制御部である。CPU10aは、画像を反射率画像と陰影画像に分解して、反射率画像と陰影画像に関する色の編集に基づいて合成画像を生成するプログラム(画像編集プログラム)を実行する演算部である。CPU10aは、入力部10eや通信部10dから種々のデータを受け取り、データの演算結果を表示部10fに表示したり、RAM10bやROM10cに格納したりする。   The CPU 10a is a control unit that performs control related to execution of a program stored in the RAM 10b or the ROM 10c, and calculates and processes data. The CPU 10a is an arithmetic unit that executes a program (an image editing program) that decomposes an image into a reflectance image and a shadow image, and generates a composite image based on color editing related to the reflectance image and the shadow image. The CPU 10a receives various data from the input unit 10e and the communication unit 10d, and displays a calculation result of the data on the display unit 10f or stores it in the RAM 10b or the ROM 10c.

RAM10bは、記憶部のうちデータの書き換えが可能なものであり、例えば半導体記憶素子で構成されてよい。RAM10bは、CPU10aが実行する画像編集プログラム、編集対象となる画像、生成された合成画像といったデータを記憶してよい。なお、これらは例示であって、RAM10bには、これら以外のデータが記憶されていてもよいし、これらの一部が記憶されていなくてもよい。   The RAM 10b can rewrite data in the storage unit, and may be composed of, for example, a semiconductor storage element. The RAM 10b may store data such as an image editing program executed by the CPU 10a, an image to be edited, and a generated composite image. These are examples, and the RAM 10b may store data other than these, or some of them may not be stored.

ROM10cは、記憶部のうちデータの読み出しが可能なものであり、例えば半導体記憶素子で構成されてよい。ROM10cは、例えば画像編集プログラムや、書き換えが行われないデータを記憶してよい。   The ROM 10c is capable of reading data out of the storage unit, and may be composed of, for example, a semiconductor storage element. The ROM 10c may store, for example, an image editing program and data that is not rewritten.

通信部10dは、画像編集装置10を他の機器に接続するインターフェースである。通信部10dは、インターネット等の通信ネットワークに接続されてもよい。   The communication unit 10d is an interface that connects the image editing apparatus 10 to other devices. The communication unit 10d may be connected to a communication network such as the Internet.

入力部10eは、ユーザからデータの入力を受け付けるものであり、例えば、キーボード及びタッチパネルを含んでよい。   The input unit 10e receives data input from the user and may include, for example, a keyboard and a touch panel.

表示部10fは、CPU10aによる演算結果を視覚的に表示するものであり、例えば、LCD(Liquid Crystal Display)により構成されてよい。表示部10fは、編集対象となる画像と、画像から分解された反射率画像及び陰影画像と、生成された第1変更画像及び第2変更画像及び合成画像とを表示してよい。   The display unit 10f visually displays a calculation result by the CPU 10a, and may be configured by an LCD (Liquid Crystal Display), for example. The display unit 10f may display an image to be edited, a reflectance image and a shadow image decomposed from the image, and the generated first modified image, second modified image, and composite image.

画像編集プログラムは、RAM10bやROM10c等のコンピュータによって読み取り可能な記憶媒体に記憶されて提供されてもよいし、通信部10dにより接続される通信ネットワークを介して提供されてもよい。画像編集装置10では、CPU10aが画像編集プログラムを実行することにより、図1を用いて説明した様々な動作が実現される。なお、これらの物理的な構成は例示であって、必ずしも独立した構成でなくてもよい。例えば、画像編集装置10は、CPU10aとRAM10bやROM10cが一体化したLSI(Large-Scale Integration)を備えていてもよい。   The image editing program may be provided by being stored in a computer-readable storage medium such as the RAM 10b or the ROM 10c, or may be provided via a communication network connected by the communication unit 10d. In the image editing apparatus 10, various operations described with reference to FIG. 1 are realized by the CPU 10 a executing the image editing program. In addition, these physical structures are illustrations, Comprising: It does not necessarily need to be an independent structure. For example, the image editing apparatus 10 may include an LSI (Large-Scale Integration) in which a CPU 10a, a RAM 10b, and a ROM 10c are integrated.

図3は、本発明の実施形態に係る画像編集装置10により編集される画像IMG1の一例である。画像IMG1は、黄土色のベッド、ベッドに置かれた2つの茶色のクッション、灰色のカーペット及び朱色のソファといった対象が撮影された画像である。なお、同図に示す画像は、図12に示した従来例の画像編集装置により編集される画像IMG1と同一である。画像編集装置10の分解部11は、画像IMG1を、対象の反射率を表す反射率画像と、対象の陰影を表す陰影画像とに分解する。   FIG. 3 is an example of an image IMG1 edited by the image editing apparatus 10 according to the embodiment of the present invention. The image IMG1 is an image obtained by photographing objects such as an ocher bed, two brown cushions placed on the bed, a gray carpet, and a vermilion sofa. The image shown in the figure is the same as the image IMG1 edited by the conventional image editing apparatus shown in FIG. The decomposition unit 11 of the image editing apparatus 10 decomposes the image IMG1 into a reflectance image that represents the reflectance of the object and a shadow image that represents the shadow of the object.

図4は、本発明の実施形態に係る画像編集装置10により画像IMG1から分解された反射率画像IMG2の一例である。反射率画像IMG2は、黄土色のベッド、ベッドに置かれた2つの茶色のクッション、灰色のカーペット及び朱色のソファといった対象の反射率を表す画像であり、対象の陰影が表されていない点で画像IMG1と異なる。   FIG. 4 is an example of the reflectance image IMG2 decomposed from the image IMG1 by the image editing apparatus 10 according to the embodiment of the present invention. The reflectance image IMG2 is an image representing the reflectance of an object such as an ocher bed, two brown cushions placed on the bed, a gray carpet, and a vermilion sofa, and does not show the shadow of the object. Different from the image IMG1.

本例において、画像編集装置10の選択部12は、朱色C21と、黄土色C22と、灰色C23と、を反射率画像の複数の代表色として選択する。反射率画像IMG2中に、3つの代表色である朱色C21、黄土色C22及び灰色C23が用いられている領域を示している。   In this example, the selection unit 12 of the image editing apparatus 10 selects vermilion C21, ocher C22, and gray C23 as a plurality of representative colors of the reflectance image. In the reflectance image IMG2, an area in which three representative colors, vermilion C21, ocher C22, and gray C23 are used.

また、本例において、決定部15は、複数の代表色の数を3と決定する。決定部15は、朱色C21、黄土色C22及び灰色C23の他に、例えば茶色を4番目の代表色として加えた場合にBICが減少するか否かを試行して、BICが減少する場合には代表色を追加し、BICが増加する場合には代表色を3色としてよい。本例では、茶色を4番目の代表色として加えるとBICが増加するため、代表色は、朱色C21、黄土色C22及び灰色C23の3色となっている。なお、反射率画像の編集において微妙な調整を必要とする場合には、ユーザの入力によって代表色を増やすことを許してもよい。   In this example, the determination unit 15 determines that the number of representative colors is 3. The determination unit 15 tries whether or not the BIC decreases when, for example, brown is added as the fourth representative color in addition to the vermilion C21, the ocher color C22, and the gray C23. If representative colors are added and the BIC increases, the representative colors may be three. In this example, when brown is added as the fourth representative color, the BIC increases, so the representative colors are three colors of vermilion C21, ocher C22, and gray C23. If fine adjustment is required in editing the reflectance image, the representative color may be allowed to be increased by user input.

図5は、本発明の実施形態に係る画像編集装置10により画像IMG1から分解された陰影画像IMG3の一例である。反射率画像IMG2は、グレースケール画像であり、ベッド、ベッドに置かれた2つのクッション、カーペット及びソファといった対象の陰影を表す画像であり、対象の色彩が表されていない点で画像IMG1と異なる。反射率画像IMG2は、画素値をHSV色空間で表す場合、彩度を表す値が0であるような画像である。   FIG. 5 is an example of the shadow image IMG3 decomposed from the image IMG1 by the image editing apparatus 10 according to the embodiment of the present invention. The reflectance image IMG2 is a grayscale image, and is an image representing the shadow of a target such as a bed, two cushions placed on the bed, a carpet, and a sofa, and is different from the image IMG1 in that the color of the target is not represented. . The reflectance image IMG2 is an image in which the value representing saturation is 0 when the pixel value is represented in the HSV color space.

図6は、本発明の実施形態に係る画像編集装置10により生成された第1変更画像IMG4の一例である。本例において、第1生成部13は、複数の代表色である朱色C21、黄土色C22及び灰色C23のうち朱色C21を白色C41に変更したことに基づいて、反射率画像IMG2から、反射率画像IMG2に含まれる朱色C21に関連する色を変更した第1変更画像IMG4を生成する。第1生成部13は、複数の代表色を互いに独立に変更したことに基づいて、反射率画像IMG2から第1変更画像IMG4を生成しており、変更されていない黄土色C22及び灰色C23に関連する色は、反射率画像IMG2と第1変更画像IMG4とで共通している。   FIG. 6 is an example of the first modified image IMG4 generated by the image editing apparatus 10 according to the embodiment of the present invention. In this example, the first generation unit 13 changes the reflectance image from the reflectance image IMG2 based on the fact that the vermilion color C21 among the plurality of representative colors C21, ocher C22, and gray C23 is changed to white C41. A first changed image IMG4 in which the color related to the vermilion C21 included in the IMG2 is changed is generated. The first generation unit 13 generates the first changed image IMG4 from the reflectance image IMG2 based on the fact that the plurality of representative colors are changed independently of each other, and is related to the ocher color C22 and gray C23 that have not been changed. The color to be used is common to the reflectance image IMG2 and the first modified image IMG4.

本例において、第1変更画像IMG4中に、変更された代表色である白色C41が用いられている領域と、変更されていない代表色である黄土色C22及び灰色C23が用いられている領域とを示している。第1変更画像IMG4は、陰影に関する情報を含まない反射率画像IMG2から生成されるため、ソファ全体の色が朱色C21から白色C41に変更されていることが読み取れる。   In the present example, in the first changed image IMG4, an area where the changed representative color white C41 is used, and an area where the ocher colors C22 and gray C23 which are not changed are used. Is shown. Since the first changed image IMG4 is generated from the reflectance image IMG2 that does not include information relating to the shadow, it can be read that the color of the entire sofa has been changed from vermilion C21 to white C41.

図7は、本発明の実施形態に係る画像編集装置10により生成された第2変更画像IMG5の一例である。第1生成部13は、陰影画像IMG3の色の変更に基づいて、陰影画像IMG3から、陰影画像IMG3の色を変更した第2変更画像IMG5を生成する。本例において、第1生成部13は、陰影画像IMG3の色相、彩度及び明度のうち少なくともいずれかの変更に基づいて、陰影画像IMG3から、陰影画像IMG3の色相、彩度及び明度のうち少なくともいずれかを変更した第2変更画像IMG5を生成する。より具体的には、第1生成部13は、陰影画像IMG3の色相及び彩度を、薄黄色を表す値とする変更に基づいて、陰影画像IMG3から、陰影画像IMG3全体を薄黄色に変更した第2変更画像IMG5を生成する。   FIG. 7 is an example of the second modified image IMG5 generated by the image editing apparatus 10 according to the embodiment of the present invention. The first generation unit 13 generates a second changed image IMG5 in which the color of the shadow image IMG3 is changed from the shadow image IMG3 based on the change of the color of the shadow image IMG3. In this example, the first generation unit 13 changes from at least one of the hue, saturation, and brightness of the shadow image IMG3 from the shadow image IMG3 based on the change of at least one of the hue, saturation, and brightness of the shadow image IMG3. A second changed image IMG5 in which either one is changed is generated. More specifically, the first generation unit 13 changes the entire shadow image IMG3 from the shadow image IMG3 to light yellow based on a change in which the hue and saturation of the shadow image IMG3 are values representing light yellow. A second modified image IMG5 is generated.

図8は、本発明の実施形態に係る画像編集装置10により生成された合成画像IMG6の一例である。本例において、第2生成部14は、第1変更画像IMG4と、第2変更画像IMG5とを合成して、合成画像IMG6を生成する。合成画像IMG6は、黄土色のベッド、ベッドに置かれた2つの茶色のクッション、灰色のカーペット及び白色C41のソファといった対象を含み、図3に示した画像IMG1と比較して、照明の色が暖色であり、ソファの色が白色C41である点で相違する。   FIG. 8 is an example of the composite image IMG6 generated by the image editing apparatus 10 according to the embodiment of the present invention. In this example, the second generation unit 14 combines the first changed image IMG4 and the second changed image IMG5 to generate a combined image IMG6. The composite image IMG6 includes objects such as an ocher bed, two brown cushions placed on the bed, a gray carpet, and a white C41 sofa. Compared with the image IMG1 shown in FIG. It differs in that it is a warm color and the color of the sofa is white C41.

合成画像IMG6と、図13に示した従来例の画像編集装置により編集された画像IMG11とを比較すると、白飛びの発生が無く、ソファの影の部分の色も白色C41に変更されており、自然な画像となっている点で相違する。このように、本実施形態に係る画像編集装置10によれば、変更前に暗かった色を明るくすることにより、それよりも明るかった色がさらに明るく変更されて、画像に白飛びが発生することが防止される。また、逆に変更前に明るかった色を暗くすることにより、画像に黒つぶれが発生することが防止される。さらに、画像の一部の色を変更するだけでなく、画像全体の明るさや色を変更して、照明の変更を再現することができる。   When the composite image IMG6 is compared with the image IMG11 edited by the conventional image editing apparatus shown in FIG. 13, there is no occurrence of whiteout and the color of the shadow portion of the sofa is also changed to white C41. It differs in that it is a natural image. As described above, according to the image editing apparatus 10 according to the present embodiment, by brightening a dark color before the change, a brighter color is changed to be brighter and whiteout occurs in the image. Is prevented. On the other hand, darkening the bright color before the change prevents blackout from occurring in the image. Furthermore, not only the color of a part of the image can be changed, but also the brightness and color of the entire image can be changed to reproduce the change in illumination.

図9は、本発明の実施形態に係る画像編集装置10により実行される画像編集処理の第1例のフローチャートである。はじめに、画像編集装置10は、オリジナル画像を反射率画像と陰影画像に分解する(S10)。そして、画像編集装置10は、反射率画像に含まれる複数の色から、画素数が多いもの1つを代表色として選択する(S11)。画像編集装置10は、例えば、反射率画像に含まれる複数の色又は反射率画像に含まれる複数の色の類似色から、画素数が多いものを代表色として選択してよい。   FIG. 9 is a flowchart of a first example of image editing processing executed by the image editing apparatus 10 according to the embodiment of the present invention. First, the image editing apparatus 10 decomposes the original image into a reflectance image and a shadow image (S10). Then, the image editing apparatus 10 selects one having a large number of pixels as a representative color from a plurality of colors included in the reflectance image (S11). For example, the image editing apparatus 10 may select a representative color that has a large number of pixels from a plurality of colors included in the reflectance image or a similar color of a plurality of colors included in the reflectance image.

画像編集装置10は、代表色を1つ追加するとBICが増加するか否かを判定する(S12)。BICが増加しない場合(S12:NO)、画像編集装置10は、反射率画像に含まれる複数の色又は反射率画像に含まれる複数の色の類似色から、画素数が次に多い色を代表色として追加する(S13)。一方、代表色を1つ追加するとBICが増加する場合(S12:YES)、画像編集装置10は、代表色を追加せず、代表色の数を決定し、1又は複数の代表色を決定する(S14)。なお、反射率画像の編集において微妙な調整を必要とする場合には、ユーザの入力によって代表色を増やすことを許してもよい。   The image editing apparatus 10 determines whether or not the BIC increases when one representative color is added (S12). When the BIC does not increase (S12: NO), the image editing apparatus 10 represents the color having the next largest number of pixels from the plurality of colors included in the reflectance image or the similar colors of the plurality of colors included in the reflectance image. It adds as a color (S13). On the other hand, if one representative color is added and the BIC increases (S12: YES), the image editing apparatus 10 determines the number of representative colors without adding a representative color, and determines one or more representative colors. (S14). If fine adjustment is required in editing the reflectance image, the representative color may be allowed to be increased by user input.

その後、画像編集装置10は、入力部10eによる入力に基づいて、複数の代表色を互いに独立に変更する(S15)。そして、画像編集装置10は、代表色の変更に基づいて、反射率画像から第1変更画像を生成する(S16)。   Thereafter, the image editing apparatus 10 changes the plurality of representative colors independently from each other based on the input by the input unit 10e (S15). Then, the image editing apparatus 10 generates a first changed image from the reflectance image based on the change of the representative color (S16).

また、画像編集装置10は、入力部10eによる入力に基づいて、陰影画像の色を変更する(S17)。そして、画像編集装置10は、色の変更に基づいて、陰影画像から第2変更画像を生成する(S18)。なお、複数の代表色を変更する処理(S15)及び第1変更画像を生成する処理(S16)と、陰影画像の色を変更する処理(S17)及び第2変更画像を生成する処理(S18)とは、並列して実行されてよい。その後画像編集装置10は、第1変更画像と第2変更画像を合成して合成画像を生成する(S19)。画像編集を終了する場合(S20:YES)、画像編集装置10は、画像編集処理を終了する。一方、画像編集を継続する場合(S20:NO)、符号S15〜S19の処理を再び実行する。   Further, the image editing apparatus 10 changes the color of the shadow image based on the input by the input unit 10e (S17). Then, the image editing apparatus 10 generates a second changed image from the shadow image based on the color change (S18). It should be noted that a process for changing a plurality of representative colors (S15), a process for generating a first changed image (S16), a process for changing the color of a shadow image (S17), and a process for generating a second changed image (S18). And may be executed in parallel. Thereafter, the image editing apparatus 10 combines the first changed image and the second changed image to generate a combined image (S19). When the image editing is to be ended (S20: YES), the image editing apparatus 10 ends the image editing process. On the other hand, when the image editing is continued (S20: NO), the processes of reference numerals S15 to S19 are executed again.

図10は、本発明の実施形態に係る画像編集装置10により表示される画像編集画面DPの一例である。画像編集装置10は、表示部10fを備え、表示部10fは、反射率画像IMG2、陰影画像IMG3及びオリジナルの画像IMG1と、第1変更画像IMG4、第2変更画像IMG5及び合成画像IMG6と、を比較可能に表示してよい。なお、反射率画像IMG2及び陰影画像IMG3のいずれかに変更が無い場合、表示部10fは、第1変更画像IMG4、陰影画像IMG3及び合成画像IMG6を表示してよいし、反射率画像IMG2、第2変更画像IMG5及び合成画像IMG6を表示してもよい。   FIG. 10 is an example of an image editing screen DP displayed by the image editing apparatus 10 according to the embodiment of the present invention. The image editing apparatus 10 includes a display unit 10f. The display unit 10f includes a reflectance image IMG2, a shadow image IMG3, and an original image IMG1, a first modified image IMG4, a second modified image IMG5, and a composite image IMG6. You may display so that comparison is possible. When there is no change in any of the reflectance image IMG2 and the shadow image IMG3, the display unit 10f may display the first changed image IMG4, the shadow image IMG3, and the composite image IMG6, or the reflectance image IMG2, A two-change image IMG5 and a composite image IMG6 may be displayed.

画像編集画面DPは、上段に反射率画像IMG2、陰影画像IMG3及びオリジナルの画像IMG1を含み、下段に第1変更画像IMG4、第2変更画像IMG5及び合成画像IMG6を含む。オリジナルの画像IMG1から反射率画像IMG2及び陰影画像IMG3を指す矢印が表示され、反射率画像IMG2及び陰影画像IMG3が画像IMG1から分解されたものであることを示している。また、反射率画像IMG2から第1変更画像IMG4を指す矢印が表示され、第1変更画像IMG4が反射率画像IMG2から生成されたものであることを示している。同様に、陰影画像IMG3から第2変更画像IMG5を指す矢印が表示され、第2変更画像IMG5が陰影画像IMG3から生成されたものであることを示している。さらに、第1変更画像IMG4及び第2変更画像IMG5から合成画像IMG6を指す矢印が表示され、合成画像IMG6が第1変更画像IMG4及び第2変更画像IMG5からから合成されたものであることを示している。   The image editing screen DP includes a reflectance image IMG2, a shadow image IMG3, and an original image IMG1 in the upper stage, and includes a first changed image IMG4, a second changed image IMG5, and a synthesized image IMG6 in the lower stage. Arrows pointing from the original image IMG1 to the reflectance image IMG2 and the shadow image IMG3 are displayed, indicating that the reflectance image IMG2 and the shadow image IMG3 are decomposed from the image IMG1. Further, an arrow pointing from the reflectance image IMG2 to the first changed image IMG4 is displayed, indicating that the first changed image IMG4 is generated from the reflectance image IMG2. Similarly, an arrow pointing from the shadow image IMG3 to the second changed image IMG5 is displayed, indicating that the second changed image IMG5 is generated from the shadow image IMG3. Furthermore, an arrow pointing to the composite image IMG6 from the first change image IMG4 and the second change image IMG5 is displayed, indicating that the composite image IMG6 is a composite from the first change image IMG4 and the second change image IMG5. ing.

画像編集装置10によって、色を変更する前後の画像を比較可能に表示することで、どのような変更を行ったかを一目で把握でき、画像の色の編集がより円滑となるように支援することができる。例えば、本例の画像編集画面DPのように、反射率画像IMG2と第1変更画像IMG4が上段と下段で対応するように表示され、陰影画像IMG3と第2変更画像IMG5が上段と下段で対応するように表示され、オリジナルの画像IMG1と合成画像IMG6が上段と下段で対応するように表示されることで、色を変更する前後の画像を容易に比較することができ、どのような変更を行ったかを一目で把握することができる。本例の場合、具体的には、反射率画像IMG2と第1変更画像IMG4とでソファの色が異なることを容易に確認することができる。また、陰影画像IMG3と第2変更画像IMG5とで画像全体の色及び明るさが異なることを容易に確認することができる。また、オリジナルの画像IMG1と合成画像IMG6とでソファの色、画像全体の色及び画像全体の明るさが異なることを容易に確認することができる。なお、本例に示した画像の配置は一例であり、変更前後の画像を左右に並べて表示したり、他の配置としたりすることもできる。   By displaying the images before and after the color change by the image editing device 10 so that they can be compared, it is possible to grasp at a glance what kind of change has been made, and to support the editing of the color of the image more smoothly. Can do. For example, as in the image editing screen DP of this example, the reflectance image IMG2 and the first modified image IMG4 are displayed so as to correspond in the upper and lower stages, and the shadow image IMG3 and the second modified image IMG5 are associated in the upper and lower stages. The original image IMG1 and the composite image IMG6 are displayed so as to correspond to each other in the upper stage and the lower stage, so that the images before and after the color change can be easily compared. You can see at a glance whether you went. In the case of this example, specifically, it can be easily confirmed that the color of the sofa is different between the reflectance image IMG2 and the first modified image IMG4. Further, it can be easily confirmed that the color and brightness of the entire image are different between the shadow image IMG3 and the second modified image IMG5. Also, it can be easily confirmed that the color of the sofa, the color of the entire image, and the brightness of the entire image are different between the original image IMG1 and the composite image IMG6. Note that the arrangement of the images shown in this example is an example, and the images before and after the change can be displayed side by side, or other arrangements can be made.

表示部10fは、少なくとも第1生成部13により第1変更画像IMG4の生成が行われた場合に、第1変更画像IMG4及び合成画像IMG6を更新して表示してよい。画像編集画面DPは、反射率画像IMG2から選択された代表色のHSV値などを調整する第1インジケータI1と、陰影画像IMG3のHSV値を調整する第2インジケータI2と、を含んでよく、それぞれ色相、彩度及び明度の変更を受け付けてよい。なお、第1インジケータI1は、反射率画像IMG2の代表色を変更するインジケータの一例であり、調整される値はHSV値に限られず、任意の値であってよい。同様に、なお、第2インジケータI2は、陰影画像IMG3の色を変更するインジケータの一例であり、調整される値はHSV値に限られず、任意の値であってよい。また、画像編集画面DPは、反射率画像IMG2から選択された複数の代表色のうち、変更する代表色を指定する選択窓Sを含んでよい。第1生成部13は、特定の代表色が指定されて、第1インジケータI1が調整された場合に、その値に応じて指定された代表色を変更して第1変更画像IMG4を更新する。また、第2生成部14は、新たな第1変更画像IMG4と第2変更画像IMG5を合成して、合成画像IMG6を更新する。同様に、第1生成部13は、第2インジケータI2が調整された場合に、その値に応じて第2変更画像IMG5を更新する。また、第2生成部14は、第1変更画像IMG4と新たな第2変更画像IMG5を合成して、合成画像IMG6を更新してよい。   The display unit 10f may update and display the first modified image IMG4 and the composite image IMG6 when the first modified image IMG4 is generated by at least the first generating unit 13. The image editing screen DP may include a first indicator I1 for adjusting the HSV value of the representative color selected from the reflectance image IMG2, and a second indicator I2 for adjusting the HSV value of the shadow image IMG3. Changes in hue, saturation and lightness may be accepted. The first indicator I1 is an example of an indicator that changes the representative color of the reflectance image IMG2, and the value to be adjusted is not limited to the HSV value, and may be an arbitrary value. Similarly, the second indicator I2 is an example of an indicator for changing the color of the shadow image IMG3, and the value to be adjusted is not limited to the HSV value, and may be an arbitrary value. The image editing screen DP may include a selection window S for designating a representative color to be changed among a plurality of representative colors selected from the reflectance image IMG2. When a specific representative color is designated and the first indicator I1 is adjusted, the first generation unit 13 updates the first changed image IMG4 by changing the designated representative color according to the value. In addition, the second generation unit 14 combines the new first changed image IMG4 and the second changed image IMG5, and updates the combined image IMG6. Similarly, when the 2nd indicator I2 is adjusted, the 1st production | generation part 13 updates 2nd change image IMG5 according to the value. Moreover, the 2nd production | generation part 14 may synthesize | combine 1st change image IMG4 and new 2nd change image IMG5, and may update synthetic | combination image IMG6.

本実施形態に掛かる画像編集装置10によれば、反射率画像IMG2の代表色が変更された場合に、その変更に連動するように第1変更画像IMG4及び合成画像IMG6が更新されて表示され、代表色の変更により画像がどのように変化するかを一目で把握できる。また、陰影画像IMG3の色が変更された場合に、その変更に連動するように第2変更画像IMG5及び合成画像IMG6が更新されて表示され、陰影画像IMG3の変更により画像がどのように変化するかを一目で把握できる。これにより、画像の色の編集がより円滑となるように支援することができる。また、陰影画像IMG3の色が変更された場合に、その変更に連動するように第2変更画像IMG5及び合成画像IMG6が更新されて表示され、陰影画像IMG3の変更により画像がどのように変化するかを一目で把握でき、画像の色の編集がより円滑となるように支援することができる。   According to the image editing apparatus 10 according to the present embodiment, when the representative color of the reflectance image IMG2 is changed, the first changed image IMG4 and the composite image IMG6 are updated and displayed so as to be linked to the change, It is possible to grasp at a glance how the image changes by changing the representative color. When the color of the shadow image IMG3 is changed, the second changed image IMG5 and the composite image IMG6 are updated and displayed so as to be linked to the change, and how the image changes due to the change of the shadow image IMG3. Can be seen at a glance. Thereby, it can assist so that the edit of the color of an image may become smoother. When the color of the shadow image IMG3 is changed, the second changed image IMG5 and the composite image IMG6 are updated and displayed so as to be linked to the change, and how the image changes due to the change of the shadow image IMG3. Can be grasped at a glance, and the editing of the color of the image can be supported more smoothly.

図11は、本発明の実施形態に係る画像編集装置10により実行される画像編集処理の第2例のフローチャートである。はじめに、画像編集装置10は、反射率画像、陰影画像及びオリジナル画像と、第1変更画像、第2変更画像及び合成画像と、を比較可能に表示する(S30)。   FIG. 11 is a flowchart of a second example of the image editing process executed by the image editing apparatus 10 according to the embodiment of the present invention. First, the image editing apparatus 10 displays the reflectance image, the shadow image, and the original image, the first modified image, the second modified image, and the composite image so as to be comparable (S30).

そして、画像編集装置10は、入力部10eによる入力に基づいて、複数の代表色の色相、彩度及び明度を互いに独立に変更する(S31)。画像編集装置10は、その変更に基づいて、新たな第1変更画像を生成し、新たな第1変更画像と第2変更画像を合成して新たな合成画像を生成し(S32)、新たな第1変更画像及び新たな合成画像を更新して表示する(S33)。   Then, the image editing apparatus 10 changes the hue, saturation, and brightness of the plurality of representative colors independently from each other based on the input from the input unit 10e (S31). Based on the change, the image editing apparatus 10 generates a new first changed image, combines the new first changed image and the second changed image to generate a new combined image (S32), and creates a new one. The first changed image and the new composite image are updated and displayed (S33).

また、画像編集装置10は、入力部10eによる入力に基づいて、陰影画像の色相、彩度及び明度を互いに独立に変更する(S34)。画像編集装置10は、その変更に基づいて、新たな第2変更画像を生成し、第1変更画像と新たな第2変更画像を合成して新たな合成画像を生成し(S35)、新たな第2変更画像及び新たな合成画像を更新して表示する(S36)。なお、複数の代表色を変更する処理(S31)、第1変更画像を生成する処理(S32)及び合成画像を生成する処理(S33)と、陰影画像の色を変更する処理(S34)、第2変更画像を生成する処理(S35)及び合成画像を生成する処理(S36)とは、並列して実行されてよい。画像編集を終了する場合(S37:YES)、画像編集装置10は、画像編集処理を終了する。一方、画像編集を継続する場合(S37:NO)、符号S31〜S36の処理を再び実行する。   Further, the image editing apparatus 10 changes the hue, saturation, and brightness of the shadow image independently from each other based on the input from the input unit 10e (S34). Based on the change, the image editing apparatus 10 generates a new second changed image, combines the first changed image and the new second changed image to generate a new combined image (S35), and creates a new one. The second changed image and the new composite image are updated and displayed (S36). A process for changing a plurality of representative colors (S31), a process for generating a first changed image (S32), a process for generating a composite image (S33), a process for changing the color of a shadow image (S34), a first The process for generating the two-change image (S35) and the process for generating the composite image (S36) may be executed in parallel. When the image editing is to be ended (S37: YES), the image editing apparatus 10 ends the image editing process. On the other hand, when the image editing is continued (S37: NO), the processes of S31 to S36 are executed again.

以上説明した実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。実施形態が備える各要素並びにその配置、材料、条件、形状及びサイズ等は、例示したものに限定されるわけではなく適宜変更することができる。また、異なる実施形態で示した構成同士を部分的に置換し又は組み合わせることが可能である。   The embodiments described above are for facilitating the understanding of the present invention, and are not intended to limit the present invention. Each element included in the embodiment and its arrangement, material, condition, shape, size, and the like are not limited to those illustrated, and can be changed as appropriate. In addition, the structures shown in different embodiments can be partially replaced or combined.

10…画像編集装置、10a…CPU、10b…RAM、10c…ROM、10d…通信部、10e…入力部、10f…表示部、11…分解部、12…選択部、13…第1生成部、14…第2生成部、15…決定部、16…記憶部   DESCRIPTION OF SYMBOLS 10 ... Image editing apparatus, 10a ... CPU, 10b ... RAM, 10c ... ROM, 10d ... Communication part, 10e ... Input part, 10f ... Display part, 11 ... Decomposition part, 12 ... Selection part, 13 ... 1st production | generation part, 14 ... 2nd production | generation part, 15 ... Determination part, 16 ... Memory | storage part

Claims (8)

対象を撮影した画像を、前記対象の反射率を表す反射率画像と、前記対象の陰影を表す陰影画像とに分解する分解部と、
前記反射率画像に含まれる複数の色の画素数又は前記複数の色の類似色の画素数に基づいて、複数の代表色を選択する選択部と、
前記複数の代表色のいずれかを異なる色に変更したことに基づいて、前記反射率画像から、前記反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成する第1生成部と、
前記第1変更画像と、前記陰影画像とを合成して合成画像を生成する第2生成部と、
を備える画像編集装置。
A decomposition unit that decomposes an image obtained by photographing an object into a reflectance image that represents the reflectance of the object and a shadow image that represents the shadow of the object;
A selection unit that selects a plurality of representative colors based on the number of pixels of a plurality of colors included in the reflectance image or the number of pixels of similar colors of the plurality of colors;
Based on the fact that any one of the plurality of representative colors is changed to a different color, a first changed image is generated by changing any one of the plurality of colors included in the reflectance image from the reflectance image. A generator,
A second generation unit that combines the first modified image and the shadow image to generate a combined image;
An image editing apparatus comprising:
前記複数の代表色の数の増加を抑制しつつ、前記複数の代表色によって前記反射率画像に含まれる前記複数の色が代表されるように、前記複数の代表色の数を決定する決定部をさらに備える、
請求項1に記載の画像編集装置。
A determining unit that determines the number of the plurality of representative colors such that the plurality of colors included in the reflectance image are represented by the plurality of representative colors while suppressing an increase in the number of the plurality of representative colors. Further comprising
The image editing apparatus according to claim 1.
前記第1生成部は、前記複数の代表色を互いに独立に変更したことに基づいて、前記反射率画像から前記第1変更画像を生成する、
請求項1又は2に記載の画像編集装置。
The first generation unit generates the first changed image from the reflectance image based on changing the plurality of representative colors independently of each other.
The image editing apparatus according to claim 1.
前記第1生成部は、前記陰影画像の色の変更に基づいて、前記陰影画像から、前記陰影画像の色を変更した第2変更画像を生成し、
前記第2生成部は、前記第1変更画像と、前記第2変更画像とを合成して、前記合成画像を生成する、
請求項1から3のいずれか一項に記載の画像編集装置。
The first generation unit generates a second changed image in which the color of the shadow image is changed from the shadow image based on the change of the color of the shadow image,
The second generation unit generates the composite image by combining the first change image and the second change image;
The image editing apparatus according to any one of claims 1 to 3.
前記反射率画像、前記陰影画像及び前記画像と、前記第1変更画像、前記第2変更画像及び前記合成画像と、を比較可能に表示する表示部をさらに備える、
請求項4に記載の画像編集装置。
A display unit that displays the reflectance image, the shadow image, and the image, and the first modified image, the second modified image, and the composite image in a comparable manner;
The image editing apparatus according to claim 4.
前記表示部は、少なくとも前記第1生成部により前記第1変更画像の生成が行われた場合に、前記第1変更画像及び前記合成画像を更新して表示し、前記第2変更画像の生成が行われた場合に、前記第2変更画像及び前記合成画像を更新して表示する、
請求項5に記載の画像編集装置。
The display unit updates and displays the first modified image and the composite image when the first modified image is generated by at least the first generating unit, and the second modified image is generated. If done, update and display the second modified image and the composite image;
The image editing apparatus according to claim 5.
対象を撮影した画像を、前記対象の反射率を表す反射率画像と、前記対象の陰影を表す陰影画像とに分解することと、
前記反射率画像に含まれる複数の色の画素数又は前記複数の色の類似色の画素数に基づいて、複数の代表色を選択することと、
前記複数の代表色のいずれかを異なる色に変更したことに基づいて、前記反射率画像から、前記反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成することと、
前記第1変更画像と、前記陰影画像とを合成して合成画像を生成することと、
を含む画像編集方法。
Decomposing an image obtained by photographing an object into a reflectance image representing the reflectance of the object and a shadow image representing a shadow of the object;
Selecting a plurality of representative colors based on the number of pixels of a plurality of colors included in the reflectance image or the number of pixels of a similar color of the plurality of colors;
Generating a first changed image in which one of the plurality of colors included in the reflectance image is changed from the reflectance image based on changing any of the plurality of representative colors to a different color; ,
Combining the first modified image and the shadow image to generate a combined image;
Image editing method including
画像編集装置に備えられたコンピュータを、
対象を撮影した画像を、前記対象の反射率を表す反射率画像と、前記対象の陰影を表す陰影画像とに分解する分解部、
前記反射率画像に含まれる複数の色の画素数又は前記複数の色の類似色の画素数に基づいて、複数の代表色を選択する選択部、
前記複数の代表色のいずれかを異なる色に変更したことに基づいて、前記反射率画像から、前記反射率画像に含まれる複数の色のいずれかを変更した第1変更画像を生成する第1生成部、及び
前記第1変更画像と、前記陰影画像とを合成して、合成画像を生成する第2生成部、
として機能させる画像編集プログラム。
A computer equipped with an image editing device
A decomposition unit that decomposes an image obtained by capturing an object into a reflectance image that represents the reflectance of the object and a shadow image that represents the shadow of the object;
A selection unit that selects a plurality of representative colors based on the number of pixels of a plurality of colors included in the reflectance image or the number of pixels of a similar color of the plurality of colors;
Based on the fact that any one of the plurality of representative colors is changed to a different color, a first changed image is generated by changing any one of the plurality of colors included in the reflectance image from the reflectance image. A generating unit; and a second generating unit that combines the first changed image and the shadow image to generate a combined image;
Image editing program to function as.
JP2018102447A 2018-05-29 2018-05-29 Image editing device, image editing method, and image editing program Pending JP2019208125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018102447A JP2019208125A (en) 2018-05-29 2018-05-29 Image editing device, image editing method, and image editing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018102447A JP2019208125A (en) 2018-05-29 2018-05-29 Image editing device, image editing method, and image editing program

Publications (1)

Publication Number Publication Date
JP2019208125A true JP2019208125A (en) 2019-12-05

Family

ID=68767829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018102447A Pending JP2019208125A (en) 2018-05-29 2018-05-29 Image editing device, image editing method, and image editing program

Country Status (1)

Country Link
JP (1) JP2019208125A (en)

Similar Documents

Publication Publication Date Title
JP4171574B2 (en) Image processing condition determining apparatus and image processing condition determining program storage medium
US7639394B2 (en) Dynamically generating darker and lighter color options from a base color in a color picker user interface
US7864200B1 (en) Multiple backdrop compositing
US8798781B2 (en) Method and system for converting an image to a color-reduced image mapped to embroidery thread colors
JP4624248B2 (en) Image processing apparatus, skin color adjustment method, and program
JP5999359B2 (en) Image processing apparatus and image processing program
US20100328335A1 (en) Representing a printed product using pixel opacity and color modification
JP2011248641A (en) Coloration simulation system, program and recording medium
JP2002199216A (en) Method for interactively using automatic image processing technology for training
JP6052277B2 (en) Color arrangement determination device, color arrangement determination method, and color arrangement determination program
JP2019208125A (en) Image editing device, image editing method, and image editing program
JP2005159850A (en) Combination of image and character string
JP2020170407A (en) Image processing device, control method therefor, and program
JP6700501B2 (en) Information processing apparatus, information processing method, and program
EP1147471A1 (en) Digital image improvement through genetic image evolution
JP6919433B2 (en) Image processing equipment, image processing methods, image processing systems and programs
JPH09160527A (en) Method for displaying image data at corrected tint and density
JP2018200620A (en) Coloration conversion method, coloration conversion device and program
JP2023045392A (en) Image data generation apparatus, image data generation method, and image data generation program
JPH05204348A (en) Color image color changing processing system and color image synthesizing processing system
JP2021190807A (en) Image processing device and image processing method
JP2021158588A (en) Image processing device, image processing system, and program
JP6292010B2 (en) Image processing device
JP2009294917A (en) Color scheme support device, color scheme support method and color scheme support program
JP2004177887A (en) Display device, character image generating device, character image display program, computer readable recording medium with the character image display program recorded thereon, and character image display method