Skip to content

Commit

Permalink
actually implement demosaicing
Browse files Browse the repository at this point in the history
  • Loading branch information
dllu committed Mar 23, 2018
1 parent 7abbcd4 commit 6863367
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 122 deletions.
3 changes: 2 additions & 1 deletion matlab/previewbin.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
close all;
a = [];
png = [];
for ind=[34,40,135,235,30,100,110,212,51,1,2,3]
for ind=[29]
f = fopen(sprintf([s, '.bin'], ind));
%ff = imread(sprintf([s, '.png'], ind));
%png = cat(1, png, ff);
Expand All @@ -15,6 +15,7 @@
gr = aa(1:2:end,1:2:end);
g = (gb + gr) / 2;
r = aa(1:2:end,2:2:end);
%{
%imshow(aa' / max(aa(:)));
rgb = cat(3, r', g', b');
Expand Down

0 comments on commit 6863367

Please sign in to comment.