Rain Structure Transfer Using an Exemplar Rain Image for Synthetic Rain Image Generation

A method of transferring rain structures of a given exemplar rain image into a target image
142 Downloads
Updated 3 Oct 2016

View License

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
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0