|
Algorithm 1 Pseudocode for Procedural Snowfall Augmentation |
Input:
Original image
Image directory D (for batch processing)
Number of snowflakes
Mask transparency
Snow particle size range
Snow mask output path
Output:
Step 1: Generate Snow Mask
-
1.
Create an empty RGBA mask M with the same size as .
-
2.
-
3.
Apply Gaussian blur (e.g., ) to M for realism.
-
4.
Save M as a snow mask to .
Step 2: Blend Snow Mask with Original Image
|