Giter Site home page Giter Site logo

deshadow's Introduction

Interactive Shadow Removal

This repository contains the code for the paper "Interactive Shadow Removal and Ground Truth for Difficult Shadow Scenes", Journal of the Optical Society of America (JOSA) A 2016.

Copyright © 2016 Han Gong ([email protected])
University of Bath and University of East Anglia

This code is published under the GNU Lesser General Public License (LGPL) 3.

alt text

REQUIREMENT

This code was tested on MATLAB 2015b x64 Ubuntu. The other versions of MATLAB may work but the results may not be identical.

NOTICE

This code is a pure MATLAB script implementation (non-MEX). Therefore, it is NOT optimised for speed. Only the parameter training code is not shared here. But, normally, the provided default set of parameters should do a good job if the binary shadow mask is detected in a good accuracy. If you would like to incorporate your own automatic shadow detection algorithm, simply replace the variable 'smsk' in deshadow.m with your own binary shadow mask image.

Usage

main.m is the driver for batch shadow removal. Please see main.m or execute doc main in MATLAB terminal

getinput.m is the driver for obtaining the user input for image I.

para.mat is the pre-trained parameter set for general shadow removal.

Shadow Removal Dataset and Online Benchmark for Variable Scene Categories

To encourage the open comparison of single image shadow removal in community, we provide an online benchmark site and a dataset. Our quantitatively verified high quality dataset contains a wide range of ground truth data (214 test cases in total). Each case is rated according to 4 attributes, which are texture, brokenness, colourfulness and softness, in 3 perceptual degrees from weak to strong.

deshadow's People

Contributors

hangong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.