Image processing device, method and program

The image processing device sets key frames in videos based on inter-frame differences to stabilize depth compression, addressing user discomfort and processing inefficiencies in existing technologies.

JP7568060B2Active Publication Date: 2024-10-16NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023508214
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-10-16
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

Existing depth compression technologies for still images cannot be directly applied to moving images (videos) without significant fluctuations in depth estimation, leading to user discomfort due to rapid frame changes and inefficient processing times.

Method used

An image processing device that sets key frames in a moving image based on inter-frame differences, using these frames to generate and update depth compression functions, ensuring smooth transitions and efficient processing by limiting key frame frequency.

Benefits of technology

The solution allows for appropriate depth compression in videos, reducing user discomfort and optimizing processing efficiency by minimizing fluctuations in depth estimation and function changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568060000001
    Figure 0007568060000001
  • Figure 0007568060000002
    Figure 0007568060000002
  • Figure 0007568060000003
    Figure 0007568060000003
Patent Text Reader

Abstract

This image processing device comprises: a frame determination unit which, when the region size of the difference between one frame in a time series in a video and a frame after said frame is large enough to satisfy a prescribed condition, determines the aforementioned one frame and the aforementioned frame at the subsequent timing to be a first and a second frame, which are generating elements of a function used for mapping the depth of said frame; a depth estimation unit which estimates the depth of the multiple frames between the first and the second frame; and a function generation unit which generates a function that is used in depth mapping of the first frame as a function that can be utilized for depth mapping of the aforementioned multiple frames, and generates a function that is used in depth mapping of the second frame.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device, a method, and a program. [Background technology]

[0002] There is a technique for compressing the depth of a still image. For example, Non-Patent Document 1 describes that, based on the fact that the range in which a user can effectively feel parallax is the periphery of a display surface, the position where an object of interest exists is set to the display surface, the 5th percentile of the depth is set to the minimum value of the depth, the 95th percentile of the depth is set to the maximum value of the depth, and the depth is nonlinearly mapped to the input image.

[0003] The function used when mapping depth is called a depth compression function. When depth compression processing is performed on each of different images, the depth compression function differs depending on the distribution of depth within the image.

[0004] In addition, Non-Patent Document 2 describes that a disparity layer is derived from a result of disparity histogram analysis, and a certain range of depth in the layer in which the object of interest exists is extended. This allows the depth of details in the object of interest to be expressed sufficiently. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Gaze Stereo 3D : Seamless Disparity Manipulations (Petr Kelnhofer, et al., “GazeStereo3D: Seamless Disparity Manipulations,” ACMTransactions on Graphics -Proceedings of ACM SIGGRAPH 2016, Volume 35, Issue 4, 2016. [Non-Patent Document 2] SangwooLee, YounghuiKim, JungjinLee, KyehyunKim, KyunghanLee and JunyongNoh, “Depth manipulation using disparity histogram analysis for stereoscopic 3D”, The Visual Computer 30(4):455-465, April 2014. Summary of the Invention [Problem to be solved by the invention]

[0006] If the above-mentioned depth compression technology is applied directly to moving images (video), a display surface needs to be set for each frame of the video, and therefore depth compression processing needs to be performed for all frames of the video.

[0007] In each frame of a video, the interval between frames is short; for example, when the frame rate is 60 fps, the interval between frames is 16.6 msec. Therefore, the movement of the subject is generally limited and there is no significant difference between frames.

[0008] However, if the accuracy of the depth estimation result is low, i.e., if the depth information fluctuates from frame to frame, it may cause a user to feel uncomfortable when watching 3D (three dimensions) video, as the depth appears to change even though the movement of the subject is minimal.

[0009] Furthermore, since the depth compression process is a process for expanding the depth of an image before compression, the fluctuation of the depth information is also expanded, which may further increase the sense of discomfort felt by the user.

[0010] Furthermore, when conventional depth compression processing is performed, the processing involves solving an optimization problem, which increases processing time and further fluctuates the depth compression function, possibly resulting in an anomalous solution.

[0011] The present invention has been made in light of the above-mentioned circumstances, and an object of the present invention is to provide an image processing apparatus, method, and program that are capable of appropriately compressing the depth of an image. [Means for solving the problem]

[0012] An image processing device according to one aspect of the present invention includes: a frame in a time series of a moving image; and a timing of the frame. before a difference calculation unit that calculates a magnitude of a difference between a frame at a timing of the one frame and a frame at a timing of the other frame; and when the magnitude of the difference calculated by the difference calculation unit is large enough to satisfy a predetermined condition, the one frame is treated as a generator of a function used for mapping the depth of the frame. Keyframes as The first frame is determined as vinegar a frame determining unit for determining a frame number from the first frame; The key frame previously determined by the frame determination unit a depth estimation unit that estimates a depth of each frame up to a second frame; From the depth estimated by the depth estimation unit, The function used to map the depth of the first frame and a function used to map the depth of the second frame. of and using a function used for mapping the depth of the second frame, gradually changing the function used for mapping the depth of the second frame to the function used for mapping the depth of the first frame. a function that can be used to map the depth of each frame between the first frame and the second frame; of Generate vinegar and a function generating unit.

[0013] An image processing method according to one aspect of the present invention is performed by an image processing device. circle A method for A difference calculation unit of the image processing device A single frame in a time series of a video and the timing of the single frame before Calculating the magnitude of the difference between the timing frames of A frame determination unit of the image processing device The above By the difference calculation part When the magnitude of the calculated difference is large enough to satisfy a predetermined condition, the one frame is treated as a generator of a function used for mapping the depth of the frame. Keyframes as The first frame is determined as vinegar And, A depth estimation unit of the image processing device From the first frame The key frame previously determined by the frame determination unit estimating a depth for each frame up to a second frame; A function generating unit of the image processing device calculates, from the depth estimated by the depth estimation unit, The function used to map the depth of the first frame and a function used to map the depth of the second frame. of and using a function used for mapping the depth of the second frame, gradually changing the function used for mapping the depth of the second frame to the function used for mapping the depth of the first frame. a function that can be used to map the depth of each frame between the first frame and the second frame; of Generate vinegar It is provided with the following. Effect of the Invention

[0014] According to the present invention, the depth of an image can be appropriately compressed. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a block diagram showing an application example of a depth map generating device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing an example of the relationship between successive frames in a time series, keyframes, and a depth compression function. [Diagram 3] FIG. 3 is a flowchart showing an example of a processing operation performed by a depth map generating device according to an embodiment of the present invention. [Figure 4] FIG. 4 is a diagram showing a specific example of a processing operation performed by a depth map generating device according to an embodiment of the present invention. [Diagram 5]FIG. 5 is a diagram showing an example of calculation of the difference between frames. [Figure 6] FIG. 6 is a block diagram showing an example of a hardware configuration of a depth map generating device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an application example of a depth map generating device according to an embodiment of the present invention. As shown in FIG. 1, a depth map generating device 100, which is an image processing device according to one embodiment of the present invention, has a frame specific information adding unit 11, an inter-frame difference calculation unit 12, a key frame determination unit 13, a processing order control unit 14, a depth estimation unit 15, a depth compression function generation unit 16, and a depth compression processing unit 17.

[0017] In this embodiment, the depth map generating device 100 can appropriately set frames (hereinafter, referred to as key frames) used for generating a depth compression function. Specifically, only when the difference between multiple consecutive frames in a time series in the input image, that is, a moving image, for example the difference between the frame to be processed and the frame immediately preceding it in the time series, is relatively large, for example exceeding a predetermined threshold, the depth map generating device 100 sets a key frame corresponding to the frame to be processed and sets a depth compression function based on this key frame.

[0018] On the other hand, if the difference between the frame to be processed and the frame immediately preceding it in the time series is relatively small, for example equal to or less than the predetermined threshold, no key frame is set for the frame to be processed. In this case, a depth compression function generated based on a past frame that has already been set as the latest key frame, i.e., the most recent key frame for the frame to be processed in the time series, may be used as the depth compression function corresponding to the frame to be processed. This makes it possible to narrow down the key frames that are set as the source of generation of the depth compression function for each frame whose difference in time series is relatively small, thereby obtaining the effect of preventing the influence of fluctuations in the depth compression function.

[0019] Furthermore, as described above, by setting the frame to be processed when the difference between frames is relatively large as a key frame, only a portion of each frame needs to be set as a key frame, which has the effect of making the processing load related to generating the depth compression function more efficient.

[0020] In this embodiment, the depth map generating device 100 calculates the size of the area of ​​difference between adjacent frames and its accumulated value for each pair of chronologically adjacent frames in the original image, that is, a moving image, and can also set the frame to be processed as a key frame at the point when this accumulated value becomes a value that satisfies a predetermined condition, for example, at the point when it exceeds a threshold value. As described above, in this embodiment, the depth compression process can be effectively performed on a moving image.

[0021] The depth map generating device 100 is not limited to setting a key frame based on the difference between the above frames, but may also, for example, be combined with a video encoding process and set a frame corresponding to the i (i=1, 2, ...) frame on which the encoding process was performed as a key frame.

[0022] In addition, in order to avoid the influence of a significant change in the depth compression function caused by switching of key frames, i.e., setting of a new key frame at a later timing in relation to a key frame set at a previous timing in the time series, in this embodiment, the depth map generating device 100 can generate a depth compression function generated from the key frame after switching, i.e., the new key frame, for a predetermined number of consecutive frames in the time series before the key frame switching, starting from the new key frame.

[0023] Furthermore, the depth map generating device 100 can generate a depth compression function that is smoothed between the depth compression function generated at the timing immediately before the new key frame and the depth compression function generated from the new key frame, that is, that is changed gradually, i.e., in stages, from the depth compression function corresponding to the earlier key frame to the depth compression function corresponding to the later key frame. The depth map generating device 100 can then apply these generation results as a depth compression function corresponding to a predetermined number of frames going back from the new key frame.

[0024] Examples of key frame switching are shown below in (1) to (3). (1) In a visual effect such as a scene change, the inter-frame difference exceeds a threshold in the frame in which the scene change occurs, so the depth map generating device 100 sets a new key frame when the inter-frame difference exceeds the threshold.

[0025] (2) In scenes where only the subject is moving, the difference between individual frames is small, but this difference is accumulated over time, and when this accumulated value exceeds a threshold, a new keyframe is set.

[0026] (3) In frames corresponding to scenes in which the subject is not moving or is not moving at all after the frames already set as key frames, new key frames are not set. In other words, in frames corresponding to the scene, the same key frames are used continuously in chronological order, and a depth compression function based on these key frames can be generated. Alternatively, for each of the frames corresponding to the above-mentioned scenes in which the subject is barely moving or not moving at all, a depth compression function based on the most recent key frame going back from each of the frames in the time series is extracted to be used in subsequent processing as a depth compression function corresponding to each of the frames, and these extracted depth compression functions are used in a depth compression process performed by the depth compression processing unit 17, which will be described later, for mapping depth information corresponding to each of the frames to each of the above-mentioned frames corresponding to the scenes in which the subject is barely moving or not moving at all.

[0027] FIG. 2 is a diagram showing an example of the relationship between each of successive frames in a time series, a key frame, and a depth compression function. In the example shown in FIG. 2, among the frames relating to the motion of an athlete, the initial frame indicated by the symbol f1 is set as the first key frame, and a depth compression function relating to this key frame is generated.

[0028] Then, the frame indicated by the symbol f2 at the timing when the accumulated value of the inter-frame differences in multiple consecutive frames in a chronological order starting from this key frame exceeds a threshold is set as the second key frame, i.e., a new key frame, and a depth compression function related to this key frame is generated.

[0029] In this embodiment, the depth map generating device 100 can set the depth compression function for each frame in the range indicated by symbols a and b between the first key frame and the second key frame, i.e., each frame between the first key frame and the second key frame that is not set as a key frame, to the same depth compression function as the depth compression function set for the first key frame.

[0030] Furthermore, in this embodiment, the depth map generating device 100 can set the depth compression function of several frames in the range indicated by the code b among the frames in the range indicated by the code a and b between the first and second key frames to a so-called smoothed depth compression function that is gradually changed from the depth compression function related to the first key frame to the depth compression function related to the second key frame. The frames in the range indicated by the code b are a part of the frames after the first key frame and before the second key frame, and are consecutive frames going back several frames from the second key frame in the time series.

[0031] FIG. 3 is a flowchart showing an example of a processing operation by the image processing device according to one embodiment of the present invention. The frame identification information adding unit 11 inputs image information, which is a moving image from the outside, such as a single perspective image or a stereo image, and adds identification information (sometimes simply called identification information or frame identification information) of each frame to the image information in order to preserve the sequence of each frame of the image information (S11). This identification information is, for example, the identification numbers #1, #2, ... of each frame starting from the initial frame, a time stamp, etc.

[0032] The inter-frame difference calculation unit 12 calculates an inter-frame difference, which is difference information between the frame to be processed (sometimes referred to as the subsequent frame) in the image information from the frame specific information addition unit 11 and the frame that is consecutive to the frame in the chronological order and one frame before that in the chronological order (sometimes referred to as the previous frame) (S12).

[0033] The key frame determination unit 13 sequentially sets frames to be processed that are candidates for key frames from each of the frames that are consecutive in time series, and calculates, for each frame to be processed, an accumulated value of inter-frame differences from the most recently set key frame to the current frame to be processed. If the accumulated value exceeds a threshold, the key frame determination unit 13 determines the current frame to be processed at the time of the excess as a new key frame (S13).

[0034] Furthermore, the key frame determination unit 13 notifies the processing sequence control unit 14 and the depth compression function generation unit 16 of control information for subsequent processing. This control information includes at least key frame specification information, and may also include, for example, information indicating timing that specifies the range of timing of the smoothing processing, i.e., each frame that is the target of setting the depth compression function by the smoothing processing.

[0035] The processing order control unit 14 controls the processing order of frames to be processed by the depth estimation unit 15 based on the control information notified from the key frame determination unit 13, and outputs each of these controlled frames to the depth estimation unit 15 (S14). In controlling the processing order, the processing order by the depth estimation unit 15 and the depth compression function generation unit 16 at the subsequent stages is controlled so that the depth of the previous frame and the depth of the next frame determined as key frames by the key frame determination unit 13 are estimated by the depth estimation unit 15 in priority over the depths of each frame after the previous frame and before the next frame in the time series, and so that the depth compression function used for mapping the depth of the previous frame and the depth compression function used for mapping the depth of the next frame are generated by the depth compression function generation unit 16 in priority over the depth compression function used for mapping the depth of each frame after the previous frame and before the next frame in the time series.

[0036] The depth estimation unit 15 estimates depth information for each frame whose processing order is controlled by the processing order control unit 14, links this estimated depth information to each frame and the above-mentioned specific information of the frame, and outputs it to the depth compression function generation unit 16 and the depth compression processing unit 17 (S15). Note that, instead of the estimation process by the depth estimation unit 15, a depth camera image associated with a time stamp in the above processing sequence may be used as the depth information (see (A) of FIG. 1).

[0037] The depth compression function generation unit 16 selects, from the depth information of each frame provided by the depth estimation unit 15, the depth information of the key frame that is linked to the specific information of the key frame provided by the key frame determination unit 13, generates a depth compression function related to the selected depth information, sets a depth compression function related to each frame between the key frames using the depth compression function related to the previous frame, and outputs these depth compression functions together with the specific information of each frame to the depth compression processing unit 17 (S16). As a result, in this embodiment, depth compression functions related to key frames among the frames and each frame between the key frames are output.

[0038] When the control information includes a timing range for the smoothing process as described above, the depth compression function generating unit 16 identifies a specified number of consecutive frames, going back in time from the most recent set key frame, based on the timing range. Then, for this specified frame, the depth compression function generation unit 16 generates a depth compression function that is smoothed between the depth compression function associated with the key frames before and after the switching, i.e., the depth compression function associated with the latest key frame corresponding to the subsequent frame, and the depth compression function associated with the key frame set immediately before the latest key frame, i.e., the key frame corresponding to the previous frame.

[0039] The depth compression processing unit 17 performs depth compression processing to map depth information corresponding to each frame to each frame based on the depth information and specific information from the depth estimation unit 15 and the depth compression function from the depth compression function generation unit 16 (S17). At this time, the depth compression processing unit 17 outputs a depth map for each frame arranged in the order based on the frame specifying information.

[0040] FIG. 4 is a diagram showing a specific example of a processing operation performed by a depth map generating device according to an embodiment of the present invention. In the example shown in Figure 4, multiple frames of the original image that are consecutive in chronological order are assigned frame identification information #1, #2, #3, #4, #5, #6 (not shown), ..., #N-1, #N, #N+1 (not shown), ... corresponding to their order in the chronological order, and an example is shown in which the first frame and the Nth frame are set as key frames. Hereinafter, frames with frame identification information #1, #2, #3, #4, #5, ..., #N-1, #N, #N+1, ... may be referred to as frames #1, #2, #3, #4, #5, ..., #N-1, #N, #N+1, ....

[0041] In this embodiment, the processing by the inter-frame difference calculation unit 12 and the key frame determination unit 13 and the processing by the depth estimation unit 15 may be performed in separate threads. Also, in order to improve the efficiency of processing, in the example shown in FIG. 4, the processing order control unit 14 controls the processing order so that the depth information generation process by the depth estimation unit 15 and the depth compression function generation process by the depth compression function generation unit 16 for frames #1 and #N, which are key frames, among the frames #1 to #N, are performed with priority over the depth information generation process and the depth compression function generation process for frames that are not key frames, i.e., frames #1 to #N-1. As a result, in the example shown in Fig. 4, the generation process of depth information and the generation process of depth compression function for frames #1 and #N, which are key frames, are prioritized, and the generation process of depth information is performed in the order of frames #1, #2, #3, #4, #N, #5, #6, ..., #N-1. In the example shown in Fig. 4, the depth compression function f t_1 and the depth compression function f for frame #N t_n are generated respectively.

[0042] In the setting of the depth compression function for all frames, the depth compression function f t_1 is used, and the depth compression function f t_1 and the depth compression function f t_n A depth compression function is set that is gradually changed, i.e., smoothed, between

[0043] Finally, when the depth compression processing is performed by the depth compression processing unit 17, the frames are rearranged in the order of the frame identification information added to each frame by the frame identification information addition unit 11, such as frames #1, #2, #3, #4, #5, ..., #N-1, #N, #N+1... as shown in Figure 4, and the depth compression processing is performed on each of these rearranged frames.

[0044] In the above smoothed depth compression function setting, the depth compression function f t_1 If the frame number of the key frame at the time of switching from key frame #1 for t_i , the depth compression function corresponding to frame #N is f t_n , the depth compression function corresponding to the frame one frame after this frame #N is f t_j If the range of frames to be smoothed is k, the depth compression function ft_m will be described.

[0045] When "0 < m ≤ k", that is, the depth compression function f of each frame before the key frame switching as viewed from frame #1 t_m is represented by the following formula (1). f t_m = (m * f t_i + (k + 1 - m) * f t_n ) / (k + 1) … Formula (1) Also, when "-k ≤ m < 0", that is, the depth compression function f of each frame after the key frame switching as viewed from frame #1 t_m is represented by the following formula (2). f t_m = ((k + 1 + m) * f t_j + (-1 * m) * f t_n ) / (k + 1) … Formula (2)

[0046] Next, an example of calculating the inter-frame difference will be described. FIG. 5 is a diagram showing an example of calculating the inter-frame difference. In the example shown in FIG. 5, the inter-frame difference calculation unit 12 compares each pixel of two consecutive frames in time series, for example, frame A corresponding to reference sign a in FIG. 5 and frame B corresponding to reference sign b in FIG. 5, and treats a pixel with a difference in pixel value as a pixel where the difference has occurred. The same applies to frame B corresponding to reference sign b in FIG. 5 and frame C corresponding to reference sign c in FIG. 5.

[0047] The inter-frame difference calculation unit 12 calculates the absolute value of each difference between consecutive frames, and calculates an image corresponding to this absolute value as the "difference image" corresponding to reference signs d and e in FIG. 5. Reference sign d indicates an image corresponding to the absolute value of the difference between the above frame A and frame B, and reference sign e indicates an image corresponding to the absolute value of the difference between the above frame B and frame C.

[0048] The inter-frame difference calculation unit 12 calculates a logical product image between the "difference images" corresponding to the above reference signs d and e, that is, the image indicated by reference sign f in FIG. 5. The frame difference calculation unit 12 performs binarization processing on the image of the logical product, and outputs the processing result as an image corresponding to the symbol f in Fig. 5. In other words, the frame difference calculation unit 12 can calculate an area where there is a difference between two consecutive frames in a time series. As a post-processing step, the inter-frame difference calculation unit 12 may perform a process to remove noise from the calculated difference.

[0049] FIG. 6 is a block diagram showing an example of a hardware configuration of a depth map generating device according to an embodiment of the present invention. 6, the depth map generating device 100 according to the above embodiment is configured, for example, by a server computer or a personal computer, and has a hardware processor 111A such as a CPU (Central Processing Unit). A program memory 111B, a data memory 112, an input / output interface 113, and a communication interface 114 are connected to the hardware processor 111A via a bus 120.

[0050] The communication interface 114 includes, for example, one or more wireless communication interface units, and enables transmission and reception of information to and from a communication network NW. As the wireless interface, for example, an interface that adopts a low-power wireless data communication standard such as a wireless LAN (Local Area Network) is used.

[0051] An input device 200 and an output device 300 that are attached to the depth map generating device 100 and are used by a user or the like are connected to the input / output interface 113 . The input / output interface 113 takes in operation data input by a user or the like through an input device 200 such as a keyboard, a touch panel, a touchpad, a mouse, or the like, and outputs output data to an output device 300 including a display device using liquid crystal or organic EL (Electro Luminescence), or the like, for display. Note that the input device 200 and the output device 300 may be devices built into the depth map generating device 100, or may be input devices and output devices of other information terminals capable of communicating with the depth map generating device 100 via the network NW.

[0052] The program memory 111B is a non-transient tangible storage medium that is a combination of a non-volatile memory that can be written to and read from at any time, such as a hard disk drive (HDD) or a solid state drive (SSD), and a non-volatile memory such as a read only memory (ROM), and stores programs necessary for executing various control processes, etc. according to one embodiment.

[0053] The data memory 112 is a tangible storage medium, for example, a combination of the above-mentioned nonvolatile memory and a volatile memory such as RAM (Random Access Memory), and is used to store various data acquired and created in the course of various processes.

[0054] A depth map generating device 100 according to one embodiment of the present invention can be configured as a data processing device having, as software processing function units, a frame specific information adding unit 11, an inter-frame difference calculation unit 12, a key frame determination unit 13, a processing order control unit 14, a depth estimation unit 15, a depth compression function generation unit 16, and a depth compression processing unit 17 shown in FIG. 1.

[0055] Each information storage unit used as a work memory or the like by each unit of the depth map generating device 100 may be configured by using the data memory 112 shown in Fig. 6. However, these configured storage areas are not essential components within the depth map generating device 100, and may be areas provided in a storage device such as an external storage medium such as a Universal Serial Bus (USB) memory, or a database server located in the cloud.

[0056] The processing function units in each of the above-mentioned frame specific information adding unit 11, inter-frame difference calculating unit 12, key frame determining unit 13, processing sequence control unit 14, depth estimating unit 15, depth compression function generating unit 16, and depth compression processing unit 17 can be realized by reading and executing a program stored in the program memory 111B by the above-mentioned hardware processor 111A. Note that some or all of these processing function units may be realized in various other forms, including integrated circuits such as an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA).

[0057] In a depth map generating device according to one embodiment of the present invention, when the size of the area of ​​difference between a previous frame and a subsequent frame along a time series in a moving image is large enough to satisfy predetermined conditions, the previous frame and the subsequent frame are determined to be key frames, the depth of each frame from the previous frame to the subsequent frame is estimated, depth compression functions corresponding to the previous frame and the subsequent frame which are key frames are generated, and the depth compression function generated corresponding to the previous frame can be used as a depth compression function corresponding to each frame between the previous frame and the subsequent frame that is not a key frame. In other words, in a depth map generating device according to one embodiment of the present invention, when performing depth compression processing of a depth map, which is necessary for effective 3D expression, the device focuses on the fact that there is a relationship between the inter-frame difference in the time series of the original video and the depth map, and updates the depth compression function at the timing when an inter-frame difference of a magnitude that satisfies a predetermined condition occurs, i.e., generates a new depth compression function, thereby making it possible to realize optimization of the depth compression processing for video of various variations, which is not possible with conventional technology.

[0058] Furthermore, when updating the depth compression function, the depth map generating device can set a smoothing depth compression function for each frame over a certain period of time going back from the new key frame. This makes it possible to prevent abrupt changes in the depth compression function at the key frame where the depth compression function is updated, and to realize a more natural 3D viewing experience.

[0059] The methods described in each embodiment may be stored as a program (software means) that can be executed by a computer on a recording medium such as a magnetic disk (floppy disk, hard disk, etc.), an optical disc (CD-ROM, DVD, MO, etc.), or a semiconductor memory (ROM, RAM, flash memory, etc.), and may be distributed by transmitting the program via a communication medium. The programs stored on the medium include a setting program that configures the software means (including not only execution programs but also tables and data structures) that the computer executes. The computer that realizes the present device reads the program recorded on the recording medium, and in some cases, configures the software means by the setting program, and executes the above-mentioned processing by controlling the operation of the software means. The recording medium in this specification is not limited to a recording medium for distribution, but also includes a storage medium such as a magnetic disk or semiconductor memory provided inside the computer or in a device connected via a network.

[0060] The present invention is not limited to the above-mentioned embodiment, and can be modified in various ways without departing from the gist of the present invention. The embodiments may be combined as appropriate, and in that case, the combined effect can be obtained. Furthermore, the above-mentioned embodiment includes various inventions, and various inventions can be extracted by combinations selected from the multiple components disclosed. For example, if the problem can be solved and the effect can be obtained even if some components are deleted from all the components shown in the embodiment, the configuration from which the components are deleted can be extracted as an invention. [Explanation of symbols]

[0061] 100…Depth map generator 11...Frame specific information addition section 12...Frame difference calculation section 13...Keyframe determination section 14...Processing sequence control unit 15…Depth estimation section 16…Depth compression function generator 17…Depth compression processing section

Claims

1. a difference calculation unit that calculates a magnitude of a difference between a frame in a time series of a moving image and a frame that is earlier than the timing of the frame; a frame determination unit that determines the one frame as a first frame that is a key frame as a source of generation of a function used for mapping the depth of the frame when the magnitude of the difference calculated by the difference calculation unit is large enough to satisfy a predetermined condition; a depth estimation unit that estimates a depth of each frame from the first frame to a second frame that is a key frame previously determined by the frame determination unit; a function generating unit that generates a function used for mapping the depth of the first frame and a function used for mapping the depth of the second frame from the depth estimated by the depth estimation unit, and generates a function that can be used for mapping the depth of each frame between the first frame and the second frame, the function being changed stepwise from the function used for mapping the depth of the second frame to the function used for mapping the depth of the first frame, by using the function used for mapping the depth of the second frame; An image processing device comprising:

2. The difference calculation unit For each pair of frames that are adjacent in time sequence between the one frame and the frame at the previous timing, a magnitude of a difference between the adjacent frames is calculated; The frame determination unit determining the one frame as the first frame, which is a new key frame, when an accumulated value of the magnitude of the difference between the adjacent frames calculated by the difference calculation unit, starting from the key frame previously determined by the frame determination unit, satisfies a predetermined condition and is large; The image processing device according to claim 1 .

3. The function generation unit further generating a function that gradually switches from the generated function used for the depth mapping of the second frame to the generated function used for the depth mapping of the first frame as a function used for depth mapping of each of a plurality of consecutive frames going back in time series from the first frame; The image processing device according to claim 1 .

4. The present invention further includes a processing order control unit that controls a processing order by the depth estimation unit so that the depth of the first frame and the depth of the second frame are estimated by the depth estimation unit in priority to the depths of frames after the second frame and before the first frame in a time series. The image processing device according to claim 1 .

5. The present invention further comprises a processing order control unit that controls a processing order by the function generation unit so that a function used for depth mapping of the first frame and a function used for depth mapping of the second frame are generated by the function generation unit in priority to a function used for depth mapping of each frame after the second frame and before the first frame in a time series. The image processing device according to claim 1 .

6. 1. A method performed by an image processing device, comprising: calculating, by a difference calculation unit of the image processing device, a magnitude of a difference between one frame in a time series of a moving image and a frame having a timing prior to the timing of the one frame; a frame determination unit of the image processing device determines the one frame as a first frame, which is a key frame serving as a generator of a function used for mapping the depth of the frame, when the magnitude of the difference calculated by the difference calculation unit is large enough to satisfy a predetermined condition; estimating, by a depth estimation unit of the image processing device, a depth of each frame from the first frame to a second frame which is a key frame previously determined by the frame determination unit; generating, by a function generating unit of the image processing device, a function used for mapping the depth of the first frame and a function used for mapping the depth of the second frame from the depth estimated by the depth estimation unit, and generating, by using the function used for mapping the depth of the second frame, a function usable for mapping the depth of each frame between the first frame and the second frame, the function being changed in a stepwise manner from the function used for mapping the depth of the second frame to the function used for mapping the depth of the first frame; An image processing method comprising:

7. The difference calculation unit For each pair of frames that are adjacent in time sequence between the one frame and the frame at the previous timing, a magnitude of a difference between the adjacent frames is calculated; The frame determination unit determining the one frame as the first frame, which is a new key frame, when an accumulated value of the magnitude of the difference between the adjacent frames calculated by the difference calculation unit, starting from the key frame previously determined by the frame determination unit, satisfies a predetermined condition and is large; The image processing method according to claim 6.

8. An image processing program that causes a processor to function as each unit of the image processing device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for controlling sense of depth

    JP1998040420A

  • Image processor and method, and program

    JP2014016792A

  • Image processing apparatus, computer program, recording medium, and image processing method

    JP2014035597A

  • Imaging device, control method therefor, and control program

    JP2014036362A

  • Method and apparatus for converting 2d video image into 3D video image

    US20130266212A1