https://github.com/fangfufu/mondrian_map_generator
https://github.com/fangfufu/mondrian_map_generator
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fangfufu/mondrian_map_generator
- Owner: fangfufu
- License: gpl-3.0
- Archived: true
- Created: 2016-01-05T12:39:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-05T16:19:48.000Z (almost 10 years ago)
- Last Synced: 2025-01-26T17:47:15.653Z (9 months ago)
- Language: Matlab
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mondrian_map_generator
This is useful for generating test images for shadow removal algorithms%GEN_MONDRIAN Generate a mondrian image, illuminated with two spectra
% Parameter list:
% size_y - the number of rows that the resulting matrix has
% size_x - the number of columns that the resulting matrix has
% region_count - the number of rectangle to draw (they might overlap)
% bright_spectra - the spectra for the lit region
% shadow_spectra - the spectra for the shadowed region
% reflectance - the material's reflectance distribution
% device_respone - the response curve of the imaging device
%
% Variable dimensions:
% bright_spectra and shadow spectra:
% n-vector, where
% - n is readings at individual bands,
% device_respones:
% n x 3 matrices, where
% - n is readings at individual bands
% reflectance:
% n x o matrices, where
% - n is readings at individual bands
% - o is the number of materials.
%You will need to import the spectral data, camera response curve, and reflectance
from:
- http://www.cs.sfu.ca/~colour/data/colour_constancy_synthetic_test_data/index.html
- http://kobus.ca/research/data/colour_constancy_synthetic_test_data/You can use ''grep -v \# $FILENAME | grep .'' to remove comments