Rain Structure Transfer Using an Exemplar Rain Image for Synthetic Rain Image Generation
This letter proposes a simple method of transferring rain structures of a given exemplar image (rain image) into a target image (non-rain image). Given the exemplar rain image and its corresponding masked rain image, rain patches including real-life rain structures are extracted randomly, and then residual rain patches are obtained by subtracting those rain patches from their mean patches. Next, residual rain patches are selected randomly, and then added to the given target image along a raster scanning direction. To decrease boundary artifacts around the added patches on the target image, minimum error boundary cuts are found using dynamic programming, and then blending is conducted between overlapping patches. Our experiment shows that the proposed method can generate realistic rain images that have similar rain structures in the exemplar images. Moreover, it is expected that the proposed method can be used for rain removal. More specifically, non-rain images and synthetic rain images generated via the proposed method can be used to learn classifiers (e.g., deep neural network) in a supervised manner.
Cite As
Chang-Hwan Son (2024). Rain Structure Transfer Using an Exemplar Rain Image for Synthetic Rain Image Generation (https://www.mathworks.com/matlabcentral/fileexchange/59394-rain-structure-transfer-using-an-exemplar-rain-image-for-synthetic-rain-image-generation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Morphological Operations >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
rain transfer/
Version | Published | Release Notes | |
---|---|---|---|
1.0 |
|