JP6365033B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP6365033B2
JP6365033B2 JP2014140784A JP2014140784A JP6365033B2 JP 6365033 B2 JP6365033 B2 JP 6365033B2 JP 2014140784 A JP2014140784 A JP 2014140784A JP 2014140784 A JP2014140784 A JP 2014140784A JP 6365033 B2 JP6365033 B2 JP 6365033B2
Authority
JP
Japan
Prior art keywords
lightness
background
mask
brightness
region
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
Application number
JP2014140784A
Other languages
Japanese (ja)
Other versions
JP2016018391A (en
Inventor
耕輔 丸山
耕輔 丸山
佐々木 信
信 佐々木
山本 隆之
隆之 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2014140784A priority Critical patent/JP6365033B2/en
Publication of JP2016018391A publication Critical patent/JP2016018391A/en
Application granted granted Critical
Publication of JP6365033B2 publication Critical patent/JP6365033B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置およびプログラムに関する。   The present invention relates to an image processing apparatus and a program.

特許文献1には、推定前景領域と推定背景領域の間の境界を含み且つ推定前景領域と推定背景領域の両方にまたがる境界周辺領域内のピクセル群から、全ての又は代表的な複数の色を抽出し、抽出された複数の色のいずれとも可及的に異なる色になるように、抽出結果画像の色を決定する処理が開示されている。   Patent Document 1 includes all or representative plural colors from a pixel group in a boundary peripheral region that includes a boundary between an estimated foreground region and an estimated background region and spans both the estimated foreground region and the estimated background region. A process is disclosed for extracting and determining the color of the extracted result image so as to be as different as possible from any of the plurality of extracted colors.

特開2013−191054号公報JP 2013-191054 A

本発明の目的は、画像の背景領域にマスクを行って前景領域を見やすくするに際し、背景領域がマスクにより見えなくなることを抑制しつつ、前景領域を見やすくすることにある。   It is an object of the present invention to make the foreground area easy to see while suppressing the background area from being invisible by the mask when masking the background area of the image to make the foreground area easy to see.

請求項1に記載の発明は、対象画像を、前景領域と背景領域とに分離する分離手段と、前記前景領域の明度である前景明度、および、前記背景領域の明度である背景明度を把握する把握手段と、前記背景領域に対してマスクを行い、当該マスクを行った後の当該背景領域と前記前景領域との間にコントラストが生じるように当該マスクを行うマスク手段と、を備え、前記マスク手段は、前記前景明度が予め定められた明度よりも大きい場合において前記背景明度が予め設定された設定背景明度よりも小さい場合には、当該設定背景明度よりも大きい場合に比べて、前記マスクの明度を大きくし、前記前景明度が予め定められた明度よりも小さい場合において前記背景明度が予め設定された設定背景明度よりも大きい場合には、当該設定背景明度よりも小さい場合に比べて、前記マスクの明度を小さくすることを特徴とする画像処理装置である。
請求項2に記載の発明は、前記マスク手段が前記マスクの明度を大きくする場合の当該マスクの明度は、当該マスクを通じて前記背景領域が透けて見える明度に設定され、前記マスク手段が前記マスクの明度を小さくする場合の当該マスクの明度は、当該マスクを通じて前記背景領域が透けて見える明度に設定されることを特徴とする請求項1に記載の画像処理装置である。
請求項3に記載の発明は、ユーザから得た調整値を用い、前記マスクの明度を変更する明度変更手段を更に備えることを特徴とする請求項1又は2に記載の画像処理装置である。
請求項4に記載の発明は、ユーザにより入力される前記調整値を取得する調整値取得手段と、前記背景領域にマスクが行われた後の画像を表示するタッチパネルと、を更に備え、前記調整値取得手段は、前記タッチパネル上をスライド移動する、ユーザの指の移動量を検知して前記調整値を取得することを特徴とする請求項3に記載の画像処理装置である。
請求項5に記載の発明は、対象画像を、前景領域と背景領域とに分離する分離機能と、前記前景領域の明度である前景明度、および、前記背景領域の明度である背景明度を把握する把握機能と、前記背景領域に対してマスクを行い、当該マスクを行った後の当該背景領域と前記前景領域との間にコントラストが生じるように当該マスクを行うマスク機能と、をコンピュータに実現させるためのプログラムであり、前記マスク機能は、前記前景明度が予め定められた明度よりも大きい場合において前記背景明度が予め設定された設定背景明度よりも小さい場合には、当該設定背景明度よりも大きい場合に比べて、前記マスクの明度を大きくし、前記前景明度が予め定められた明度よりも小さい場合において前記背景明度が予め設定された設定背景明度よりも大きい場合には、当該設定背景明度よりも小さい場合に比べて、前記マスクの明度を小さくすることを特徴とするプログラムである。
According to the first aspect of the present invention, a separation unit that separates a target image into a foreground region and a background region, a foreground lightness that is the lightness of the foreground region, and a background lightness that is the lightness of the background region are grasped. A masking means for masking the background region and performing masking so that a contrast is generated between the background region after the masking and the foreground region. In the case where the foreground lightness is greater than a predetermined lightness and the background lightness is smaller than a preset background lightness, the means of the mask is compared with a case where the foreground lightness is larger than the set background lightness. If the background brightness is larger than a preset background brightness when the brightness is increased and the foreground brightness is less than a predetermined brightness, the set background brightness Compared to smaller than, an image processing apparatus characterized by reducing the brightness of the mask.
According to a second aspect of the present invention, when the mask means increases the brightness of the mask, the brightness of the mask is set to a brightness at which the background region can be seen through the mask. The image processing apparatus according to claim 1, wherein the brightness of the mask when the brightness is reduced is set to a brightness at which the background region can be seen through the mask.
A third aspect of the present invention is the image processing apparatus according to the first or second aspect, further comprising lightness changing means for changing the lightness of the mask using an adjustment value obtained from a user.
The invention according to claim 4 further includes an adjustment value acquisition unit that acquires the adjustment value input by a user, and a touch panel that displays an image after the background area is masked, and the adjustment The image processing apparatus according to claim 3, wherein the value acquisition unit acquires the adjustment value by detecting a movement amount of a user's finger that slides on the touch panel.
The invention according to claim 5 grasps the separation function for separating the target image into the foreground area and the background area, the foreground brightness that is the brightness of the foreground area, and the background brightness that is the brightness of the background area. The computer realizes a grasp function and a mask function for performing masking on the background area and performing the mask so that a contrast is generated between the background area after the masking and the foreground area. The mask function is greater than the set background brightness when the background brightness is smaller than a preset background brightness when the foreground brightness is greater than a preset brightness. Compared to the case, when the brightness of the mask is increased and the foreground brightness is smaller than a predetermined brightness, the background brightness is set in advance. Is greater than the brightness, compared to smaller than the set background brightness, a program characterized to reduce the brightness of the mask.

本発明の請求項1によれば、画像の背景領域にマスクを行って前景領域を見やすくするに際し、背景領域がマスクにより見えなくなることを抑制しつつ、前景領域を見やすくすることができる。
本発明の請求項2によれば、マスクの明度を大きくした後や、マスクの明度を小さくした後、ユーザは、背景領域を視認できる。
本発明の請求項3によれば、マスクの明度を、ユーザが希望する明度に変更することができる。
本発明の請求項4によれば、マスクの明度の変更をユーザが行う際の操作性を向上させることができる。
本発明の請求項5によれば、画像の背景領域にマスクを行って前景領域を見やすくするに際し、背景領域がマスクにより見えなくなることを抑制しつつ、前景領域を見やすくすることができる。
According to the first aspect of the present invention, when the background area of the image is masked to make the foreground area easy to see, it is possible to make the foreground area easy to see while suppressing the background area from being invisible.
According to claim 2 of the present invention, the user can visually recognize the background area after increasing the brightness of the mask or decreasing the brightness of the mask.
According to claim 3 of the present invention, the brightness of the mask can be changed to the brightness desired by the user.
According to claim 4 of the present invention, it is possible to improve the operability when the user changes the brightness of the mask.
According to the fifth aspect of the present invention, when masking the background region of the image to make the foreground region easy to see, it is possible to make the foreground region easy to see while suppressing the background region from becoming invisible.

本発明の実施形態に係る画像処理装置の構成を例示したブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. (A)〜(C)は、画像処理装置において、画像から前景領域が分離される様子を説明する模式図である。(A)-(C) is a mimetic diagram explaining signs that a foreground area is separated from an image in an image processing device. 前景領域と背景領域とを分離する分離処理から、マスキング処理に至る一連の処理の流れを示した図である。It is the figure which showed the flow of a series of processes from the separation process which isolate | separates a foreground area | region and a background area to a masking process. (A)〜(E)は、前景領域と背景領域とを分離する分離処理から、マスキング処理に至る一連の処理の流れを示した図である。(A)-(E) are the figures which showed the flow of a series of processes from the separation process which isolate | separates a foreground area | region and a background area to a masking process. 明度テーブルを示した図である。It is the figure which showed the brightness table. (A)、(B)は、明度テーブルを用いた処理の具体例を示した図である。(A), (B) is the figure which showed the specific example of the process using a brightness table. マスクの明度の変更処理を説明する図である。It is a figure explaining the change process of the brightness of a mask. (A)〜(C)は、マスクの明度の変更処理を説明する図である。(A)-(C) is a figure explaining the change process of the brightness of a mask.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
図1は、本発明の実施形態に係る画像処理装置1の構成を例示したブロック図である。図2は、画像処理装置1において、画像Pから前景領域Pfが分離される様子を説明する模式図である。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
FIG. 1 is a block diagram illustrating the configuration of an image processing apparatus 1 according to an embodiment of the invention. FIG. 2 is a schematic diagram for explaining how the foreground region Pf is separated from the image P in the image processing apparatus 1.

図1に示す画像処理装置1は、画像取得部20と、表示部30と、操作部40と、制御部50と、記憶部60とを備える。また、この画像処理装置1は、いわゆるタブレット端末により構成されている。   The image processing apparatus 1 illustrated in FIG. 1 includes an image acquisition unit 20, a display unit 30, an operation unit 40, a control unit 50, and a storage unit 60. The image processing apparatus 1 is configured by a so-called tablet terminal.

画像取得部20は、例えば図2(A)に示した画像P(画像Pの画像データ)を取得する。ここで、画像取得部20は、例えば、外部機器に接続される接続インタフェースにより構成される。画像取得部20にて取得された画像データは、ハードディスク装置等により構成された記憶部60に出力され、この記憶部60に一旦格納される。
表示部30は、例えばタッチパネル方式のディスプレイにより構成され、画像を表示する表示面31(図2(A)参照)を有する。
For example, the image acquisition unit 20 acquires the image P (image data of the image P) illustrated in FIG. Here, the image acquisition unit 20 includes, for example, a connection interface connected to an external device. The image data acquired by the image acquisition unit 20 is output to the storage unit 60 configured by a hard disk device or the like, and is temporarily stored in the storage unit 60.
The display unit 30 includes, for example, a touch panel display, and includes a display surface 31 (see FIG. 2A) that displays an image.

操作部40は、例えば、表示部30の表示面31に一体に形成され(タッチパネル方式のディスプレイの一部により構成され)、指やスタイラスペン等によって接触操作されることで、画像Pの一部の指定を受け付ける。付言すると、操作部40は、表示面31に表示された画像Pのうち、ユーザ(操作者)が分離(抽出)しようとする前景領域Pf(図2(B)参照)に含まれる前景シードSf(前景部分)の指定、および、画像Pのうちの前景領域Pfを除いた部分である背景領域Pbに含まれる背景シードSbの指定を受け付ける。
本実施形態では、前景シードSf及び背景シードSbは、図2(B)に示すように、いずれも線で指定されているが、線で指定されるものに限定されず、点で指定されるものであってもよい。
For example, the operation unit 40 is formed integrally with the display surface 31 of the display unit 30 (consisting of a part of a touch panel display), and is operated by touching with a finger, a stylus pen, or the like, so that part of the image P The specification of is accepted. In addition, the operation unit 40 includes the foreground seed Sf included in the foreground region Pf (see FIG. 2B) that the user (operator) wants to separate (extract) from the image P displayed on the display surface 31. The designation of (foreground part) and the designation of the background seed Sb included in the background area Pb which is a part of the image P excluding the foreground area Pf are accepted.
In the present embodiment, the foreground seed Sf and the background seed Sb are both designated by lines as shown in FIG. 2B, but are not limited to those designated by lines, and are designated by points. It may be a thing.

なお、前景シードSfを指定するときは(前景領域Pfを指定するときは)、ユーザが表示面31に表示された「Fore」ボタン(図示省略)を押下した後に、ユーザが前景領域Pfとして抽出しようとした範囲の内側の部分を指やスタイラスペン等でなぞり、これにより、なぞった部分が前景シードSfとなる。前景シードSfは、図2(B)に示すように1つに限定されるものではなく、2つ以上指定されてもよい。   When the foreground seed Sf is designated (when the foreground area Pf is designated), after the user presses the “Fore” button (not shown) displayed on the display surface 31, the user extracts the foreground area Pf. The inner part of the range to be tried is traced with a finger or a stylus pen, and the traced part becomes the foreground seed Sf. The foreground seed Sf is not limited to one as shown in FIG. 2B, and two or more foreground seeds Sf may be designated.

背景シードSbを指定するときは、ユーザが表示面31に表示された「Back」ボタン(図示省略)を押下した後に、ユーザが前景領域Pfとして抽出しようとする範囲の外側の部分を、指やスタイラスペン等でなぞる。これにより、なぞった部分が背景シードSbとなる。背景シードSbについても、1つに限定されるものではなく、2つ以上指定されてもよい。なお、前景シードSfだけを指定し、背景シードSbを指定しなくてもよい。   When designating the background seed Sb, after the user presses a “Back” button (not shown) displayed on the display surface 31, a part outside the range to be extracted as the foreground region Pf by the user Trace with a stylus pen. Thereby, the traced portion becomes the background seed Sb. The background seed Sb is not limited to one, and two or more may be specified. Note that only the foreground seed Sf may be specified and the background seed Sb may not be specified.

表示面31には、「Fore」ボタン及び「Back」ボタンの他に「Cut」ボタン(図示省略)が表示され、前景シードSfの指定及び背景シードSbの指定、又は、前景シードSfのみの指定が完了した後に、「Cut」ボタンが押下されることで、前景領域Pfの形成処理が実行される。また、本実施形態では、背景領域Pbに指定された部分については、図2(C)に示すように、マスキングが施される。これにより、前景領域Pfが、より目立つ状態で表示される。
なお、上記では説明を省略したが、前景シードSf及び背景シードSbによって前景領域Pfを形成する方法としては、既存の方法を挙げることでき、例えばグラフカット(Graph Cut)のアルゴリズムが挙げられる。
In addition to the “Fore” button and the “Back” button, a “Cut” button (not shown) is displayed on the display surface 31. Foreground seed Sf and background seed Sb are specified, or only foreground seed Sf is specified. After completing the above, the “Cut” button is pressed to execute the foreground region Pf forming process. In the present embodiment, the portion designated as the background region Pb is masked as shown in FIG. Thereby, the foreground area Pf is displayed in a more conspicuous state.
Although not described above, as a method of forming the foreground region Pf by the foreground seed Sf and the background seed Sb, an existing method can be cited, for example, a graph cut algorithm.

図1に戻り、画像処理装置1の制御部50について説明する。
制御部50は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)(何れも不図示)を備えている。
ROMは、CPUにより実行される制御プログラムを記憶している。CPUは、ROMに記憶されている制御プログラムを読み出し、RAMを作業エリアにして制御プログラムを実行する。CPUにより制御プログラムが実行されることで、後述する各機能(各処理)が実現される。
Returning to FIG. 1, the controller 50 of the image processing apparatus 1 will be described.
The control unit 50 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory) (all not shown).
The ROM stores a control program executed by the CPU. The CPU reads the control program stored in the ROM and executes the control program using the RAM as a work area. Each function (each process) to be described later is realized by executing the control program by the CPU.

なお、CPUによって実行されるプログラムは、磁気記録媒体(磁気テープ、磁気ディスクなど)、光記録媒体(光ディスクなど)、光磁気記録媒体、半導体メモリなどのコンピュータが読取可能な記録媒体に記憶した状態で、画像処理装置1へ提供しうる。また、インターネットなどの通信手段を用い、画像処理装置1へダウンロードしてもよい。   The program executed by the CPU is stored in a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), a magneto-optical recording medium, or a semiconductor memory. Thus, it can be provided to the image processing apparatus 1. Alternatively, it may be downloaded to the image processing apparatus 1 using a communication means such as the Internet.

図3、図4は、前景領域Pfと背景領域Pbとを分離する分離処理から、マスキング処理に至る一連の処理の流れを示した図である。付言すると、図3、図4は、制御部50によって実行される、分離処理、マスキング処理を示した図である。なお、図3は、処理の流れを示したフローチャートであり、図4は、処理の具体例を示した図である。
図3に示すように、本実施形態では、まず、画像処理装置1への画像データの入力が行われ(ステップ101)、この画像データが、画像取得部20にて取得される。ここで、図4における(A)は、入力された画像(画像データ)を示しており、この例では、二重丸の中に星が表示された画像となっている。
3 and 4 are diagrams showing a flow of a series of processes from the separation process for separating the foreground area Pf and the background area Pb to the masking process. In addition, FIG. 3 and FIG. 4 are diagrams showing separation processing and masking processing executed by the control unit 50. FIG. 3 is a flowchart showing the flow of processing, and FIG. 4 is a diagram showing a specific example of processing.
As shown in FIG. 3, in this embodiment, first, image data is input to the image processing apparatus 1 (step 101), and this image data is acquired by the image acquisition unit 20. Here, (A) in FIG. 4 shows an input image (image data), and in this example, an image in which a star is displayed in a double circle.

次いで、図3に示すように、また、上記にて説明したように、分離手段として機能する制御部50によって、前景領域Pfと背景領域Pbとの分離処理が行われる(ステップ102)。その後、マスク用の画像であるマスク用画像を生成する(ステップ103)。
ここで、図4(B)には、前景領域Pfと背景領域Pbとを表示している。さらに、図4(B)には、マスク用画像を例示している。ここで、このマスク用画像は、その輪郭が、背景領域Pbの輪郭と一致するように生成される。
Next, as shown in FIG. 3 and as described above, the control unit 50 functioning as a separation unit performs the separation process of the foreground region Pf and the background region Pb (step 102). Thereafter, a mask image, which is a mask image, is generated (step 103).
Here, FIG. 4B shows a foreground area Pf and a background area Pb. Further, FIG. 4B illustrates a mask image. Here, the mask image is generated so that its contour matches the contour of the background region Pb.

その後、図3のステップ104に示すように、前景領域Pfおよび背景領域Pbのそれぞれについて、色解析処理を行う。具体的には、把握手段としても機能する制御部50が、図4の(C)で示すように、前景領域Pfおよび背景領域Pbのそれぞれについて、画像全体の明度(明度分布)を把握する。   Thereafter, as shown in step 104 of FIG. 3, color analysis processing is performed for each of the foreground region Pf and the background region Pb. Specifically, as shown in FIG. 4C, the control unit 50 that also functions as a grasping unit grasps the brightness (brightness distribution) of the entire image for each of the foreground region Pf and the background region Pb.

次いで、ステップ103にて生成したマスク用画像の色の決定を行う(ステップ105)。具体的には、ステップ103にて生成したマスク用画像の明度(濃度)を変更(調整)する処理を行う。これにより、図4の(D)に示すように、明度が変更された新たなマスク用画像が生成される。
次いで、図3のステップ106に示すように、背景領域Pbと、ステップ105にて生成された新たなマスク用画像との合成処理を行い、マスク用画像が重ねられた背景領域Pb(以下、「マスク済み背景領域Pb」と称することがある)を生成する。付言すると、マスク手段として機能する制御部50が、背景領域Pbに対して、ステップ105にて生成された新たなマスク用画像を用いてマスクを行い、マスク済み背景領域Pbを生成する。
Next, the color of the mask image generated in step 103 is determined (step 105). Specifically, a process of changing (adjusting) the brightness (density) of the mask image generated in step 103 is performed. As a result, as shown in FIG. 4D, a new mask image with a changed brightness is generated.
Next, as shown in step 106 of FIG. 3, the background region Pb is combined with the new mask image generated in step 105, and the background region Pb (hereinafter, “ May be referred to as “masked background region Pb”). In other words, the control unit 50 functioning as a mask unit masks the background area Pb using the new mask image generated in step 105 to generate a masked background area Pb.

次いで、このマスク済み背景領域Pbと、ステップ102の分離処理により得られた前景領域Pfとの合成処理を行い、合成画像(以下、「マスク済み合成画像」)を生成する。次いで、このマスク済み合成画像の表示処理を行う(ステップ107)。これにより、本実施形態では、ユーザが選択した前景領域Pfが、より目立つ状態で表示されるようになる。   Next, the masked background region Pb and the foreground region Pf obtained by the separation processing in step 102 are combined to generate a combined image (hereinafter referred to as “masked combined image”). Next, display processing of the masked composite image is performed (step 107). Thereby, in this embodiment, the foreground region Pf selected by the user is displayed in a more conspicuous state.

ここで、本実施形態では、色の認識より明暗の認識が優れている人間の目の特性を利用している。背景領域Pbの明度を変化させると、画像処理装置1を操作しているユーザは、明暗の感度の高さから、前景領域Pfと背景領域Pbとの間の境界を認識することができる。また、本実施形態の処理では、明度のみが変化するだけであり、色相が変化しないため、画像全体の印象の変化を抑制しつつ、前景領域Pfが目立つようになる。   Here, in the present embodiment, the characteristics of the human eye, which is superior in color recognition than color recognition, are used. When the brightness of the background area Pb is changed, the user operating the image processing apparatus 1 can recognize the boundary between the foreground area Pf and the background area Pb from the high sensitivity of light and darkness. In the processing of this embodiment, only the brightness changes, and the hue does not change. Therefore, the foreground region Pf becomes conspicuous while suppressing the change in the impression of the entire image.

ところで、本実施形態では、上記のように、前景領域Pfと背景領域Pbとの分離が行われ、さらに、背景領域Pbについてはマスクが被せられる。
ところで、このマスクが、例えば、黒一色などである場合には、背景領域Pbが全く見えず、前景領域Pfと背景領域Pbとの分離が、意図した通りになされているか否かの判断が難しくなる。付言すると、操作ミスなどによって、意図した箇所とは異なる箇所で、前景領域Pfと背景領域Pbとの分離がなされることがあり、このような場合に、黒色のマスクがなされ、背景領域Pbが全く見えないと、分離処理が適切なものであるか否かの判断が難しくなる。このため、本実施形態では、マスク後も背景領域Pbが見えるマスクとしている。
By the way, in the present embodiment, as described above, the foreground region Pf and the background region Pb are separated, and the background region Pb is covered with a mask.
By the way, if this mask is, for example, black, etc., the background area Pb cannot be seen at all, and it is difficult to determine whether the foreground area Pf and the background area Pb are separated as intended. Become. In other words, the foreground area Pf and the background area Pb may be separated at a place different from the intended place due to an operation mistake or the like. In such a case, a black mask is formed and the background area Pb is If it cannot be seen at all, it is difficult to determine whether or not the separation process is appropriate. For this reason, in this embodiment, it is set as the mask which can see the background area | region Pb after masking.

その一方で、背景領域Pbのみを考慮してマスクを生成してしまうと、今度は、前景領域Pfの明度と、背景領域Pbの明度とが近くなるなどして、前景領域Pfを目立たせるのが難しくなることがある。このため、本実施形態では、前景領域Pfおよび背景領域Pbの二つの領域を考慮して、マスクの明度を決定する。   On the other hand, if the mask is generated in consideration of only the background area Pb, the brightness of the foreground area Pf and the brightness of the background area Pb are now close, and the foreground area Pf becomes conspicuous. Can be difficult. For this reason, in the present embodiment, the brightness of the mask is determined in consideration of the foreground region Pf and the background region Pb.

具体的には、本実施形態では、マスクの明度を決めるために明度テーブルが記憶部60に記憶されており、この明度テーブルを参照して、マスクの明度を決定する。付言すると、本実施形態では、上記のステップ105にてマスク(マスク用画像)の明度を決めるが、この際、この明度テーブルを参照して、マスクの明度を決める。
なお、明度テーブルを参照してマスクの明度を決めるのは一例であり、マスクの明度を決める数式などを予め用意しておき、この数式を用い明度を決めてもよい。
Specifically, in this embodiment, a lightness table is stored in the storage unit 60 in order to determine the lightness of the mask, and the lightness of the mask is determined with reference to this lightness table. In addition, in the present embodiment, the brightness of the mask (mask image) is determined in step 105 described above. At this time, the brightness of the mask is determined with reference to this brightness table.
It should be noted that determining the brightness of the mask with reference to the brightness table is merely an example, and a formula for determining the brightness of the mask may be prepared in advance, and the brightness may be determined using this formula.

図5は、明度テーブルを示した図である。
この明度テーブルでは、前景領域Pfの明度(領域全体の平均明度)(前景明度)が、2つに分類(「低(明度「小」)」および「高(明度「大」)」)されており、また、背景領域Pbの平均明度(領域全体の平均明度)(背景明度)も、2つに分類(「低(明度「小」)」および「高(明度「大」)」)されている。付言すると、本実施形態では、明度についての閾値である明度閾値が予め設定されており、この明度閾値を境として、前景領域Pfの明度および背景明度Pbの各々が、小さい明度あるいは大きい明度の何れかに分類される。
FIG. 5 is a diagram showing a brightness table.
In this lightness table, the lightness of the foreground region Pf (average lightness of the entire region) (foreground lightness) is classified into two (“low (lightness“ small ”)” and “high (lightness“ large ”)). In addition, the average brightness of the background area Pb (average brightness of the entire area) (background brightness) is also classified into two (“low (lightness“ small ”)” and “high (lightness“ high ”)). Yes. In addition, in the present embodiment, a lightness threshold value that is a lightness threshold value is set in advance, and each of the lightness value of the foreground area Pf and the background lightness value Pb is set to be either a small lightness value or a large lightness value. It is classified into crab.

なお、本実施形態では、明度閾値が1つ設定された場合を一例に説明するが、明度閾値は、例えば、2つ設けてもよく、この場合は、例えば、小さい方の明度閾値よりも明度が小さい場合に、明度が小さいと判断し、大きい方の明度閾値よりも明度が大きい場合に、明度が大きいと判断する。
また、本実施形態では、前景領域Pfの明度の判断(明度の高低の判断)、背景領域Pbの明度の判断(明度の高低の判断)に際して、共通の明度閾値を用いるが、前景領域Pfの明度の判断に用いる明度閾値と、背景領域Pbの明度の判断に用いる明度閾値とを異ならせてもよい。
In this embodiment, a case where one brightness threshold value is set will be described as an example. However, for example, two brightness threshold values may be provided. In this case, for example, the brightness value is smaller than the smaller brightness threshold value. Is small, it is determined that the lightness is small, and when the lightness is larger than the larger lightness threshold, it is determined that the lightness is large.
In the present embodiment, a common brightness threshold is used for determining the brightness of the foreground area Pf (determining whether the brightness is high) and determining the brightness of the background area Pb (deciding whether the brightness is high or low). The lightness threshold value used for the lightness determination may be different from the lightness threshold value used for the lightness determination of the background region Pb.

ここで、同図の(A)の条件の場合は、即ち、前景領域Pfの明度が低く(小さく、暗く)、背景領域Pbの明度も低い(小さい、暗い)場合、生成するマスクを白に近い色にするなど、マスクの明度を、高く(大きく、明るく)する。
これにより、前景領域Pfと、マスクをした後の背景領域Pbとの間で、コントラストが大きくなり、前景領域Pfが目立つようになる。また、マスクについては、白に近い色であり、背景領域Pbが透けるようになり、背景領域Pbが見えるようになる。
Here, in the case of the condition (A) in the figure, that is, when the lightness of the foreground region Pf is low (small and dark) and the lightness of the background region Pb is low (small and dark), the generated mask is white. Increase the brightness of the mask (larger and brighter), such as using a similar color.
As a result, the contrast between the foreground area Pf and the background area Pb after masking increases, and the foreground area Pf becomes conspicuous. Further, the mask has a color close to white, and the background area Pb is transparent, so that the background area Pb can be seen.

付言すると、(A)の条件の場合、マスクの明度を小さくしてしまうと、背景領域Pbの明度も小さいために、背景領域Pbが見えなくなるおそれがある。このため、(A)の条件では、マスクの明度を大きくしている。また、明度の小さい前景領域Pfを目立たせるためにも、マスクの明度を大きくしている。   In addition, in the case of the condition (A), if the lightness of the mask is reduced, the lightness of the background region Pb is also small, so that the background region Pb may not be visible. For this reason, the brightness of the mask is increased under the condition (A). In addition, the brightness of the mask is increased in order to make the foreground region Pf having a low brightness stand out.

さらに説明すると、(A)の条件のように、前景領域Pfの明度が上記明度閾値よりも小さい場合は、マスクの明度を大きくするほど、コントラストが大きくなり、前景領域Pfが目立つ。また、(A)の条件では、背景領域Pbの明度が明度閾値よりも小さく、背景領域Pbは暗いため、マスクの明度を小さくしてしまうと、背景領域Pbが見えなくなる。このため、(A)の条件のように、前景領域Pfの明度が明度閾値よりも小さく、さらに、背景領域Pbの明度も明度閾値よりも小さい場合は、マスクの明度を大きくする。   More specifically, when the lightness of the foreground region Pf is smaller than the lightness threshold value as in the condition (A), the contrast becomes larger and the foreground region Pf becomes more conspicuous as the lightness of the mask is increased. Under the condition (A), the brightness of the background area Pb is smaller than the brightness threshold and the background area Pb is dark. Therefore, if the brightness of the mask is reduced, the background area Pb becomes invisible. For this reason, when the brightness of the foreground area Pf is smaller than the brightness threshold and the brightness of the background area Pb is also smaller than the brightness threshold as in the condition (A), the brightness of the mask is increased.

次に(B)の条件について説明する。
(B)の条件の場合は、即ち、前景領域Pfの明度が高く(大きく、明るく)、背景領域Pbの明度が低い(小さい、暗い)場合は、生成するマスクをグレーにやや近づいた白にするなど、生成するマスクを、中から高くらいの明度にする。これにより、前景領域Pfと、マスクをした後の背景領域Pbとの間で、コントラストが生まれる。また、マスクについては、明度が比較的高いため、背景領域Pbが透けるようになり、背景領域Pbが見えるようになる。
Next, the condition (B) will be described.
In the case of the condition (B), that is, when the lightness of the foreground region Pf is high (large and bright) and the lightness of the background region Pb is low (small and dark), the generated mask is white that is slightly closer to gray. The mask to be generated is set to lightness from the middle to high. As a result, a contrast is created between the foreground region Pf and the background region Pb after masking. Moreover, since the brightness of the mask is relatively high, the background region Pb becomes transparent and the background region Pb becomes visible.

付言すると、(B)の条件においても、マスクの明度を小さくしてしまうと、背景領域Pbの明度も小さいために、背景領域Pbが見えなくなるおそれがある。このため、マスクの明度を大きくしている。その一方で、(B)の条件では、前景領域Pfの明度が大きいために、マスクの明度も大きくしてしまうと、前景領域Pfが目立ちにくくなる。このため、この例では、マスクの明度を、中−高の範囲に設定する。   In addition, even under the condition (B), if the lightness of the mask is decreased, the lightness of the background region Pb is also small, so that the background region Pb may not be visible. For this reason, the brightness of the mask is increased. On the other hand, under the condition (B), since the brightness of the foreground region Pf is large, if the brightness of the mask is increased, the foreground region Pf becomes less noticeable. For this reason, in this example, the lightness of the mask is set in the middle-high range.

さらに説明すると、(B)の条件のように、前景領域Pfの明度が明度閾値よりも大きい場合は、マスクの明度を小さくするほど、コントラストが大きくなり、前景領域Pfが目立つようになる。その一方で、(B)の条件では、背景領域Pbの明度が明度閾値(設定背景明度の一例)よりも小さく、背景領域Pbは暗いため、マスクの明度を小さくすると、背景領域Pbが見えなくなるおそれがある。
このため、(B)の条件のように、前景領域Pfの明度が明度閾値よりも大きく、その一方で、背景領域Pbの明度が明度閾値よりも小さい場合には、背景領域Pbの明度が明度閾値よりも大きい場合に比べ(後に説明する条件(D)の場合に比べ)、マスクの明度を大きくする。これにより、マスクを通じ、背後に位置する背景領域Pbが見えるようになる。
More specifically, when the lightness of the foreground region Pf is larger than the lightness threshold as in the condition (B), the contrast becomes larger and the foreground region Pf becomes more conspicuous as the lightness of the mask is decreased. On the other hand, under the condition (B), the lightness of the background region Pb is smaller than the lightness threshold (an example of the set background lightness) and the background region Pb is dark. Therefore, if the lightness of the mask is reduced, the background region Pb becomes invisible. There is a fear.
For this reason, when the lightness of the foreground area Pf is larger than the lightness threshold while the lightness of the background area Pb is smaller than the lightness threshold as in the condition (B), the lightness of the background area Pb is lightness. The brightness of the mask is increased as compared with the case where it is larger than the threshold (as compared with the case of condition (D) described later). Thereby, the background area Pb located behind can be seen through the mask.

次に(C)の条件について説明する。
(C)の条件の場合は、即ち、前景領域Pfの明度が低く(小さく、暗く)、背景領域Pbの明度が高い(大きい、明るい)場合は、生成するマスクの明度を、低から中くらいの明度にする。これにより、前景領域Pfと、マスクをした後の背景領域Pbとの間で、コントラストが生まれる。また、背景領域Pbの部分については、もともとの明度が高いため、低から中くらいの明度のマスクをしたとしても、背景領域Pbが透け、背景領域Pbが見える。
Next, the condition (C) will be described.
In the case of the condition (C), that is, when the lightness of the foreground region Pf is low (small and dark) and the lightness of the background region Pb is high (large and light), the lightness of the generated mask is set to low to medium. To the lightness. As a result, a contrast is created between the foreground region Pf and the background region Pb after masking. In addition, the background area Pb is originally high in brightness, so even if a low to medium brightness mask is used, the background area Pb is transparent and the background area Pb can be seen.

付言すると、(C)の条件の場合は、背景領域Pbの明度が大きいため、マスクの明度が大きいと、背景領域Pbのマスクが不十分となり、背景領域Pbが見えやすくなってしまう。このため、この条件では、マスクの明度を小さくする。その一方で、マスクの明度を小さくし過ぎると、今度は、前景領域Pfと背景領域Pbとの間でコントラストが生じにくくなり、前景領域Pfが目立ちにくくなる。このため、(C)の条件では、マスクは、最も低い明度よりも大きい、「低−中」の明度に設定する。   In addition, in the case of the condition (C), since the brightness of the background area Pb is large, if the brightness of the mask is large, the mask of the background area Pb becomes insufficient, and the background area Pb becomes easy to see. Therefore, under this condition, the brightness of the mask is reduced. On the other hand, if the lightness of the mask is made too small, this time, the contrast between the foreground region Pf and the background region Pb becomes difficult to occur, and the foreground region Pf becomes less noticeable. For this reason, under the condition (C), the mask is set to a “low-medium” lightness that is larger than the lowest lightness.

さらに説明すると、(C)の条件のように、前景領域Pfの明度が明度閾値よりも小さい場合には、マスクの明度を大きくするほど、コントラストが大きくなり、前景領域Pfが目立つ。その一方で、(C)の条件では、背景領域Pbの明度が明度閾値(設定背景明度の一例)よりも大きく、背景領域Pbが明るいため、マスクの明度を大きくしてしまうと、背景領域Pbが透けてしまう。そしてこの場合、背景領域Pbが隠れずに目立つようになる。   More specifically, when the lightness of the foreground region Pf is smaller than the lightness threshold as in the condition (C), the contrast becomes larger and the foreground region Pf becomes more conspicuous as the lightness of the mask is increased. On the other hand, under the condition (C), the lightness of the background region Pb is larger than the lightness threshold (an example of the set background lightness) and the background region Pb is bright. Therefore, if the lightness of the mask is increased, the background region Pb Will be transparent. In this case, the background region Pb becomes conspicuous without being hidden.

このため、本実施形態では、(C)の条件のように、前景領域Pfの明度が明度閾値よりも小さく、その一方で、背景領域Pbの明度が明度閾値よりも大きい場合には、背景領域Pbの明度が明度閾値よりも小さい場合に比べ(上記の条件(A)の場合に比べ)、マスクの明度を小さくする。このようにすると、マスクを通じた背景領域Pbの視認を行えるようにしつつ、背景領域Pbが目立ちにくくなる。   For this reason, in the present embodiment, when the brightness of the foreground area Pf is smaller than the brightness threshold while the brightness of the background area Pb is greater than the brightness threshold as in the condition (C), the background area The lightness of the mask is made smaller than when the lightness of Pb is smaller than the lightness threshold (as compared with the case of the above condition (A)). In this way, the background area Pb is less noticeable while the background area Pb can be visually recognized through the mask.

次に(D)の条件について説明する。
(D)の条件の場合は、即ち、前景領域Pfの明度が高く(大きく、明るく)、背景領域Pbの明度も高い(大きい、明るい)場合は、生成するマスクの明度を「低」にする。これにより、前景領域Pfと、マスクをした後の背景領域Pbとの間で、コントラストが生まれる。また、背景領域Pbの部分については、もともとの明度が高いため、低の明度のマスクをしたとしても、背景領域Pbが透け、背景領域Pbが見える。
Next, the condition (D) will be described.
In the case of the condition (D), that is, when the lightness of the foreground region Pf is high (large and bright) and the lightness of the background region Pb is also high (large and bright), the lightness of the generated mask is set to “low”. . As a result, a contrast is created between the foreground region Pf and the background region Pb after masking. In addition, the background area Pb is originally high in brightness, so even if a low brightness mask is used, the background area Pb is transparent and the background area Pb can be seen.

付言すると、この(D)の条件でも、背景領域Pbの明度が大きいため、マスクの明度を大きくしてしまうと、背景領域Pbのマスクが不十分となり、背景領域Pbが見えやすくなってしまう。このため、この条件でも、マスクの明度を小さくする。また、この条件では、前景領域Pfの明度が大きく、マスクの明度が小さいほど前景領域Pfが目立つため、マスクの明度を「低」にする。   In addition, even under the condition (D), since the brightness of the background area Pb is large, if the brightness of the mask is increased, the mask of the background area Pb becomes insufficient and the background area Pb becomes easy to see. For this reason, the brightness of the mask is reduced even under this condition. Also, under this condition, the lightness of the foreground region Pf is larger and the lightness of the mask is smaller, so that the foreground region Pf is more conspicuous.

さらに、説明すると、(D)の条件のように、前景領域Pfの明度が明度閾値よりも大きい場合は、マスクの明度を小さくするほど、コントラストが大きくなり、前景領域Pfが目立つ。また、(D)の条件では、背景領域Pbの明度が明度閾値よりも大きく、背景領域Pbは明るいため、マスクの明度を小さくしても、背景領域Pbは見える。このため、この条件(D)のように、前景領域Pfの明度が明度閾値よりも大きく、さらに、背景領域Pbの明度も明度閾値よりも大きい場合には、マスクの明度を小さくする。   Furthermore, when the lightness of the foreground region Pf is larger than the lightness threshold as in the condition (D), the contrast becomes larger and the foreground region Pf becomes more conspicuous as the lightness of the mask is decreased. Under the condition (D), the brightness of the background area Pb is larger than the brightness threshold value, and the background area Pb is bright. Therefore, the background area Pb can be seen even if the brightness of the mask is reduced. For this reason, when the lightness of the foreground region Pf is larger than the lightness threshold and the lightness of the background region Pb is larger than the lightness threshold as in the condition (D), the lightness of the mask is decreased.

図6(A)、(B)は、明度テーブルを用いた処理の具体例を示した図である。
ここで、例えば、同図(A)の(A1)に示す画像の背景領域Pbに対して、マスクを行う場合を想定する。なお、例では、「星」の画像の内側の部分、星を取り囲むリングの部分が前景領域Pfとして設定され、これ以外の部分が背景領域Pbとして設定されている。
6A and 6B are diagrams illustrating a specific example of processing using a brightness table.
Here, for example, a case is assumed where the background region Pb of the image shown in (A1) of FIG. In the example, the inner portion of the “star” image and the ring portion surrounding the star are set as the foreground region Pf, and the other portion is set as the background region Pb.

この(A)に示す例では、前景領域Pfおよび背景領域Pbのいずれにおいても、明度が大きくなっている。このため、この場合は、図5の(D)の条件に該当し、明度が低いマスクが設定される。これにより、図6(A)の(A2)に示すように、背景領域Pbに対し、黒色に近いマスクがかけられる。   In the example shown in (A), the brightness is high in both the foreground region Pf and the background region Pb. Therefore, in this case, a mask that satisfies the condition (D) in FIG. 5 and has low brightness is set. As a result, as shown in (A2) of FIG. 6A, a mask close to black is applied to the background region Pb.

また、図6(B)に示す例では、「星」の画像の内側の部分が前景領域Pfとして設定され、これ以外の部分が、背景領域Pbとして設定されている。また、この(B)に示す例では、前景領域Pfの明度が小さく、背景領域Pbの明度が大きくなっている。このため、この場合は、図5の(C)の条件に該当し、「低―中」の明度のマスクが設定される。   In the example shown in FIG. 6B, the inner portion of the “star” image is set as the foreground region Pf, and the other portion is set as the background region Pb. In the example shown in (B), the lightness of the foreground region Pf is small and the lightness of the background region Pb is large. For this reason, in this case, the condition of the condition (C) in FIG. 5 is satisfied, and a “low-medium” lightness mask is set.

これにより、図6(B)の(B2)に示すように、背景領域Pbに対して、グレーのマスクがかけられるようになる。そして、この場合、前景領域Pfと背景領域Pbとの間にコントラストが生まれ、前景領域Pfが目立つようになる。また、背景領域Pbが透けて見え、前景領域Pfと背景領域Pbとの分離が、意図した通りに行われているか否かの確認を行えるようになる。   As a result, as shown in (B2) of FIG. 6B, a gray mask can be applied to the background region Pb. In this case, a contrast is generated between the foreground region Pf and the background region Pb, and the foreground region Pf becomes conspicuous. Further, the background area Pb can be seen through, and it can be confirmed whether or not the foreground area Pf and the background area Pb are separated as intended.

ところで、上記の手法によってマスクの明度を設定した場合であっても、場合によっては、マスクの明度が大きすぎたり小さすぎたりし、背景領域Pbが見えなくなってしまったり、背景領域Pbが見えたままの状態となったりすることがある。このため、本実施形態の画像処理装置1では、マスクの明度を変更できるようにしている。   By the way, even when the brightness of the mask is set by the above-described method, the brightness of the mask is too large or too small depending on the case, and the background area Pb becomes invisible or the background area Pb is visible. May be left untouched. For this reason, in the image processing apparatus 1 of the present embodiment, the brightness of the mask can be changed.

図7、図8は、マスクの明度の変更処理を説明する図である。付言すると、図7、図8は、制御部50によって実行される、マスクの明度変更処理を示した図である。なお、図7は、処理の流れを示したフローチャートであり、図8は、処理の具体例を示した図である。   7 and 8 are diagrams for explaining mask brightness change processing. In addition, FIGS. 7 and 8 are diagrams illustrating mask brightness change processing executed by the control unit 50. FIG. 7 is a flowchart showing the flow of processing, and FIG. 8 is a diagram showing a specific example of processing.

図7に示すように、本実施形態では、まず、上記にて説明した、分離処理、マスク処理が実行される(ステップ201)。これにより、例えば、図8(B)で示すような画像が生成される。   As shown in FIG. 7, in this embodiment, first, the separation process and the mask process described above are executed (step 201). Thereby, for example, an image as shown in FIG. 8B is generated.

次いで、ユーザが行った操作の認識処理であるジェスチャ認識を行う(ステップ202)。ここで、この例では、図8(B)に示すように、タッチパネル(表示面31)上にてスライド移動する指の認識処理を行う。具体的には、指の移動量を検知する。そして、指の移動量を検知すると、マスクの明度の変更処理を実施する(ステップ203)。   Next, gesture recognition which is recognition processing of an operation performed by the user is performed (step 202). Here, in this example, as shown in FIG. 8B, recognition processing of a finger that slides on the touch panel (display surface 31) is performed. Specifically, the movement amount of the finger is detected. When the movement amount of the finger is detected, a process for changing the brightness of the mask is performed (step 203).

さらに説明すると、本実施形態では、ユーザの指の移動量に基づき、マスクの明度の変更処理を行う。付言すると、本実施形態では、マスクの明度の変更に際しては、まず、調整値取得手段として機能する制御部50が、明度の変更に用いる調整値をユーザから取得する。具体的には、ユーザの指の移動量を調整値として取得する。次いで、明度変更手段として機能する制御部50が、この調整値を用いて、マスクの明度の変更処理を行う。そして、マスクの明度の変更処理を施した画像を、再び表示する(ステップ204)。   More specifically, in the present embodiment, mask brightness change processing is performed based on the amount of movement of the user's finger. In addition, in the present embodiment, when changing the brightness of the mask, first, the control unit 50 functioning as an adjustment value acquisition unit acquires an adjustment value used for changing the brightness from the user. Specifically, the movement amount of the user's finger is acquired as an adjustment value. Next, the control unit 50 functioning as brightness change means performs a process of changing the brightness of the mask using this adjustment value. Then, the image subjected to the mask brightness change process is displayed again (step 204).

さらに具体的に説明すると、本実施形態では、図8(B)にて示す状態から、例えば、ユーザが指を図中上方へ移動させた場合には、マスクの明度を大きくする処理を行い、ユーザが指を図中下方へ移動させた場合には、マスクの明度を小さくする処理を行う。ここで、同図(C)は、ユーザが、指を下方へ移動した場合を例示しており、ユーザの指が下方へ移動した場合には、同図(C)に示すように、背景領域Pbの明度が小さくなる。   More specifically, in this embodiment, from the state shown in FIG. 8B, for example, when the user moves the finger upward in the figure, a process for increasing the brightness of the mask is performed. When the user moves the finger downward in the figure, a process for reducing the brightness of the mask is performed. Here, FIG. 6C illustrates the case where the user moves his / her finger downward, and when the user's finger moves downward, as shown in FIG. The brightness of Pb decreases.

なお、この例では、指の上下方向の移動に基づきマスクの明度を変更する場合を一例に説明したが、その他に、例えば、指の左右方向の移動に基づきマスクの明度を変更するようにしてもよい。
また、この例では、タッチパネル(表示面31)に対する指の移動量に基づき、明度の変更量を取得する場合を一例に説明したが、その他に、例えば、タッチパネル(表示面31)にテンキーを表示するなどして、ユーザが、明度の変更量についての具体的な数値を直接入力する形態としてもよい。
また、上記では、画像処理装置1が、いわゆるタブレット端末により構成された場合を一例に説明したが、画像処理装置1は、モニタ、キーボード、マウスなどを備えたPC(Personal Computer)により構成してもよい。
In this example, the case where the brightness of the mask is changed based on the vertical movement of the finger has been described as an example. However, for example, the brightness of the mask is changed based on the horizontal movement of the finger. Also good.
Further, in this example, the case of acquiring the lightness change amount based on the finger movement amount with respect to the touch panel (display surface 31) has been described as an example. However, for example, a numeric keypad is displayed on the touch panel (display surface 31). For example, the user may directly input a specific numerical value regarding the lightness change amount.
In the above description, the case where the image processing apparatus 1 is configured by a so-called tablet terminal has been described as an example. However, the image processing apparatus 1 is configured by a PC (Personal Computer) including a monitor, a keyboard, a mouse, and the like. Also good.

1…画像処理装置、50…制御部、P…画像、Pf…前景領域、Pb…背景領域 DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 50 ... Control part, P ... Image, Pf ... Foreground area | region, Pb ... Background area | region

Claims (5)

対象画像を、前景領域と背景領域とに分離する分離手段と、
前記前景領域の明度である前景明度、および、前記背景領域の明度である背景明度を把握する把握手段と、
前記背景領域に対してマスクを行い、当該マスクを行った後の当該背景領域と前記前景領域との間にコントラストが生じるように当該マスクを行うマスク手段と、
を備え、
前記マスク手段は、
前記前景明度が予め定められた明度よりも大きい場合において前記背景明度が予め設定された設定背景明度よりも小さい場合には、当該設定背景明度よりも大きい場合に比べて、前記マスクの明度を大きくし、
前記前景明度が予め定められた明度よりも小さい場合において前記背景明度が予め設定された設定背景明度よりも大きい場合には、当該設定背景明度よりも小さい場合に比べて、前記マスクの明度を小さくすることを特徴とする画像処理装置。
Separating means for separating the target image into a foreground region and a background region;
Grasping means for grasping the foreground lightness that is the lightness of the foreground region and the background lightness that is the lightness of the background region;
Mask means for performing masking on the background region, and performing masking so that a contrast is generated between the background region after performing the masking and the foreground region;
With
The mask means includes
When the foreground lightness is higher than a predetermined lightness, when the background lightness is smaller than a preset background lightness, the lightness of the mask is made larger than when the background lightness is larger than the set background lightness. And
When the foreground lightness is smaller than a predetermined lightness, the lightness of the mask is smaller when the background lightness is larger than a preset background lightness than when the background lightness is smaller than the preset background lightness. An image processing apparatus.
前記マスク手段が前記マスクの明度を大きくする場合の当該マスクの明度は、当該マスクを通じて前記背景領域が透けて見える明度に設定され、
前記マスク手段が前記マスクの明度を小さくする場合の当該マスクの明度は、当該マスクを通じて前記背景領域が透けて見える明度に設定されることを特徴とする請求項1に記載の画像処理装置。
When the mask means increases the brightness of the mask, the brightness of the mask is set to a brightness at which the background region can be seen through the mask,
The image processing apparatus according to claim 1, wherein the brightness of the mask when the mask means reduces the brightness of the mask is set to a brightness at which the background region can be seen through the mask.
ユーザから得た調整値を用い、前記マスクの明度を変更する明度変更手段を更に備えることを特徴とする請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a brightness changing unit that changes the brightness of the mask using an adjustment value obtained from a user. ユーザにより入力される前記調整値を取得する調整値取得手段と、
前記背景領域にマスクが行われた後の画像を表示するタッチパネルと、
を更に備え、
前記調整値取得手段は、前記タッチパネル上をスライド移動する、ユーザの指の移動量を検知して前記調整値を取得することを特徴とする請求項3に記載の画像処理装置。
Adjustment value acquisition means for acquiring the adjustment value input by the user;
A touch panel for displaying an image after the background area is masked;
Further comprising
The image processing apparatus according to claim 3, wherein the adjustment value acquisition unit acquires the adjustment value by detecting a movement amount of a user's finger that slides on the touch panel.
対象画像を、前景領域と背景領域とに分離する分離機能と、
前記前景領域の明度である前景明度、および、前記背景領域の明度である背景明度を把握する把握機能と、
前記背景領域に対してマスクを行い、当該マスクを行った後の当該背景領域と前記前景領域との間にコントラストが生じるように当該マスクを行うマスク機能と、
をコンピュータに実現させるためのプログラムであり、
前記マスク機能は、
前記前景明度が予め定められた明度よりも大きい場合において前記背景明度が予め設定された設定背景明度よりも小さい場合には、当該設定背景明度よりも大きい場合に比べて、前記マスクの明度を大きくし、
前記前景明度が予め定められた明度よりも小さい場合において前記背景明度が予め設定された設定背景明度よりも大きい場合には、当該設定背景明度よりも小さい場合に比べて、前記マスクの明度を小さくすることを特徴とするプログラム。
A separation function for separating the target image into a foreground region and a background region;
A grasping function for grasping the foreground lightness that is the lightness of the foreground region and the background lightness that is the lightness of the background region;
A mask function for masking the background region, and performing the mask so that a contrast occurs between the background region after the masking and the foreground region;
Is a program for causing a computer to realize
The mask function is
When the foreground lightness is higher than a predetermined lightness, when the background lightness is smaller than a preset background lightness, the lightness of the mask is made larger than when the background lightness is larger than the set background lightness. And
When the foreground lightness is smaller than a predetermined lightness, the lightness of the mask is smaller when the background lightness is larger than a preset background lightness than when the background lightness is smaller than the preset background lightness. The program characterized by doing.
JP2014140784A 2014-07-08 2014-07-08 Image processing apparatus and program Active JP6365033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014140784A JP6365033B2 (en) 2014-07-08 2014-07-08 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014140784A JP6365033B2 (en) 2014-07-08 2014-07-08 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2016018391A JP2016018391A (en) 2016-02-01
JP6365033B2 true JP6365033B2 (en) 2018-08-01

Family

ID=55233569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014140784A Active JP6365033B2 (en) 2014-07-08 2014-07-08 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP6365033B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6919433B2 (en) * 2017-09-05 2021-08-18 富士フイルムビジネスイノベーション株式会社 Image processing equipment, image processing methods, image processing systems and programs
JP7207847B2 (en) * 2017-09-15 2023-01-18 浜松ホトニクス株式会社 Image processing method, image processing apparatus, and image processing program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006007707A (en) * 2004-06-29 2006-01-12 Seiko Epson Corp Background image printer and background image printing method
US8290275B2 (en) * 2006-01-20 2012-10-16 Kansai Paint Co., Ltd. Effective pigment identification method, identification system, identification program, and recording medium therefor
JP2009251454A (en) * 2008-04-09 2009-10-29 Nikon Corp Display controller for dark room
JP2011130105A (en) * 2009-12-16 2011-06-30 Konica Minolta Business Technologies Inc Image processing apparatus

Also Published As

Publication number Publication date
JP2016018391A (en) 2016-02-01

Similar Documents

Publication Publication Date Title
US8140970B2 (en) System and method for semi-transparent display of hands over a keyboard in real-time
US9672628B2 (en) Method for partitioning area, and inspection device
US20110264442A1 (en) Visually emphasizing predicted keys of virtual keyboard
WO2012147960A1 (en) Information processing device, information processing method, and recording medium
KR20150038518A (en) Setting an operating-system color using a photograph
EP3891585A1 (en) Biofeedback method of modulating digital content to invoke greater pupil radius response
Grif et al. Mouse cursor control system based on hand gesture
EP3772038A1 (en) Augmented reality display method of simulated lip makeup
JP6287337B2 (en) Image processing apparatus, image processing method, image processing system, and program
CN108459783A (en) Control method, device and the equipment of dummy keyboard, readable medium
JP2016062263A (en) Information processor, image alteration method, and program
JP6365033B2 (en) Image processing apparatus and program
JP5943112B1 (en) Image processing apparatus, image processing system, and program
JP6241320B2 (en) Image processing apparatus, image processing method, image processing system, and program
US8462171B2 (en) Saturation contrast image enhancement
EP3340015A1 (en) Display device for adjusting transparency of indicated object and display method for the same
US20140301638A1 (en) Color extraction-based image processing method, computer-readable storage medium storing the same, and digital image apparatus
JP2014038543A (en) Character recognition system and program for recognizing finger character
CN107315473A (en) A kind of method that body-sensing gesture selects Android Mission Objective UI controls
US9336608B2 (en) Color arrangement checking device, information storage medium storing a computer program thereof, and data processing method
JP5672168B2 (en) Image processing apparatus, image processing method, and program
WO2018180406A1 (en) Sequence generation device and method for control thereof
US20170154439A1 (en) Information processing apparatus, information processing system, information processing method, and recording medium
JP6762544B2 (en) Image processing equipment, image processing method, and image processing program
JP2018097415A (en) Image processing apparatus, image processing method, image processing system, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180525

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180618

R150 Certificate of patent or registration of utility model

Ref document number: 6365033

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350