[go: up one dir, main page]

CN117689557A - Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV - Google Patents

Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV Download PDF

Info

Publication number
CN117689557A
CN117689557A CN202410146434.6A CN202410146434A CN117689557A CN 117689557 A CN117689557 A CN 117689557A CN 202410146434 A CN202410146434 A CN 202410146434A CN 117689557 A CN117689557 A CN 117689557A
Authority
CN
China
Prior art keywords
mapping data
conversion
panorama
image
opencv
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
Application number
CN202410146434.6A
Other languages
Chinese (zh)
Inventor
王赞
殷超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Weisaike Network Technology Co ltd
Original Assignee
Nanjing Weisaike Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Weisaike Network Technology Co ltd filed Critical Nanjing Weisaike Network Technology Co ltd
Priority to CN202410146434.6A priority Critical patent/CN117689557A/en
Publication of CN117689557A publication Critical patent/CN117689557A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/7715Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了基于OpenCV的直方全景图转六面图的方法、系统及存储介质,属于图像转换技术领域,该方法包括:设定转换后的图像数量以及图像分辨率,根据图像数量创建相应数量的转换任务,转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;定义六面图中的单面图作为目标图像,获取目标图像的分辨率信息,在本地数据库中查询分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给转换任务;若不存在,则计算分辨率信息对应的新映射数据;将新映射数据发送给转换任务并保存至本地数据库。本发明通过利用单面图的分辨率计算出的映射数据作为转换任务的输入,实现全景图的快速转换。

The invention discloses a method, system and storage medium for converting a histogram panorama to a hexagonal image based on OpenCV, which belongs to the field of image conversion technology. The method includes: setting the number of converted images and image resolution, and creating a corresponding number according to the number of images. The conversion task is to realize the conversion of the panoramic map to the six-sided image by calling the remap function in OpenCV; define the single-sided image in the six-sided image as the target image, obtain the resolution information of the target image, and store it in the local database Query whether the corresponding mapping data exists for the resolution information. If it exists, the mapping data is directly called and sent to the conversion task; if it does not exist, the new mapping data corresponding to the resolution information is calculated; the new mapping data is sent to the conversion task and Save to local database. The present invention realizes the rapid conversion of panoramic images by using the mapping data calculated by the resolution of the single-sided image as the input of the conversion task.

Description

基于OpenCV的直方全景图转六面图的方法、系统及存储介质Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV

技术领域Technical field

本发明涉及图像转换技术领域,特别涉及基于OpenCV的直方全景图转六面图的方法、系统及存储介质。The present invention relates to the technical field of image conversion, and in particular to a method, system and storage medium for converting a histogram panorama into a hexagonal image based on OpenCV.

背景技术Background technique

全景图是通过对专业相机捕捉整个场景的图像信息或者使用建模软件渲染过后的图片,使用软件进行图片拼合,并用专门的播放器进行播放,即将平面照片或者计算机建模图片变为360度全观,用于虚拟现实浏览,把二维的平面图模拟成真实的三维空间,呈现给观赏者。A panorama is a picture obtained by capturing the image information of the entire scene with a professional camera or rendering it using modeling software. The software is used to stitch the pictures together and played with a special player. It turns a flat photo or a computer modeling picture into a 360-degree panorama. View, used for virtual reality browsing, simulates a two-dimensional plan into a real three-dimensional space and presents it to the viewer.

全景图在虚拟场景中应用广泛,随着技术的发展,用户也越来越追求虚拟场景的真实效果,通常利用实拍的全景图搭建场景空间来代替原有的模型搭建的场景空间,但是在使用全景图的时候,图像资源里可能会存在拼合前的六面图,这样可以直接使用,也可能只存在拼合后的直方全景图,那么就需要对直方全景图重新转换为六面图,但是传统的全景图转六面图大多一次只能处理一张图片,如果处理图片过多,那么处理器也只能按照顺序来排列任务,等待前一张全景图转换完毕再进行后一张全景图的转换,因此传统的转换方法效率较低,不能满足实际使用需求。Panoramas are widely used in virtual scenes. With the development of technology, users are increasingly pursuing the real effects of virtual scenes. They usually use real-shot panoramas to build scene spaces instead of original model-built scene spaces. However, in When using a panorama, the image resource may contain the hexagonal panorama before stitching, which can be used directly, or there may be only the histogram panorama after stitching, in which case the histogram panorama needs to be re-converted into a hexagonal panorama. However, Most traditional panorama to six-sided panorama conversion can only process one picture at a time. If too many pictures are processed, the processor can only arrange the tasks in order and wait for the previous panorama to be converted before proceeding to the next panorama. conversion, so the traditional conversion method is less efficient and cannot meet actual use needs.

发明内容Contents of the invention

本发明的目的就在于为了解决上述全景图转换六面图效率低的问题提出基于OpenCV的直方全景图转六面图的方法、系统及存储介质,具有可批量处理全景图的转换,充分利用GPU核心,处理速度快的优点。The purpose of the present invention is to propose a method, system and storage medium for converting a histogram panorama to a hexagonal image based on OpenCV in order to solve the above-mentioned problem of low efficiency in converting a panorama to a hexagonal image, which can batch process the conversion of panoramic images and make full use of the GPU. Core, the advantage of fast processing speed.

第一方面,本发明通过以下技术方案来实现上述目的,一种基于OpenCV的直方全景图转六面图的方法,该方法包括以下步骤:In the first aspect, the present invention achieves the above object through the following technical solution, a method of converting a histogram panorama to a hexahedral image based on OpenCV. The method includes the following steps:

设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;Set the number of converted images and the image resolution, and create a corresponding number of conversion tasks according to the number of images. The conversion task is to realize the conversion of the panorama map to the six-sided map by calling the remap function in OpenCV;

定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给所述转换任务;Define a single-sided image in the six-sided image as the target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If it exists, directly call the Send mapping data to the conversion task;

若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes:

获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Obtain the pixel coordinates of the target image and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system;

将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2];

利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1];

在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据;Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data;

将所述新映射数据发送给所述转换任务并保存至所述本地数据库。The new mapping data is sent to the conversion task and saved to the local database.

优选的,所述图像数量为6n,其中n为全景图的数量,并且设定图像数量的同时对每个图像进行编号。Preferably, the number of images is 6n, where n is the number of panoramas, and each image is numbered while setting the number of images.

优选的,所述转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算。Preferably, the conversion task is created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence for calculation.

优选的,所述计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。Preferably, the method of calculating new mapping data corresponding to the resolution information also includes dividing all pixel coordinates of the target image into two groups of pixel coordinates in the horizontal direction and pixel coordinates in the vertical direction, and simultaneously calculating the corresponding pixel coordinates of each group of pixels. mapping data.

优选的,所述计算所述分辨率信息对应的新映射数据的方法通过调用GPU开放的接口,将每次计算发送给GPU核心进行处理。Preferably, the method of calculating new mapping data corresponding to the resolution information sends each calculation to the GPU core for processing by calling an open interface of the GPU.

优选的,该方法还包括在本地数据库中预先保存分辨率在1440*1440、1024*1024、900*900、768*768及512*512的图片所对应的映射数据。Preferably, the method also includes pre-saving mapping data corresponding to pictures with resolutions of 1440*1440, 1024*1024, 900*900, 768*768 and 512*512 in a local database.

第二方面,本发明通过以下技术方案来实现上述目的,一种基于OpenCV的直方全景图转六面图的系统,该系统包括:In the second aspect, the present invention achieves the above object through the following technical solution, a system for converting a histogram panorama into a hexahedral image based on OpenCV. The system includes:

任务创建单元,设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;The task creation unit sets the number of converted images and the image resolution, and creates a corresponding number of conversion tasks according to the number of images. The conversion task is to realize the conversion of panoramic map to six-sided map by calling the remap function in OpenCV. ;

转换单元,用于定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给所述转换任务;A conversion unit used to define a single-sided image among the six-sided images as a target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If there is , then directly call the mapping data and send it to the conversion task;

若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes:

获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Obtain the pixel coordinates of the target image and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system;

将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2];

利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1];

在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据;Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data;

将所述新映射数据发送给所述转换任务并保存至所述本地数据库;Send the new mapping data to the conversion task and save it to the local database;

本地数据库,用于保存映射数据。A local database used to save mapping data.

优选的,所述转换单元中的转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算。Preferably, the conversion tasks in the conversion unit are created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence for calculation.

优选的,所述转换单元中计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。Preferably, the method for calculating new mapping data corresponding to the resolution information in the conversion unit also includes dividing all pixel coordinates of the target image into two groups: pixel coordinates in the horizontal direction and pixel coordinates in the vertical direction, and simultaneously calculating each group. Mapping data corresponding to pixel coordinates.

第三方面,本发明通过以下技术方案来实现上述目的,一种存储介质,其上存储有计算机程序,在所述计算机程序被处理器执行时,实现如第一方面所述的基于OpenCV的直方全景图转六面图的方法。In a third aspect, the present invention achieves the above object through the following technical solution: a storage medium on which a computer program is stored. When the computer program is executed by a processor, the OpenCV-based histogram as described in the first aspect is implemented. How to convert a panorama to a hexagram.

与现有技术相比,本发明的有益效果是:本发明通过计算六面图每张图的映射数据,根据映射数据采用OpenCV内的remap函数实现全景图快速转换六面图的方式,并且在计算每张图的映射数据时,先通过判断映射数据是否存在于本地数据库中,若存在直接调用即可转换,若不存在,再计算新的映射数据,并且计算映射数据时,由于图片的像素点数量庞大,因此将该计算放入gpu的多个核心中同时计算,在全景图数量较多的情况下,大大降低了计算时间,本地数据库中可以存储一些常用分辨率的图片所对应的映射数据,利用该方法也能降低cpu和gpu的资源占用。Compared with the existing technology, the beneficial effects of the present invention are: the present invention calculates the mapping data of each picture of the six-sided picture, and uses the remap function in OpenCV according to the mapping data to realize the rapid conversion of the panorama into the six-sided picture, and in When calculating the mapping data of each picture, first determine whether the mapping data exists in the local database. If it exists, it can be converted by calling it directly. If it does not exist, new mapping data will be calculated. When calculating the mapping data, due to the pixels of the picture, The number of points is huge, so the calculation is put into multiple cores of the GPU and calculated simultaneously. When the number of panoramas is large, the calculation time is greatly reduced. The mapping corresponding to some commonly used resolution pictures can be stored in the local database. Data, using this method can also reduce the resource usage of CPU and GPU.

附图说明Description of the drawings

图1为本发明的基于OpenCV的直方全景图转六面图的方法流程图。Figure 1 is a flow chart of the method of converting a histogram panorama to a hexagonal image based on OpenCV according to the present invention.

图2为本发明的虚拟场景中模型空间和全景空间的分布示意图。Figure 2 is a schematic diagram of the distribution of model space and panoramic space in the virtual scene of the present invention.

图3为本发明的基于OpenCV的直方全景图转六面图的系统示意图。Figure 3 is a schematic diagram of the system for converting a histogram panorama into a hexagonal image based on OpenCV according to 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 accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

实施例1Example 1

如图1所示,一种基于OpenCV的直方全景图转六面图的方法,该方法包括以下步骤:As shown in Figure 1, a method of converting a histogram panorama to a hexagonal image based on OpenCV includes the following steps:

步骤S1、设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换。转换后的图像即为六面图的单面图像,根据全景图转六面图可知,每张全景图可转换出六张图像,该步骤可以通过设定图像数量来创建相应数量的转换任务。所述图像数量为6n,其中n为全景图的数量,并且设定图像数量的同时对每个图像进行编号,对图像编号是为了更好的对转换后的图像进行排序,通过编号也可以快速查找到图片,避免使用者无法找到对应的图像,转换任务是基于OpenCV中remap函数实现的一种从原图像映射到目标影像的技术,remap函数具体如下:Step S1: Set the number of converted images and the image resolution, and create a corresponding number of conversion tasks according to the number of images. The conversion task is to convert the panorama into a six-sided map by calling the remap function in OpenCV. The converted image is a single-sided image of the six-sided image. According to the conversion of the panorama to the six-sided image, each panorama can be converted into six images. This step can create a corresponding number of conversion tasks by setting the number of images. The number of images is 6n, where n is the number of panoramas, and each image is numbered while setting the number of images. The purpose of numbering the images is to better sort the converted images, and the numbering can also be used quickly Find the image to prevent the user from being unable to find the corresponding image. The conversion task is a technology that maps the original image to the target image based on the remap function in OpenCV. The remap function is as follows:

void cv::remap(InputArray src,void cv::remap(InputArray src,

OutputArray dst, OutputArray dst,

InputArray map1, InputArray map1,

InputArray map2, InputArray map2,

int interpolation, int interpolation,

int borderMode = BORDER_CONSTANT, int borderMode = BORDER_CONSTANT,

const Scalar& borderValue = Scalar()); const Scalar& borderValue = Scalar());

其中,src : 原始图像;dst : 目标图像,大小和map1的大小相同,数据类型和src的数据类型一样;map1:表示(x,y)坐标点或者是x坐标,类型为CV_16SC2,CV_32FC1或者CV_32FC2;map2: 表示y坐标,类型是CV_16UC1, CV_32FC1,当map1是(x,y)坐标时,map2可以为空;Interpolation:表示插值算法,枚举类型主要。暂不支持INTER_AREA 插值算法。由此函数可知,当输入了原始图像(直方全景图)、map1和map2,即可获得目标图像,直方全景图也是通过这个方式转为六张视图的。Among them, src: original image; dst: target image, the size is the same as map1, and the data type is the same as src; map1: represents (x, y) coordinate point or x coordinate, type is CV_16SC2, CV_32FC1 or CV_32FC2 ; map2: represents the y coordinate, the type is CV_16UC1, CV_32FC1. When map1 is the (x, y) coordinate, map2 can be empty; Interpolation: represents the interpolation algorithm, the main enumeration type. The INTER_AREA interpolation algorithm is not supported yet. It can be seen from this function that when the original image (histogram panorama), map1 and map2 are input, the target image can be obtained. The histogram panorama is also converted into six views in this way.

步骤S2、定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接进行步骤S3;Step S2: Define a single-sided image among the six-sided images as the target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If so, then Proceed directly to step S3;

若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes:

步骤S201、获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Step S201: Obtain the pixel coordinates of the target image, and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system;

步骤S202、将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Step S202: Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2];

步骤S203、利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Step S203: Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1];

步骤S204、在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据并保存至所述本地数据库;Step S204: Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data and save it to the local database;

步骤S3、调用映射数据发送给所述转换任务执行。Step S3: Call the mapping data and send it to the conversion task for execution.

在步骤S1中,根据remap函数可知map1、map2表示目标图像的像素点坐标,因此目标图像的分辨率不同,分辨率作为图像的像素点,那么得到的map1、map2也是不同的,在步骤S2中将map1、map2作为映射数据,因此需要对目标图像的映射数据进行计算,而本地数据库中预先存储有一些映射数据可以调用,所以在步骤S2中,现对输入的目标图像所对应的映射数据进行本地数据库查找,若是能查找到,则可以直接调用映射数据输入到转换任务中,减少了计算步骤,若是查找不到,再进行映射数据的计算。该方法还包括在本地数据库中预先保存分辨率在1440*1440、1024*1024、900*900、768*768及512*512的图片所对应的映射数据,上述的一些分辨率是常用的图像分辨率,可以应对大部分目标图像使用,当然,上述列举的分辨率并不是本地数据库预先保存的全部分辨率,可以根据用户习惯或者需求自定义选择预先保存的映射数据,在此就不在列举所有的图片分辨率对应的映射数据。In step S1, according to the remap function, we know that map1 and map2 represent the pixel coordinates of the target image. Therefore, the resolution of the target image is different, and the resolution is used as the pixel point of the image, so the obtained map1 and map2 are also different. In step S2 Map1 and map2 are used as mapping data, so the mapping data of the target image needs to be calculated. There is some mapping data pre-stored in the local database that can be called, so in step S2, the mapping data corresponding to the input target image is now calculated. If the local database search can be found, the mapping data can be directly called and input into the conversion task, which reduces the calculation steps. If it cannot be found, the mapping data can be calculated again. The method also includes pre-saving in the local database mapping data corresponding to pictures with resolutions of 1440*1440, 1024*1024, 900*900, 768*768 and 512*512. Some of the above resolutions are commonly used for image resolution. rate and can be used for most target images. Of course, the resolutions listed above are not all the resolutions pre-saved in the local database. The pre-saved mapping data can be customized according to user habits or needs. I will not list all the resolutions here. Mapping data corresponding to the image resolution.

如图2所示为新映射数据的计算流程,映射数据的计算本质是像素点坐标的转换,由于目标图像根据分辨率不同具有不同数量的像素点,因此计算步骤需要计算的数量也庞大,此计算方法可以通过调用GPU开放的接口,将每次计算发送给GPU核心进行处理,利用起GPU大量的核心进行同时的计算,即使像素点数量庞大,也能很快的获得计算结果。Figure 2 shows the calculation process of new mapping data. The essence of calculation of mapping data is the conversion of pixel coordinates. Since the target image has different numbers of pixels according to different resolutions, the number of calculation steps required is also huge. This The calculation method can send each calculation to the GPU core for processing by calling the open interface of the GPU, using a large number of GPU cores to perform simultaneous calculations. Even if the number of pixels is huge, the calculation results can be obtained quickly.

区别于上述单个像素点计算x、y坐标方法不同的是,还可以将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据,例如计算目标图像的所有x坐标和计算目标图像的所有y坐标,两种计算方式虽然不同,但是在输入给转换任务时,仅是map1和map2的区别,就像步骤S1所描述的map1:表示(x,y)坐标点或者是x坐标,类型为CV_16SC2,CV_32FC1或者CV_32FC2;map2: 表示y坐标,类型是CV_16UC1, CV_32FC1,当map1是(x,y)坐标时,map2可以为空。同理无论是那种计算方式均可以通过调用GPU开放的接口,将每次计算发送给GPU核心进行处理,用来提高计算效率。Different from the above method of calculating the x and y coordinates of a single pixel, all pixel coordinates of the target image can also be divided into two groups of pixel coordinates in the horizontal direction and pixel coordinates in the vertical direction, and the mapping corresponding to each group of pixel coordinates is calculated at the same time. Data, such as calculating all x coordinates of the target image and calculating all y coordinates of the target image. Although the two calculation methods are different, when input to the conversion task, they are only the difference between map1 and map2, just like map1 described in step S1 : represents (x, y) coordinate point or x coordinate, type is CV_16SC2, CV_32FC1 or CV_32FC2; map2: represents y coordinate, type is CV_16UC1, CV_32FC1. When map1 is (x, y) coordinate, map2 can be empty. In the same way, no matter what kind of calculation method is used, each calculation can be sent to the GPU core for processing by calling the open interface of the GPU to improve calculation efficiency.

所述转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算,转换任务也可以通过gpu加速的方式提高转换效率,并且转换任务有cpu创建和分配,每个任务又是独立的,可以一次性处理多个全景图,实现多线程加速的效果。The conversion tasks are created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence for calculation. The conversion tasks can also be accelerated by the GPU to improve conversion efficiency, and the conversion tasks are created and allocated by the CPU, and each task is Independent, it can process multiple panoramas at one time to achieve multi-thread acceleration.

实施例2Example 2

如图3所示,一种基于OpenCV的直方全景图转六面图的系统,该系统包括:As shown in Figure 3, a system based on OpenCV for converting a histogram panorama into a hexagonal image. The system includes:

任务创建单元,设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;所述图像数量为6n,其中n为全景图的数量,并且设定图像数量的同时对每个图像进行编号;The task creation unit sets the number of converted images and the image resolution, and creates a corresponding number of conversion tasks according to the number of images. The conversion task is to realize the conversion of panoramic map to six-sided map by calling the remap function in OpenCV. ;The number of images is 6n, where n is the number of panoramas, and each image is numbered while setting the number of images;

转换单元,用于定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给所述转换任务;本地数据库中预先保存分辨率在1440*1440、1024*1024、900*900、768*768及512*512的图片所对应的映射数据;A conversion unit used to define a single-sided image among the six-sided images as a target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If there is , the mapping data is directly called and sent to the conversion task; the mapping data corresponding to pictures with resolutions of 1440*1440, 1024*1024, 900*900, 768*768 and 512*512 is pre-stored in the local database;

若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes:

获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Obtain the pixel coordinates of the target image and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system;

将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2];

利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1];

在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据;Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data;

将所述新映射数据发送给所述转换任务并保存至所述本地数据库;Send the new mapping data to the conversion task and save it to the local database;

本地数据库,用于保存映射数据。A local database used to save mapping data.

所述转换单元中的转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算。The conversion tasks in the conversion unit are created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence for calculation.

所述转换单元中计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。所述计算所述分辨率信息对应的新映射数据的方法通过调用GPU开放的接口,将每次计算发送给GPU核心进行处理。The method of calculating new mapping data corresponding to the resolution information in the conversion unit also includes dividing all pixel coordinates of the target image into two groups of pixel coordinates in the horizontal direction and pixel coordinates in the vertical direction, and simultaneously calculating the corresponding pixel coordinates of each group of pixels. mapping data. The method of calculating new mapping data corresponding to the resolution information sends each calculation to the GPU core for processing by calling an open interface of the GPU.

实施例2和实施例1本质相同,因此不在赘述实施例2中各单元的工作原理。Embodiment 2 is essentially the same as Embodiment 1, so the working principles of each unit in Embodiment 2 will not be described in detail.

所述计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。The method of calculating new mapping data corresponding to the resolution information also includes dividing all pixel coordinates of the target image into two groups of pixel coordinates in the horizontal direction and pixel coordinates in the vertical direction, and simultaneously calculating mapping data corresponding to each group of pixel coordinates. .

实施例3Example 3

本实施例提出了一种存储介质,存储介质包括存储程序区和存储数据区,其中存储程序区可存储操作系统,以及运行即时通讯功能所需的程序等;存储数据区可存储各种即时通讯信息和操作指令集等。计算机程序存储在存储程序区,在所述计算机程序被处理器执行时,实现如实施例1所述的基于OpenCV的直方全景图转六面图的方法。处理器可以包括一个或多个中央处理单元,或者为数字处理单元等等。This embodiment proposes a storage medium. The storage medium includes a storage program area and a storage data area. The storage program area can store operating systems and programs required to run instant messaging functions. The storage data area can store various instant messaging areas. Information and operating instruction sets, etc. The computer program is stored in the stored program area. When the computer program is executed by the processor, the OpenCV-based method of converting a histogram panorama into a hexagonal panorama as described in Embodiment 1 is implemented. The processor may include one or more central processing units, or may be a digital processing unit, or the like.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。It is obvious to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention. Therefore, the embodiments should be regarded as illustrative and non-restrictive from any point of view, and the scope of the present invention is defined by the appended claims rather than the above description, and it is therefore intended that all claims falling within the claims All changes within the meaning and scope of equivalent elements are included in the present invention.

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described in terms of implementations, not each implementation only contains an independent technical solution. This description of the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole. , the technical solutions in each embodiment can also be appropriately combined to form other implementations that can be understood by those skilled in the art.

Claims (10)

1.一种基于OpenCV的直方全景图转六面图的方法,其特征在于,该方法包括以下步骤:1. A method of converting a histogram panorama to a hexagonal image based on OpenCV, which is characterized in that the method includes the following steps: 设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;Set the number of converted images and the image resolution, and create a corresponding number of conversion tasks according to the number of images. The conversion task is to realize the conversion of the panorama map to the six-sided map by calling the remap function in OpenCV; 定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给所述转换任务;Define a single-sided image in the six-sided image as the target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If it exists, directly call the Send mapping data to the conversion task; 若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes: 获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Obtain the pixel coordinates of the target image and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system; 将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2]; 利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1]; 在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据;Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data; 将所述新映射数据发送给所述转换任务并保存至所述本地数据库。The new mapping data is sent to the conversion task and saved to the local database. 2.根据权利要求1所述的基于OpenCV的直方全景图转六面图的方法,其特征在于,所述图像数量为6n,其中n为全景图的数量,并且设定图像数量的同时对每个图像进行编号。2. The method of converting a histogram panorama to a hexagonal image based on OpenCV according to claim 1, characterized in that the number of images is 6n, where n is the number of panoramas, and while setting the number of images, each Images are numbered. 3.根据权利要求1所述的基于OpenCV的直方全景图转六面图的方法,其特征在于,所述转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算。3. The method of converting a histogram panorama to a hexagonal image based on OpenCV according to claim 1, characterized in that the conversion task is created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence for calculation. 4.根据权利要求1所述的基于OpenCV的直方全景图转六面图的方法,其特征在于,所述计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。4. The method of converting a histogram panorama to a hexagonal panorama based on OpenCV according to claim 1, characterized in that the method of calculating new mapping data corresponding to the resolution information also includes converting all pixel coordinates of the target image It is divided into two groups: horizontal pixel coordinates and vertical pixel coordinates, and the mapping data corresponding to each group of pixel coordinates is calculated at the same time. 5.根据权利要求1或4所述的基于OpenCV的直方全景图转六面图的方法,其特征在于,所述计算所述分辨率信息对应的新映射数据的方法通过调用GPU开放的接口,将每次计算发送给GPU核心进行处理。5. The method of converting a histogram panorama to a hexagonal image based on OpenCV according to claim 1 or 4, characterized in that the method of calculating the new mapping data corresponding to the resolution information is by calling an open interface of the GPU, Send each calculation to the GPU core for processing. 6.根据权利要求1所述的基于OpenCV的直方全景图转六面图的方法,其特征在于,该方法还包括在本地数据库中预先保存分辨率在1440*1440、1024*1024、900*900、768*768及512*512的图片所对应的映射数据。6. The method of converting a histogram panorama to a hexahedral image based on OpenCV according to claim 1, characterized in that the method also includes pre-saving the resolution in the local database at 1440*1440, 1024*1024, 900*900 , 768*768 and 512*512 images corresponding to the mapping data. 7.一种基于OpenCV的直方全景图转六面图的系统,其特征在于,该系统包括:7. A system for converting a histogram panorama into a hexagonal image based on OpenCV, characterized in that the system includes: 任务创建单元,设定转换后的图像数量以及图像分辨率,根据所述图像数量创建相应数量的转换任务,所述转换任务为通过调用OpenCV内的remap函数实现全景图映射到六面图的转换;The task creation unit sets the number of converted images and the image resolution, and creates a corresponding number of conversion tasks according to the number of images. The conversion task is to realize the conversion of panoramic map to six-sided map by calling the remap function in OpenCV. ; 转换单元,用于定义所述六面图中的单面图作为目标图像,获取所述目标图像的分辨率信息,在本地数据库中查询所述分辨率信息是否存在对应的映射数据,若在存在,则直接调用该映射数据发送给所述转换任务;A conversion unit used to define a single-sided image among the six-sided images as a target image, obtain the resolution information of the target image, and query whether the resolution information has corresponding mapping data in the local database. If there is , then directly call the mapping data and send it to the conversion task; 若不存在,则计算所述分辨率信息对应的新映射数据,所述计算所述分辨率信息对应的新映射数据的方法包括:If it does not exist, calculate new mapping data corresponding to the resolution information. The method of calculating new mapping data corresponding to the resolution information includes: 获取目标图像的像素坐标,并将所述像素坐标映射到直角坐标系的平面单位向量[-1,1]中;Obtain the pixel coordinates of the target image and map the pixel coordinates to the plane unit vector [-1, 1] of the Cartesian coordinate system; 将所述平面单位向量[-1,1]的坐标映射到球体单位向量[-√2/2,√2/2]上;Map the coordinates of the plane unit vector [-1, 1] to the spherical unit vector [-√2/2, √2/2]; 利用极坐标系角坐标将球体单位向量[-√2/2,√2/2]的坐标映射到平面单位向量[-1,1]上;Use the angular coordinates of the polar coordinate system to map the coordinates of the spherical unit vector [-√2/2, √2/2] to the plane unit vector [-1, 1]; 在纹理空间中从平面单位向量[-1,1]映射到目标图像的像素坐标作为映射数据;Map from the plane unit vector [-1, 1] to the pixel coordinates of the target image in the texture space as mapping data; 将所述新映射数据发送给所述转换任务并保存至所述本地数据库;Send the new mapping data to the conversion task and save it to the local database; 本地数据库,用于保存映射数据。A local database used to save mapping data. 8.根据权利要求7所述的基于OpenCV的直方全景图转六面图的系统,其特征在于,所述转换单元中的转换任务通过cpu创建,cpu将所有转换任务依次发送给GPU的不同核心进行计算。8. The system for converting a histogram panorama to a hexagonal image based on OpenCV according to claim 7, characterized in that the conversion tasks in the conversion unit are created by the CPU, and the CPU sends all conversion tasks to different cores of the GPU in sequence. Calculation. 9.根据权利要求7所述的基于OpenCV的直方全景图转六面图的系统,其特征在于,所述转换单元中计算所述分辨率信息对应的新映射数据的方法还包括将目标图像的所有像素坐标分为水平方向的像素坐标和垂直方向的像素坐标两组,同时计算每组像素坐标对应的映射数据。9. The system for converting a histogram panorama to a hexagonal panorama based on OpenCV according to claim 7, characterized in that the method for calculating the new mapping data corresponding to the resolution information in the conversion unit also includes converting the target image to All pixel coordinates are divided into two groups: horizontal pixel coordinates and vertical pixel coordinates, and the mapping data corresponding to each group of pixel coordinates is calculated at the same time. 10.一种存储介质,其特征在于,其上存储有计算机程序,在所述计算机程序被处理器执行时,实现如权利要求1-6任一项所述的基于OpenCV的直方全景图转六面图的方法。10. A storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor, the OpenCV-based histogram panorama conversion to six as described in any one of claims 1-6 is implemented. Surface diagram method.
CN202410146434.6A 2024-02-02 2024-02-02 Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV Pending CN117689557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410146434.6A CN117689557A (en) 2024-02-02 2024-02-02 Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410146434.6A CN117689557A (en) 2024-02-02 2024-02-02 Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV

Publications (1)

Publication Number Publication Date
CN117689557A true CN117689557A (en) 2024-03-12

Family

ID=90128525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410146434.6A Pending CN117689557A (en) 2024-02-02 2024-02-02 Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV

Country Status (1)

Country Link
CN (1) CN117689557A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080136741A1 (en) * 2006-11-13 2008-06-12 Igt Single plane spanning mode across independently driven displays
US20120133639A1 (en) * 2010-11-30 2012-05-31 Microsoft Corporation Strip panorama
CN107093165A (en) * 2017-03-22 2017-08-25 桂林电子科技大学 The fast display method and device of a kind of recursive image
CN108074281A (en) * 2017-12-27 2018-05-25 北京奇艺世纪科技有限公司 Pyramid panorama sketch model generating method and device, storage medium and electronic equipment
CN111161426A (en) * 2019-12-31 2020-05-15 中航华东光电有限公司 Three-dimensional display method and system based on panoramic image
CN116091595A (en) * 2022-11-28 2023-05-09 武汉光庭信息技术股份有限公司 Labeling method and system for 360 panoramic images
CN116310142A (en) * 2023-04-27 2023-06-23 南京维赛客网络科技有限公司 A method of projecting a panorama 360 degrees onto a model surface
CN116664752A (en) * 2023-08-01 2023-08-29 南京维赛客网络科技有限公司 Method, system and storage medium for realizing panoramic display based on patterned illumination

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080136741A1 (en) * 2006-11-13 2008-06-12 Igt Single plane spanning mode across independently driven displays
US20120133639A1 (en) * 2010-11-30 2012-05-31 Microsoft Corporation Strip panorama
CN107093165A (en) * 2017-03-22 2017-08-25 桂林电子科技大学 The fast display method and device of a kind of recursive image
CN108074281A (en) * 2017-12-27 2018-05-25 北京奇艺世纪科技有限公司 Pyramid panorama sketch model generating method and device, storage medium and electronic equipment
CN111161426A (en) * 2019-12-31 2020-05-15 中航华东光电有限公司 Three-dimensional display method and system based on panoramic image
CN116091595A (en) * 2022-11-28 2023-05-09 武汉光庭信息技术股份有限公司 Labeling method and system for 360 panoramic images
CN116310142A (en) * 2023-04-27 2023-06-23 南京维赛客网络科技有限公司 A method of projecting a panorama 360 degrees onto a model surface
CN116664752A (en) * 2023-08-01 2023-08-29 南京维赛客网络科技有限公司 Method, system and storage medium for realizing panoramic display based on patterned illumination

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
EMA2159: "Equirectangular-CubeMapTransform", pages 1 - 8, Retrieved from the Internet <URL:https://github.com/ema2159/Equirectangular-CubeMapTransform> *
EMISWELT: "Convert 2:1 equirectangular panorama to cube map", pages 1 - 4, Retrieved from the Internet <URL:https://stackoverflow.com/questions/29678510/convert-21-equirectangular-panorama-to-cube-map> *
郑轩: "基于全景相机组的立体视觉系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 2018, 15 April 2018 (2018-04-15), pages 138 - 2653 *

Similar Documents

Publication Publication Date Title
CN107292945B (en) Layer rendering processing method and system for video image
CN114494559A (en) A 3D rendering fusion method, system and medium based on multi-GPU collaboration
CN111583381A (en) Rendering method and device of game resource map and electronic equipment
CN114663560B (en) Method, device, storage medium and electronic device for realizing animation of target model
WO2022022260A1 (en) Image style transfer method and apparatus therefor
CN108322722B (en) Image processing method and device based on augmented reality and electronic equipment
US12450815B2 (en) Image rendering method and apparatus, computer device, and computer-readable storage medium
CN111583378B (en) Virtual asset processing method and device, electronic equipment and storage medium
CN112316434B (en) Loading method and device of terrain map, mobile terminal and storage medium
CN104952101A (en) Height-field based dynamic vector rendering method
CN116245710B (en) Dynamic scheduling method for mass oblique photography model based on illusion engine and thread pool
CN116485969A (en) Voxel object generation method, voxel object generation device and computer-readable storage medium
CN117689557A (en) Method, system and storage medium for converting histogram panorama to hexagram based on OpenCV
JP2020017276A (en) Adaptive three-dimensional space generation method and system
CN114299209A (en) Water surface rendering method and device, storage medium and computer equipment
WO2025020657A1 (en) Image display method for virtual scene, device, medium and program product
WO2024255620A1 (en) Image processing method and apparatus, and device, medium and program product
CN109461121B (en) Image fusion splicing method based on parallel computing algorithm
CN117557740B (en) Three-dimensional model segmentation level switching method and device, electronic equipment and storage medium
CN118898671A (en) Method and system for realizing seamless roaming of all scenic spots based on street view map
CN115830210A (en) Virtual object rendering method, device, electronic device and storage medium
WO2024183469A1 (en) Game picture display method and apparatus, device, and computer-readable storage medium
CN117710549A (en) Rendering methods and equipment
CN111476716B (en) Real-time video stitching method and device
CN114298891B (en) A picture processing method based on OpenGL ES architecture

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: 20240312