Create 180 To 360 Mask:
The Create 180 To 360 Mask node is designed to facilitate the conversion of 180-degree images into a 360-degree format by generating a mask that seamlessly extends the image to cover the full 360-degree panorama. This node is particularly useful in scenarios where you need to transform a half-sphere image into a full-sphere representation, ensuring that the transition between the original image and the extended areas is smooth and visually coherent. The node achieves this by creating a mask that defines the valid region of the image and optionally applying a feathering effect to soften the edges, thereby enhancing the visual quality of the transition. This capability is essential for artists and developers working with equirectangular images, as it allows for the creation of immersive and continuous panoramic visuals without abrupt edges or seams.
Create 180 To 360 Mask Input Parameters:
image
The image parameter expects a 4-dimensional tensor representing the input image data. This parameter is crucial as it provides the base image that will be converted from a 180-degree to a 360-degree format. The image should have dimensions corresponding to batch size, height, width, and channels. The node uses this input to determine the dimensions and apply the mask accordingly.
input_mode
The input_mode parameter specifies the format of the input image, with options being "180" or "360". This parameter determines how the node interprets the width of the image. If set to "360", the node assumes that the valid region is only half the width, which is essential for correctly applying the mask and ensuring the image is extended appropriately.
feather
The feather parameter is an integer that defines the width of the feathering effect applied to the edges of the mask. Feathering is used to create a gradual transition between the original image and the extended areas, reducing harsh edges and improving visual continuity. The feather value can be adjusted to control the softness of this transition, with higher values resulting in a more gradual blend.
Create 180 To 360 Mask Output Parameters:
mask
The mask output is a tensor that represents the generated mask for the input image. This mask defines the valid region of the image and includes any feathering applied to the edges. The mask is used to blend the original 180-degree image with the extended areas, ensuring a seamless transition and maintaining the visual integrity of the 360-degree panorama.
Create 180 To 360 Mask Usage Tips:
- To achieve the best results, ensure that your input image is correctly formatted and that the
input_modeparameter accurately reflects the image's current state. This will help the node apply the mask correctly and avoid any misalignment. - Experiment with different
feathervalues to find the optimal level of edge softness for your specific image. A higher feather value can help create a smoother transition, especially in images with complex textures or patterns.
Create 180 To 360 Mask Common Errors and Solutions:
AssertionError: image should have 4 dimensions
- Explanation: This error occurs when the input image does not have the expected 4-dimensional shape (batch size, height, width, channels).
- Solution: Ensure that your input image is correctly formatted as a 4-dimensional tensor before passing it to the node.
ValueError: Invalid input_mode
- Explanation: This error arises when the
input_modeparameter is set to a value other than "180" or "360". - Solution: Verify that the
input_modeparameter is correctly set to either "180" or "360" to match the format of your input image.
