Web.pdx.edu



Program InventoryMatlab:makeimage.mCreates an image based on bayer data from the imported data file (ex. raw_date_mk_p9.mat). Import and load ‘data’ variable then run on individual images. Used in conjunction with takeimage.py or individual images from data sets to determine the voltage at which an image saturates. Creates four images (clockwise): composite, red, green, blue.statistics.mCollects and organizes all data, using five sets of data from each color. Sorts into varriables B, G and R containing color data organized by column into k, exposure speed, average data for each exposure speed, average standard deviation for each exposure speed. Used to create various graphs, such as expected-actual vs. actual data, standard deviation graphs, etc. See comments in program for current settings. Rube programs must be run for each individual data set for each color and in their dated folder.rube_blue.m (etc.)Rube programs create organized data sets for each set of data within each LED type, to be used later for statistics.m or immediately in graphingwpolyfit.m. Create an array with data for each corresponding with k and exposure speed values based on the output.txt files. The outputted data from each run appears in the base folder, and needs to be added to each dated folder for each run before running statistics.m. Change the directory and date at the top of the program for each data set. Before running rube on any color set, change the selection of pixels for uniformity based on a makeimage.m rendering. Outputted file is dated and labeled with the color. Will not run correctly if an older output file with data from the program is in the folder—must be moved or deleted prior to running again.graphingwpolyfit.mImmediately graphs data based on a rube program. Rube must be run immediately before this program, or varriables must be loaded. Creates graphs of actual data vs. polyfit polyval fits and a graph of exposure speed vs. theoretical-actual.standarddevgraph.mGraphs the standard deviations of all data sets based on the statistics.m created R, G and B arrays. Each plot contains the different pixel counts of either a red, blue or green LED color.Python:takeimage.pyUseful in setting up position of LED and camera. Run program with GPIO LED running, takes an image with the surrounding setup of an actual data run at any exposure speed. After setup, the program will prompt you to enter the k value of the desired image. To have the image set saturate around the end of p9.py, use k=97 ish. Program should output into main folder a dated image with p9.mat suffix (regardless of k value).sudo python takeimage.pyp1.py (etc.)Sub programs that take actual data. Each have a range of k values. K values are repeated at the end and beginning (in most cases) of either set. 117 images taken total (not including output files). Used in the batch file rawimagedata.sh.Batch:rawimagedata.shUse for running up to 5 data sets uninterrupted. Takes about 6.5 hours to fully run, ensure that putty program doesn’t sleep during duration. Full data set of 5 runs takes 45 minutes to download from pi. Runs forwards and backwards to prevent inaccuracies due to temperature changes in the final averages.Before running, modify the file to save to the correct folders, create dated folders corresponding to the names, and drag p0.py through p9.py into each folder individually. Data will save to these folders.sudo sh rawimagedata.shNote: must include a space after each line in program ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download