Matlab Scripts

Here are links to the Matlab scripts I wrote specifically for this project.

  • confirmColorBalancing.m
    Plots the chromaticity dragram that shows the effect of color-balancing.
  • correctGamma.m
    Takes in a bmp image and outputs an inverse gamma-corrected tiff image.
  • doGrayWorld.m
    Matlab simulation of a gray world assumption-based color-balancing algorithm.
  • doHybrid.m
    Matlab simulation of my hybrid color-balancing algorithm.
  • doPerfectReflector.m
    Matlab simulation of a perfect reflector assumption-based color-balancing algorithm.
  • evalGamma.m
    Finds the least square exponential fit to gamma data to calculate the camera's gamma coefficient.
  • gatherAllData.m
    A script to automate the processing of all my test images.
  • grayWorld.m
    Analyzes test patterns from the gray world assumption experiment.
  • makegray44.m
    Produces 44 colors that average out to a user-specified gray value.
  • perfectReflector.m
    Analyzes test patterns from the perfect reflector experiment.
  • processLabData.m
    Samples our test patterns to collect useful information.
  • testpattern.m
    Generates a test pattern and displays it on the screen.
  • back