CN110232657A - A kind of image-scaling method, device, equipment and medium - Google Patents
A kind of image-scaling method, device, equipment and medium Download PDFInfo
- Publication number
- CN110232657A CN110232657A CN201910522113.0A CN201910522113A CN110232657A CN 110232657 A CN110232657 A CN 110232657A CN 201910522113 A CN201910522113 A CN 201910522113A CN 110232657 A CN110232657 A CN 110232657A
- Authority
- CN
- China
- Prior art keywords
- image
- sub
- scaling
- format
- heic
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 102100039334 HAUS augmin-like complex subunit 1 Human genes 0.000 claims abstract description 91
- 101100177185 Homo sapiens HAUS1 gene Proteins 0.000 claims abstract description 91
- 230000008569 process Effects 0.000 claims abstract description 34
- 230000010354 integration Effects 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种图像缩放方法、装置、设备及介质,该方法的步骤包括:获取保存HEIC格式图像时所生成的子图像块;对各子图像块进行缩放处理,生成相应的低分辨率子图像块;将各低分辨率子图像块整合为缩略图像。由于本方法是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。此外,本发明还提供一种图像缩放装置、设备及计算机可读存储介质,有益效果同上所述。
The invention discloses an image scaling method, device, equipment and medium. The steps of the method include: acquiring sub-image blocks generated when images in HEIC format are saved; scaling each sub-image block to generate corresponding low-resolution images Sub-tiles; combine each low-resolution sub-tile into a thumbnail image. Since this method integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the memory space occupied in the process of scaling HEIC format images, thereby ensuring that The overall stability of the system during the scaling process of HEIC format images is improved. In addition, the present invention also provides an image scaling apparatus, device and computer-readable storage medium, the beneficial effects are the same as those described above.
Description
技术领域technical field
本发明涉及图像缩放领域,特别是涉及一种图像缩放方法、装置、设备及介质。The present invention relates to the field of image scaling, in particular to an image scaling method, device, device and medium.
背景技术Background technique
当前的HEIC格式图像在保存时,往往是预先依照一定的网格(GRID)尺寸将完整的HEIC格式图像分割为多个相应的子图像块进行保存,进而在获取HEIC格式图像时,需要将其相应的多个子图像块分别解码,并依照子图像块在HEIC格式图像中的相对位置顺序整合为完整的HEIC格式图像。When the current HEIC format image is saved, the complete HEIC format image is often divided into a plurality of corresponding sub-image blocks according to a certain grid (GRID) size in advance, and then when the HEIC format image is obtained, it needs to be The corresponding multiple sub-image blocks are decoded respectively, and integrated into a complete HEIC-format image according to the relative position sequence of the sub-image blocks in the HEIC format image.
由于当前主流的显示设备能够显示的图像分辨率有限,因此当HEIC格式图像的尺寸较大时,需要经过对HEIC格式图像进行缩放才能够正常显示。当前对于HEIC格式图像进行缩放的方式,是先将基于HEIC格式图像划分的各个子图像块整合为完整的HEIC格式图像,进而再对完整的HEIC格式图像进行缩放处理,最终生成低分辨率格式的缩略图像。但是由于HEIC格式图像的分辨率较高,因此当HEIC图像尺寸较大时,以全景照片(16374×3692)为例,如果以每个像素点以RGBA格式全尺寸保存在内存,所需内存为16374×3692×4(230.6MB)字节,因此会对内存空间造成非常大的占用,难以确保对HEIC格式图像进行缩放处理过程的整体稳定性。Due to the limited image resolution that can be displayed by current mainstream display devices, when the size of the HEIC format image is large, the HEIC format image needs to be scaled to be displayed normally. The current way of scaling HEIC format images is to first integrate each sub-image block based on HEIC format image division into a complete HEIC format image, and then perform scaling processing on the complete HEIC format image, and finally generate a low-resolution format image. Thumbnail image. However, due to the high resolution of HEIC format images, when the HEIC image size is large, taking a panoramic photo (16374×3692) as an example, if each pixel is stored in the memory in full size in RGBA format, the required memory is 16374×3692×4 (230.6MB) bytes, so it will occupy a lot of memory space, and it is difficult to ensure the overall stability of the HEIC format image scaling process.
由此可见,提供一种图像缩放方法,以相对降低对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保对HEIC格式图像进行缩放处理过程的整体稳定性,是本领域技术人员需要解决的问题。Thus, it can be seen that an image scaling method is provided to relatively reduce the degree of memory space occupied in the process of scaling the HEIC format image, thereby ensuring the overall stability of the scaling process for the HEIC format image, which is a skill in the art. issues that need resolving.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种图像缩放方法、装置、设备及介质,以相对降低对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保对HEIC格式图像进行缩放处理过程的系统整体稳定性。The purpose of the present invention is to provide an image scaling method, device, equipment and medium, so as to relatively reduce the occupation of memory space in the process of scaling the HEIC format image, thereby ensuring the overall system for scaling the HEIC format image. stability.
为解决上述技术问题,本发明提供一种图像缩放方法,包括:In order to solve the above technical problems, the present invention provides an image scaling method, including:
获取保存HEIC格式图像时所生成的子图像块;Get the sub-image block generated when saving the HEIC format image;
对各子图像块进行缩放处理,生成相应的低分辨率子图像块;Perform scaling processing on each sub-image block to generate a corresponding low-resolution sub-image block;
将各低分辨率子图像块整合为缩略图像。Integrate each low-resolution sub-image block into a thumbnail image.
优选的,对各子图像块进行缩放处理,生成相应的低分辨率子图像块,包括:Preferably, scaling each sub-image block is performed to generate corresponding low-resolution sub-image blocks, including:
获取缩略图像的目标尺寸以及HEIC格式图像的实际尺寸,并根据目标尺寸与实际尺寸计算缩放比;Obtain the target size of the thumbnail image and the actual size of the HEIC format image, and calculate the zoom ratio according to the target size and the actual size;
根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块;Perform scaling processing on each sub-image block according to the scaling ratio to generate corresponding low-resolution sub-image blocks;
相应的,将各低分辨率子图像块整合为缩略图像,包括:Correspondingly, each low-resolution sub-image block is integrated into a thumbnail image, including:
获取各子图像块在HEIC格式图像中的行列位置;Obtain the row and column positions of each sub-image block in the HEIC format image;
将各低分辨率子图像块按照对应子图像块的行列位置相互连接,并整合为缩略图像。Each low-resolution sub-image block is connected to each other according to the row and column positions of the corresponding sub-image blocks, and integrated into a thumbnail image.
优选的,在根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块之前,方法还包括:Preferably, before performing scaling processing on each sub-image block according to the scaling ratio to generate a corresponding low-resolution sub-image block, the method further includes:
根据缩略图像的目标尺寸以及分辨率分配相应容量的目标内存空间;Allocate the target memory space of the corresponding capacity according to the target size and resolution of the thumbnail image;
相应的,根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块,包括:Correspondingly, each sub-image block is scaled according to the scaling ratio to generate corresponding low-resolution sub-image blocks, including:
基于目标内存空间根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Based on the target memory space, each sub-image block is scaled according to the scaling ratio, and a corresponding low-resolution sub-image block is generated.
优选的,低分辨率子图像块的格式包括JPG格式。Preferably, the format of the low-resolution sub-image block includes JPG format.
优选的,对各子图像块进行缩放处理,生成相应的低分辨率子图像块,包括:Preferably, scaling each sub-image block is performed to generate corresponding low-resolution sub-image blocks, including:
通过多线程的方式对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Each sub-image block is scaled in a multi-threaded manner to generate corresponding low-resolution sub-image blocks.
优选的,获取保存HEIC格式图像时所生成的子图像块,包括:Preferably, obtaining the sub-image blocks generated when saving the HEIC format image, including:
基于H265码流获取保存HEIC格式图像时所生成的子图像块。Obtain the sub-image blocks generated when saving HEIC format images based on the H265 code stream.
此外,本发明还提供一种图像缩放装置,装置包括存储器、处理器和总线,存储器上存储有可由总线传输至处理器并在处理器上运行的图像缩放程序,图像缩放程序被处理器执行时实现如上述的图像缩放方法。In addition, the present invention also provides an image zooming device, the device includes a memory, a processor and a bus, wherein the memory stores an image zooming program that can be transmitted by the bus to the processor and run on the processor. When the image zooming program is executed by the processor Implement the image scaling method as described above.
优选的,装置为组成CDN网络或者区块链网络的节点。Preferably, the device is a node forming a CDN network or a blockchain network.
此外,本发明还提供一种图像缩放系统,系统包括:In addition, the present invention also provides an image scaling system, the system includes:
子图像块获取单元,用于获取保存HEIC格式图像时所生成的子图像块;a sub-image block obtaining unit, used for obtaining the sub-image block generated when saving the HEIC format image;
子图像块缩放单元,用于对各子图像块进行缩放处理,生成相应的低分辨率子图像块;a sub-image block scaling unit, configured to perform scaling processing on each sub-image block to generate a corresponding low-resolution sub-image block;
图像块整合模块,用于将各低分辨率子图像块整合为缩略图像。The image block integration module is used to integrate each low-resolution sub-image block into a thumbnail image.
此外,本发明还提供一种计算机程序产品,包括计算机指令,当其在计算机上运行时,使得计算机可以执行上述的图像缩放方法。In addition, the present invention also provides a computer program product comprising computer instructions which, when executed on a computer, enable the computer to perform the above-mentioned image scaling method.
此外,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有图像缩放程序,图像缩放程序可被一个或者多个处理器执行,以实现如上述的图像缩放方法。In addition, the present invention also provides a computer-readable storage medium on which an image scaling program is stored, and the image scaling program can be executed by one or more processors to implement the above-mentioned image scaling method.
本发明所提供的图像缩放方法,首先获取保存HEIC格式图像时所生成的子图像块,进而对各子图像块进行缩放处理,生成相应的低分辨率子图像块,最终将各低分辨率子图像块整合为分辨率更低的缩略图像。本方法是先对HEIC格式图像的各个子图像块进行缩放处理,进而再将缩放生成的低分辨率子图像块进行整合生成缩略图像,相较于现有技术中对高分辨率的子图像块进行整合而言,由于本方法是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。此外,本发明还提供一种图像缩放装置、设备及计算机可读存储介质,有益效果同上所述。The image scaling method provided by the present invention firstly acquires the sub-image blocks generated when the HEIC format image is saved, and then performs scaling processing on each sub-image block to generate corresponding low-resolution sub-image blocks, and finally converts each low-resolution sub-image block into Image blocks are consolidated into lower resolution thumbnail images. In this method, each sub-image block of the HEIC format image is firstly scaled, and then the low-resolution sub-image blocks generated by scaling are integrated to generate a thumbnail image. Compared with the high-resolution sub-image in the prior art In terms of block integration, since this method integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the memory space required during the scaling process of HEIC format images. The occupancy level of the image, thereby ensuring the overall stability of the system during the scaling process of HEIC format images. In addition, the present invention also provides an image scaling apparatus, device and computer-readable storage medium, the beneficial effects are the same as those described above.
附图说明Description of drawings
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention more clearly, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, which are not relevant to ordinary skills in the art. As far as personnel are concerned, other drawings can also be obtained from these drawings on the premise of no creative work.
图1为本发明实施例提供的一种图像缩放方法的流程图;1 is a flowchart of an image scaling method provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种图像缩放方法的流程图;2 is a flowchart of another image scaling method provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种图像缩放方法的流程图;3 is a flowchart of another image scaling method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种图像缩放装置的结构图。FIG. 4 is a structural diagram of an image scaling apparatus according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
由于当前主流的显示设备能够显示的图像分辨率有限,因此当HEIC格式图像的尺寸较大时,需要经过对HEIC格式图像进行缩放才能够正常显示。当前对于HEIC格式图像进行缩放的方式,是先将基于HEIC格式图像划分的各个子图像块整合为完整的HEIC格式图像,进而再对完整的HEIC格式图像进行缩放处理,最终生成低分辨率格式的缩略图像。但是由于HEIC格式图像的分辨率较高,因此当HEIC图像尺寸较大时,以全景照片(16374×3692)为例,如果以每个像素点以RGBA格式全尺寸保存在内存,所需内存为16374×3692×4(230.6MB)字节,因此会对内存空间造成非常大的占用,难以确保对HEIC格式图像进行缩放处理过程的系统整体稳定性。Due to the limited image resolution that can be displayed by current mainstream display devices, when the size of the HEIC format image is large, the HEIC format image needs to be scaled to be displayed normally. The current way of scaling HEIC format images is to first integrate each sub-image block based on HEIC format image division into a complete HEIC format image, and then perform scaling processing on the complete HEIC format image, and finally generate a low-resolution format image. Thumbnail image. However, due to the high resolution of HEIC format images, when the HEIC image size is large, taking a panoramic photo (16374×3692) as an example, if each pixel is stored in the memory in full size in RGBA format, the required memory is 16374×3692×4 (230.6MB) bytes, so it will occupy a lot of memory space, and it is difficult to ensure the overall stability of the system during the scaling process of HEIC format images.
本发明的核心是提供一种图像缩放方法,以相对降低对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保对HEIC格式图像进行缩放处理过程的系统整体稳定性。此外,本发明还提供一种图像缩放装置、设备及计算机可读存储介质,有益效果同上所述。The core of the present invention is to provide an image scaling method to relatively reduce the degree of memory space occupied during the scaling processing of HEIC format images, thereby ensuring the overall stability of the system during scaling processing of HEIC format images. In addition, the present invention also provides an image scaling apparatus, device and computer-readable storage medium, the beneficial effects are the same as those described above.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图1为本发明实施例提供的一种图像缩放方法的流程图。请参考图1,图像缩放方法的具体步骤包括:FIG. 1 is a flowchart of an image scaling method provided by an embodiment of the present invention. Please refer to Figure 1, the specific steps of the image scaling method include:
步骤S10:获取保存HEIC格式图像时所生成的子图像块。Step S10: Obtain the sub-image blocks generated when the HEIC format image is saved.
需要说明的是,HEIC格式,即High Efficiency Image Compression格式,高性能图像压缩,又称HEIF,为取代jpeg的新一代图像格式。该图像格式利用H265编码方式对图像进行分片压缩,压缩性能优于JPG。It should be noted that HEIC format, namely High Efficiency Image Compression format, high-performance image compression, also known as HEIF, is a new generation image format that replaces jpeg. The image format uses H265 encoding to compress the image in slices, and the compression performance is better than JPG.
本步骤中的子图像块是HEIC格式图像进行保存时所采取的具体形式,也就是说在对HEIC格式图像进行保存时,是先将HEIC格式图像分割为子图像块,再进行保存的,因此本步骤中获取保存HEIC格式图像时所生成的子图像块,也就相当于获取预先保存的HEIC格式图像,但是需要强调的是,仅获取子图像块并不能完整的显示HEIC格式图像,只能够基于子图像块实现对其相应完整的HEIC格式图像的相关处理操作。The sub-image block in this step is the specific form taken when the HEIC format image is saved, that is to say, when the HEIC format image is saved, the HEIC format image is first divided into sub-image blocks and then saved. Therefore, Obtaining the sub-image blocks generated when saving the HEIC format image in this step is equivalent to obtaining the pre-saved HEIC format image. However, it should be emphasized that only obtaining the sub-image block cannot completely display the HEIC format image, but can only display the HEIC format image completely. Based on the sub-image block, the related processing operation of its corresponding complete HEIC format image is realized.
步骤S11:对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Step S11 : scaling each sub-image block to generate a corresponding low-resolution sub-image block.
需要说明的是,在计算机图像处理和计算机图形学中,图像缩放(imagescaling)是指对数字图像的大小进行调整的过程。本步骤是针对于每一个子图像块均进行缩放处理,以此生成分辨率较低的低分辨率子图像块,进行缩放的目的是对于原本分辨率较高导致无法显示的子图像块进行损失分辨率的处理,以此确保子图像块在缩放后能够正常以较低的分辨率显示。需要强调的是,本步骤中的缩放处理,是在缩小子图像块尺寸的同时降低子图像块的分辨率。It should be noted that, in computer image processing and computer graphics, image scaling (imagescaling) refers to the process of adjusting the size of a digital image. This step is to perform scaling processing on each sub-image block to generate low-resolution sub-image blocks with lower resolution. The purpose of scaling is to lose the original high-resolution sub-image blocks that cannot be displayed. Resolution processing to ensure that sub-image blocks can be displayed at lower resolutions normally after scaling. It should be emphasized that the scaling processing in this step reduces the resolution of the sub-image block while reducing the size of the sub-image block.
步骤S12:将各低分辨率子图像块整合为缩略图像。Step S12: Integrate each low-resolution sub-image block into a thumbnail image.
由于HEIC格式图像的显示需要基于子图像块之间的整合处理,因此同理的,对于HEIC格式图像进行缩放处理的缩略图像,需要基于各低分辨率子图像块整合形成。各个低分辨率子图像之间的整合为整体的缩略图像的方式,可以是依照低分辨率子图之间的对应位置关系整合为缩略图像,也可以是在限定缩略图像横向或纵向所包含低分辨率子图数量的技术上,依照各个低分辨率子图的编号顺序拼接整合为缩略图像。具体应根据实际应用场景以及实际需求而定,在此不做具体限定。Since the display of the HEIC format image needs to be based on the integration processing between the sub-image blocks, similarly, the thumbnail image that is scaled for the HEIC format image needs to be integrated and formed based on each low-resolution sub-image block. The way of integrating each low-resolution sub-image into a whole thumbnail image can be integrated into a thumbnail image according to the corresponding positional relationship between the low-resolution sub-images, or it can be defined in the horizontal or vertical direction of the thumbnail image. Technically, the number of low-resolution sub-images included is spliced and integrated into thumbnail images according to the number sequence of each low-resolution sub-image. The specifics should be determined according to the actual application scenarios and actual needs, and are not specifically limited here.
本发明所提供的图像缩放方法,首先获取保存HEIC格式图像时所生成的子图像块,进而对各子图像块进行缩放处理,生成相应的低分辨率子图像块,最终将各低分辨率子图像块整合为分辨率更低的缩略图像。本方法是先对HEIC格式图像的各个子图像块进行缩放处理,进而再将缩放生成的低分辨率子图像块进行整合生成缩略图像,相较于现有技术中对高分辨率的子图像块进行整合而言,由于本方法是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。The image scaling method provided by the present invention firstly acquires the sub-image blocks generated when the HEIC format image is saved, and then performs scaling processing on each sub-image block to generate corresponding low-resolution sub-image blocks, and finally converts each low-resolution sub-image block into Image blocks are consolidated into lower resolution thumbnail images. In this method, each sub-image block of the HEIC format image is firstly scaled, and then the low-resolution sub-image blocks generated by scaling are integrated to generate a thumbnail image. Compared with the high-resolution sub-image in the prior art In terms of block integration, since this method integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the memory space required during the scaling process of HEIC format images. The occupancy level of the image, thereby ensuring the overall stability of the system during the scaling process of HEIC format images.
作为一种优选的实施方式,低分辨率子图像块的格式包括JPG格式。As a preferred embodiment, the format of the low-resolution sub-image block includes JPG format.
需要说明的是,JPG格式是非常普及的图像格式,绝大部分的计算机设备上也能正常显示JPG格式的图像,使用者也可以随意设定压缩程度来保留画质,是一种非常方便的图像格式,并且,JPG格式的图像相比于其它格式的图像而言容量更小,能够相对节省对于存储空间的占用。It should be noted that the JPG format is a very popular image format, and most computer devices can also display JPG format images normally. Users can also set the compression level at will to preserve the image quality, which is a very convenient method. Compared with images in other formats, images in JPG format have a smaller capacity, which can relatively save the occupation of storage space.
作为一种优选的实施方式,对各子图像块进行缩放处理,生成相应的低分辨率子图像块,包括:As a preferred embodiment, scaling each sub-image block is performed to generate corresponding low-resolution sub-image blocks, including:
通过多线程的方式对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Each sub-image block is scaled in a multi-threaded manner to generate corresponding low-resolution sub-image blocks.
需要说明的是,多线程,是指从软件或者硬件上实现多个线程并发执行的技术,即具有多线程能力的计算机因有硬件支持而能够在同一时间执行一个以上数量的线程。本实施方式通过多线程的方式对各个子图像块进行缩放处理,相对提升了对子图像块进行缩放处理的整体效率。It should be noted that multithreading refers to a technology that implements concurrent execution of multiple threads from software or hardware, that is, a computer with multithreading capability can execute more than one thread at the same time due to hardware support. This embodiment performs scaling processing on each sub-image block in a multi-threaded manner, which relatively improves the overall efficiency of scaling processing on sub-image blocks.
在上述实施例的基础上,本发明还提供以下一系列优选的实施例。On the basis of the above embodiments, the present invention also provides the following series of preferred embodiments.
图2为本发明实施例提供的另一种图像缩放方法的流程图。请参考图2,图像缩放方法的具体步骤包括:FIG. 2 is a flowchart of another image scaling method provided by an embodiment of the present invention. Please refer to Fig. 2, the specific steps of the image scaling method include:
步骤S20:获取保存HEIC格式图像时所生成的子图像块。Step S20: Obtain the sub-image blocks generated when the HEIC format image is saved.
步骤S21:获取缩略图像的目标尺寸以及HEIC格式图像的实际尺寸,并根据目标尺寸与实际尺寸计算缩放比。Step S21: Acquire the target size of the thumbnail image and the actual size of the HEIC format image, and calculate the scaling ratio according to the target size and the actual size.
步骤S22:根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Step S22: Perform scaling processing on each sub-image block according to the scaling ratio to generate a corresponding low-resolution sub-image block.
需要说明的是,本实施例在对各个子图像块进行缩放处理的过程中,首先获取所需要生成的缩略图像的目标尺寸以及HEIC格式图像的实际尺寸,进而计算目标尺寸与实际尺寸之间的尺寸缩放比例,及缩放比,进而根据缩放比对每一个子图像块在长度和宽度上进行相同比例的尺寸缩放,进而生成相应的低分辨率子图像块。It should be noted that, in the process of scaling each sub-image block in this embodiment, the target size of the thumbnail image to be generated and the actual size of the HEIC format image are obtained first, and then the difference between the target size and the actual size is calculated. The size scaling ratio, and the scaling ratio, and then perform the same size scaling on the length and width of each sub-image block according to the scaling ratio, and then generate a corresponding low-resolution sub-image block.
步骤S23:获取各子图像块在HEIC格式图像中的行列位置。Step S23: Obtain the row and column positions of each sub-image block in the HEIC format image.
步骤S24:将各低分辨率子图像块按照对应子图像块的行列位置相互连接,并整合为缩略图像。Step S24: Connect the low-resolution sub-image blocks to each other according to the row and column positions of the corresponding sub-image blocks, and integrate them into a thumbnail image.
本实施例在将低分辨率子图像块整合为缩略图像的过程中,首先获取由HEIC格式图像分割生成的各子图像块在HEIC格式图像中的行列位置,也就是各子图像块与其它子图像块之间的相对位置,由于低分辨率子图像块是基于子图像块进行缩放处理生成的,因此低分辨率子图像块在缩略图像中的相对位置应与该低分辨率子图像块所对应子图像块在HEIC格式图像中的相对位置一致,因此本实施例在获取各子图像块在HEIC格式图像中的行列位置后,将各低分辨率子图像块按照对应子图像块的行列位置相互连接,并整合为缩略图像。In this embodiment, in the process of integrating low-resolution sub-image blocks into thumbnail images, firstly obtain the row and column positions of each sub-image block in the HEIC-format image generated by dividing the HEIC-format image, that is, each sub-image block and other sub-image blocks are obtained. The relative position between the sub-image blocks. Since the low-resolution sub-image block is generated by scaling based on the sub-image block, the relative position of the low-resolution sub-image block in the thumbnail image should be the same as that of the low-resolution sub-image. The relative positions of the sub-image blocks corresponding to the blocks in the HEIC format image are consistent. Therefore, in this embodiment, after obtaining the row and column positions of each sub-image block in the HEIC format image, each low-resolution sub-image block is sorted according to the corresponding sub-image block. Row and column positions are connected to each other and integrated into thumbnail images.
本实施例基于缩放比对对各子图像块进行缩放处理,能够相对避免所生成的低分辨子图像块内容出现变形或失真的情况,另外,将各低分辨率子图像块按照对应子图像块的行列位置相互连接,并整合为缩略图像,能够相对确保缩略图像的内容完整性以及可用性。In this embodiment, each sub-image block is scaled based on the scaling ratio, which can relatively avoid deformation or distortion of the content of the generated low-resolution sub-image block. The positions of the rows and columns are connected to each other and integrated into a thumbnail image, which can relatively ensure the content integrity and availability of the thumbnail image.
图3为本发明实施例提供的另一种图像缩放方法的流程图。请参考图3,图像缩放方法的具体步骤包括:FIG. 3 is a flowchart of another image scaling method provided by an embodiment of the present invention. Please refer to FIG. 3, the specific steps of the image scaling method include:
步骤S30:获取保存HEIC格式图像时所生成的子图像块。Step S30: Obtain the sub-image blocks generated when the HEIC format image is saved.
步骤S31:获取缩略图像的目标尺寸以及HEIC格式图像的实际尺寸,并根据目标尺寸与实际尺寸计算缩放比。Step S31: Acquire the target size of the thumbnail image and the actual size of the HEIC format image, and calculate the scaling ratio according to the target size and the actual size.
步骤S32:根据缩略图像的目标尺寸以及分辨率分配相应容量的目标内存空间。Step S32: Allocate a target memory space of a corresponding capacity according to the target size and resolution of the thumbnail image.
步骤S33:基于目标内存空间根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块。Step S33 : scaling each sub-image block according to the scaling ratio based on the target memory space, to generate a corresponding low-resolution sub-image block.
步骤S34:获取各子图像块在HEIC格式图像中的行列位置。Step S34: Obtain the row and column positions of each sub-image block in the HEIC format image.
步骤S35:将各低分辨率子图像块按照对应子图像块的行列位置相互连接,并整合为缩略图像。Step S35: Connect the low-resolution sub-image blocks to each other according to the row and column positions of the corresponding sub-image blocks, and integrate them into a thumbnail image.
需要说明的是,本实施例的重点在于预先根据缩略图像的目标尺寸以及分辨率分配相应容量的目标内存空间,对于不同的分辨率的缩略图像而言,每一个像素点的加载需要占用的内存容量是存在差异的,因此实施例根据缩略图像的目标尺寸以及分辨率分配相应容量的目标内存空间,进而基于预先分配的目标内存空间根据缩放比对各子图像块进行缩放处理,生成相应的低分辨率子图像块。本实施例通过预先对生成缩略图像所需要的内存空间进行划分,能够相对避免在生成缩略图像的过程中内存可用空间不足的情况产生,相对确保缩略图像生成过程的整体可靠性。It should be noted that the focus of this embodiment is to allocate a target memory space of a corresponding capacity in advance according to the target size and resolution of the thumbnail image. For thumbnail images of different resolutions, the loading of each pixel needs to occupy There is a difference in the memory capacity of the thumbnail image, so the embodiment allocates a target memory space of a corresponding capacity according to the target size and resolution of the thumbnail image, and then scales each sub-image block according to the scaling ratio based on the pre-allocated target memory space to generate Corresponding low-resolution sub-image blocks. In this embodiment, by dividing the memory space required for generating thumbnail images in advance, it is possible to relatively avoid the situation of insufficient memory available space during the process of generating thumbnail images, and relatively ensure the overall reliability of the process of generating thumbnail images.
在上述一系列实施方式的基础上,作为一种优选的实施方式,获取保存HEIC格式图像时所生成的子图像块,包括:On the basis of the above series of implementations, as a preferred implementation, acquiring the sub-image blocks generated when saving the HEIC format image, including:
基于H265码流获取保存HEIC格式图像时所生成的子图像块。Obtain the sub-image blocks generated when saving HEIC format images based on the H265 code stream.
H.265码流相较于H.264码流而言相对改善了码流的编码质量、延时和算法复杂度之间的关系,达到最优化设置,提高了压缩效率、鲁棒性和错误恢复能力、减少了实时的时延、信道获取时间以及随机接入时延、并且降低了复杂度。因此本实施方式基于H265码流能够更高效且可靠的获取到保存HEIC格式图像时所生成的子图像块。Compared with the H.264 code stream, the H.265 code stream relatively improves the relationship between the coding quality, delay and algorithm complexity of the code stream, achieves the optimal setting, and improves the compression efficiency, robustness and error Resilience, reduced real-time delay, channel acquisition time and random access delay, and reduced complexity. Therefore, based on the H265 code stream, this embodiment can more efficiently and reliably obtain the sub-image blocks generated when the HEIC format image is saved.
本发明还提供一种在具体应用场景下的场景实施例,场景实施例的执行过程如下:The present invention also provides a scenario embodiment under a specific application scenario, and the execution process of the scenario embodiment is as follows:
1、解析HEIC图像,获取HEIC图像长/宽(w/h)及子图像块长/宽(sw/sh)、子图像块个数以及子图像块行列数(tw/th)等信息,获取图片各子图像块的H265码流。1. Analyze the HEIC image, and obtain information such as the length/width (w/h) of the HEIC image, the length/width of the sub-image block (sw/sh), the number of sub-image blocks, and the number of rows and columns of the sub-image block (tw/th). The H265 code stream of each sub-image block of the picture.
2、选择需要输出的实际尺寸x*y,计算缩放比scale=w*h/x*y。分配x*y*3/2的内存S(JPG格式的图像每一个像素点占用内存空间为3/2M),S用于保存tw*th个长/宽分别为(sw/scale,sh/scale)的子图像;2. Select the actual size x*y to be output, and calculate the scaling ratio scale=w*h/x*y. Allocate memory S of x*y*3/2 (each pixel of JPG format image occupies 3/2M of memory space), S is used to save tw*th length/width respectively (sw/scale, sh/scale ) sub-image;
3、多线程解码各子图像块的码流得到sw*sh的子图像,将子图像进行缩放得到长/宽分别为(sw/scale,sh/scale)的图像,并直接缩放到内存S中对应位置处。3. Multi-threaded decoding of the code stream of each sub-image block to obtain a sub-image of sw*sh, and scaling the sub-image to obtain an image whose length/width are (sw/scale, sh/scale) respectively, and directly scale it into the memory S at the corresponding location.
4、内存S中保存为缩放后图像,可以转换成RGBA数据用于显示或作编码为JPG图保存。4. It is saved as a scaled image in the memory S, which can be converted into RGBA data for display or encoded as a JPG image.
基于上述的执行过程,以全景照片(16374×3692)为例,显示尺寸为1024x256,本方法所需内存为1024x256x1.5字节(0.375MB),仅从解码后图像内存占用(不考虑其他内存消耗)与原方案(16374×3692×4)降低近600倍。Based on the above execution process, taking a panoramic photo (16374×3692) as an example, the display size is 1024×256, and the memory required by this method is 1024×256×1.5 bytes (0.375MB), which is only occupied from the decoded image memory (without considering other memory consumption) and the original scheme (16374×3692×4) reduced by nearly 600 times.
基于上述的执行过程:Based on the above execution process:
7630*4912尺寸(8K)场景:内存占用由5.3%降至0.9%7630*4912 size (8K) scene: memory usage decreased from 5.3% to 0.9%
16382*3628(全景照片)场景:内存占用由9.0%降至1.0%16382*3628 (panorama photo) scene: memory usage reduced from 9.0% to 1.0%
15360*8640(16K图像)场景:内存占用由16.1%降至1.4%15360*8640 (16K image) scene: memory usage reduced from 16.1% to 1.4%
以上对比,HEIC格式图像尺寸越大本方案节约内存越明显。In the above comparison, the larger the size of the HEIC format image, the more obvious the memory saving of this solution.
在上文中对于图像缩放方法的实施例进行了详细的描述,本发明还提供一种与该方法对应的图像缩放装置,由于图像缩放装置部分的实施例与方法部分的实施例相互对应,图像缩放装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。The embodiments of the image scaling method have been described in detail above. The present invention also provides an image scaling device corresponding to the method. For the embodiments of the apparatus part, please refer to the description of the embodiments of the method part, and details are not described here for the time being.
图4为本发明实施例提供的一种图像缩放装置的结构图。FIG. 4 is a structural diagram of an image scaling apparatus according to an embodiment of the present invention.
请参考图4,本发明实施例提供的一种图像缩放装置1,图像缩放装置1包括存储器11、处理器12和总线13,存储器11上存储有可由总线13传输至处理器12并在处理器12上运行的图像缩放程序,图像缩放程序被处理器12执行时实现如上述的图像缩放方法。Referring to FIG. 4, an image scaling apparatus 1 provided by an embodiment of the present invention includes a memory 11, a processor 12, and a bus 13. The memory 11 stores data that can be transmitted from the bus 13 to the processor 12 and stored in the processor. An image scaling program running on the processor 12 implements the image scaling method described above when the image scaling program is executed by the processor 12 .
该图像缩放装置1可以是组成CDN网络或者区块链网络的节点。可以是组成CDN网络或者区块链网络的节点。The image scaling device 1 may be a node forming a CDN network or a blockchain network. It can be a node that forms a CDN network or a blockchain network.
其中,存储器11至少包括一种类型的可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是图像缩放装置1的内部存储单元,例如该图像缩放装置1的硬盘。存储器11在另一些实施例中也可以是图像缩放装置1的外部存储设备,例如图像缩放装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括图像缩放装置1的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于图像缩放装置1的应用软件及各类数据,例如视频转码程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like. The memory 11 may be an internal storage unit of the image scaling apparatus 1 in some embodiments, such as a hard disk of the image scaling apparatus 1 . In other embodiments, the memory 11 may also be an external storage device of the image scaling device 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the image scaling apparatus 1 and an external storage device. The memory 11 can not only be used to store application software installed in the image scaling device 1 and various types of data, such as codes of video transcoding programs, etc., but also can be used to temporarily store data that has been output or will be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行视频转码程序等。The processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chips in some embodiments, for running program codes or processing stored in the memory 11 data, such as executing video transcoding programs, etc.
该总线13可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 13 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (Extended industry standard architecture, EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 4, but it does not mean that there is only one bus or one type of bus.
本发明所提供的图像缩放装置,首先获取保存HEIC格式图像时所生成的子图像块,进而对各子图像块进行缩放处理,生成相应的低分辨率子图像块,最终将各低分辨率子图像块整合为分辨率更低的缩略图像。本装置是先对HEIC格式图像的各个子图像块进行缩放处理,进而再将缩放生成的低分辨率子图像块进行整合生成缩略图像,相较于现有技术中对高分辨率的子图像块进行整合而言,由于本装置是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。The image scaling device provided by the present invention first acquires the sub-image blocks generated when the HEIC format image is saved, and then performs scaling processing on each sub-image block to generate corresponding low-resolution sub-image blocks, and finally converts each low-resolution sub-image block into Image blocks are consolidated into lower resolution thumbnail images. The device first performs scaling processing on each sub-image block of the HEIC format image, and then integrates the low-resolution sub-image blocks generated by scaling to generate a thumbnail image. Compared with the high-resolution sub-image in the prior art In terms of block integration, since this device integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the memory space required for the HEIC format image scaling process. The occupancy level of the image, thereby ensuring the overall stability of the system during the scaling process of HEIC format images.
本发明还提供一种图像缩放系统,系统包括:The present invention also provides an image scaling system, the system includes:
子图像块获取单元,用于获取保存HEIC格式图像时所生成的子图像块;a sub-image block obtaining unit, used for obtaining the sub-image block generated when saving the HEIC format image;
子图像块缩放单元,用于对各子图像块进行缩放处理,生成相应的低分辨率子图像块;a sub-image block scaling unit, configured to perform scaling processing on each sub-image block to generate a corresponding low-resolution sub-image block;
图像块整合模块,用于将各低分辨率子图像块整合为缩略图像。The image block integration module is used to integrate each low-resolution sub-image block into a thumbnail image.
本发明所提供的图像缩放系统,首先获取保存HEIC格式图像时所生成的子图像块,进而对各子图像块进行缩放处理,生成相应的低分辨率子图像块,最终将各低分辨率子图像块整合为分辨率更低的缩略图像。本系统是先对HEIC格式图像的各个子图像块进行缩放处理,进而再将缩放生成的低分辨率子图像块进行整合生成缩略图像,相较于现有技术中对高分辨率的子图像块进行整合而言,由于本系统是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。The image scaling system provided by the present invention first acquires the sub-image blocks generated when the HEIC format image is saved, and then performs scaling processing on each sub-image block to generate corresponding low-resolution sub-image blocks, and finally converts each low-resolution sub-image block into Image blocks are consolidated into lower resolution thumbnail images. The system first performs scaling processing on each sub-image block of the HEIC format image, and then integrates the low-resolution sub-image blocks generated by scaling to generate a thumbnail image. Compared with the high-resolution sub-image in the prior art In terms of block integration, since the system integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the memory space required for the HEIC format image scaling process. The occupancy level of the image, thereby ensuring the overall stability of the system during the scaling process of HEIC format images.
此外,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有运算终端数据处理程序,运算终端数据处理程序可被一个或者多个处理器执行,以实现如上述的图像缩放方法。In addition, the present invention also provides a computer-readable storage medium on which a computing terminal data processing program is stored, and the computing terminal data processing program can be executed by one or more processors to realize the above-mentioned image scaling method.
本发明所提供的计算机可读存储介质,首先获取保存HEIC格式图像时所生成的子图像块,进而对各子图像块进行缩放处理,生成相应的低分辨率子图像块,最终将各低分辨率子图像块整合为分辨率更低的缩略图像。本计算机可读存储介质是先对HEIC格式图像的各个子图像块进行缩放处理,进而再将缩放生成的低分辨率子图像块进行整合生成缩略图像,相较于现有技术中对高分辨率的子图像块进行整合而言,由于本计算机可读存储介质是对于低分辨率子图像块进行的整合,因此每一个像素点所占用的内存容量相对更小,相对降低了对HEIC格式图像进行缩放处理过程中对内存空间的占用程度,进而确保了对HEIC格式图像进行缩放处理过程的系统整体稳定性。The computer-readable storage medium provided by the present invention first acquires the sub-image blocks generated when the HEIC format image is saved, and then performs scaling processing on each sub-image block to generate corresponding low-resolution sub-image blocks, and finally converts the low-resolution sub-image blocks into Rate sub-image blocks are consolidated into lower resolution thumbnail images. The computer-readable storage medium first performs scaling processing on each sub-image block of the HEIC format image, and then integrates the low-resolution sub-image blocks generated by scaling to generate a thumbnail image. In terms of the integration of sub-image blocks with high resolution, since the computer-readable storage medium integrates low-resolution sub-image blocks, the memory capacity occupied by each pixel is relatively smaller, which relatively reduces the need for HEIC format images. The degree of memory space occupied during the scaling process, thereby ensuring the overall stability of the system during the scaling process for HEIC format images.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprising", "comprising" or any other variation thereof herein are intended to encompass a non-exclusive inclusion such that a process, device, article or method comprising a list of elements includes not only those elements, but also includes no explicit Other elements listed, or those inherent to such a process, apparatus, article, or method are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910522113.0A CN110232657A (en) | 2019-06-17 | 2019-06-17 | A kind of image-scaling method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910522113.0A CN110232657A (en) | 2019-06-17 | 2019-06-17 | A kind of image-scaling method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110232657A true CN110232657A (en) | 2019-09-13 |
Family
ID=67860019
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910522113.0A Pending CN110232657A (en) | 2019-06-17 | 2019-06-17 | A kind of image-scaling method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110232657A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111275615A (en) * | 2020-01-08 | 2020-06-12 | 深圳市爱协生科技有限公司 | Video image scaling method based on bilinear interpolation improvement |
CN111860694A (en) * | 2020-07-31 | 2020-10-30 | 地平线(上海)人工智能技术有限公司 | Image processing method, and method and device for generating instruction for image processing |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123259A (en) * | 2010-12-28 | 2011-07-13 | 四川长虹电器股份有限公司 | Method for displaying extra-large-resolution pictures on television |
CN103886624A (en) * | 2012-12-24 | 2014-06-25 | 三星电子(中国)研发中心 | JPEG image thumbnail extracting method |
CN105447034A (en) * | 2014-08-29 | 2016-03-30 | 富泰华工业(深圳)有限公司 | Method and system for generating picture thumbnail |
WO2017215587A1 (en) * | 2016-06-16 | 2017-12-21 | 华为技术有限公司 | Method and apparatus for encoding and decoding video image |
CN108346131A (en) * | 2018-01-26 | 2018-07-31 | 深圳开阳电子股份有限公司 | A kind of digital image scaling method, device and display equipment |
CN108510084A (en) * | 2018-04-04 | 2018-09-07 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating information |
CN109379591A (en) * | 2018-10-23 | 2019-02-22 | 深圳市网心科技有限公司 | Image transcoding method, electronic device, and computer-readable storage medium |
-
2019
- 2019-06-17 CN CN201910522113.0A patent/CN110232657A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123259A (en) * | 2010-12-28 | 2011-07-13 | 四川长虹电器股份有限公司 | Method for displaying extra-large-resolution pictures on television |
CN103886624A (en) * | 2012-12-24 | 2014-06-25 | 三星电子(中国)研发中心 | JPEG image thumbnail extracting method |
CN105447034A (en) * | 2014-08-29 | 2016-03-30 | 富泰华工业(深圳)有限公司 | Method and system for generating picture thumbnail |
WO2017215587A1 (en) * | 2016-06-16 | 2017-12-21 | 华为技术有限公司 | Method and apparatus for encoding and decoding video image |
CN108346131A (en) * | 2018-01-26 | 2018-07-31 | 深圳开阳电子股份有限公司 | A kind of digital image scaling method, device and display equipment |
CN108510084A (en) * | 2018-04-04 | 2018-09-07 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating information |
CN109379591A (en) * | 2018-10-23 | 2019-02-22 | 深圳市网心科技有限公司 | Image transcoding method, electronic device, and computer-readable storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111275615A (en) * | 2020-01-08 | 2020-06-12 | 深圳市爱协生科技有限公司 | Video image scaling method based on bilinear interpolation improvement |
CN111860694A (en) * | 2020-07-31 | 2020-10-30 | 地平线(上海)人工智能技术有限公司 | Image processing method, and method and device for generating instruction for image processing |
WO2022021695A1 (en) * | 2020-07-31 | 2022-02-03 | 地平线(上海)人工智能技术有限公司 | Image processing method, and method and apparatus for generating instruction for image processing |
US12347061B2 (en) | 2020-07-31 | 2025-07-01 | Horizon (shanghai) Artificial Intelligence Technology Co., Ltd. | Splitting and scaling images for input to a model and method, medium, and device therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020010997A1 (en) | Video frame extraction method and apparatus, computer readable medium, and electronic device | |
CN110868625A (en) | A video playback method, device, electronic device and storage medium | |
WO2022095797A1 (en) | Image compression method and apparatus, and intelligent terminal and computer-readable storage medium | |
AU2017317839B2 (en) | Panoramic video compression method and device | |
US20140086309A1 (en) | Method and device for encoding and decoding an image | |
CN107155093B (en) | Video preview method, device and equipment | |
CN114339412B (en) | Video quality enhancement method, mobile terminal, storage medium and device | |
CN105677259A (en) | Method for storing file in mobile terminal and mobile terminal | |
CN111510717B (en) | Image splicing method and device | |
CN108921784B (en) | Picture compression method and system based on mobile terminal | |
CN110232657A (en) | A kind of image-scaling method, device, equipment and medium | |
EP2953357A1 (en) | Video encoding method, decoding method and apparatus | |
CN109089120B (en) | Analysis-aided encoding | |
CN115022670B (en) | Video file storage method, restoration method, device, equipment and storage medium | |
US20120308147A1 (en) | Image processing device, image processing method, and program | |
CN110049347B (en) | Method, system, terminal and device for configuring images on live interface | |
CN111510643A (en) | System and method for splicing panoramic image and close-up image | |
CN109379591B (en) | Image transcoding method, electronic device, and computer-readable storage medium | |
US20240331202A1 (en) | Fisheye image compression method, fisheye video stream compression method and panoramic video generation method | |
CN116744009A (en) | Gain map encoding method, decoding method, device, equipment and medium | |
WO2022111697A1 (en) | Picture loading method, and electronic device, chip and readable storage medium | |
CN103942543A (en) | Image recognition method and device | |
CN109274955B (en) | Compression and synchronization method and system for light field video and depth map, and electronic equipment | |
CN103903285B (en) | Thumbnail extraction method of PNG image and BMP image | |
CN110115026B (en) | Method and system for generating 360-degree content on a rectangular projection in an electronic device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190913 |