https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 86702f429339e0987b82a4b049dd54924faa3432 authored by alex@thinkpad on 08 October 2017, 15:00:49 UTC
Closing qemu head (tests broken)
Tip revision: 86702f4
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