https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 3eba32d7012ed2b8e615da81894850bc7d0ee3ea authored by Daniel Fort on 12 September 2017, 03:30:26 UTC
Closed branch unified_silent_module_fix
Tip revision: 3eba32d
defish-lut.m
#!/usr/bin/env octave3.2

prefix = argv(){1};

xy = double(imread([prefix ".tif"]));

f = fopen([prefix ".lut"], "wb")
for i = 1:480/2
	for j = 1:720/2
		fwrite(f, [xy(i,j), xy(481-i,721-j)], 'uint8');
	end
end
fclose(f)
back to top