[go: up one dir, main page]

CN106657966B - A kind of integration imaging 3D film source rapid generations based on CPU multithreadings - Google Patents

A kind of integration imaging 3D film source rapid generations based on CPU multithreadings Download PDF

Info

Publication number
CN106657966B
CN106657966B CN201611245985.XA CN201611245985A CN106657966B CN 106657966 B CN106657966 B CN 106657966B CN 201611245985 A CN201611245985 A CN 201611245985A CN 106657966 B CN106657966 B CN 106657966B
Authority
CN
China
Prior art keywords
image
parallax
micro
cpu
image array
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
CN201611245985.XA
Other languages
Chinese (zh)
Other versions
CN106657966A (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.)
Sichuan University
Original Assignee
Sichuan University
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 Sichuan University filed Critical Sichuan University
Priority to CN201611245985.XA priority Critical patent/CN106657966B/en
Publication of CN106657966A publication Critical patent/CN106657966A/en
Application granted granted Critical
Publication of CN106657966B publication Critical patent/CN106657966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/275Image signal generators from 3D object models, e.g. computer-generated stereoscopic image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/128Adjusting depth or disparity

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Image Processing (AREA)

Abstract

本发明提出一种基于CPU多线程的集成成像3D片源快速生成方法,该方法包括视差图像资源的获取、视差图像资源的多线程读取和微图像阵列的快速合成三个过程。该方法采用基于指导性的启发式自调度方法的多线程技术,充分利用计算机多核的优势,无需使用GPU,实现了视差图像的高效读取和微图像阵列的快速合成,是一种快速、高效的集成成像3D片源生成方法。

The present invention proposes a method for rapidly generating integrated imaging 3D film sources based on CPU multithreading. The method includes three processes: acquisition of parallax image resources, multithreaded reading of parallax image resources, and rapid synthesis of micro-image arrays. This method adopts the multi-thread technology based on the guiding heuristic self-scheduling method, makes full use of the advantages of computer multi-core, and realizes the efficient reading of parallax images and the rapid synthesis of micro-image arrays. It is a fast and efficient method. Integrated imaging 3D film source generation method.

Description

一种基于CPU多线程的集成成像3D片源快速生成方法A fast generation method of integrated imaging 3D film source based on CPU multithreading

技术领域technical field

本发明涉及集成成像3D(三维)显示技术和计算机多核多线程技术,更具体地说,本发明涉及一种基于CPU(中央处理器)多线程的集成成像3D片源快速生成方法。The invention relates to integrated imaging 3D (three-dimensional) display technology and computer multi-core multi-thread technology, more specifically, the invention relates to a method for rapidly generating integrated imaging 3D film sources based on CPU (central processing unit) multi-thread.

背景技术Background technique

集成成像3D显示技术是一种裸眼3D显示技术,无需眼镜或跟踪装置等辅助设备。传统的纯光学集成成像3D显示片源的拍摄难度较大,并且成像质量不高,随着计算机技术的迅速发展,衍生出了计算机集成成像技术。计算机集成成像技术采用3D建模软件建立3D场景模型,并搭建相应的虚拟目标相机阵列渲染生成视差图像,然后通过微图像阵列合成,最终生成集成成像3D片源。Integrated imaging 3D display technology is a naked-eye 3D display technology that does not require auxiliary equipment such as glasses or tracking devices. The traditional pure optical integrated imaging 3D display film source is difficult to shoot, and the imaging quality is not high. With the rapid development of computer technology, computer integrated imaging technology has been derived. Computer integrated imaging technology uses 3D modeling software to establish a 3D scene model, and builds a corresponding virtual target camera array to render a parallax image, and then synthesizes it through a micro-image array to finally generate an integrated imaging 3D film source.

CPU多线程是指基于CPU软件或者硬件方面实现多个线程并行执行的技术,更具体的说,是指CPU利用多个微处理器核心并行地执行不同任务的技术。因此可以通过多个线程,利用CPU多核的优势,实现视差图像并行的读取和微图像阵列的快速合成,从而高效快速地生成集成成像3D片源。CPU multithreading refers to the technology of parallel execution of multiple threads based on CPU software or hardware. More specifically, it refers to the technology of CPU using multiple microprocessor cores to execute different tasks in parallel. Therefore, multiple threads can be used to take advantage of the multi-core CPU to realize parallel reading of parallax images and rapid synthesis of micro-image arrays, thereby efficiently and quickly generating integrated imaging 3D film sources.

发明内容Contents of the invention

本发明提出一种基于CPU多线程的集成成像3D片源快速生成方法,该方法包括视差视频的获取、视差图像的多线程读取和微图像阵列的快速合成三个过程。本发明的详细流程如附图1所示。The present invention proposes a method for rapidly generating integrated imaging 3D film sources based on CPU multi-threading. The method includes three processes: acquisition of parallax video, multi-thread reading of parallax image and rapid synthesis of micro-image array. The detailed process of the present invention is as shown in accompanying drawing 1.

所述本发明视差视频的获取过程,利用三维建模软件获取包含视差信息的视频。首先,利用三维建模软件生成虚拟3D场景,建立如附图2所示的包含R×R个相机的虚拟目标相机阵列,其中,水平和竖直方向包含的相机列数和行数都为R。虚拟目标相机阵列包含的相机个数与微图像阵列中图像元的像素个数相同,且相邻相机间距为D,所有相机具有共同的汇聚点O,汇聚点O所在的平面为中心深度平面,中心深度平面与虚拟目标相机阵列平面平行,且距离为L。其次,拍摄过程采用多正交投影合成法,渲染输出获得单帧分辨率为M×N的视差图像。最后,输出得到具有垂直方向和水平方向二维视差的视差视频,以此作为视差图像的多线程读取的源文件。The parallax video acquisition process of the present invention uses 3D modeling software to acquire video containing parallax information. First, use 3D modeling software to generate a virtual 3D scene, and establish a virtual target camera array containing R × R cameras as shown in Figure 2, where the number of columns and rows of cameras in the horizontal and vertical directions is R . The number of cameras included in the virtual target camera array is the same as the number of pixels in the image element in the micro-image array, and the distance between adjacent cameras is D. All cameras have a common convergence point O , and the plane where the convergence point O is located is the central depth plane. The central depth plane is parallel to the virtual target camera array plane at a distance L. Secondly, the multi-orthogonal projection synthesis method is used in the shooting process, and the parallax image with a single frame resolution of M × N is obtained as a rendering output. Finally, a parallax video with vertical and horizontal two-dimensional parallax is output as a source file for multi-threaded reading of the parallax image.

所述本发明视差图像的多线程读取过程,基于计算机多线程技术,在CPU中利用不同的微处理器核心并行地访问视差视频,读取并获得当前帧的视差图像,其过程如附图3所示。首先,设置访问的视差视频的个数为Q个,并将视差视频编号为0~Q-1,线程数目设置为计算机的核数为G。不同的微处理器核心1~G分别执行不同的线程1~G,每个线程执行计算机分配的迭代块D 1D 2D G ,按执行完的先后顺序依次分配随后的迭代块D G+1D G+2D G+G D w 。迭代块的大小即每个线程单次执行的任务次数通过指导性的启发式自调度方法确定,声明最小迭代次数为T,每个迭代块的大小由以下公式计算得到:The multi-threaded reading process of the parallax image of the present invention is based on computer multi-thread technology, using different microprocessor cores in the CPU to access the parallax video in parallel, read and obtain the parallax image of the current frame, the process is as shown in the accompanying drawing 3. First, set the number of parallax videos to be accessed as Q , number the parallax videos as 0~ Q -1, and set the number of threads as the number of cores of the computer to be G. Different microprocessor cores 1~ G execute different threads 1~ G respectively, and each thread executes the iterative blocks D 1 , D 2 ... D G allocated by the computer, and assigns the subsequent iterative blocks D G+ in the order of execution 1 , D G + 2 ... D G + G ... D w . The size of the iteration block, that is, the number of times each thread executes a single task, is determined by the guiding heuristic self-scheduling method, and the minimum number of iterations is declared as T. The size of each iteration block is calculated by the following formula:

(1) (1)

其中,C w 表示剩余未读取的任务次数,D w 是第w个块的大小,当D w T时,取D w T,直到完成所有的读取任务,也即D 1+D 2+…+D w =Q。其中,G个线程并行运行,线程之间采取先到先得的任务分配方式,也即开始时每个线程会分配到较大的迭代块,随后分配到的迭代块大小将逐渐递减。对所有的视差视频依次实现访问操作,读取并获得当前帧的视差图像,直至Q个视差视频当前帧的视差图像均读取完毕。Among them, C w represents the number of remaining unread tasks, and D w is the size of the wth block. When D w < T , take D w as T until all read tasks are completed, that is, D 1 + D 2 +...+ D w = Q . Among them, G threads run in parallel, and a first-come-first-served task allocation method is adopted between threads, that is, each thread will be allocated a larger iteration block at the beginning, and then the size of the allocated iteration block will gradually decrease. The access operation is implemented sequentially for all parallax videos, and the parallax images of the current frame are read and obtained until all the parallax images of the current frame of the Q parallax videos are read.

所述本发明微图像阵列的快速合成过程,同样基于CPU利用计算机多线程技术,并行地将读取的视差图像通过像素映射,合成微图像阵列。设置生成的微图像阵列分辨率为S×P,单个图像元分辨率为R×R,包含图像元个数H×K,其中水平方向包含图像元列数为H,竖直方向包含图像元行数为K。具体映射关系如附图4所示,I(m, n) C 表示序列号为C的视差图上第m行第n列对应像素点,I ' (i, j)表示微图像阵列上第i行第j列位置对应的像素点,像素映射关系由下式给出:The rapid composition process of the micro-image array of the present invention is also based on the CPU using computer multi-threading technology to parallelly map the read parallax images through pixel mapping to synthesize the micro-image array. Set the resolution of the generated micro-image array to S × P , and the resolution of a single image element to R × R , including the number of image elements H × K , where the number of columns of image elements in the horizontal direction is H , and the number of image element rows in the vertical direction The number is K. The specific mapping relationship is shown in Figure 4. I ( m , n ) C represents the pixel corresponding to the mth row and nth column on the disparity map with the serial number C , and I ' ( i , j ) represents the i -th pixel on the micro-image array. The pixel point corresponding to the jth column position of the row, the pixel mapping relationship is given by the following formula:

(2) (2)

其中:in:

(3) (3)

(4) (4)

(5) (5)

式中,C表示视差图像的序列号,并且0≤CR 2-1,C为非负整数;mod(x, y)函数表示xy求余,round(*)函数表示对*四舍五入取整数;mnij是循环变量,m属于0~M-1范围,n属0~N-1范围;i在0~S-1范围内,j在0~P-1范围内循环取整数值,就能分别将微图像阵列的每一个像素点都赋予相应的视差图对应位置的像素值。本发明中的像素映射过程相互独立,对微图像阵列的快速合成过程仍采用基于指导性的启发式自调度方法的CPU多线程技术并行处理,获得更快的处理速度。其中,声明像素映射的最小迭代次数为J,线程数目仍然为G,使G个线程并行完成各帧视差图像像素映射至微图像阵列对应像素点S×P次,直到完成所有帧对应微图像阵列的快速合成,实现了集成成像3D片源的快速生成。In the formula, C represents the serial number of the parallax image, and 0≤ CR 2 -1, C is a non-negative integer; the mod( x , y ) function represents the remainder of x to y , and the round (*) function represents the rounding of * Integer; m , n , i and j are loop variables, m belongs to the range of 0~ M -1, n belongs to the range of 0~ N -1; i is in the range of 0~ S -1, j is in the range of 0~ P -1 By taking an integer value in the inner loop, each pixel of the micro-image array can be assigned the pixel value of the corresponding position of the corresponding disparity map. The pixel mapping process in the present invention is independent of each other, and the fast synthesis process of the micro-image array is still processed in parallel by the CPU multi-thread technology based on the instructive heuristic self-scheduling method to obtain faster processing speed. Among them, the minimum number of iterations for pixel mapping is declared as J , and the number of threads is still G , so that G threads complete the pixel mapping of each frame of parallax image to the corresponding pixel point of the micro-image array S × P times in parallel until all frames corresponding to the micro-image array are completed The fast synthesis realizes the rapid generation of integrated imaging 3D film sources.

本发明提出的一种基于CPU多线程的集成成像3D片源快速生成方法。该方法采用基于指导性的启发式自调度方法的多线程技术,充分利用计算机多核的优势,实现了视差图像的高效读取和微图像阵列的快速合成,是一种高效和快速的集成成像3D片源生成方法。The invention proposes a method for rapidly generating integrated imaging 3D film sources based on CPU multithreading. This method adopts the multi-thread technology based on the guiding heuristic self-scheduling method, fully utilizes the advantages of computer multi-core, realizes the efficient reading of parallax images and the rapid synthesis of micro-image arrays, and is an efficient and fast integrated imaging 3D The source generation method.

附图说明Description of drawings

附图1为一种基于CPU多线程的集成成像3D片源快速生成方法流程图。Accompanying drawing 1 is a kind of flow chart of the rapid generation method of integrated imaging 3D film source based on CPU multithreading.

附图2为本发明中三维建模软件获取视差视频示意图。Accompanying drawing 2 is the schematic diagram of parallax video obtained by 3D modeling software in the present invention.

附图3为基于指导性的启发式自调度多线程读取迭代块任务示意图。Accompanying drawing 3 is a schematic diagram of reading iterative block tasks based on guiding heuristic self-scheduling multithreading.

附图4为视差图像合成微图像阵列的像素映射关系。Accompanying drawing 4 is the pixel mapping relationship of the parallax image synthesis micro-image array.

上述附图中的图示标号为:The pictorial labels in the above-mentioned accompanying drawings are:

1中心深度平面,2虚拟目标相机阵列,3虚拟3D场景,4虚拟目标相机阵列汇聚点O,5读取任务分块,6微图像阵列。1 central depth plane, 2 virtual target camera array, 3 virtual 3D scene, 4 virtual target camera array convergence point O , 5 reading task blocks, 6 micro image array.

应该理解上述附图只是示意性的,并没有按比例绘制。It should be understood that the above drawings are only schematic and not drawn to scale.

具体实施方式Detailed ways

下面详细说明利用本发明的一种基于CPU多线程的集成成像3D片源快速生成方法的一个典型实施例,对本发明进行进一步的具体描述。有必要在此指出的是,以下实施例只用于本发明做进一步的说明,不能理解为对本发明保护范围的限制,该领域技术熟练人员根据上述本发明内容对本发明做出一些非本质的改进和调整,仍属于本发明的保护范围。The following describes in detail a typical embodiment of a method for rapidly generating integrated imaging 3D film sources based on CPU multithreading in the present invention, and further specifically describes the present invention. It is necessary to point out that the following examples are only used for further description of the present invention, and cannot be interpreted as limiting the protection scope of the present invention, and those skilled in the art make some non-essential improvements to the present invention according to the above-mentioned content of the present invention And adjustments still belong to the protection scope of the present invention.

本发明提出一种基于CPU多线程的集成成像3D片源快速生成方法,该方法包括视差视频的获取、视差图像的多线程读取和微图像阵列的快速合成三个过程。The present invention proposes a method for rapidly generating integrated imaging 3D film sources based on CPU multi-threading. The method includes three processes: acquisition of parallax video, multi-thread reading of parallax image and rapid synthesis of micro-image array.

所述本发明视差视频的获取过程,利用三维建模软件获取包含视差信息的视频。首先,利用三维建模软件生成虚拟3D场景,建立如附图2所示的包含R×R=8×8个相机的虚拟目标相机阵列,其中,水平和竖直方向包含的相机列数和行数都为R=8。虚拟目标相机阵列包含的相机个数与微图像阵列中图像元的像素个数相同,且相邻相机间距为D=4mm,所有相机具有共同的汇聚点O,汇聚点O所在的平面为中心深度平面,中心深度平面与虚拟目标相机阵列平面平行,且距离为L=1030mm。其次,拍摄过程采用多正交投影合成法,渲染输出获得单帧分辨率为M×N=854像素×480像素的视差图像。最后,输出得到具有垂直方向和水平方向二维视差的视差视频,以此作为视差图像的多线程读取的源文件。The parallax video acquisition process of the present invention uses 3D modeling software to acquire video containing parallax information. First, use 3D modeling software to generate a virtual 3D scene, and establish a virtual target camera array containing R × R = 8 × 8 cameras as shown in Figure 2, where the number of camera columns and rows included in the horizontal and vertical directions The numbers are all R= 8. The number of cameras included in the virtual target camera array is the same as the number of pixels in the image element in the micro-image array, and the distance between adjacent cameras is D= 4mm. All cameras have a common convergence point O , and the plane where the convergence point O is located is the central depth plane, the central depth plane is parallel to the virtual target camera array plane, and the distance is L= 1030mm. Secondly, the shooting process adopts the multi-orthogonal projection synthesis method, and the rendering output obtains a parallax image with a single frame resolution of M × N = 854 pixels × 480 pixels. Finally, a parallax video with vertical and horizontal two-dimensional parallax is output as a source file for multi-threaded reading of the parallax image.

所述本发明视差图像的多线程读取过程,基于计算机多线程技术,在CPU中利用不同的微处理器核心并行地访问视差视频,读取并获得当前帧的视差图像,其过程如附图3所示。首先,设置访问的视差视频的个数为Q=64个,并将视差视频编号为0~Q-1=0~63,线程数目设置为计算机的核数为G=8。不同的微处理器核心1~G=1~8分别执行不同的线程1~G=1~8,每个线程执行计算机分配的迭代块D 1D 2D 8,按执行完的先后顺序依次分配随后的迭代块D 9D 10D 16D w 的大小,即每个线程单次执行的任务次数通过指导性的启发式自调度方法确定,声明最小迭代次数为T=5,每个迭代块的大小由以下公式计算得到:The multi-threaded reading process of the parallax image of the present invention is based on computer multi-thread technology, using different microprocessor cores in the CPU to access the parallax video in parallel, read and obtain the parallax image of the current frame, the process is as shown in the accompanying drawing 3. First, set the number of parallax videos to be accessed as Q =64, and number the parallax videos as 0~ Q -1=0~63, and set the number of threads as the number of cores of the computer to be G =8. Different microprocessor cores 1~ G =1~8 respectively execute different threads 1~ G =1~8, and each thread executes the iterative blocks D 1 , D 2 ... D 8 allocated by the computer, in the order of execution Allocate the size of subsequent iteration blocks D 9 , D 10 ... D 16 ... D w sequentially, that is, the number of tasks executed by each thread at a time is determined by a guiding heuristic self-scheduling method, and the minimum number of iterations is declared as T = 5, The size of each iteration block is calculated by the following formula:

(1) (1)

其中,C w 表示剩余未读取的任务次数,D w 是第w个块的大小,当D w <5时,取D w 为5,直到完成所有的读取任务,也即D 1+D 2+…+D w =64。其中,G=8个线程并行运行,线程之间采取先到先得的任务分配方式,也即开始时每个线程会分配到较大的迭代块,随后分配到的迭代块大小将逐渐递减。对所有的视差视频依次实现访问操作,读取并获得当前帧的视差图像,直至Q=64个视差视频当前帧的视差图像均读取完毕。Among them, C w represents the number of remaining unread tasks, D w is the size of the wth block, when D w <5, set D w to 5 until all read tasks are completed, that is, D 1 + D 2 +...+ D w =64. Among them, G = 8 threads run in parallel, and the task allocation method is adopted among the threads, that is, each thread will be allocated a larger iteration block at the beginning, and the size of the allocated iteration block will gradually decrease. The access operation is implemented sequentially for all parallax videos, and the parallax images of the current frame are read and obtained until all the parallax images of the current frame of Q =64 parallax videos are read.

所述本发明微图像阵列的快速合成过程,同样基于CPU利用计算机多线程技术,并行地将读取的视差图像通过像素映射,合成微图像阵列。设置生成的微图像阵列分辨率为S×P=1920×1080,单个图像元分辨率为R×R=8×8,包含图像元个数H×K=240×135,其中水平方向包含图像元列数为H=240,竖直方向包含图像元行数为K=135。具体映射关系如附图4所示,I(m, n) C 表示序列号为C的视差图上第m行第n列对应像素点,I ' (i, j)表示微图像阵列上第i行第j列位置对应的像素点,像素映射关系由下式给出:The rapid composition process of the micro-image array of the present invention is also based on the CPU using computer multi-threading technology to parallelly map the read parallax images through pixel mapping to synthesize the micro-image array. Set the resolution of the generated micro-image array to S × P = 1920 × 1080, and the resolution of a single image element is R × R = 8 × 8, including the number of image elements H × K = 240 × 135, where the horizontal direction contains image elements The number of columns is H =240, and the number of rows containing image elements in the vertical direction is K =135. The specific mapping relationship is shown in Figure 4. I ( m , n ) C represents the pixel corresponding to the mth row and nth column on the disparity map with the serial number C , and I ' ( i , j ) represents the i -th pixel on the micro-image array. The pixel point corresponding to the jth column position of the row, the pixel mapping relationship is given by the following formula:

(2) (2)

其中:in:

(3) (3)

(4) (4)

(5) (5)

式中,C表示视差图像的序列号,并且0≤CR 2-1,C为非负整数;mod(x, y)函数表示xy求余,round(*)函数表示对*四舍五入取整数;mnij是循环变量,m属于0~M-1=0~853范围,n属于0~N-1=0~479范围;i在0~S-1=0~1919范围内,j在0~P-1=0~1079范围内循环取整数值,就能分别将微图像阵列的每一个像素点都赋予相应的视差图对应位置的像素值。本发明中的像素映射过程相互独立,对微图像阵列的快速合成过程仍采用基于指导性的启发式自调度方法的CPU多线程技术并行处理,获得更快的处理速度。其中,声明像素映射的最小迭代次数为J=15,线程数目仍然为G=8,使G=8个线程并行完成各帧视差图像像素映射至微图像阵列对应像素点S×P=1920×1080次,直到完成所有帧对应微图像阵列的快速合成,实现了集成成像3D片源的快速生成。In the formula, C represents the serial number of the parallax image, and 0≤ CR 2 -1, C is a non-negative integer; the mod( x , y ) function represents the remainder of x to y , and the round (*) function represents the rounding of * Take an integer; m , n , i and j are loop variables, m belongs to the range of 0~ M -1=0~853, n belongs to the range of 0~ N -1=0~479; i is in the range of 0~ S -1=0~ In the range of 1919, if j takes an integer value cyclically within the range of 0~ P -1=0~1079, each pixel of the micro-image array can be assigned the pixel value of the corresponding position of the corresponding disparity map. The pixel mapping process in the present invention is independent of each other, and the fast synthesis process of the micro-image array is still processed in parallel by the CPU multi-thread technology based on the instructive heuristic self-scheduling method to obtain faster processing speed. Among them, the minimum number of iterations for pixel mapping is declared as J = 15, and the number of threads is still G = 8, so that G = 8 threads can complete the pixel mapping of each frame of parallax image to the corresponding pixel point of the micro-image array in parallel S × P = 1920 × 1080 times, until the rapid synthesis of micro-image arrays corresponding to all frames is completed, the rapid generation of integrated imaging 3D film sources is realized.

至此,采用本发明提出的一种基于CPU多线程的集成成像微图像阵列快速生成方法生成一幅集成成像微图像阵列所消耗的时间为0.28s,帧率为3.57fps,与基于单线程的实现相比,该方法提升了75%,显著地提升了CPU生成集成成像3D片源的速率。So far, the time consumed to generate an integrated imaging micro-image array using a CPU multi-threaded integrated imaging micro-image array rapid generation method proposed by the present invention is 0.28s, and the frame rate is 3.57fps, which is different from the single-threaded implementation Compared with this method, the method has been improved by 75%, which has significantly improved the rate at which the CPU generates integrated imaging 3D film sources.

Claims (1)

1.一种基于CPU多线程的集成成像3D片源快速生成方法,该方法包括视差视频的获取、视差图像的多线程读取和微图像阵列的快速合成三个过程:所述视差视频的获取过程是利用三维建模软件获取包含视差信息的视差视频;所述视差图像的多线程读取过程,基于计算机多线程技术,在CPU中利用不同的微处理器核心并行地访问视差视频,读取并获得当前帧的视差图像;所述微图像阵列的快速合成过程,同样基于CPU利用计算机多线程技术,并行地将读取的视差图像通过像素映射,合成微图像阵列,I(m,n)C表示序列号为C的视差图上第m行第n列对应像素点,I'(i,j)表示微图像阵列上第i行第j列位置对应的像素点,像素关系为I′(i,j)=I(m,n)C,其中,视差图像的分辨率为M×N,微图像阵列分辨率为S×P,单个图像元分辨率为R×R,图像元个数为H×K,C=R×(R-1-mod(i,R))+(R-1-mod(j,R))表示视差图像的序列号,并且0≤C≤R2-1,m、n、i和j是循环变量,m属于0~M-1范围,n属0~N-1范围,i在0~S-1范围内,j在0~P-1范围内循环取整数值,对微图像阵列的快速合成过程仍采用CPU多线程技术并行处理,获得更快的处理速度,直到完成所有帧对应微图像阵列的快速合成,实现了集成成像3D片源的快速生成。1. A method for quickly generating integrated imaging 3D film sources based on CPU multithreading, the method comprises three processes of acquisition of parallax video, multi-thread reading of parallax image and rapid synthesis of micro-image array: the acquisition of parallax video The process is to use three-dimensional modeling software to obtain parallax video containing parallax information; the multi-threaded reading process of the parallax image is based on computer multi-thread technology, using different microprocessor cores in the CPU to access the parallax video in parallel, read And obtain the parallax image of the current frame; the rapid synthesis process of the micro-image array is also based on the CPU and utilizes computer multi-threading technology to parallelly read the parallax image through pixel mapping to synthesize the micro-image array, I(m,n) C represents the pixel point corresponding to the mth row and nth column on the disparity map whose serial number is C, and I'(i, j) represents the pixel point corresponding to the ith row and jth column position on the micro-image array, and the pixel relationship is I'( i,j)=I(m,n) C , where the resolution of the parallax image is M×N, the resolution of the micro-image array is S×P, the resolution of a single image element is R×R, and the number of image elements is H×K, C=R×(R-1-mod(i,R))+(R-1-mod(j,R)) represents the serial number of the parallax image, and 0≤C≤R 2 -1, m, n, i and j are loop variables, m belongs to the range of 0~M-1, n belongs to the range of 0~N-1, i is in the range of 0~S-1, j is cyclically taken in the range of 0~P-1 integer value, The rapid synthesis process of the micro-image array still uses CPU multi-threading technology to process in parallel to obtain faster processing speed until the rapid synthesis of all frames corresponding to the micro-image array is completed, realizing the rapid generation of integrated imaging 3D film sources.
CN201611245985.XA 2016-12-29 2016-12-29 A kind of integration imaging 3D film source rapid generations based on CPU multithreadings Active CN106657966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611245985.XA CN106657966B (en) 2016-12-29 2016-12-29 A kind of integration imaging 3D film source rapid generations based on CPU multithreadings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611245985.XA CN106657966B (en) 2016-12-29 2016-12-29 A kind of integration imaging 3D film source rapid generations based on CPU multithreadings

Publications (2)

Publication Number Publication Date
CN106657966A CN106657966A (en) 2017-05-10
CN106657966B true CN106657966B (en) 2018-10-30

Family

ID=58836216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611245985.XA Active CN106657966B (en) 2016-12-29 2016-12-29 A kind of integration imaging 3D film source rapid generations based on CPU multithreadings

Country Status (1)

Country Link
CN (1) CN106657966B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475697A (en) * 2020-03-02 2020-07-31 中国农业大学 Network video information acquisition method and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6895497B2 (en) * 2002-03-06 2005-05-17 Hewlett-Packard Development Company, L.P. Multidispatch CPU integrated circuit having virtualized and modular resources and adjustable dispatch priority
CN102835119B (en) * 2010-04-01 2016-02-03 英特尔公司 Support the multi-core processor that the real-time 3D rendering on automatic stereoscopic display device is played up
CN102300113B (en) * 2011-09-03 2013-06-12 四川大学 Sparse-camera-array-based integrated-imaged micro image array generation method
CN103440660B (en) * 2013-09-03 2016-03-30 四川大学 The micro-pattern matrix rapid generation of a kind of integration imaging based on GPU
CN106231286B (en) * 2016-07-11 2018-03-20 北京邮电大学 A kind of three-dimensional image generating method and device

Also Published As

Publication number Publication date
CN106657966A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2022156533A1 (en) Three-dimensional human body model reconstruction method and apparatus, electronic device, and storage medium
WO2022156532A1 (en) Three-dimensional face model reconstruction method and apparatus, electronic device, and storage medium
CN109087346B (en) Monocular depth model training method and device and electronic equipment
CN103440660B (en) The micro-pattern matrix rapid generation of a kind of integration imaging based on GPU
CN111698463A (en) View synthesis using neural networks
JP5153940B2 (en) System and method for image depth extraction using motion compensation
Horisaki et al. Three-dimensional information acquisition using a compound imaging system
Wang et al. High-fidelity view synthesis for light field imaging with extended pseudo 4DCNN
JP2010531490A (en) System and method for stereo matching of images
CN107392836B (en) Stereoscopic multi-projection using a graphics processing pipeline
Stone et al. Immersive molecular visualization with omnidirectional stereoscopic ray tracing and remote rendering
US11308682B2 (en) Dynamic stereoscopic rendering method and processor
Chandramouli et al. Convnet-based depth estimation, reflection separation and deblurring of plenoptic images
CN114885144B (en) High frame rate 3D video generation method and device based on data fusion
US10212406B2 (en) Image generation of a three-dimensional scene using multiple focal lengths
CN114581581A (en) Rendering acceleration method and device for neural body radiation field based on adaptive division area
CN102647602B (en) System for converting 2D (two-dimensional) video into 3D (three-dimensional) video on basis of GPU (Graphics Processing Unit)
CN117730530A (en) Image processing method and device, equipment and storage medium
CN106657966B (en) A kind of integration imaging 3D film source rapid generations based on CPU multithreadings
CN117274066A (en) Image synthesis model, method, device and storage medium
Lüke et al. Near Real‐Time Estimation of Super‐resolved Depth and All‐In‐Focus Images from a Plenoptic Camera Using Graphics Processing Units
Paliwal et al. Implicit view-time interpolation of stereo videos using multi-plane disparities and non-uniform coordinates
Yang et al. Disparity-guided light field video synthesis with temporal consistency
WO2015009294A2 (en) System and method for histogram computation using a graphics processing unit
KR101275588B1 (en) High speed generation system of integral imaging for 3d volume data and autostereo display method using the system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant