CN104469372B - Method and system for the light field image for compressing microlens array acquisition - Google Patents
Method and system for the light field image for compressing microlens array acquisition Download PDFInfo
- Publication number
- CN104469372B CN104469372B CN201410638332.2A CN201410638332A CN104469372B CN 104469372 B CN104469372 B CN 104469372B CN 201410638332 A CN201410638332 A CN 201410638332A CN 104469372 B CN104469372 B CN 104469372B
- Authority
- CN
- China
- Prior art keywords
- light field
- images
- micro
- field image
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 230000002194 synthesizing effect Effects 0.000 claims description 5
- 230000006835 compression Effects 0.000 abstract description 32
- 238000007906 compression Methods 0.000 abstract description 32
- 238000000354 decomposition reaction Methods 0.000 description 3
- 238000013139 quantization Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及对光场图像的处理技术,具体涉及一种用于压缩微透镜阵列采集的光场图像的方法和系统。The invention relates to a processing technology for light field images, in particular to a method and system for compressing light field images collected by a microlens array.
背景技术Background technique
光场是空间中任意位置任意方向的光线的总和,光场图像可以通过以下两种方式获取:通过普通相机阵列采集或者通过光场相机(其具有微透镜阵列)采集。通过普通相机阵列可获取到以二维图像为元素的二维数组,其中每幅图像代表不同视角下的光信息;而通过光场相机获取的是一幅以宏像素块为单元的尺寸较大的图像,同一宏像素块中的不同像素代表了同一物点在不同视角下的光信息。The light field is the sum of light rays in any direction in any position in space, and the light field image can be acquired in the following two ways: through a common camera array or through a light field camera (which has a microlens array). A two-dimensional array with two-dimensional images as elements can be obtained through an ordinary camera array, where each image represents light information under different viewing angles; while a light-field camera obtains a large-scale image with a macro-pixel block as a unit Different pixels in the same macro pixel block represent the light information of the same object point under different viewing angles.
由于光场图像尺寸较大,为了节省存储空间,通常会对光场图像进行压缩。现有的光场图像压缩方法主要有六类:基于矢量量化的方法、基于变换的方法、基于视频编码的方法、基于差异补偿的方法,和基于多焦点图像的方法。然而,这些光场图像压缩方法处理的是由普通相机阵列采集的以二维图像为单元的二维矩阵,大多不能直接用来压缩由微透镜阵列采集的光场图像。其中,基于视频编码的方法通过去除同一视角内和不同视角间的相关性来达到压缩的目的,直接将多幅光场相机采集的光场图像以一定的顺序排列成多帧视频,再采用基于视频编码的方法进行压缩。然而,采用这种方法的压缩率和压缩质量较低。Due to the large size of the light field image, in order to save storage space, the light field image is usually compressed. There are six types of existing light field image compression methods: methods based on vector quantization, methods based on transform, methods based on video coding, methods based on difference compensation, and methods based on multi-focus images. However, these light field image compression methods deal with the two-dimensional matrix with two-dimensional image as the unit collected by the ordinary camera array, and most of them cannot be directly used to compress the light field image collected by the microlens array. Among them, the method based on video coding achieves the purpose of compression by removing the correlation within the same viewing angle and between different viewing angles, and directly arranges the light field images collected by multiple light field cameras into multiple frames of video in a certain order, and then uses Video encoding method for compression. However, the compression ratio and compression quality using this method is low.
随着光场相机的普及,如何压缩由微透镜阵列获取的光场图像且达到较高的压缩率和较好的压缩性能是当前需要解决的问题。With the popularization of light field cameras, how to compress the light field images acquired by the microlens array and achieve a higher compression rate and better compression performance is a problem that needs to be solved at present.
发明内容Contents of the invention
针对上述问题,本发明提供一种用于压缩微透镜阵列采集的光场图像的方法。该方法包括:In view of the above problems, the present invention provides a method for compressing a light field image collected by a microlens array. The method includes:
步骤1)、从光场图像中分解出多幅微图像;其中,每幅微图像由组成该光场图像的所有宏像素块中相同位置的像素点组成;Step 1), decomposing a plurality of micro-images from the light field image; wherein, each micro-image is composed of pixels at the same position in all macro pixel blocks forming the light field image;
步骤2)、将所述多幅微图像进行排序并按该顺序合成为视频文件;Step 2), sorting the multiple micro-images and synthesizing them into video files in this order;
步骤3)、采用基于视频编码的方法对所述视频文件进行压缩。Step 3), using a method based on video coding to compress the video file.
上述方法中,步骤1)包括对于组成光场图像的所有宏像素块的每个像素点位置执行以下步骤:In the above method, step 1) includes performing the following steps for each pixel position of all macro pixel blocks forming the light field image:
取出所有宏像素块中该位置的像素点构成微图像,使得取出的像素点在该微图像中的位置与该像素点所属的宏像素块在该光场图像中的位置一致。The pixel points at the position in all macro pixel blocks are taken out to form a micro image, so that the position of the extracted pixel point in the micro image is consistent with the position of the macro pixel block to which the pixel point belongs in the light field image.
上述方法中,步骤2)包括:In the above-mentioned method, step 2) comprises:
步骤21)、根据微图像之间的相关性对从所述光场图像中分解出的多幅微图像进行排序;Step 21), sorting the multiple micro-images decomposed from the light field image according to the correlation between the micro-images;
步骤22)、按照该顺序将多幅微图像合成为视频文件。Step 22), according to this sequence, multiple micro-images are synthesized into a video file.
在一个实施例中,在步骤21)中,对于宏像素块中的每个像素点位置,从中心点开始由内向外顺时针排序;根据每个像素点位置的顺序,得到由来自该位置的像素点组成的微图像的顺序。In one embodiment, in step 21), for each pixel position in the macro pixel block, sort clockwise from the center point from the inside to the outside; according to the order of each pixel position, obtain the The sequence of micro-images composed of pixels.
在另一个实施例中,在步骤21)中,对于宏像素块中的每个像素点位置,从中心点开始由内向外逆时针排序;根据每个像素点位置的顺序,得到由来自该位置的像素点组成的微图像的顺序。In another embodiment, in step 21), for each pixel position in the macro-pixel block, it is sorted counterclockwise from the center point from inside to outside; according to the order of each pixel position, it is obtained from the position The sequence of micro-images composed of pixels.
在又一个实施例中,在步骤21)中,对于宏像素块中的每个像素点位置,从左上角开始从左向右、从上向下进行排序;根据每个像素点位置的顺序,得到由来自该位置的像素点组成的微图像的顺序。In yet another embodiment, in step 21), for each pixel position in the macro pixel block, sort from left to right and from top to bottom starting from the upper left corner; according to the order of each pixel position, Get the sequence of microimages composed of pixels from this location.
上述方法中,所述视频文件是无损视频文件。In the above method, the video file is a lossless video file.
根据本发明的一个实施例,还提供一种用于压缩微透镜阵列采集的光场图像的方法,包括:According to an embodiment of the present invention, there is also provided a method for compressing a light field image collected by a microlens array, comprising:
步骤A)、对于多幅光场图像中的每幅光场图像,从该光场图像中分解出多幅微图像,其中每幅微图像由组成该光场图像的所有宏像素块中相同位置的像素点组成;Step A), for each light field image in a plurality of light field images, decompose a plurality of micro images from the light field image, wherein each micro image consists of the same position in all macro pixel blocks that make up the light field image The pixel composition;
步骤B)、对于所述多幅光场图像中的每幅光场图像,将从该光场图像中分解出的多幅微图像进行排序并按该顺序合成为与该光场图像对应的视频文件;Step B), for each light field image in the plurality of light field images, sort the multiple micro images decomposed from the light field image and synthesize them into a video corresponding to the light field image in this order document;
步骤C)、将与所述多幅光场图像对应的多个视频文件连接成一个视频文件;Step C), connecting multiple video files corresponding to the multiple light field images into one video file;
步骤D)、采用基于视频编码的方法对上一步得到的视频文件进行压缩。Step D), using a method based on video coding to compress the video file obtained in the previous step.
上述方法中,在步骤C)中,按照光场图像的采集时间顺序将与每幅光场图像对应的视频文件连接成一个视频文件。In the above method, in step C), the video files corresponding to each light field image are concatenated into one video file according to the time sequence of light field image acquisition.
根据本发明的一个实施例,还提供一种用于压缩微透镜阵列采集的光场图像的系统,包括:According to an embodiment of the present invention, there is also provided a system for compressing a light field image collected by a microlens array, including:
用于从光场图像中分解出多幅微图像的设备;其中,每幅微图像由组成该光场图像的所有宏像素块中相同位置的像素点组成;A device for decomposing a plurality of micro-images from a light field image; wherein, each micro-image is composed of pixels at the same position in all macro pixel blocks forming the light field image;
用于将所述多幅微图像进行排序并按该顺序合成为视频文件的设备;用于采用基于视频编码的方法对所述视频文件进行压缩的设备。A device for sorting the multiple micro-images and synthesizing them into a video file in this order; a device for compressing the video file by adopting a method based on video coding.
本发明适用于压缩由微透镜阵列获取的光场图像,通过将光场图像分解为多个微图像并且进行排序合并,使得排序好的相邻微图像之间的相关性较大,便于后续采用基于视频编码的方法对其进行压缩。采用本发明能够达到较高的压缩比,且具有较好的压缩性能。The present invention is suitable for compressing the light field image obtained by the microlens array, and by decomposing the light field image into multiple micro images and sorting and merging them, the correlation between the sorted adjacent micro images is relatively large, which is convenient for subsequent use. It is compressed based on the method of video coding. The invention can achieve higher compression ratio and has better compression performance.
附图说明Description of drawings
图1是根据本发明一个实施例的用于压缩微透镜阵列采集的光场图像的方法流程图;1 is a flowchart of a method for compressing a light field image collected by a microlens array according to an embodiment of the present invention;
图2(a)是根据本发明一个实施例的由微透镜阵列采集的一幅光场图像;Fig. 2 (a) is a light field image collected by microlens array according to one embodiment of the present invention;
图2(b)是对图2(a)所示的光场图像进行分解得到的121幅微图像;Figure 2(b) is the 121 micro-images obtained by decomposing the light field image shown in Figure 2(a);
图3是分别采用本发明提供的方法和现有方法对由微透镜阵列采集的多幅光场图像进行压缩的压缩效果对比图。Fig. 3 is a comparison diagram of the compression effect of compressing multiple light field images collected by the microlens array using the method provided by the present invention and the existing method respectively.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明加以说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention will be described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
根据本发明的一个实施例,提供一种用于压缩微透镜阵列采集的光场图像的方法。According to an embodiment of the present invention, a method for compressing a light field image collected by a microlens array is provided.
参考图1且概括而言,该方法包括:对由微透镜阵列采集的光场图像进行分解得到多幅微图像,其中每幅微图像由所有宏像素块中相同位置的像素点组成;将得到的多幅微图像进行排序,并且按照该顺序将微图像合成为视频文件;以及,采用基于视频编码的方法对视频文件进行压缩。Referring to Fig. 1 and generally speaking, the method includes: decomposing the light field image collected by the microlens array to obtain multiple microimages, wherein each microimage is composed of pixels at the same position in all macropixel blocks; will obtain Sorting the multiple micro-images, and synthesizing the micro-images into a video file according to the sequence; and compressing the video file by using a method based on video coding.
下文针对一幅光场图像来描述该压缩方法的每个步骤。Each step of the compression method is described below for a light field image.
第一步:对由微透镜阵列采集的光场图像进行分解得到多幅微图像。Step 1: Decompose the light field image collected by the microlens array to obtain multiple microimages.
如上文所述,微透镜阵列采集到的是以宏像素块为单元的尺寸较大的图像,一幅光场图像是由多个宏像素块组成的。例如,对于由11x11(单位为像素)的宏像素块组成的尺寸为4147x4147的光场图像来说,该图像包括377x377个宏像素块。As mentioned above, what the microlens array collects is a large-sized image in units of macro-pixel blocks, and a light field image is composed of multiple macro-pixel blocks. For example, for a light field image with a size of 4147x4147 composed of 11x11 (unit: pixel) macropixel blocks, the image includes 377x377 macropixel blocks.
在一个实施例中,本步骤的实现过程如下:In one embodiment, the implementation process of this step is as follows:
对于组成一幅光场图像的所有宏像素块,取出所有宏像素块中相同行相同列(即相同位置)的像素点构成一幅小图像(即微图像)。在一个优选的实施例中,应使取出的像素点在微图像中的位置与该像素点所属的宏像素块在光场图像中的位置一致。在其他实施例中,取出的像素点在微图像中的位置与该像素点所属的宏像素块在光场图像中的位置可以不一致,但来自同一宏像素块的像素点在不同微图像中的位置需要一致。采用这种方法,可以得到与宏像素块中的每个像素点位置对应的微图像。For all the macro pixel blocks forming a light field image, the pixels in the same row and column (ie the same position) in all the macro pixel blocks are taken out to form a small image (ie micro image). In a preferred embodiment, the position of the extracted pixel in the micro image should be consistent with the position of the macro pixel block to which the pixel belongs in the light field image. In other embodiments, the position of the extracted pixel in the micro image may not be consistent with the position of the macro pixel block to which the pixel belongs in the light field image, but the pixel points from the same macro pixel block in different micro images The location needs to be consistent. Using this method, a micro image corresponding to the position of each pixel in the macro pixel block can be obtained.
根据本发明的一个实施例,对于所有宏像素块,可按照从左到右、从上到下的顺序取像素点。例如,首先取出每个宏像素块中第1行第1列处的像素点,得到与宏像素块第1行第1列对应的微图像;接着,取出每个宏像素块中第1行第2列处的像素点,得到与宏像素块第1行第2列对应的微图像;以此类推。According to an embodiment of the present invention, for all macro pixel blocks, pixel points may be obtained in order from left to right and from top to bottom. For example, first take out the pixel points at the first row and the first column in each macro pixel block to obtain the micro image corresponding to the first row and the first column of the macro pixel block; then, take out the first row and the first column in each macro pixel block The pixels at the 2nd column are used to obtain the micro image corresponding to the 1st row and 2nd column of the macro pixel block; and so on.
第二步:将得到的多幅微图像进行排序,并且按照该顺序将微图像合成为视频文件。Step 2: Sorting the obtained multiple micro-images, and synthesizing the micro-images into a video file according to the sequence.
本步骤包括以下两个子步骤:This step includes the following two sub-steps:
步骤1、根据微图像之间的相关性对与光场图像对应的多幅微图像进行排序,使得相邻微图像之间的相关性较大,以便于之后采用基于视频编码的方法进行压缩。排序方式可包括以下几种:Step 1. Sorting the multiple micro-images corresponding to the light field image according to the correlation between the micro-images, so that the correlation between adjacent micro-images is relatively large, so as to facilitate subsequent compression using a method based on video coding. Sorting methods can include the following:
(1)、旋转排序(1), rotation sort
由于每幅微图像与宏像素块中的一个像素点位置相对应(即像素点取自该位置),为表述方便,本文通过对宏像素块中每个像素点位置进行排序,来得到与每个像素点位置对应的微图像之间的顺序。Since each micro image corresponds to a pixel position in the macro pixel block (that is, the pixel point is taken from this position), for the convenience of expression, this paper sorts the position of each pixel point in the macro pixel block to obtain the The sequence between the micro-images corresponding to pixel positions.
旋转排序是指从宏像素块的中心像素点开始,由内向外对每个像素点位置进行排序。例如,从中心像素点开始,沿顺时针或者逆时针方向从内到外遍历宏像素块中的所有像素点位置。根据像素点位置的顺序可得到与每个像素点位置对应的微图像的顺序。Rotation sorting refers to sorting the position of each pixel point from the inside to the outside starting from the center pixel of the macro pixel block. For example, starting from the central pixel, traverse all pixel positions in the macro pixel block clockwise or counterclockwise from inside to outside. According to the order of the pixel positions, the order of the micro-images corresponding to each pixel position can be obtained.
(2)、水平排序(2), horizontal sorting
水平排序是指从宏像素块某一行的最左端开始,自左向右遍历该行的像素点位置,并且照此方法遍历宏像素块每一行的像素点位置。Horizontal sorting refers to starting from the leftmost end of a row of a macro pixel block, traversing the pixel positions of the row from left to right, and traversing the pixel positions of each row of the macro pixel block in this way.
优选地,可以从宏像素块的左上角开始,自左向右,从上到下得到每个像素点位置的顺序,从而得到对应的微图像的顺序。Preferably, the order of the position of each pixel can be obtained from the upper left corner of the macro pixel block, from left to right, and from top to bottom, so as to obtain the order of the corresponding micro image.
(3)、垂直排序(3), vertical sorting
垂直排序是指从宏像素块某一列的最上端开始,自上向下遍历该列的像素点位置,并且照此方法遍历宏像素块每一列的像素点位置。Vertical sorting refers to starting from the top of a certain column of the macro pixel block, traversing the pixel positions of the column from top to bottom, and traversing the pixel positions of each column of the macro pixel block in this way.
优选地,可以从宏像素块的左上角开始,从上到下,从左到右得到每个像素点位置的顺序,从而得到对应的微图像的顺序。Preferably, the order of the position of each pixel can be obtained from the upper left corner of the macro pixel block, from top to bottom, and from left to right, so as to obtain the order of the corresponding micro image.
(4)、自定义排序(4), custom sorting
还可以根据预先定义好的顺序来排列与一幅光场图像对应的微图像。It is also possible to arrange the micro-images corresponding to a light field image according to a predefined sequence.
步骤2、在排序后,将光场图像对应的多幅微图像按该顺序作为视频中的帧进行合并,得到无损视频文件,例如YUV文件。Step 2. After sorting, multiple micro-images corresponding to the light field images are merged in this order as frames in the video to obtain a lossless video file, such as a YUV file.
第三步:采用基于视频编码的方法对视频文件进行压缩。Step 3: Compress the video file using a method based on video coding.
本领域技术人员应理解,可以采用现有的视频文件压缩方法进行压缩。在一个实施例中,采用x264编码方法进行视频文件的压缩,在本发明的另一个实施例中,采用x265等编码方法进行编码,从而得到压缩后的码流文件。Those skilled in the art should understand that existing video file compression methods can be used for compression. In one embodiment, the video file is compressed using x264 coding method, and in another embodiment of the present invention, coding method such as x265 is used for coding, so as to obtain a compressed code stream file.
上文以一幅光场图像为例,描述了本发明提供的用于压缩微透镜阵列采集的光场图像的方法。在需要压缩多幅光场图像的实施例中,可以首先得到每幅光场图像对应的视频文件,接着将这些视频文件合成为一个总的视频文件,再对总的视频文件采用基于视频编码的方法进行压缩。具体来说,包括以下步骤:The method for compressing a light field image collected by a microlens array is described above by taking a light field image as an example. In an embodiment where multiple light field images need to be compressed, the video files corresponding to each light field image can be obtained first, and then these video files are synthesized into a total video file, and then the total video file is encoded based on video method to compress. Specifically, the following steps are included:
第一步:对多幅光场图像中的每一幅光场图像进行分解,得到与每幅光场图像对应的多幅微图像。分解的过程已在上文中进行了说明,此处不再重复描述。Step 1: Decompose each light field image in the plurality of light field images to obtain multiple microimages corresponding to each light field image. The process of decomposition has been described above, and will not be repeated here.
第二步:对于每一幅光场图像,将对应的多幅微图像进行排序,并且按照该顺序将多幅微图像合成为视频文件,从而得到与每幅光场图像对应的视频文件。其中,排序方法可包括旋转排序、水平排序、垂直排序等。Step 2: For each light field image, sort the corresponding multiple micro images, and synthesize the multiple micro images into a video file according to the order, so as to obtain a video file corresponding to each light field image. Wherein, the sorting method may include rotation sorting, horizontal sorting, vertical sorting and the like.
第三步:将得到的所有视频文件连接起来,合成一个总的视频文件。The third step: connect all the obtained video files to synthesize a total video file.
其中,可采用任意顺序来连接这些视频文件,在一个优选的实施例中,可以按照采集这些光场图像的时间顺序来将与每幅光场图像对应的视频文件连接起来,得到由多个光场图像合并得到的总的视频文件。Wherein, these video files can be connected in any order, and in a preferred embodiment, the video files corresponding to each light field image can be connected according to the time sequence of collecting these light field images, and a plurality of light field images can be obtained. The total video file obtained by merging field images.
第四步:采用基于视频编码的方法对上一步得到的总的视频文件进行压缩。Step 4: Compress the total video file obtained in the previous step by using a method based on video coding.
下面以使用光场相机采集的19幅3个小人的光场图像为例,根据本发明提供的方法具体描述对这些光场图像进行压缩的过程,图2(a)示出了其中一幅光场图像。其中,光场图像的格式为BMP,每幅光场图像的尺寸为4147x4147且图像大小为49.2MB,宏像素块的尺寸为11x11。Taking 19 light field images of three villains collected by a light field camera as an example, the process of compressing these light field images according to the method provided by the present invention is described in detail, and Fig. 2(a) shows one of them Light field image. Wherein, the format of the light field image is BMP, the size of each light field image is 4147x4147 and the image size is 49.2MB, and the size of the macro pixel block is 11x11.
1、由于每一幅光场图像有377x377个11x11的宏像素块,可将每一幅光场图像分解为11x11幅尺寸为377x377的微图像。1. Since each light field image has 377x377 11x11 macro pixel blocks, each light field image can be decomposed into 11x11 micro-images with a size of 377x377.
具体分解过程包括:The specific decomposition process includes:
对于377x377个11x11的宏像素块,将每一个宏像素块中的第i行第j列处的像素点取出(i=1,…11;j=1,…,11),则共有377x377个像素点;将这377x377个像素点中的每个像素点按照该像素点所属的宏像素块在原始光场图像中的位置进行排列构成一幅377x377的微图像,该微图像的文件大小为417KB。For 377x377 macropixel blocks of 11x11, take out the pixel points at the i-th row and jth column in each macropixel block (i=1,...11; j=1,...,11), then there are 377x377 pixels in total Points; each pixel in the 377x377 pixels is arranged according to the position of the macro pixel block to which the pixel belongs in the original light field image to form a 377x377 micro image, and the file size of the micro image is 417KB.
基于上述的分解方法,按照从左到右,从上到下的顺序遍历宏像素块,则可以得到121(11x11)幅微图像,每一幅微图像都与宏像素块中一个位置相对应。当i为6且j为6时,取出的微图像如图2(b)中心图像所示。Based on the above decomposition method, traversing the macro pixel block from left to right and from top to bottom can obtain 121 (11x11) micro images, each of which corresponds to a position in the macro pixel block. When i is 6 and j is 6, the extracted micro-image is shown in the center image of Fig. 2(b).
2a、对于每幅光场图像,将分解出的121幅微图像按照顺时针的旋转排序方式进行重新排序,该旋转排序映射表如表1所示。在表1中,第i行第j列的元素表示像素点来自宏像素块第i行第j列的微图像,元素值表示该微图像在旋转排序后的序号。以来自宏像素块中第4行第6列的像素点构成的尺寸为377x377的微图像为例,其旋转排序后的序号为15。同样地,以来自宏像素块中第5行第5列的像素点构成的尺寸为377x377的微图像为例,其旋转排序后的序号为3。2a. For each light field image, the decomposed 121 micro-images are reordered in a clockwise rotation sorting manner, and the rotation sorting mapping table is shown in Table 1. In Table 1, the element in row i and column j indicates that the pixel point is from the micro image in row i and column j of the macro pixel block, and the element value indicates the serial number of the micro image after rotation and sorting. Taking a micro-image with a size of 377x377 composed of pixels from the fourth row and sixth column in the macro pixel block as an example, its sequence number after rotation and sorting is 15. Similarly, taking a micro-image with a size of 377x377 composed of pixels from the fifth row and fifth column in the macro pixel block as an example, the serial number after rotation and sorting is 3.
表1Table 1
3、将从每一幅光场图像分解出的微图像按照排好的顺序合成YUV文件,则每个YUV文件包含121帧图像,每一帧图像的尺寸为377x377。3. Synthesize the micro-images decomposed from each light field image into YUV files according to the arranged order, then each YUV file contains 121 frames of images, and the size of each frame of images is 377x377.
4、将19幅光场图像对应的YUV文件,按照光场图像采集时间的先后顺序连接起来,构成一个包含2299(121x19)帧图像的YUV文件,该YUV文件的大小为487535136Bytes(464MB)。4. Connect the YUV files corresponding to the 19 light field images according to the order of light field image acquisition time to form a YUV file containing 2299 (121x19) frames of images. The size of the YUV file is 487535136 Bytes (464MB).
5、采用x264的编码器,根据以下参数设置进行编码。5. Use the x264 encoder to encode according to the following parameter settings.
参加编码的总帧数:2299帧;The total number of frames participating in encoding: 2299 frames;
帧率:25frames/s;Frame rate: 25frames/s;
量化系数:32;Quantization factor: 32;
GOP尺寸:25;GOPSize: 25;
允许的连续B帧的数量:1。Number of consecutive B-frames allowed: 1.
从而得到的编码结果如下:The resulting encoding results are as follows:
压缩后的码率为73028.34kb/s;PSNR为29.8885dB;压缩后的码流文件大小为6937642Bytes(6.6MB),则压缩率为:487535136bytes/6937642Bytes=70.2739。The compressed code rate is 73028.34kb/s; the PSNR is 29.8885dB; the compressed code stream file size is 6937642Bytes (6.6MB), and the compression rate is: 487535136bytes/6937642Bytes=70.2739.
也可以采用另一种方式,将上述第2a步变为:You can also use another way to change the above step 2a into:
2b、对于每幅光场图像,将分解出的121幅微图像按照从上到下、从左到右的水平排序方式进行重新排序,水平排序映射表如表2所示。在表2中,第i行第j列的元素表示像素点来自宏像素块第i行第j列的微图像,元素值表示该微图像在水平排序后的序号。以来自宏像素块中第4行第6列的像素点构成的尺寸为377x377的微图像为例,其水平排序后的序号为39。相同的,以来自宏像素块中的第5行第5列的像素点构成的尺寸为377x377的微图像为例,其水平排序后的序号为49。2b. For each light field image, the decomposed 121 micro-images are reordered according to the horizontal sorting method from top to bottom and from left to right. The horizontal sorting mapping table is shown in Table 2. In Table 2, the element in row i and column j indicates that the pixel point is from the micro image in row i and column j of the macro pixel block, and the element value indicates the serial number of the micro image after horizontal sorting. Taking a micro-image with a size of 377x377 composed of pixels from the fourth row and sixth column in the macro pixel block as an example, its serial number after horizontal sorting is 39. Similarly, taking a micro-image with a size of 377x377 composed of pixels from the fifth row and fifth column in the macro pixel block as an example, its sequence number after horizontal sorting is 49.
表2Table 2
保持其他步骤不变,得到的编码结果如下:Keeping other steps unchanged, the obtained encoding result is as follows:
压缩后的码率为80675.54kb/s;PSNR为29.8881dB;压缩后的码流文件大小为7664165Bytes(6.6MB),则压缩率为:487535136bytes/7664165Bytes=63.6123。The compressed code rate is 80675.54kb/s; the PSNR is 29.8881dB; the compressed code stream file size is 7664165Bytes (6.6MB), and the compression rate is: 487535136bytes/7664165Bytes=63.6123.
根据本发明的一个实施例,还提供一种用于压缩微透镜阵列采集的光场图像的系统,包括以下设备:According to an embodiment of the present invention, there is also provided a system for compressing a light field image collected by a microlens array, including the following equipment:
用于从光场图像中分解出多幅微图像的设备;其中,每幅微图像由组成该光场图像的所有宏像素块中相同位置的像素点组成。A device for decomposing a plurality of micro-images from a light-field image; wherein each micro-image is composed of pixels at the same position in all macro-pixel blocks constituting the light-field image.
用于将多幅微图像进行排序并按该顺序合成为视频文件的设备。A device for sequencing multiple microimages and compositing them into a video file in that order.
用于采用基于视频编码的方法对视频文件进行压缩的设备。A device for compressing video files using methods based on video encoding.
为验证本发明提供的用于压缩微透镜阵列采集的光场图像的方法和系统的有效性,发明人分别采用现有的基于视频编码的压缩方法和本发明提供的方法进行了实验,实验的素材为由光场相机采集得到的多幅同一场景下的存在微小差别的光场图像。In order to verify the validity of the method and system for compressing the light field image collected by the microlens array provided by the present invention, the inventors carried out experiments using the existing compression method based on video coding and the method provided by the present invention respectively. The material is multiple light field images with slight differences in the same scene collected by the light field camera.
以方法1表示现有方法,该方法将多幅光场图像直接按拍摄的时间顺序合成为YUV文件,并且采用x264编码技术进行压缩;以方法2表示本发明提供的方法,其中采用顺时针的旋转排序并且采用x264编码技术进行压缩;以方法3表示本发明提供的方法,其中采用从上到下、从左到右的水平排序并且采用x264编码技术进行压缩。Represent the existing method with method 1, this method directly synthesizes multiple light field images into YUV files according to the time sequence of shooting, and adopts x264 coding technology to compress; Represent the method provided by the present invention with method 2, wherein adopt clockwise Rotation sorting and compression using x264 coding technology; method 3 represents the method provided by the present invention, wherein horizontal sorting from top to bottom and left to right is used and x264 coding technology is used for compression.
表3示出了实验结果,根据所设定的不同量化系数(QP),给出了在比特率、PSNR和压缩率三个方面的信息。Table 3 shows the experimental results, according to the set different quantization coefficients (QP), gives the information in three aspects of bit rate, PSNR and compression rate.
表3table 3
图3则给出了分别采用上述三种方法得到的压缩质量的示意图。从表3和图3可以看出,与现有的压缩方法相比,本发明提供的方法,即将每一幅光场图像分解出多幅微图像,对微图像进行排序并合成YUV文件,再将每一幅光场图像对应的YUV文件合成总的YUV文件进行压缩,在压缩率和压缩质量(PSNR-比特率)方面达到的效果都更优。Fig. 3 shows schematic diagrams of the compression quality obtained by using the above three methods respectively. As can be seen from Table 3 and Fig. 3, compared with the existing compression methods, the method provided by the present invention is to decompose each light field image into multiple micro-images, sort the micro-images and synthesize YUV files, and then Combining the YUV files corresponding to each light field image into a total YUV file for compression can achieve better results in terms of compression rate and compression quality (PSNR-bit rate).
发明人还针对不同的排序方式分别进行了实验,实验结果表明,采用顺时针旋转排序和逆时针旋转排序的压缩性能相似,采用水平排序和垂直排序的压缩性能相似,并且与现有技术相比,采用这些排序方法的压缩率和压缩性能都得到很大提升。The inventor also conducted experiments on different sorting methods, and the experimental results show that the compression performance of clockwise rotation sorting and counterclockwise rotation sorting is similar, and the compression performance of horizontal sorting and vertical sorting is similar, and compared with the existing technology , the compression ratio and compression performance of these sorting methods are greatly improved.
应该注意到并理解,在不脱离后附的权利要求所要求的本发明的精神和范围的情况下,能够对上述详细描述的本发明做出各种修改和改进。因此,要求保护的技术方案的范围不受所给出的任何特定示范教导的限制。It should be noted and understood that various modifications and improvements can be made to the invention described in detail above without departing from the spirit and scope of the invention as claimed in the appended claims. Accordingly, the scope of the claimed technical solution is not limited by any particular exemplary teaching given.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410638332.2A CN104469372B (en) | 2014-11-06 | 2014-11-06 | Method and system for the light field image for compressing microlens array acquisition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410638332.2A CN104469372B (en) | 2014-11-06 | 2014-11-06 | Method and system for the light field image for compressing microlens array acquisition |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104469372A CN104469372A (en) | 2015-03-25 |
CN104469372B true CN104469372B (en) | 2018-09-07 |
Family
ID=52914641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410638332.2A Active CN104469372B (en) | 2014-11-06 | 2014-11-06 | Method and system for the light field image for compressing microlens array acquisition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104469372B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375766B (en) * | 2016-09-08 | 2018-12-18 | 电子科技大学 | A kind of light field image compression method |
CN106961605B (en) * | 2017-03-28 | 2019-06-28 | 清华大学深圳研究生院 | One kind being based on the matched light field image compression method of macro pixel boundary |
CN107027025B (en) * | 2017-03-28 | 2019-06-28 | 清华大学深圳研究生院 | A kind of light field image compression method based on macro block of pixels adaptive prediction |
CN106973293B (en) * | 2017-04-21 | 2020-10-27 | 中国科学技术大学 | A light field image coding method based on parallax prediction |
CN107018429A (en) * | 2017-04-26 | 2017-08-04 | 陈翟 | Internet video data compression and frame picture display process |
CN107135393B (en) * | 2017-05-03 | 2020-11-06 | 北京航空航天大学 | Compression method of light field image |
CN111492657B (en) | 2017-12-08 | 2023-06-30 | 上海科技大学 | Light Field Video Compression Based on Face Region Detection |
CN110191359A (en) * | 2019-05-16 | 2019-08-30 | 华侨大学 | A Light Field Image Compression Method Based on Key Subaperture Image Selection |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6097394A (en) * | 1997-04-28 | 2000-08-01 | Board Of Trustees, Leland Stanford, Jr. University | Method and system for light field rendering |
CN104065976A (en) * | 2014-06-27 | 2014-09-24 | 西安空间无线电技术研究所 | A video-based image compression and secure transmission method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8155456B2 (en) * | 2008-04-29 | 2012-04-10 | Adobe Systems Incorporated | Method and apparatus for block-based compression of light-field images |
-
2014
- 2014-11-06 CN CN201410638332.2A patent/CN104469372B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6097394A (en) * | 1997-04-28 | 2000-08-01 | Board Of Trustees, Leland Stanford, Jr. University | Method and system for light field rendering |
CN104065976A (en) * | 2014-06-27 | 2014-09-24 | 西安空间无线电技术研究所 | A video-based image compression and secure transmission method |
Non-Patent Citations (1)
Title |
---|
基于新视频编码技术的光场压缩算法;袁强;《计算机应用研究》;20050831;233-260 * |
Also Published As
Publication number | Publication date |
---|---|
CN104469372A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104469372B (en) | Method and system for the light field image for compressing microlens array acquisition | |
Zhao et al. | Light field image coding via linear approximation prior | |
Vieira et al. | Data formats for high efficiency coding of Lytro-Illum light fields | |
Perra et al. | High efficiency coding of light field images based on tiling and pseudo-temporal data arrangement | |
US11368720B2 (en) | Image processing apparatus and method | |
US8953898B2 (en) | Image processing apparatus and method | |
JP6837056B2 (en) | Methods and equipment for encoding and decoding light field-based images and corresponding computer program products | |
CN109417621A (en) | Image processing apparatus and method | |
US9516197B2 (en) | Apparatus and method for lossless compression of raw color sensor data from a color array filtered image sensor | |
CN104641649B (en) | Image processing apparatus and method | |
WO2015096822A1 (en) | Image coding and decoding methods and devices | |
DE112016005457T5 (en) | Efficient, compatible and scalable intra-video / image encoding using wavelets and HEVC coding | |
CN106375766B (en) | A kind of light field image compression method | |
EP1315123A3 (en) | Scalable architecture for establishing correspondence of multiple video streams at frame rate | |
JP6872533B2 (en) | Methods and Devices for Encoding and Decoding Lightfield-Based Images, and Corresponding Computer Program Products | |
JP7177034B2 (en) | Method, apparatus and stream for formatting immersive video for legacy and immersive rendering devices | |
WO2020103800A1 (en) | Video decoding method and video decoder | |
Helin et al. | Sparse modelling and predictive coding of subaperture images for lossless plenoptic image compression | |
TW202127881A (en) | Subpicture signaling in high-level syntax for video coding | |
CN106534853B (en) | Light field image compression method based on hybrid scan order | |
CN111819856A (en) | Loop filtering apparatus and method for video encoding | |
US11838519B2 (en) | Image encoding/decoding method and apparatus for signaling image feature information, and method for transmitting bitstream | |
CN114286099A (en) | Intra-frame prediction method and device | |
CN110022481B (en) | Method and device for decoding and generating video code stream, storage medium, and electronic device | |
CN103347170A (en) | Image processing method used for intelligent monitoring and high-resolution camera applied in image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |