Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

High-Dynamic-Range Imaging for Cloud Segmentation

With the spirit of reproducible research, this repository contains all the codes required to produce the results in the manuscript:

S. Dev, F. M. Savoy, Y. H. Lee and S. Winkler, High-Dynamic-Range Imaging for Cloud Segmentation, Atmospheric Measurement Techniques (AMT), 2018.

Please cite the above paper if you intend to use whole/part of the code. This code is only for academic and research purposes.

Code Organization

The codes are written in MATLAB.

Dataset

The SHWIMSEG: Singapore HDR Whole Sky IMaging SEGmentation Database, associated with this manuscript can be accessed from this link. This will be helpful for public benchmarking and subsequent research.

The dataset should be copied in the folder ./HDRSEG.

Core functionality

  • BRImage_func.m Calculates a ratio image from an RGB sky/cloud image.
  • color16_struct.m Calculates various color channels used in cloud segmentation.
  • error_withSat_s_c.m Computes the various error metrics by neglecting the saturated pixels in an image.
  • findSat_th.m Estimates the saturated map of an image.
  • maskSaturatedHDR.m Estimates the mask of saturated map for an HDR image.
  • maskSaturatedLDR.m Estimates the mask of saturated map for an LDR image.
  • MCE_func.m Internal function to compute Li et al. approach.
  • RGBPlane.m Finds the R- G- and B- plane of an image.
  • showasImage.m Normalizes a matrix into the range [0,255].

The codes related to HDR imaging are contained in the folder ./HDRimaging. These codes are adapted from:

Debevec, Paul E., and Jitendra Malik. "Recovering high dynamic range radiance maps from photographs." In Proceedings of the 24th annual conference on Computer graphics and interactive techniques, pp. 369-378. ACM Press/Addison-Wesley Publishing Co., 1997.

The codes related to graph cut are contained in the folder ./GraphCut. Please cite the following papers, in case you use this graph cut module.

Efficient Approximate Energy Minimization via Graph Cuts, Yuri Boykov, Olga Veksler, Ramin Zabih, IEEE transactions on PAMI, vol. 20, no. 12, p. 1222-1239, November 2001.

What Energy Functions can be Minimized via Graph Cuts?, Vladimir Kolmogorov and Ramin Zabih, IEEE Transactions on Pattern Analysis and Machine Intelligence, (PAMI), vol. 26, no. 2, February 2004, pp. 147-159.

An Experimental Comparison of Min-Cut/Max-Flow Algorithms for Energy Minimization in Vision, Yuri Boykov and Vladimir Kolmogorov, In IEEE Transactions on Pattern Analysis and Machine Intelligence, (PAMI), vol. 26, no. 9, September 2004, pp. 1124-1137.

Matlab Wrapper for Graph Cut, Shai Bagon, in www.wisdom.weizmann.ac.il/~bagon, December 2006.

Reproducibility

Please run the following to generate all the results and figures in the paper.

  • Figure3.m Generates figure 3 of the manuscript.
  • Figure5.m Generates figure 5 of the manuscript.
  • Figure6.m Generates figure 6 of the manuscript.
  • Li_LDR.m Computes Li et al. approach for LDR images.
  • Li_tonemapped.m Computes Li et al. approach for tonemapped images.
  • Long_LDR.m Computes Long et al. approach for LDR images.
  • Long_tonemapped.m Computes Long et al. approach for tonemapped images.
  • Mantelli_LDR.m Computes the Mantelli et al. approach for LDR images.
  • Mantelli_tonemapped.m Computes the Mantelli et al. approach for tonemapped images.
  • Souza_LDR.m Computes the Souza et al. approach for LDR images.
  • Souza_tonemapped.m Computes the Souza et al. approach for tonemapped images.
  • proposed_LDR.m Computes the proposed approach for LDR images.
  • proposed_tonemapped.m Computes the proposed approach for tonemapped images.
  • proposed_HDR.m Computes the proposed approach for HDR images.

In addition to all the related codes, we have also shared the generated results. These files are contained in the folder ./results.

About

Segmentation of sky/cloud images using HDR Imaging

Resources

Releases

No releases published

Packages

No packages published