CN102333212B - Bilinear two-fold upsampling method and system thereof - Google Patents
Bilinear two-fold upsampling method and system thereof Download PDFInfo
- Publication number
- CN102333212B CN102333212B CN 201010226016 CN201010226016A CN102333212B CN 102333212 B CN102333212 B CN 102333212B CN 201010226016 CN201010226016 CN 201010226016 CN 201010226016 A CN201010226016 A CN 201010226016A CN 102333212 B CN102333212 B CN 102333212B
- Authority
- CN
- China
- Prior art keywords
- pixels
- buffering area
- sampling
- pixel
- buffer
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 239000000872 buffer Substances 0.000 claims abstract description 117
- 238000005070 sampling Methods 0.000 claims abstract description 93
- 238000012935 Averaging Methods 0.000 claims description 6
- 230000003139 buffering effect Effects 0.000 claims 50
- 238000012545 processing Methods 0.000 abstract description 7
- 101100285899 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) SSE2 gene Proteins 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
本发明公开了一种双线性两倍上采样方法及系统,属于图像处理、视频编解码等技术领域。现有的双线性上采样方式的效率较低。本发明首先申请四个缓冲区,分别为第一缓冲区、第二缓冲区、第三缓冲区和第四缓冲区;然后将待采样图像输入到第一缓冲区;再遍历待采样图像,分别对待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样;将横向像素采样结果存入第二缓冲区,将纵向像素采样结果存入第三缓冲区,将相邻四像素采样结果存入第四缓冲区;最后将四个缓冲区中的像素进行交错排布,输出采样后图像。本发明主要应用于对图像进行双线性两倍上采样处理中。
The invention discloses a bilinear twice upsampling method and system, and belongs to the technical fields of image processing, video encoding and decoding, and the like. Existing bilinear upsampling methods are inefficient. The present invention firstly applies for four buffers, which are respectively the first buffer, the second buffer, the third buffer and the fourth buffer; then the image to be sampled is input to the first buffer; Perform horizontal pixel sampling, vertical pixel sampling and adjacent four-pixel sampling on the image to be sampled; store the horizontal pixel sampling result in the second buffer, store the vertical pixel sampling result in the third buffer, and store the adjacent four-pixel sampling result into the fourth buffer; finally, the pixels in the four buffers are interleaved, and the sampled image is output. The present invention is mainly applied to bilinear double upsampling processing on images.
Description
技术领域 technical field
本发明属于图像处理、视频编解码等技术领域,具体涉及到一种双线性两倍上采样方法及系统。The invention belongs to the technical fields of image processing, video encoding and decoding, etc., and specifically relates to a bilinear twice upsampling method and system.
背景技术 Background technique
近年来,随着图像处理、视频编解码技术的不断发展,人们对图像和视频的呈现灵活性要求越来越高。例如,图像的放大缩小,视频的拉伸压缩,其中都涉及到上下采样技术。尤其是在可伸缩视频编码中,编解码器内部都需要进行上下采样,以支持空域可伸缩的特性。In recent years, with the continuous development of image processing and video codec technology, people have higher and higher requirements for the flexibility of image and video presentation. For example, zooming in and out of images, stretching and compressing videos, all of which involve up-down sampling technology. Especially in scalable video coding, up and down sampling is required inside the codec to support the feature of spatial scalability.
图像上采样是从较低分辨率图像中产生较高分辨率的过程,也就是增大图像分辨率。上采样技术有很多种,从最简单的最近邻域采样,到较为复杂的Lanczos采样等。最近邻域采样的运算量最小且容易实现,但效果最差。Lanczos采样方法是BicubicResize的替代者,可以提供更精准、更锐利的画质,但其程序复杂、消耗时间长。对于图像处理,为了提高画质而采用较复杂、较耗时的采样方法是合理的。然而对于视频应用,实时性、同步性的要求则是第一位的。双线性上采样是上采样算法中较为简单的一种,由于它速度较快,采样效果较好,因而被广泛使用。Image upsampling is the process of producing a higher resolution from a lower resolution image, that is, increasing the image resolution. There are many kinds of upsampling techniques, from the simplest nearest neighbor sampling to the more complex Lanczos sampling. Nearest neighbor sampling has the least amount of computation and is easy to implement, but the effect is the worst. The Lanczos sampling method is an alternative to BicubicResize, which can provide more accurate and sharper image quality, but its procedure is complicated and time-consuming. For image processing, it is reasonable to use more complex and time-consuming sampling methods in order to improve image quality. However, for video applications, the requirements of real-time and synchronization are the first. Bilinear upsampling is a relatively simple upsampling algorithm, and it is widely used because of its faster speed and better sampling effect.
双线性采样法的输出像素值是它在输入图像中2×2领域采样点的平均值,就是根据周围最接近的四个点的像素值通过加权平均计算出新像素值。它根据周围4个像素的灰度值在水平和垂直两个方向上进行插值。双线性上采样的比较典型的应用场合是进行两倍上采样。现有的双线性上采样方法是针对多倍上采样的通用方法,采用乘法计算采样结果,由于乘法计算耗时较多、速度较慢,因此采样效率较低。The output pixel value of the bilinear sampling method is the average value of its 2×2 field sampling points in the input image, that is, the new pixel value is calculated by weighted average according to the pixel values of the four nearest surrounding points. It interpolates both horizontally and vertically based on the gray values of the surrounding 4 pixels. A typical application of bilinear upsampling is twice upsampling. The existing bilinear upsampling method is a general method for multiple upsampling, and multiplication is used to calculate the sampling result. Since the multiplication calculation is time-consuming and slow, the sampling efficiency is low.
发明内容 Contents of the invention
针对现有技术中存在的缺陷,本发明所要解决的技术问题是提供一种效率高的双线性两倍上采样方法及系统。Aiming at the defects in the prior art, the technical problem to be solved by the present invention is to provide a high-efficiency bilinear double upsampling method and system.
为解决上述技术问题,本发明采用的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme adopted in the present invention is as follows:
一种双线性两倍上采样方法,包括以下步骤:A bilinear twice upsampling method, comprising the following steps:
(1)申请四个缓冲区,分别为第一缓冲区、第二缓冲区、第三缓冲区和第四缓冲区;(1) Apply for four buffer zones, namely the first buffer zone, the second buffer zone, the third buffer zone and the fourth buffer zone;
(2)将待采样图像输入到第一缓冲区;(2) Input the image to be sampled into the first buffer;
(3)遍历待采样图像,分别对待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样;将横向像素采样结果存入第二缓冲区,将纵向像素采样结果存入第三缓冲区,将相邻四像素采样结果存入第四缓冲区;(3) Traversing the image to be sampled, respectively performing horizontal pixel sampling, vertical pixel sampling and adjacent four-pixel sampling on the image to be sampled; storing the horizontal pixel sampling result in the second buffer, and storing the vertical pixel sampling result in the third buffer , storing the sampling results of adjacent four pixels into the fourth buffer;
(4)将四个缓冲区中像素进行交错排布,输出采样后图像。(4) Arrange the pixels in the four buffers in a staggered manner, and output the sampled image.
一种双线性两倍上采样系统,包括A bilinear upsampling system by two times, including
用于申请缓冲区的缓存装置,所述缓存装置申请四个缓冲区,分别为第一缓冲区、第二缓冲区、第三缓冲区和第四缓冲区;所述第一缓冲区用于缓存待采样图像,所述第二缓冲区用于缓存横向像素采样所得像素,所述第三缓冲区用于缓存纵向像素采样所得像素,所述第四缓冲区用于缓存相邻四像素采样所得像素;A caching device for applying for a buffer, the caching device applies for four buffers, which are respectively the first buffer, the second buffer, the third buffer and the fourth buffer; the first buffer is used for caching For the image to be sampled, the second buffer is used for caching the pixels obtained by horizontal pixel sampling, the third buffer is used for caching the pixels obtained by vertical pixel sampling, and the fourth buffer is used for caching the pixels obtained by adjacent four-pixel sampling ;
用于将待采样图像输入到第一缓冲区的输入装置;An input device for inputting the image to be sampled into the first buffer;
用于对待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样,并将横向像素采样结果存入第二缓冲区,将纵向像素采样结果存入第三缓冲区,将相邻四像素采样结果存入第四缓冲区的采样装置;It is used to perform horizontal pixel sampling, vertical pixel sampling and adjacent four-pixel sampling on the image to be sampled, and store the horizontal pixel sampling result in the second buffer, store the vertical pixel sampling result in the third buffer, and store the adjacent four-pixel The sampling result is stored in the sampling device of the fourth buffer zone;
用于将四个缓冲区中像素进行交错排布,输出采样后图像的输出装置。An output device for interleaving the pixels in the four buffers and outputting the sampled image.
本发明所述方法及系统,通过将待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样,并将采样结果存入不同的缓冲区中,再交错排布四个缓冲区中像素的方式,大大提高了图像双线性两倍上采样的效率。而且,在采样过程中,通过计算相邻像素平均值的方式,代替了乘法计算,从而减少了计算时间,加快了采样速度。According to the method and system of the present invention, the image to be sampled is subjected to horizontal pixel sampling, vertical pixel sampling and adjacent four pixel sampling, and the sampling results are stored in different buffers, and then the pixels in the four buffers are arranged in a staggered manner. In this way, the efficiency of image bilinear upsampling is greatly improved. Moreover, in the sampling process, the multiplication calculation is replaced by calculating the average value of adjacent pixels, thereby reducing the calculation time and speeding up the sampling speed.
附图说明 Description of drawings
图1是具体实施方式中所述双线性两倍上采样系统的结构框图;Fig. 1 is the structural block diagram of described bilinear twice upsampling system in the specific embodiment;
图2是具体实施方式中所述双线性两倍上采样方法的流程图;Fig. 2 is a flow chart of the bilinear double upsampling method described in the specific embodiment;
图3是具体实施方式中缓冲区起始地址16字节对齐示意图;Fig. 3 is a schematic diagram of buffer start address 16 byte alignment in the specific embodiment;
图4是具体实施方式中待采样图像像素分布示意图;Fig. 4 is a schematic diagram of pixel distribution of an image to be sampled in a specific embodiment;
图5是具体实施方式中四个缓冲区中像素交错排布的示意图。Fig. 5 is a schematic diagram of the staggered arrangement of pixels in four buffer areas in a specific embodiment.
具体实施方式 Detailed ways
下面结合具体实施方式和附图对本发明进行详细描述。The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.
图1出示了本实施方式中所述双线性两倍上采样系统的结构框图。该系统包括缓存装置12,与缓存装置12连接的输入装置11和采样装置13,以及与采样装置13连接的输出装置14。FIG. 1 shows a structural block diagram of the bilinear twice upsampling system in this embodiment. The system includes a
缓存装置12用于申请缓冲区,本实施方式中共申请四个缓冲区,分别命名为第一缓冲区(O缓冲区)、第二缓冲区(H缓冲区)、第三缓冲区(V缓冲区)和第四缓冲区(HV缓冲区)。O缓冲区用于缓存待采样图像,H缓冲区用于缓存横向像素采样所得像素,V缓冲区用于缓存纵向像素采样所得像素,HV缓冲区用于缓存相邻四像素采样所得像素。The
输入装置11用于将待采样图像输入到O缓冲区。The
采样装置13用于对待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样,并将横向像素采样结果存入H缓冲区,将纵向像素采样结果存入V缓冲区,将相邻四像素采样结果存入HV缓冲区。The
输出装置14用于将四个缓冲区中像素进行交错排布,输出采样后图像。The
图2出示了采用图1所示系统进行双线性两倍上采样的方法流程图。该方法包括以下步骤:FIG. 2 shows a flowchart of a method for performing bilinear upsampling by two times using the system shown in FIG. 1 . The method includes the following steps:
(1)缓存装置12首先申请四个缓冲区,分别命名为O缓冲区、H缓冲区、V缓冲区和HV缓冲区。每个缓冲区的大小均不小于待采样图像的大小,且为16的倍数。(1) The
申请四个缓冲区后,还包括对每个缓冲区的起始地址进行16字节对齐的操作。本实施方式中,16字节对齐操作采用如下方式:After applying for four buffers, it also includes the operation of 16-byte alignment for the start address of each buffer. In this embodiment, the 16-byte alignment operation adopts the following method:
对于32位应用程序,首先在申请每个缓冲区时,额外申请19字节空间;然后记录缓冲区的起始地址P,将P+4字节后进行16字节向上对齐,得到Q。对于64位应用程序,在申请每个缓冲区时,额外申请23字节空间;记录缓冲区的起始地址P,将P+8字节后进行16字节向上对齐,得到Q。其中4字节和8字节为指针的大小。缓冲区的结束地址相应后延,保证缓冲区的大小不变。16字节对齐处理后,对于32位应用程序,将P写入Q的前方4字节中;对于64位应用程序,将P写入Q的前方8字节中。For 32-bit applications, first apply for an additional 19 bytes of space when applying for each buffer; then record the starting address P of the buffer, and align P+4 bytes to 16 bytes upwards to obtain Q. For 64-bit applications, when applying for each buffer, additionally apply for 23 bytes of space; record the starting address P of the buffer, and align P+8 bytes to 16 bytes to obtain Q. Among them, 4 bytes and 8 bytes are the size of the pointer. The end address of the buffer is delayed accordingly to ensure that the size of the buffer remains unchanged. After 16-byte alignment processing, for 32-bit applications, write P into the front 4 bytes of Q; for 64-bit applications, write P into the front 8 bytes of Q.
例如,如图3所示,设某缓冲区的起始位置P为10,将P向右移4个字节后到达R位置,R为14;与16相比差2个字节,再向右移动2个字节后到达Q位置,此时缓冲区的当前起始位置Q为16,达到了对齐目的。由于多申请了19或23字节,因此缓冲区的大小能够保持不变。For example, as shown in Figure 3, set the starting position P of a certain buffer zone as 10, move P to the right by 4 bytes to reach the R position, and R is 14; compared with 16, the difference is 2 bytes, and then to After moving 2 bytes to the right, it reaches the Q position. At this time, the current starting position Q of the buffer is 16, which achieves the purpose of alignment. Since 19 or 23 bytes are applied for, the size of the buffer can remain the same.
在释放缓冲区时,将Q减去4字节(64位应用程序为8字节)取得P,释放P即可。When releasing the buffer, subtract 4 bytes from Q (8 bytes for 64-bit applications) to obtain P, and release P.
(2)输入装置11将待采样图像(原始图像)输入到O缓冲区,作为上采样源数据。(2) The
(3)采样装置13遍历待采样图像,分别对待采样图像进行横向像素采样、纵向像素采样和相邻四像素采样。将横向像素采样结果存入H缓冲区,将纵向像素采样结果存入V缓冲区,将相邻四像素采样结果存入HV缓冲区。(3) The
以图4所示原始图像为例,其像素为10×10矩阵,行和列的交叉点表示像素。横向像素采样的过程如下:遍历待采样图像,首先计算像素00(第0行第0列像素,其他像素相同的表示方式的含义以此类推)和像素01的平均值,存入H缓冲区中第0行第0列位置;然后计算像素01和像素02的平均值,存入H缓冲区中第0行第1列位置;再计算像素02和像素03的平均值,存入H缓冲区中第0行第2列位置;以此类推。处理完第一行后,再与处理第一行相同的方式处理第二行,直到处理完所有行,横向像素采样结束。H缓冲区中存储的采样结果如下表所示:Taking the original image shown in Figure 4 as an example, its pixels are a 10×10 matrix, and the intersections of rows and columns represent pixels. The process of horizontal pixel sampling is as follows: traverse the image to be sampled, first calculate the average value of pixel 00 (the pixel in row 0, column 0, and the meaning of other pixels in the same way) and pixel 01, and store it in the H buffer The position of row 0, column 0; then calculate the average value of pixel 01 and pixel 02, and store it in the position of row 0, column 1 in the H buffer; then calculate the average value of pixel 02 and pixel 03, and store it in the H buffer The position of row 0, column 2; and so on. After the first row is processed, the second row is processed in the same manner as the first row, until all rows are processed, and the horizontal pixel sampling ends. The sampling results stored in the H buffer are shown in the table below:
其中,A表示平均值,A(00,01)表示像素00和像素01的平均值,A(01,02)表示像素01和像素02的平均值,以此类推。Wherein, A represents the average value, A(00,01) represents the average value of pixel 00 and pixel 01, A(01,02) represents the average value of pixel 01 and pixel 02, and so on.
纵向像素采样的过程如下:遍历待采样图像,首先计算像素00和像素10的平均值,存入V缓冲区中第0行第0列位置;然后计算像素10和像素20的平均值,存入V缓冲区中第1行第0列位置;再计算像素20和像素30的平均值,存入V缓冲区中第2行第0列位置;以此类推。处理完第一列后,在与处理第一列相同的方式处理第二列,直到处理完所有列,纵向像素采样结束。V缓冲区中存储的采样结果如下表所示:The process of vertical pixel sampling is as follows: traverse the image to be sampled, first calculate the average value of pixel 00 and pixel 10, and store it in the position of row 0 and column 0 in the V buffer; then calculate the average value of pixel 10 and pixel 20, and store it in The position of row 1, column 0 in the V buffer; then calculate the average value of pixel 20 and pixel 30, and store it in the position of row 2, column 0 in the V buffer; and so on. After the first column is processed, the second column is processed in the same manner as the first column, until all columns are processed, and the vertical pixel sampling ends. The sampling results stored in the V buffer are shown in the table below:
其中,A表示平均值,A(00,10)表示像素00和像素10的平均值,A(10,20)表示像素10和像素20的平均值,以此类推。Wherein, A represents the average value, A(00, 10) represents the average value of pixel 00 and pixel 10, A(10, 20) represents the average value of pixel 10 and pixel 20, and so on.
在纵向像素采样计算像素平均值时,可以采用并行求平均数指令进行并行计算,这样可以提高计算效率。例如采用SSE(Streaming SIMD Extensions,单指令多数据流扩展)指令集或SSE2指令集中的PAVGB指令。如果采用SSE指令集中的PAVGB并行求平均数指令,则一条指令可以同步处理8个像素;如果采用SSE2指令集中的PAVGB并行求平均数指令,则一条指令可以同步处理16个像素。When calculating the average value of pixels by vertical pixel sampling, the parallel calculation can be performed by using the parallel average instruction, which can improve the calculation efficiency. For example, the SSE (Streaming SIMD Extensions, Single Instruction Multiple Data Stream Extensions) instruction set or the PAVGB instruction in the SSE2 instruction set is used. If the PAVGB parallel averaging instruction in the SSE instruction set is used, one instruction can process 8 pixels synchronously; if the PAVGB parallel averaging instruction in the SSE2 instruction set is used, one instruction can simultaneously process 16 pixels.
相邻四像素采样的过程如下:遍历待采样图像,首先计算像素00、像素01、像素10和像素11的平均值,存入HV缓冲区中第0行第0列位置。所谓相邻四像素是指能构成一个正方形四个顶点的相邻四个像素,如图4中的像素00、像素01、像素10和像素11。然后计算像素01、像素02、像素11和像素12的平均值,存入HV缓冲区中第0行第1列位置。再计算像素02、像素03、像素12和像素13的平均值,存入HV缓冲区中第0行第2列位置。以此类推。处理完第一行和第二行后,在与处理第一行和第二行相同的方式处理第二行和第三行。以此类推,直到处理完毕。The process of sampling adjacent four pixels is as follows: traverse the image to be sampled, first calculate the average value of pixel 00, pixel 01, pixel 10 and
由于在进行横向像素采样时,已经计算了横向相邻的两个像素的平均值,因此在计算相邻四像素的平均值时,可以利用横向采样的结果。例如,计算像素00、像素01、像素10和像素11的平均值可以先从H缓冲区中取出像素00和像素01的平均值,用A表示;再取出像素10和像素11的平均值,用B表示;则像素00、像素01、像素10和像素11的平均值即可以通过计算A和B的平均值获得。这样,可以加快计算速度。HV缓冲区中存储的采样结果如下表所示:Since the average value of two horizontally adjacent pixels has been calculated when performing horizontal pixel sampling, the result of horizontal sampling can be used when calculating the average value of four adjacent pixels. For example, to calculate the average value of pixel 00, pixel 01, pixel 10, and
其中,A表示平均值,A(00,01,10,11)表示像素00、像素01、像素10和像素11的平均值,A(01,02,11,12)表示像素01、像素02、像素11和像素12的平均值,以此类推。Among them, A represents the average value, A(00,01,10,11) represents the average value of pixel 00, pixel 01, pixel 10 and
在相邻四像素采样计算像素平均值时,也可以采用并行求平均数指令进行并行计算,例如采用SSE指令集或SSE2指令集中的并行求平均数指令。如果采用SSE指令集中的并行求平均数指令,则一条指令可以同步处理8个像素;如果采用SSE2指令集中的并行求平均数指令,则一条指令可以同步处理16个像素。When calculating the average value of pixels in adjacent four-pixel sampling, parallel computing can also be performed by using a parallel averaging instruction, for example, using a parallel averaging instruction in the SSE instruction set or the SSE2 instruction set. If the parallel average instruction in the SSE instruction set is used, one instruction can process 8 pixels synchronously; if the parallel average instruction in the SSE2 instruction set is used, one instruction can process 16 pixels synchronously.
(4)输出装置14将四个缓冲区中像素进行交错排布,输出采样后图像。(4) The
在O缓冲区中的图像每行两个相邻像素之间插入H缓冲区中这两个像素的平均值,在每列两个相邻像素之间插入V缓冲区中这两个像素的平均值,在相邻四像素的中心位置处插入HV缓冲区中这四个像素的平均值。全部排布好后,获得采样后的图像输出。Insert the average value of these two pixels in the H buffer between two adjacent pixels in each row of the image in the O buffer, and insert the average of the two pixels in the V buffer between two adjacent pixels in each column value, interpolate the average value of the four pixels in the HV buffer at the center positions of the adjacent four pixels. After everything is arranged, the sampled image output is obtained.
例如,如图5所示,A、B、C、D、E、F、G、H、I为O缓冲区中原始图像像素,在像素A和B之间插入H缓冲区中像素A和B的平均值,在像素B和C之间插入H缓冲区中像素B和C的平均值,以此类推。在像素A和D之间插入V缓冲区中像素A和D的平均值,在像素D和G之间插入V缓冲区中像素D和G的平均值,以此类推。在像素A、B、D和E的中心位置处排入HV缓冲区中像素A、B、D和E的平均值,在像素B、C、E和F的中心位置处排入HV缓冲区中像素B、C、E和F的平均值,以此类推。For example, as shown in Figure 5, A, B, C, D, E, F, G, H, and I are the original image pixels in the O buffer, insert pixels A and B in the H buffer between pixels A and B , interpolate between pixels B and C the average of pixels B and C in the H buffer, and so on. Interpolate between pixels A and D the average of pixels A and D in the V buffer, between pixels D and G the average of pixels D and G in the V buffer, and so on. The average value of pixels A, B, D, and E at the centers of pixels A, B, D, and E in the HV buffer, and the centers of pixels B, C, E, and F into the HV buffer Average of pixels B, C, E, and F, and so on.
排布四个缓冲区中的像素,可以利用MMX(Multi Media eXtension,多媒体扩展)指令集或SSE2指令集中的PUNPCKHBW、PUNPCKLBW并行整数交错指令进行并行排布,这样可以提高像素排布的效率。如果采用MMX指令集中的并行整数交错指令,则一条指令可以同步处理8个像素;如果采用SSE2指令集中的并行整数交错指令,则一条指令可以同步处理16个像素。The pixels in the four buffers can be arranged in parallel by using the MMX (Multi Media eXtension) instruction set or the PUNPCKHBW and PUNPCKLBW parallel integer interleaving instructions in the SSE2 instruction set, which can improve the efficiency of pixel arrangement. If the parallel integer interleaving instruction in the MMX instruction set is used, one instruction can process 8 pixels synchronously; if the parallel integer interleaving instruction in the SSE2 instruction set is used, one instruction can process 16 pixels synchronously.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其同等技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010226016 CN102333212B (en) | 2010-07-14 | 2010-07-14 | Bilinear two-fold upsampling method and system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010226016 CN102333212B (en) | 2010-07-14 | 2010-07-14 | Bilinear two-fold upsampling method and system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102333212A CN102333212A (en) | 2012-01-25 |
CN102333212B true CN102333212B (en) | 2013-07-17 |
Family
ID=45484799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010226016 Expired - Fee Related CN102333212B (en) | 2010-07-14 | 2010-07-14 | Bilinear two-fold upsampling method and system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102333212B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546752B (en) * | 2013-10-15 | 2016-10-05 | 华南理工大学 | A kind of picture size based on hardware concurrent framework compression traversal method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094304A (en) * | 2006-06-23 | 2007-12-26 | 凌阳科技股份有限公司 | Image-zooming system capable of saving memory |
CN101409766A (en) * | 2007-12-27 | 2009-04-15 | 华为技术有限公司 | Image-scaling method and apparatus |
CN101616249A (en) * | 2009-07-28 | 2009-12-30 | 谭洪舟 | Video scaling device based on bicubic interpolation |
CN101742080A (en) * | 2008-11-04 | 2010-06-16 | 深圳市融创天下科技发展有限公司 | Method for amplifying video image by 4/3 times |
-
2010
- 2010-07-14 CN CN 201010226016 patent/CN102333212B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094304A (en) * | 2006-06-23 | 2007-12-26 | 凌阳科技股份有限公司 | Image-zooming system capable of saving memory |
CN101409766A (en) * | 2007-12-27 | 2009-04-15 | 华为技术有限公司 | Image-scaling method and apparatus |
CN101742080A (en) * | 2008-11-04 | 2010-06-16 | 深圳市融创天下科技发展有限公司 | Method for amplifying video image by 4/3 times |
CN101616249A (en) * | 2009-07-28 | 2009-12-30 | 谭洪舟 | Video scaling device based on bicubic interpolation |
Non-Patent Citations (4)
Title |
---|
双线性插值图像放大算法优化及硬件实现;帅金晓等;《核电子学与探测技术》;20090131;第29卷(第1期);55-58 * |
基于双线性插值的图像缩放算法的研究与实现;王森等;《计算机应用》;20080725;第27卷(第7期);35、44、45 * |
帅金晓等.双线性插值图像放大算法优化及硬件实现.《核电子学与探测技术》.2009,第29卷(第1期),55-58. |
王森等.基于双线性插值的图像缩放算法的研究与实现.《计算机应用》.2008,第27卷(第7期),35、44、45. |
Also Published As
Publication number | Publication date |
---|---|
CN102333212A (en) | 2012-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105869117B (en) | A GPU-accelerated method for deep learning super-resolution technology | |
CN106991665B (en) | Parallel computing method based on CUDA image fusion | |
CN105786942B (en) | A kind of geography information storage system based on cloud platform | |
CN103295192B (en) | The image real-time super-resolution method for reconstructing accelerating based on GPU | |
WO2019136077A1 (en) | Frame-recurrent video super-resolution | |
CN102194222B (en) | An Image Reconstruction Method Based on Joint Motion Estimation and Super-resolution Reconstruction | |
Yang et al. | Aim 2022 challenge on super-resolution of compressed image and video: Dataset, methods and results | |
JP5635202B2 (en) | Fast repeated integral image | |
TW201349852A (en) | Image processing apparatus and image processing method | |
CN108596841A (en) | A kind of method of Parallel Implementation image super-resolution and deblurring | |
CN104537697A (en) | Implementation method for progressively blurred animation | |
CN102222317A (en) | Image scaling method and system | |
CN109949221A (en) | An image processing method and electronic device | |
CN113724136B (en) | Video restoration method, device and medium | |
EP2787738B1 (en) | Tile-based compression for graphic applications | |
US10515440B2 (en) | Display apparatus and image processing method thereof | |
CN103413273A (en) | Method for rapidly achieving image restoration processing based on GPU | |
CN105957034A (en) | Scanning infrared imaging system scene non-uniformity correction based on registration | |
CN102333212B (en) | Bilinear two-fold upsampling method and system thereof | |
Guo et al. | An energy-efficient image filtering interpolation algorithm using domain-specific dynamic reconfigurable array processor | |
WO2016004667A1 (en) | Super-resolution reconstruction method for enhancing smoothness and definition of video image | |
CN107993202B (en) | Method for realizing median filtering by using FPGA (field programmable Gate array) | |
CN106558021A (en) | Video enhancement method based on super-resolution technique | |
CN109429030A (en) | Method for reconstructing video by using super-resolution algorithm | |
Zhou et al. | Enhancing Real-Time Super Resolution with Partial Convolution and Efficient Variance Attention |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130717 Termination date: 20190714 |
|
CF01 | Termination of patent right due to non-payment of annual fee |