https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 5da33cfc142292bc7f989d77f9e5a30af6e929c0 authored by a1ex on 31 January 2014, 16:49:17 UTC
Close branch 1100D_dual_iso
Tip revision: 5da33cf
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