Panoramic image three-dimensional style migration method and related device
Through the deformable convolutional network and neural architecture search method, the spatial distortion features of panoramic images are extracted and style transfer is performed, which solves the problems of difficult recognition of spatial distortion characteristics and complex calculation in panoramic image style transfer, and achieves efficient and accurate style transfer. Effect.
Patent Information
- Application Number
- CN202411158196.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-22
AI Technical Summary
Existing panoramic image style transfer technology cannot recognize its unique spatial distortion characteristics, resulting in spatial distortion, complex calculations, and difficult to guarantee the stylization rate and accuracy.
A deformable convolutional network is used to extract the spatial distortion features of the target panoramic image, and a 3D textured panoramic video is synthesized through image preprocessing and LDI repair. The decomposed panoramic image and preset style image are input into the VGG-19 encoder for feature encoding, and based on neural Architecture search method for pruning decoding of style transfer.
Accurately extract boundary features and depth information of images, reduce computational complexity, improve style transfer efficiency, and ensure stylization speed and accuracy.
Smart Images

Figure CN118823286A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image style transfer, and in particular to a method for transferring the style of a panoramic image to three-dimensional form and a related device. Background Art
[0002] Style Transfer is a technique in the field of computer vision and graphics that allows the artistic style of one image to be transferred to another image, creating images with novel artistic effects. The core idea of this technique is to learn the content and style of an image through a neural network, and then apply these learned features to other images.
[0003] Most style transfer for images is for two-dimensional images, but 3D style transfer can maintain the consistency of style in three-dimensional space, which means that the style is not only applied to the two-dimensional surface, but also to the content and surrounding environment of the object; this helps to produce a more realistic and unified effect. Therefore, compared with two-dimensional style transfer, three-dimensional style transfer is of great significance in improving user experience.
[0004] For example, Virtual Reality (VR) is a technology that uses computer technology to simulate a completely virtual three-dimensional environment, allowing users to immerse themselves in it and interact with the environment. Virtual reality usually provides an immersive feeling through dedicated equipment, such as virtual reality headsets (VR helmets) and handles. Panoramic images are images that capture the entire scene in horizontal and vertical directions, providing a highly immersive viewing experience; panoramic images are usually used as part of the virtual reality experience. In VR, these panoramic images or panoramic videos can be projected onto a VR headset, making the user feel as if they are in the captured environment, providing a more immersive virtual reality experience for the user. If the panoramic image can be transferred to a three-dimensional style, it can provide users with a more realistic and rich viewing experience.
[0005] However, the existing style transfer technology for panoramic images cannot recognize its unique spatial distortion characteristics, which easily leads to spatial distortion; and the large number of images required for view recognition complicates the calculation and slows down the stylization rate. Due to these problems, the current panoramic image stylization effect is poor, and it is difficult to ensure both speed and accuracy. Summary of the invention
[0006] The present application provides a method and related device for three-dimensional style transfer of panoramic images, which are used to solve the technical problems that the existing technology is difficult to identify the spatial distortion characteristics of panoramic images, the view recognition is limited, the calculation is too complicated, and the stylization rate and accuracy are difficult to ensure.
[0007] In view of this, the first aspect of the present application provides a method for three-dimensional style transfer of panoramic images, comprising:
[0008] A deformable convolutional network is used to extract spatial distortion features of a target panoramic image and generate a feature panoramic image. The deformable convolutional network adjusts the convolution kernel based on an offset to achieve dynamic sampling.
[0009] Synthesizing a 3D texture panoramic video based on the characteristic panoramic image by image preprocessing and LDI restoration;
[0010] Inputting the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, wherein the decomposed panoramic image is decomposed from the 3D texture panoramic video;
[0011] Based on the neural architecture search method, a pruning decoding operation of style transfer is performed on the encoded feature vector to obtain a target style transfer image.
[0012] Preferably, the method of extracting the spatial distortion features of the target panoramic image by using a deformable convolutional network to generate a feature panoramic image also includes:
[0013] The initial panoramic image is expanded two-dimensionally by global projection, and the pixel coordinates are extracted to obtain a two-dimensional panoramic image;
[0014] The two-dimensional panoramic image is convolved by using spherical convolution to obtain a target panoramic image.
[0015] Preferably, the method of synthesizing a 3D texture panoramic video according to the characteristic panoramic image by image preprocessing and LDI restoration includes:
[0016] After performing an LDI initialization operation according to the characteristic panoramic image, a bilateral median filter method is used to analyze the edge depth of the foreground and background in the image to obtain adjacent pixel depth information;
[0017] Performing threshold comparison analysis on the adjacent pixel depth information to detect edge pixel discontinuity between the foreground and the background, and generating a connected edge pixel set;
[0018] By cutting off the connection between adjacent pixels at the edge of the LDI, the foreground contour and the background contour are detected according to the connected edge pixel set to obtain the foreground area pixels and the background area pixels;
[0019] A context-aware network is used to perform color and depth perception on the foreground area pixels, to implement LDI repair on the background area pixels, and to generate a 3D textured panoramic video.
[0020] Preferably, the performing a pruning decoding operation of style transfer on the encoded feature vector based on a neural architecture search method to obtain a target style transfer image includes:
[0021] Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method;
[0022] The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to implement pruning decoding of style transfer, thereby obtaining a target style transfer image.
[0023] A second aspect of the present application provides a panoramic image three-dimensional style transfer device, comprising:
[0024] A feature extraction unit, used to extract the spatial distortion features of the target panoramic image by using a deformable convolutional network to generate a feature panoramic image, wherein the deformable convolutional network adjusts the convolution kernel based on the offset to achieve dynamic sampling;
[0025] A video synthesis unit, used for synthesizing a 3D texture panoramic video according to the characteristic panoramic image by means of image preprocessing and LDI restoration;
[0026] A feature encoding unit, used for inputting the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, wherein the decomposed panoramic image is decomposed from the 3D texture panoramic video;
[0027] The migration decoding unit is used to perform a pruning decoding operation of style migration on the encoded feature vector based on a neural architecture search method to obtain a target style migration image.
[0028] Preferably, it also includes:
[0029] A panoramic expansion unit, used to expand the initial panoramic image in two dimensions by global projection, and extract pixel coordinates to obtain a two-dimensional panoramic image;
[0030] The spherical convolution unit is used to perform convolution calculation on the two-dimensional panoramic image by using spherical convolution to obtain a target panoramic image.
[0031] Preferably, the video synthesis unit is specifically used for:
[0032] After performing an LDI initialization operation according to the characteristic panoramic image, a bilateral median filter method is used to analyze the edge depth of the foreground and background in the image to obtain adjacent pixel depth information;
[0033] Performing threshold comparison analysis on the adjacent pixel depth information to detect edge pixel discontinuity between the foreground and the background, and generating a connected edge pixel set;
[0034] By cutting off the connection between adjacent pixels at the edge of the LDI, the foreground contour and the background contour are detected according to the connected edge pixel set to obtain the foreground area pixels and the background area pixels;
[0035] A context-aware network is used to perform color and depth perception on the foreground area pixels, to implement LDI repair on the background area pixels, and to generate a 3D textured panoramic video.
[0036] Preferably, the migration decoding unit is specifically used for:
[0037] Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method;
[0038] The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to implement pruning decoding of style transfer, thereby obtaining a target style transfer image.
[0039] A third aspect of the present application provides a panoramic image three-dimensional style transfer device, the device comprising a processor and a memory;
[0040] The memory is used to store program code and transmit the program code to the processor;
[0041] The processor is used to execute the panoramic image three-dimensional style transfer method described in the first aspect according to the instructions in the program code.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the method for three-dimensional style transfer of panoramic images described in the first aspect.
[0043] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0044] In the present application, a method for three-dimensional style transfer of panoramic images is provided, including: using a deformable convolutional network to extract spatial distortion features of a target panoramic image to generate a feature panoramic image, the deformable convolutional network adjusts the convolution kernel based on an offset to achieve dynamic sampling; synthesizing a 3D texture panoramic video based on the feature panoramic image by image preprocessing and LDI repair; inputting the decomposed panoramic image and a preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, and the decomposed panoramic image is decomposed from the 3D texture panoramic video; performing a pruning decoding operation on the encoded feature vector based on a neural architecture search method to obtain a target style transferred image.
[0045] The three-dimensional style transfer method of panoramic images provided by the present application uses a deformable convolutional network to dynamically sample the target panoramic image to obtain its difficult-to-identify spatial distortion features, which can more accurately extract the boundary features or depth information in the image, ensuring the reliability of subsequent style transfer; moreover, such a dynamic sampling feature extraction method can reduce the demand for the number of images while ensuring recognition accuracy, thereby indirectly reducing the computational complexity; in addition, by implementing style transfer through pruning decoding, the optimal style transfer image can be clearly and quickly selected, which can improve the efficiency of style transfer. Therefore, the present application can solve the technical problems that the prior art is difficult to identify the spatial distortion characteristics of panoramic images, the view recognition is limited, the calculation is too complicated, and the stylization rate and accuracy are difficult to guarantee. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a flow chart of a method for transferring a panoramic image into three-dimensional style provided in an embodiment of the present application;
[0047] Figure 2 A schematic diagram of the structure of a panoramic image 3D style transfer device provided in an embodiment of the present application;
[0048] Figure 3 A schematic diagram of the image preprocessing and LDI repair process provided in an embodiment of the present application;
[0049] Figure 4 A schematic diagram of the style transfer decoding network structure provided in an embodiment of the present application;
[0050] Figure 5 A schematic diagram of the overall process of three-dimensional style transfer of panoramic images provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] For easier understanding, see Figure 1 , an embodiment of a panoramic image three-dimensional style transfer method provided by the present application includes:
[0053] Step 101: A deformable convolutional network is used to extract spatial distortion features of a target panoramic image and generate a feature panoramic image. The deformable convolutional network adjusts the convolution kernel based on an offset to achieve dynamic sampling.
[0054] Furthermore, step 101, before that, also includes:
[0055] The initial panoramic image is expanded two-dimensionally by global projection, and the pixel coordinates are extracted to obtain a two-dimensional panoramic image;
[0056] The spherical convolution is used to perform convolution calculation on the two-dimensional panoramic image to obtain the target panoramic image.
[0057] It should be noted that in order to perform targeted analysis on the panoramic image, this embodiment performs preliminary preprocessing on the initial panoramic image based on global projection and spherical convolution. Global projection can expand the initial panoramic image in two dimensions and extract the coordinates of each pixel to obtain a two-dimensional panoramic image. The spherical convolution can be bound along each row through its kernel weights, and each kernel generates a one-dimensional output along the row convolution. It can be understood that the kernel size varies in different rows and layers, and is expanded when approaching the top and bottom of the image. This is mainly to ensure that the convolution kernel can adapt to rotation in different directions of the panoramic sphere and extract spherical data features for subsequent image analysis.
[0058] The spatial distortion feature extraction idea of this embodiment is to use adaptive convolution kernels for dynamic feature collection to obtain feature maps that are more in line with the actual characteristics of panoramic images. This embodiment constructs a deformable convolution network based on a deformable convolution kernel, allowing the convolution kernel to be flexibly adjusted within the receptive field, which can better capture and process these complex geometric deformations, thereby improving the modeling ability of panoramic images.
[0059] The deformable convolution network in this embodiment introduces an offset so that the sampling position of the convolution kernel can be dynamically adjusted according to the image content; in this way, the convolution kernel can more flexibly adapt to different geometric deformations when processing images, thereby improving the effect of feature extraction. Due to the introduction of the offset, the position of each convolution kernel can be adjusted according to the structure of the input target panoramic image. The specific operation is expressed as:
[0060]
[0061] in, is the output feature map at position The pixel value of is the receptive field of the convolution kernel, is the convolution kernel at position The weight of is the input feature map at position The pixel value of x represents the function for calculating the pixel value; is the convolution kernel at position The corresponding offset can be learned by the network. This allows the convolution kernel to dynamically adjust the position of each sampling point in the panoramic image, especially the spatially distorted part, during the convolution operation, so as to better adapt to deformation and geometric changes in the image, such as changes in texture and boundaries.
[0062] Perceptual recognition in view synthesis requires the use of image features of panoramic image recognition to segment the foreground and background scenes. The existing technology currently only operates on images with ordinary tensor features. Specifically, it can be found that compared with conventional convolution; when deformable convolution detects the area of interest, for road detection in the near field, deformable convolution can more completely identify the road in the middle of the railing. Then, in the image after style transfer, it can be found that the color distribution in the road is relatively complete and uniform. For conventional convolution, the distorted part in the middle of the image cannot be accurately detected, resulting in inconsistent color distribution in the same area after style transfer. For sky detection in the distant view, deformable convolution can identify the cloud part in the middle of the image, thereby performing different color migration for the blue sky and white clouds. Conventional convolution cannot detect the position of white clouds in the distant view, and in terms of style migration, the color is directly migrated to the entire sky area.
[0063] Therefore, deformable convolution is much better than conventional convolution in detecting small details. Therefore, this embodiment applies deformable convolution to the conv1-conv5 convolution layers of ResNet for feature extraction of the spatially distorted areas of the input image before style transfer, so as to facilitate subsequent accurate detection and recognition.
[0064] Step 102: synthesize a 3D texture panoramic video based on the characteristic panoramic image by image preprocessing and LDI restoration.
[0065] Further, step 102 includes:
[0066] After LDI initialization operation is performed according to the characteristic panoramic image, the edge depth of the foreground and background in the image is analyzed by bilateral median filtering to obtain the depth information of adjacent pixels;
[0067] Perform threshold comparison analysis on the depth information of adjacent pixels to detect the discontinuity of edge pixels between foreground and background, and generate a set of connected edge pixels;
[0068] By cutting off the connection between adjacent pixels at the edge of LDI, the foreground contour and the background contour are detected according to the set of connected edge pixels, and the foreground area pixels and the background area pixels are obtained;
[0069] A context-aware network is used to perceive the color and depth of the foreground area pixels, to achieve LDI repair of the background area pixels, and to generate a 3D textured panoramic video.
[0070] It should be noted that this embodiment mainly uses a context-aware method to perceive and identify the foreground and background of the characteristic panoramic image; and generates a dynamic panoramic video with color and depth repaired for the overlapping parts of the panorama and background edges, that is, a 3D textured panoramic video.
[0071] For details, please refer to Figure 3 According to the characteristic panoramic image obtained above, the LDI initialization operation can be performed, that is, the LDI image is initialized; then the bilateral median filtering method is used to analyze the edge depth of the foreground and background of the image, so that the boundary pixels of the foreground and background can be clearly defined, and the depth difference information between adjacent pixels can be obtained; then, based on the depth difference of adjacent pixels, the threshold comparison analysis is performed to detect the discontinuity of the edge pixels of the foreground and background, and based on this, a connected edge pixel set can be generated, that is, a linked edge pixel set. In the LDI repair process, it is first necessary to generate foreground area pixels and background area pixels based on the foreground contour and background contour by cutting off the detected connected contour pixels of the foreground and background; then the context-aware network can be used to perceive and analyze the color and depth values of the pixels that are not distinguished in the foreground, so as to repair the color and depth of the LDI of the background part, and then generate a 3D texture panoramic video.
[0072] It can be understood that since the present embodiment uses deformable convolution for image feature extraction and recognition analysis, the two-dimensional image in the subsequent image processing process not only has a wider visual perspective, but also does not require a large amount of image assistance for image analysis, which can greatly reduce the amount of model calculation.
[0073] Step 103: Input the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, where the decomposed panoramic image is decomposed from the 3D texture panoramic video.
[0074] The generated dynamic video can be decomposed into images frame by frame, that is, a panoramic image in units of frames is decomposed from a 3D texture panoramic video frame by frame to obtain a decomposed panoramic image. The preset style image is a pre-selected target style template. By transferring its style to the decomposed panoramic image, the style transfer of the panoramic image can be achieved. The VGG-19 encoder can extract the encoded feature data of the image and implement the style transfer operation based on the feature data. In addition to selecting the VGG-19 neural network framework, a more efficient encoding network model can be replaced or designed based on actual needs. This is only an example and is not limited.
[0075] Step 104: Perform a pruning decoding operation for style transfer on the encoded feature vector based on a neural architecture search method to obtain a target style transfer image.
[0076] Furthermore, step 104 includes:
[0077] Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method;
[0078] The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to achieve pruning decoding of style transfer and obtain the target style transfer image.
[0079] See also Figure 4 , this embodiment adopts a neural architecture search method to perform style transfer based on the encoded feature vector; then the method is used to automatically prune the decoder. In each cycle of automatic pruning, the encoder part is fixed, and a preset number of control operators are configured in the decoder, which can adjust the state of the operator to selectively close or open operations such as convolution kernels or pooling in the network layer, thereby extracting image features at multiple different scales. The preset number in this embodiment is 31, that is, there are 31 operators controlled by 0 / 1 codes. By repeatedly comparing operators, continuously extracting multi-scale features of the image, and calculating the style image with the lowest loss rate, the target style transfer image can be obtained quickly and accurately. For the overall panoramic image three-dimensional style transfer process of this embodiment, please refer to Figure 5 .
[0080] It should be noted that since the operator can be disabled or enabled, that is, 0 / 1 state, the entire search space is very large. Through this encoding-controlled pruning method, the optimal network model architecture can be found, and then the most reliable image features can be extracted to ensure the lowest loss and the most accurate target style transfer image.
[0081] The method for three-dimensional style transfer of panoramic images provided in the embodiment of the present application uses a deformable convolutional network to dynamically sample the target panoramic image to obtain its difficult-to-identify spatial distortion features, which can more accurately extract the boundary features or depth information in the image, ensuring the reliability of subsequent style transfer; moreover, such a dynamic sampling feature extraction method can reduce the demand for the number of images while ensuring recognition accuracy, thereby indirectly reducing the computational complexity; in addition, by implementing style transfer through pruning decoding, the optimal style transfer image can be clearly and quickly selected, which can improve the efficiency of style transfer. Therefore, the embodiment of the present application can solve the technical problems that the prior art is difficult to identify the spatial distortion characteristics of panoramic images, the view recognition is limited, the calculation is too complicated, and the stylization rate and accuracy are difficult to guarantee.
[0082] For easier understanding, see Figure 2 The present application provides an embodiment of a panoramic image three-dimensional style transfer device, including:
[0083] A feature extraction unit 201 is used to extract the spatial distortion features of the target panoramic image by using a deformable convolutional network to generate a feature panoramic image, wherein the deformable convolutional network adjusts the convolution kernel based on the offset to achieve dynamic sampling;
[0084] The video synthesis unit 202 is used to synthesize a 3D texture panoramic video according to the characteristic panoramic image by image preprocessing and LDI restoration;
[0085] A feature encoding unit 203 is used to input the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, wherein the decomposed panoramic image is decomposed from the 3D texture panoramic video;
[0086] The transfer decoding unit 204 is used to perform a pruning decoding operation of style transfer on the encoded feature vector based on the neural architecture search method to obtain a target style transfer image.
[0087] Furthermore, it also includes:
[0088] The panoramic expansion unit 205 is used to expand the initial panoramic image in two dimensions by global projection and extract pixel coordinates to obtain a two-dimensional panoramic image;
[0089] The spherical convolution unit 206 is used to perform convolution calculation on the two-dimensional panoramic image using spherical convolution to obtain a target panoramic image.
[0090] Furthermore, the video synthesis unit 202 is specifically configured to:
[0091] After LDI initialization operation is performed according to the characteristic panoramic image, the edge depth of the foreground and background in the image is analyzed by bilateral median filtering to obtain the depth information of adjacent pixels;
[0092] Perform threshold comparison analysis on the depth information of adjacent pixels to detect the discontinuity of edge pixels between foreground and background, and generate a set of connected edge pixels;
[0093] By cutting off the connection between adjacent pixels at the edge of LDI, the foreground contour and the background contour are detected according to the set of connected edge pixels, and the foreground area pixels and the background area pixels are obtained;
[0094] A context-aware network is used to perceive the color and depth of the foreground area pixels, to achieve LDI repair of the background area pixels, and to generate a 3D textured panoramic video.
[0095] Further, the migration decoding unit 204 is specifically configured to:
[0096] Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method;
[0097] The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to achieve pruning decoding of style transfer and obtain the target style transfer image.
[0098] The present application also provides a panoramic image three-dimensional style migration device, the device comprising a processor and a memory;
[0099] The memory is used to store the program code and transmit the program code to the processor;
[0100] The processor is used to execute the panoramic image three-dimensional style transfer method in the above method embodiment according to the instructions in the program code.
[0101] The present application also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the panoramic image three-dimensional style transfer method in the above method embodiment.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program code.
[0106] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for transferring the style of a panoramic image to three-dimensional form, characterized in that: include: A deformable convolutional network is used to extract spatial distortion features of a target panoramic image and generate a feature panoramic image. The deformable convolutional network adjusts the convolution kernel based on an offset to achieve dynamic sampling. Synthesizing a 3D texture panoramic video based on the characteristic panoramic image by image preprocessing and LDI restoration; Inputting the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, wherein the decomposed panoramic image is decomposed from the 3D texture panoramic video; Based on the neural architecture search method, a pruning decoding operation of style transfer is performed on the encoded feature vector to obtain a target style transfer image.
2. The method for 3D style transfer of panoramic images according to claim 1, characterized in that: The method uses a deformable convolutional network to extract the spatial distortion features of the target panoramic image and generate a feature panoramic image, and also includes: The initial panoramic image is expanded two-dimensionally by global projection, and the pixel coordinates are extracted to obtain a two-dimensional panoramic image; The two-dimensional panoramic image is convolved by using spherical convolution to obtain a target panoramic image.
3. The method for 3D style transfer of panoramic images according to claim 1, characterized in that: The method of synthesizing a 3D texture panoramic video according to the characteristic panoramic image by image preprocessing and LDI restoration includes: After performing an LDI initialization operation according to the characteristic panoramic image, a bilateral median filter method is used to analyze the edge depth of the foreground and background in the image to obtain adjacent pixel depth information; Performing threshold comparison analysis on the adjacent pixel depth information to detect edge pixel discontinuity between the foreground and the background, and generating a connected edge pixel set; By cutting off the connection between adjacent pixels at the edge of the LDI, the foreground contour and the background contour are detected according to the connected edge pixel set to obtain the foreground area pixels and the background area pixels; A context-aware network is used to perform color and depth perception on the foreground area pixels, to implement LDI repair on the background area pixels, and to generate a 3D textured panoramic video.
4. The method for 3D style transfer of panoramic images according to claim 1, characterized in that: The method of performing a pruning decoding operation of style transfer on the encoded feature vector based on the neural architecture search method to obtain a target style transfer image includes: Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method; The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to implement pruning decoding of style transfer, thereby obtaining a target style transfer image.
5. A panoramic image three-dimensional style transfer device, characterized in that: include: A feature extraction unit, used to extract the spatial distortion features of the target panoramic image by using a deformable convolutional network to generate a feature panoramic image, wherein the deformable convolutional network adjusts the convolution kernel based on the offset to achieve dynamic sampling; A video synthesis unit, used for synthesizing a 3D texture panoramic video according to the characteristic panoramic image by means of image preprocessing and LDI restoration; A feature encoding unit, used for inputting the decomposed panoramic image and the preset style image into a VGG-19 encoder for feature encoding to obtain an encoded feature vector, wherein the decomposed panoramic image is decomposed from the 3D texture panoramic video; The migration decoding unit is used to perform a pruning decoding operation of style migration on the encoded feature vector based on a neural architecture search method to obtain a target style migration image.
6. The device for transferring panoramic image 3D style according to claim 5, characterized in that: Also includes: A panoramic expansion unit, used to expand the initial panoramic image in two dimensions by global projection, and extract pixel coordinates to obtain a two-dimensional panoramic image; The spherical convolution unit is used to perform convolution calculation on the two-dimensional panoramic image by using spherical convolution to obtain a target panoramic image.
7. The device for transferring panoramic image 3D style according to claim 5, characterized in that: The video synthesis unit is specifically used for: After performing an LDI initialization operation according to the characteristic panoramic image, a bilateral median filter method is used to analyze the edge depth of the foreground and background in the image to obtain adjacent pixel depth information; Performing threshold comparison analysis on the adjacent pixel depth information to detect edge pixel discontinuity between the foreground and the background, and generating a connected edge pixel set; By cutting off the connection between adjacent pixels at the edge of the LDI, the foreground contour and the background contour are detected according to the connected edge pixel set to obtain the foreground area pixels and the background area pixels; A context-aware network is used to perform color and depth perception on the foreground area pixels, to implement LDI repair on the background area pixels, and to generate a 3D textured panoramic video.
8. The device for transferring panoramic image 3D style according to claim 5, characterized in that: The migration decoding unit is specifically used for: Configure a preset number of control operators in the VGG-19 decoder based on the neural architecture search method; The VGG-19 decoder performs multi-scale feature extraction on the encoded feature vector according to the control operator to implement pruning decoding of style transfer, thereby obtaining a target style transfer image.
9. A panoramic image three-dimensional style transfer device, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the panoramic image three-dimensional style transfer method according to any one of claims 1-4 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the panoramic image three-dimensional style transfer method according to any one of claims 1 to 4.
Citation Information
Cited By
Image synthesis system
CN118941454A
