Panoramic image salient object ranking method

By generating spherical information modulation instance features and constructing perspective window saliency maps, combined with hierarchical map inference, the problem of insufficient accuracy in object saliency ranking in panoramic images is solved, achieving more accurate and robust saliency ranking.

CN123160750APending Publication Date: 2026-11-24BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611616816.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-19
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods struggle to comprehensively reflect the combined effects of spherical geometric properties, global scene, and local object relationships on visual attention allocation, resulting in insufficient accuracy in ranking the relative salience of objects in panoramic images.

Method used

By generating spherical information modulation instance features containing spherical position and area, a perspective window is constructed and a window saliency map is generated. Layered graph inference is performed by combining geometric enhancement features, and the saliency order is determined by fusing spherical geometric properties, visual attention information under the observation window and global scene information.

Benefits of technology

It improves the accuracy and robustness of ranking the relative saliency of different instances in panoramic images and reduces the impact of non-uniform geometric distortion of equidistant cylindrical projection on instance feature representation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160750A_ABST
    Figure CN123160750A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of image processing technology, specifically disclosing a method for ranking salient objects in panoramic images. The method includes: generating spherical information containing spherical position and area based on the mask of each instance in an isometric cylindrical projection panoramic image; modulating instance features with the spherical information to obtain geometrically enhanced features; reprojecting global features onto a perspective window at the center of the instance based on the spherical position to generate a window saliency map; mapping the window saliency map back to the isometric cylindrical projection domain to modulate global features; aggregating the modulated global features with the geometrically enhanced features to obtain a contextual representation; performing hierarchical graph reasoning on the geometrically enhanced features and fusing them with the contextual representation to determine the saliency order of each instance. This method has the following advantages: it reduces projection distortion through spherical information modulation; combines global context and hierarchical graph reasoning guided by window saliency; and comprehensively models the global scene and local relationships, improving the accuracy and robustness of salient object ranking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and more specifically, to a method for sorting salient objects in panoramic images. Background Technology

[0002] Saliency ranking is used to determine the visual saliency order of different objects in an image. Existing two-dimensional image ranking methods typically extract object features through instance segmentation and predict the ranking result by combining the relationships between objects; panoramic saliency prediction methods mostly utilize spherical representation, viewport features, or global context to generate pixel-level saliency maps.

[0003] However, panoramic images exhibit non-uniform geometric distortion that varies with latitude when projected using equidistant cylindrical projections. Furthermore, object saliency is influenced by the viewing window and scene relationships. Existing methods struggle to comprehensively reflect the combined effects of spherical geometry, global scene conditions, and local object relationships on visual attention allocation, resulting in insufficient accuracy in ranking the relative saliency of objects in panoramic images. Summary of the Invention

[0004] The present invention aims to provide a method for ranking salient objects in panoramic images, in order to solve or improve the problem that existing methods are unable to comprehensively reflect the combined effects of spherical geometric characteristics, global scene and local object relationships on visual attention allocation, resulting in insufficient accuracy in ranking the relative salience of objects in panoramic images.

[0005] In view of this, a first aspect of the present invention is to provide a method for sorting salient objects in a panoramic image.

[0006] A second aspect of the present invention is to provide an electronic device.

[0007] A first aspect of the present invention provides a method for ranking salient objects in a panoramic image, comprising the following steps: generating spherical information containing the spherical position and area of ​​each instance based on the instance mask of each instance in a panoramic image using equidistant cylindrical projection; modulating the features of the corresponding instance with the spherical information to obtain geometrically enhanced features; reprojecting the global features of the panoramic image onto a perspective window centered on each instance based on the spherical position to obtain window features; generating a window saliency map based on the window features; mapping the window saliency map back to the equidistant cylindrical projection domain to modulate the global features; using the geometrically enhanced features as the query aggregated modulated global features to obtain a contextual representation; performing hierarchical graph reasoning on the geometrically enhanced features; fusing the result of the hierarchical graph reasoning with the contextual representation to determine the saliency order of each instance.

[0008] A second aspect of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the method described above.

[0009] The beneficial effects of this invention compared to the prior art are as follows: By generating spherical information containing the spherical position and area based on the instance mask, and using the spherical information to modulate instance features, the instance representation can reflect the position of the object in the spherical space and the scale characteristics after being affected by projection distortion, thereby reducing the impact of non-uniform geometric distortion caused by equidistant cylindrical projection on the expression of instance features.

[0010] A perspective window centered on the instance is constructed based on the spherical position of the instance, and a saliency map of the window is generated from the window features, so that the saliency information can correspond to the visual attention area under the actual window observation conditions. The window saliency map is mapped back to the equidistant cylindrical projection domain to modulate the global features, which can highlight the scene area related to the visual attention of the current instance and reduce the interference of irrelevant global background information on the saliency judgment of the instance.

[0011] By using geometrically enhanced features as the query aggregate modulated global features, the spherical geometric information of an instance is made to establish a correspondence between its own spherical geometric information and its related scene context, thereby obtaining a global context representation that is instance-specific.

[0012] By performing hierarchical graph reasoning on geometrically enhanced features, the relationships between instance features can be modeled from different levels and fused with the contextual representation. This allows the determination of saliency order to simultaneously consider the spherical geometric characteristics of instances, visual attention information under the viewing window, global scene information, and local relationships between instances, thereby improving the accuracy and robustness of the relative saliency ranking of different instances in panoramic images.

[0013] Additional aspects and advantages of embodiments of the invention will become apparent in the following description or may be learned by practice of embodiments of the invention. Attached Figure Description

[0014] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating the panoramic image salient object sorting method of the present invention; Figure 2 This is a schematic diagram of the overall framework of the panoramic image salient object sorting method of the present invention; Figure 3 This is a schematic diagram of the saliency-guided cross-attention module of the present invention; Figure 4 This is a schematic diagram of the structure of the electronic device of the present invention. Detailed Implementation

[0015] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0016] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0017] Please see Figures 1-4 The following describes a method for sorting salient objects in a panoramic image, an electronic device, and a medium according to some embodiments of the present invention.

[0018] An embodiment of the first aspect of the present invention provides a method for ranking salient objects in panoramic images. In some embodiments of the present invention, such as... Figures 1-3 As shown, the method includes: S101, Generate spherical information containing the spherical position and area of ​​each instance based on the instance mask of each instance in the panoramic image using equidistant cylindrical projection, and modulate the features of the corresponding instance with the spherical information to obtain geometrically enhanced features.

[0019] Here, a panoramic image with equidistant cylindrical projection is used to represent the spherical scene in two dimensions. Instance masks are used to identify the pixel area occupied by the corresponding instance in the panoramic image. Based on the distribution of each instance mask in the spherical space, corresponding spherical positions and spherical areas are formed. The spherical information containing the spherical position and spherical area is applied to the features of the corresponding instance, so that the visual features of the instance simultaneously include its position and scale information in the panoramic scene, forming geometrically enhanced features for subsequent context aggregation and instance relationship reasoning.

[0020] As can be seen above, unlike the direct saliency ranking based on the planar instance features in the equidistant cylindrical projection domain, this embodiment introduces the spherical position and spherical area into the features of the corresponding instance through instance masking, so that the resulting geometrically enhanced features adapt to the characteristics of the target position and apparent scale changing with the spherical distribution, thereby reducing the instance feature deviation caused by equidistant cylindrical projection distortion.

[0021] In some implementations, the panoramic image is input into a segmentation backbone network, and high-resolution context features, multi-scale context features, and instance features of each decoding layer are extracted through the segmentation backbone network. The instance mask corresponding to each instance feature is predicted. The instance features and instance masks of each decoding layer are used as the basis for generating geometric enhancement features, and the high-resolution context features and multi-scale context features are used as the basis for generating global features.

[0022] Specifically, the steps for generating geometrically enhanced features include: The relative spherical relationships between instances are determined based on their spherical positions. The relative spherical relationships and spherical areas are encoded separately. The encoding results are then fused with the features of the corresponding instances to obtain geometrically enhanced features.

[0023] Regarding the specific description above, for the instance features and corresponding instance masks extracted by the segmentation network at each decoding layer, firstly, pixel-domain bounding boxes composed of the minimum horizontal coordinate, minimum vertical coordinate, maximum horizontal coordinate, and maximum vertical coordinate are extracted from the instance masks. The horizontal coordinates of the image are linearly mapped to the longitude range from the negative to the positive half-cycle according to the image width, and the vertical coordinates of the image are linearly mapped to the latitude range from the North Pole to the South Pole according to the image height, resulting in spherical bounding boxes composed of longitude and latitude boundaries. The angular width and angular height are determined based on the longitude and latitude boundary differences of the spherical bounding boxes, respectively, and the center of the sphere is determined based on the midpoint of the corresponding boundary.

[0024] For any two instances, the longitude and latitude central differences between the two instances are normalized using the angular width and angular height of one instance, respectively. The logarithm of the normalized central differences is then taken. The angular width ratio and angular height ratio of the two instances are calculated, and the logarithm of the resulting ratios is taken, thus forming a four-dimensional spherical relative relationship that includes the spherical center offset relationship and the angular range ratio relationship. For each instance, the spherical relative relationship between that instance and other instances is sinusoidally position-encoded. The encoded features are then expanded and input into a fully connected layer to obtain the corresponding position embedding.

[0025] For each instance mask, pixel area weights are assigned based on the latitudinal cosine of the row where each foreground pixel is located. The area weights of all foreground pixels are summed, and then normalized relative to the sum of the area weights of all pixels in the panoramic image to obtain the spherical area. The spherical area is input into a fully connected layer to obtain the corresponding area embedding. The instance features, position embeddings, and area embeddings are added together to obtain the geometric enhancement features.

[0026] In a more specific implementation, when the instance region crosses the lateral boundary of the equidistant cylindrical projection image, the lateral coordinates are periodically expanded, the angular width and longitude center are determined based on the expanded coordinates, and then the longitude center is wrapped back to the preset longitude interval.

[0027] In a more specific implementation, the spherical center, angular width, and angular height of each instance are determined based on the spherical bounding box. The longitude center distance and latitude center distance of the current instance are normalized with the angular width and angular height of the current instance, respectively. Logarithmic transformations are performed on the normalized distance, angular width ratio, and angular height ratio to form a four-dimensional spherical relative relationship. The relative spherical relationships corresponding to the current instance are combined according to the numbering order of other instances. The combination results are then sinusoidally encoded and feature-mapped to obtain the position embedding with the same feature dimension as the instance.

[0028] In a more specific implementation, spherical area weights are configured for foreground pixels in the instance mask according to the latitude of the pixel. The total spherical area weights of the foreground pixels are accumulated and normalized relative to the total spherical area weights of the panoramic image to obtain the spherical area. The spherical area is mapped to an area embedding with the same dimension as the instance features. The instance features, position embeddings, and area embeddings are added together according to their corresponding dimensions to obtain the geometric enhancement features of the corresponding instance in each decoding layer.

[0029] In some implementations, the segmentation network is set to target One prediction instance and Each decoding layer outputs a set of original instance features. and instance mask set .in, Indicates instance index, Indicates the decoding layer index. Indicates the number of predicted instances. Indicates the total number of decoding layers. Indicates the first In the decoding layer, the first The original instance characteristics of each instance, This represents the corresponding binary instance mask.

[0030] Extract the pixel domain bounding box based on the coordinate range of the foreground pixels in the instance mask. , pixel coordinates Convert to longitude and latitude :

[0031] in, and These represent the x and y coordinates of the pixels, respectively. and These represent the width and height of the panoramic image, respectively. The range of values ​​is , The range of values ​​is Transform the four boundary coordinates of the pixel domain bounding box according to the above relationship to obtain the spherical bounding box. .

[0032] Calculate the angle width, angle height, and center of the sphere of the instance based on the spherical bounding box:

[0033] in, and They represent the first In the decoding layer, the first The angle width and angle height of each instance, and These represent the longitude and latitude of the corresponding center of the sphere, respectively.

[0034] For the The first instance and the first One example generates a four-dimensional spherical relative relationship based on the spherical center offset and the angular range ratio:

[0035] in, Indicates the relationship with the first One instance constitutes another instance of an ordered pair of instances. Indicates the first The instance is relative to the first The relative spherical relationships of individual instances, This indicates taking the absolute value. Represents logarithmic operations. This indicates transpose. A sinusoidal position encoding is performed on the spherical relative relationships between the same instance and other instances. The encoded result is then expanded and mapped to a position embedding through a fully connected layer. .

[0036] The spherical area is obtained by weighting the foreground pixel area in the instance mask using the latitudinal cosine:

[0037] in, and These represent the horizontal and vertical indexes of the pixels, respectively. Indicates the instance mask in pixels The binary value at the location, and the foreground pixel value. The background pixel value is , Indicates the first The dimension corresponding to the row pixel. Indicates the first In the decoding layer, the first The normalized spherical area of ​​each instance relative to the panoramic sphere. Mapped to area embedding through a fully connected layer .

[0038] By fusing original instance features, location embeddings, and area embeddings, geometrically enhanced features are obtained:

[0039] in, Indicates the first In the decoding layer, the first The geometric enhancement features of each instance, with the three summed terms having the same feature dimension.

[0040] For example, each decoding layer is divided into a fine-scale group, a medium-scale group, and a coarse-scale group, with each scale group comprising three decoding layers.

[0041] Specifically, the steps for determining the relative spherical relationships between instances based on their spherical positions include: The spherical position includes the spherical center and angle range of each instance. The spherical center offset and angle range ratio are determined based on the spherical center and angle range of any two instances to generate the relative spherical relationship.

[0042] Regarding the specific description above, the spherical position includes the spherical center and angular range of each instance. The spherical center is represented by the longitude center and latitude center, and the angular range is represented by the angular width and angular height. For any two instances, taking one instance as a reference, the absolute difference between the longitude centers of the two instances relative to the angular width of the reference instance is normalized, and the absolute difference between the latitude centers relative to the angular height of the reference instance is normalized. The logarithm of each normalization result is taken to obtain the spherical center offset. The angular width ratio and angular height ratio of the other instance to the reference instance are calculated, and the logarithm of these ratios is taken to obtain the angular range ratio. The results are combined in the order of longitude center offset, latitude center offset, angular width ratio, and angular height ratio to generate the four-dimensional spherical relative relationship.

[0043] In a more specific implementation, for an ordered pair of instances consisting of a reference instance and a comparison instance, the longitude arc distance and latitude distance between the centers of the two spheres are calculated.

[0044] In a more specific implementation, the longitude arc distance and latitude distance are normalized by the angular width and angular height of the reference instance, respectively. The angular width ratio and angular height ratio of the comparison instance relative to the reference instance are calculated. The normalized distance and angular range ratio are logarithmically transformed, and the spherical relative relationship is generated according to a fixed order of longitude offset, latitude offset, angular width ratio and angular height ratio. After swapping the reference order of the two instances, the correspondence is recalculated so that each instance obtains an inter-instance relationship based on its own spherical position.

[0045] Specifically, the steps for generating the surface area of ​​a sphere include: The pixel areas are weighted and summed based on the latitudinal cosine of the foreground pixels in the instance mask of each instance. The summation result is then normalized relative to the panoramic spherical area to obtain the spherical area.

[0046] Regarding the specific description above, for each instance's binary instance mask in each decoding layer, the foreground pixels in the instance mask have a value of one, and the background pixels have a value of zero. Based on the latitude corresponding to the row of each pixel in the equidistant cylindrical projection image, the pixel area is weighted using the cosine value of that latitude, and the weighted areas of all foreground pixels within the instance mask are summed. The total weighted area is calculated for all pixels in the panoramic image in the same way, and the sum of the weighted areas of the foreground pixels is normalized relative to the total weighted area to obtain the spherical area of ​​the corresponding instance.

[0047] In a more specific implementation, the center position of each pixel row is linearly mapped to the latitude range from the North Pole to the South Pole based on the height of the instance mask, the cosine value of the latitude corresponding to each pixel row is calculated, and a row area weight that remains consistent along the horizontal direction is generated. Multiply the unit pixel area of ​​each foreground pixel in the instance mask by the corresponding row area weight, and sum the results to obtain the spherical weighted area occupied by the instance.

[0048] In a more specific implementation, the row area weights corresponding to each pixel of the panoramic image are accumulated to obtain the total panoramic spherical area weights. The weighted spherical area of ​​the instance is divided by the total panoramic spherical area weights to obtain the normalized spherical area. For instance masks with different resolutions, the latitude is redefined based on the relative position of each pixel row in the corresponding mask height, so that the spherical area generated at different resolutions maintains the same spherical region measurement benchmark.

[0049] S102, based on the spherical position, reproject the global features of the panoramic image onto the perspective window centered on each instance to obtain the window features, and generate a window saliency map based on the window features.

[0050] Here, the global features represent the overall scene information within the equidistant cylindrical projection domain, and the spherical position is used to determine the observation direction of each instance in the panoramic scene. For each instance, the scene region corresponding to its spherical position in the global features is converted into a perspective projection representation, forming a window feature centered on that instance; based on the window feature, the saliency response of each position within the window range is predicted, generating a window saliency map corresponding to that instance for subsequent global feature modulation.

[0051] As can be seen above, unlike the unified saliency prediction of the entire panoramic scene directly in the equidistant cylindrical projection domain, this implementation constructs a perspective window at the center of the instance based on the spherical position of each instance. While reducing local projection distortion, it simulates the viewing mode of the instance-oriented window and determines the corresponding visual attention distribution based on the window characteristics.

[0052] In some implementations, the high-resolution context features and multi-scale context features output by the segmentation backbone network are respectively adapted, and the adapted context features are adjusted to the same spatial resolution and then fused to obtain global features.

[0053] For example, applying high-resolution context features Large kernel convolutions are applied to contextual features at fine, medium, and coarse scales, respectively. Convolution and normalization processing are performed; the processed context features are interpolated to the same spatial resolution, and the global features are obtained by fusing them through three layers of convolution.

[0054] Specifically, the step of reprojecting the global features of the panoramic image onto a perspective window centered on each instance includes: The spherical viewing center is determined based on the spherical position of the foreground pixels in the instance mask corresponding to each instance, and a perspective window is constructed with the spherical viewing center as the center.

[0055] Based on the specific description above, for each instance, the spherical viewing center is calculated based on the set of foreground pixels in the corresponding instance mask. The lateral coordinates of each foreground pixel are mapped to longitude, and the sine and cosine values ​​corresponding to each longitude are calculated. The sine and cosine values ​​are then averaged, and the longitude of the spherical viewing center is determined based on these two averages, ensuring that the longitude center adapts to the periodic connection relationship of the lateral boundaries of the equidistant cylindrical projection. The longitudinal coordinates of each foreground pixel are mapped to latitude, and the average of the obtained latitude values ​​yields the latitude of the spherical viewing center.

[0056] Based on the spherical viewing center and field of view, corresponding regions are sampled from the global features of the panoramic image. Through a differentiable equidistant cylindrical projection to perspective projection mapping operation, the sampled regions are reprojected into perspective windows centered on the corresponding instances, thus obtaining the window features. This reprojection can mitigate the geometric distortion caused by equidistant cylindrical projection within the sampled region.

[0057] In some implementations, it is set For the first The set of foreground pixels of an instance mask, and the spherical viewing center is calculated based on the spherical position of the foreground pixels:

[0058] in, Indicates the first The instance mask of each instance. This represents the corresponding set of foreground pixels. Indicates the number of foreground pixels. and These represent the width and height of the instance mask, respectively. Represents the bivariate arctangent function. and These represent the longitude and latitude of the viewing center on the sphere, respectively.

[0059] Reprojecting global features into perspective window features based on the spherical viewing center:

[0060] in, Represents global features within an equidistant cylindrical projection domain. This represents a differentiable mapping from an equidistant cylindrical projection domain to a perspective projection domain. Indicates the field of view of the perspective window. Indicates the first The window features corresponding to each instance.

[0061] In a more specific implementation, the longitude of each foreground pixel in the instance mask is converted into a direction component on a unit circle, and the horizontal and vertical direction components are accumulated respectively. The viewing center longitude is determined based on the circumferential direction corresponding to the two accumulation results. The arithmetic mean of the latitudes of each foreground pixel is calculated to determine the latitude of the viewing center. The longitude and latitude of the viewing center are used together to define the optical axis direction of the perspective window.

[0062] In a more specific implementation, the field of view of the perspective window is fixed at 120°; For each sampling position in the perspective window, a corresponding spatial ray is generated based on the field of view. The spatial ray is rotated to the optical axis direction defined by the viewing center, and then the ray direction is converted into the latitude and longitude sampling position on the panoramic sphere.

[0063] In a more specific implementation, latitude and longitude sampling locations are mapped to corresponding coordinates in global features, and features of each sampling location are obtained by interpolation to form window features with a fixed resolution. The sampling coordinates that cross the horizontal boundary of the panoramic image are periodically looped around, and the sampling coordinates that exceed the latitude boundary are restricted to an effective range, so that the perspective window maintains continuous sampling in both the longitude seam area and the polar region.

[0064] S103, map the window saliency map back to the equidistant cylindrical projection domain to modulate the global features, and use the geometrically enhanced features as the global features after query aggregation and modulation to obtain the context representation.

[0065] Here, the saliency maps of each instance are transformed from the perspective projection domain to the equidistant cylindrical projection domain, making the saliency maps spatially correspond to the global features. The feature representation of each region in the global features is adjusted according to the mapped saliency response. Subsequently, using the geometric enhancement features of the corresponding instance as query conditions, scene information related to the instance is aggregated from the modulated global features to form a contextual representation containing the instance's spherical attributes and panoramic scene information, which is used for subsequent saliency order determination.

[0066] As can be seen from the above, unlike the method of indiscriminately aggregating the features of the entire panoramic scene, this implementation feeds back the saliency distribution in the instance window to the equidistant cylindrical projection domain to highlight the scene areas related to visual attention. Then, it guides the aggregation of global information for the corresponding instance through geometric enhancement features, thereby reducing the interference of irrelevant scene information and improving the correlation between the obtained context representation and the saliency of the instance.

[0067] Specifically, the steps for generating contextual representations include: Determine the field mask of the perspective window of each instance in the equidistant cylindrical projection domain, and take the union of the field mask and the instance mask of that instance to obtain the aggregate mask.

[0068] By limiting the cross-attention range between geometrically enhanced features and modulated global features through aggregation masks, a contextual representation is obtained.

[0069] As described above, after obtaining the perspective viewports corresponding to each instance, the area covered by the perspective viewports is mapped to an equidistant cylindrical projection domain to form a corresponding field mask. The field mask is then combined with the instance mask of the corresponding instance to obtain an aggregate mask, ensuring that the aggregated range simultaneously covers both the instance's own area and the scene area within the instance's corresponding viewport.

[0070] A multi-head mask cross-attention mechanism is adopted, using the geometric enhancement features of the corresponding instance as the query and the modulated global features as both the key and value. By restricting the location of the global features participating in the cross-attention calculation through aggregation mask, the geometric enhancement features aggregate scene information only from the instance's own region and the corresponding viewport region to obtain the context representation of the corresponding instance.

[0071] In a more specific implementation, each effective sampling position in the perspective window is reverse-mapped to an equidistant cylindrical projection domain, and the mapped positions and their covered pixels are marked to generate a field mask. The instance mask and the field mask are scaled to ensure that the two masks have the same spatial resolution as the modulated global features. A logical OR operation is then performed on the scaled masks to obtain the aggregate mask.

[0072] In a more specific implementation, the global features corresponding to the location covered by the aggregation mask are expanded into a feature sequence, a query vector is generated using geometrically enhanced features, and a key vector and a value vector are generated using the feature sequence. The relevance between the query vector and the key vector is calculated in multiple attention heads. The relevance corresponding to the position outside the aggregation mask is excluded before normalization. The value vector is then weighted and aggregated based on the relevance after normalization.

[0073] In a more specific implementation, the aggregated results of the outputs of each attention head are spliced ​​together, and feature mapping is performed on the spliced ​​results to obtain a context representation associated with the corresponding instance. When the field of view spans the lateral boundary of the equidistant cylindrical projection image, the mapping positions on both sides of the boundary are written into the field of view mask according to the longitude period relationship, so as to keep the aggregation range continuous at the longitude seam.

[0074] In some implementations, geometrically enhanced features at each scale are used as queries, and global features of the corresponding instance modulated by the window saliency map are used as keys and values. The cross-attention range at each scale is limited by an aggregation mask.

[0075] in, Representing fine, medium, and coarse scales. Indicates the first An instance at scale Geometric enhancement features below, This represents the union of the corresponding instance mask and the field mask. This indicates cross-attention in multi-head masking. This represents the contextual representation at the corresponding scale. The fusion weights for each scale are predicted using fully connected layers. The contextual representations at each scale are then weighted and summed according to these fusion weights to obtain the th... Contextual representation of an instance.

[0076] In some implementations, hierarchical graph inference processes geometric enhancement features sequentially through intra-scale graphs, inter-scale graphs, and instance graphs:

[0077]

[0078]

[0079] in, Representing scale The corresponding set of decoding layer indices, Representing scale The corresponding scale-intragraph attention network, Indicates the result of inference within the scale. This represents an inter-scale graph attention network. Represents scale-aware representation. This represents an instance graph attention network. Indicates the first The hierarchical graph reasoning results for each instance.

[0080] For example, such as Figure 3 As shown, the inverted residual layer passes through sequentially Depthwise convolution, batch normalization, ReLU6 activation, Pointwise convolution and batch normalization are applied to the input features, and the processed results are added element-wise to the input features; the dilated depthwise convolutional layers are then passed sequentially through... Dilated depthwise convolution, batch normalization, GELU activation, Pointwise convolution and batch normalization are applied to the input features. The processed result is then added element-wise to the input features before GELU activation. Three layers of dilated depthwise convolution are used with increasing dilation rates, through two concatenated layers... Convolution transforms the processed features into a window saliency map.

[0081] In some implementations, the window saliency map is mapped back to the equidistant cylindrical projection domain:

[0082] in, This indicates the view saliency prediction module. This represents the mapping from the perspective projection domain to the equidistant cylindrical projection domain. Indicates the first The saliency map of the equidistant cylindrical projection domain window corresponding to each instance corresponds to the global feature in terms of its spatial location.

[0083] Residual modulation of global features using window saliency maps:

[0084] in, Indicates the first Modulated global features corresponding to each instance This represents a feature map with the same dimension as the viewport saliency map. This indicates element-wise multiplication.

[0085] S104. Perform hierarchical graph reasoning on the geometrically enhanced features, fuse the results of hierarchical graph reasoning with the contextual representation, and determine the saliency order of each instance.

[0086] Here, the geometrically enhanced features of each instance are used as the object of relational reasoning. Instance features are transferred and aggregated between different relational levels through hierarchical graph reasoning, so that the representation of each instance includes its relative relational information with other instances, thus obtaining the result of the hierarchical graph reasoning. The result of the hierarchical graph reasoning for the corresponding instance is fused with the contextual representation, so that the fused instance representation simultaneously includes inter-instance relations and panoramic scene information. The relative salience is determined based on the fused representation of each instance, forming a salience order.

[0087] As can be seen above, unlike the method of independently determining saliency based on the features of a single instance or only introducing global scene information, this implementation model the relative relationship between different instances through hierarchical graph reasoning, and then combines the obtained relationship information with the context information corresponding to the instance to jointly determine the saliency order from two aspects: local instance competition and global scene association, thereby improving the sorting and identification ability between similar instances in complex panoramic scenes.

[0088] In some implementations, the contextual representation of the same instance is added element by element to the hierarchical graph inference result to obtain a fused representation; the fused representation is mapped to a saliency score through a ranking prediction head composed of linear layers, the saliency order is determined according to the saliency scores of each instance, and the saliency scores are assigned to the foreground region of the corresponding instance mask to obtain a salient object ranking map.

[0089] This invention provides a method for ranking salient objects in panoramic images. It enhances instance features by using spherical information, guides the aggregation of panoramic scene features by combining the salient information of instance windows, and further integrates the hierarchical relationships between instances. This achieves collaborative modeling of spherical geometry, local visual information, and global scene information, which can reduce the impact of equidistant cylindrical projection distortion and irrelevant scene content on instance representation, and improve the accuracy and robustness of ranking salient objects in complex panoramic scenes.

[0090] An embodiment of the second aspect of the present invention provides an electronic device. For example... Figure 4 As shown, the electronic device 3 includes a processor 301 and a memory 302 connected to the processor 301. The memory 302 stores a computer program. When the processor 301 executes the computer program, it performs the panoramic image salient object ranking method described in the foregoing embodiments on the input isometric cylindrical projection panoramic image and outputs the saliency order of each instance. The electronic device 3 can be a computer, smart terminal, or server with image processing capabilities.

[0091] A third aspect of the present invention provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the panoramic image salient object sorting method described in the foregoing embodiments. The computer-readable storage medium may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or flash memory.

[0092] The aforementioned methods can be implemented through software, hardware, or a combination of both, and the specific implementation does not constitute a limitation on the scope of protection of this invention. The above embodiments are only used to illustrate the technical solutions of this invention, and any modifications or equivalent substitutions made without departing from the concept of this invention should be included within the scope of protection of this invention.

Claims

1. A method for ranking salient objects in a panoramic image, characterized in that, Includes the following steps: Based on the instance mask of each instance in the panoramic image using equidistant cylindrical projection, spherical information containing the spherical position and spherical area of ​​each instance is generated, and the features of the corresponding instance are modulated with the spherical information to obtain geometrically enhanced features. Based on the spherical position, the global features of the panoramic image are reprojected onto a perspective window centered on each instance to obtain window features, and a window saliency map is generated based on the window features; The window saliency map is mapped back to the equidistant cylindrical projection domain to modulate the global features. The geometrically enhanced features are used as the global features after query aggregation and modulation to obtain the context representation. Hierarchical graph reasoning is performed on the geometrically enhanced features, and the results of the hierarchical graph reasoning are fused with the contextual representation to determine the saliency order of each instance.

2. The panoramic image salient object sorting method according to claim 1, characterized in that, The steps for generating the geometric enhancement features include: The relative spherical relationships between instances are determined based on the spherical positions. The relative spherical relationships and the spherical areas are encoded respectively. The encoding results are fused with the features of the corresponding instances to obtain the geometric enhancement features.

3. The panoramic image salient object sorting method according to claim 2, characterized in that, The step of determining the relative spherical relationships between instances based on the spherical positions includes: The spherical position includes the spherical center and angle range of each instance. The spherical center offset and angle range ratio are determined based on the spherical center and angle range of any two instances to generate the relative relationship of the spherical surfaces.

4. The panoramic image salient object sorting method according to claim 2, characterized in that, The steps for generating the spherical area include: The pixel areas are weighted and summed based on the latitudinal cosine of the foreground pixels in the instance mask of each instance, and the summation result is normalized relative to the panoramic spherical area to obtain the spherical area.

5. The panoramic image salient object sorting method according to claim 1, characterized in that, The step of reprojecting the global features of the panoramic image onto a perspective window centered on each instance includes: The spherical viewing center is determined based on the spherical position of the foreground pixel in the instance mask corresponding to each instance, and the perspective window is constructed with the spherical viewing center as the center.

6. The panoramic image salient object sorting method according to claim 5, characterized in that, The step of determining the spherical viewing center based on the spherical position of the foreground pixel in the instance mask corresponding to each instance includes: The longitude and latitude of the spherical viewing center are determined according to the following formula: in, Indicates instance index, Indicates the first The set of foreground pixels in the instance mask of each instance. This indicates the number of foreground pixels. and These represent the x and y coordinates of the foreground pixel, respectively. and These represent the width and height of the instance mask, respectively. and These represent the longitude and latitude of the viewing center on the sphere, respectively. Represents the bivariate arctangent function. and Let them represent the sine function and the cosine function, respectively. It represents pi (π).

7. The panoramic image salient object sorting method according to claim 1, characterized in that, The steps for generating the context representation include: Determine the field mask of the perspective window of each instance in the equidistant cylindrical projection domain, and take the union of the field mask and the instance mask of the instance to obtain the aggregate mask; The context representation is obtained by limiting the cross-attention range between the geometrically enhanced features and the modulated global features through the aggregation mask.

8. The panoramic image salient object sorting method according to claim 1, characterized in that, The step of mapping the window saliency map back to the equidistant cylindrical projection domain to modulate the global features includes: The global features are modulated according to the following formula: in, Indicates instance index, This represents the global feature. Indicates the first The saliency map of the window corresponding to each instance, mapped back to the isometric cylindrical projection domain. This represents the modulated global feature of the corresponding instance. Indicates and Unidimensional feature maps with consistent dimensions This indicates element-wise multiplication.

9. The panoramic image salient object sorting method according to claim 1, characterized in that, The step of performing hierarchical graph reasoning on the spherical representation includes: Using the spherical representations of each decoding layer of the same instance at the same scale as nodes, an intra-scale graph is constructed, and the intra-scale representation is obtained through graph attention aggregation. A scale-to-scale graph is constructed using the representations of the same instance at different scales as nodes, and the scale-to-scale representations are obtained through graph attention aggregation. An instance graph is constructed using the inter-scale representations of each instance as nodes, and the result of the hierarchical graph inference is obtained through graph attention aggregation.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 9.