function [ image ] = inversHaarTransform( obraz,im )
%COS Summary of this function goes here
% Detailed explanation goes here
if ~isempty(im)
obraz.image_1 = im;
end
[n, m] = size(obraz.image_1);
image_1 = zeros(n*2,m);
for i = 1:m
np = obraz.detale_2(:,i) - obraz.detale_3(:,i)./2;
p = np + obraz.detale_3(:,i);
image_1(1:2:end,i) = np;
image_1(2:2:end,i) = p;
end
image_2 = zeros(n*2,m);
for i= 1:m
np = obraz.image_1(:,i) - obraz.detale_1(:,i)./2;
p = np + obraz.detale_1(:,i);
image_2(1:2:end,i) = np;
image_2(2:2:end,i) = p;
end
image = zeros(n*2,m*2);
for i = 1:2*n
np = image_2(i,:) - image_1(i,:)./2;
p = np + image_1(i,:);
image(i,1:2:end) = np;
image(i,2:2:end) = p;
end
end
% function [ image ] = inversHaarTransform( new_i,d )
% %INVERSHAARTRANSFORM Summary of this function goes here
% % Detailed explanation goes here
% new_i = new_i(1:length(d));
% np = new_i - d./2;
% p = np + d;
% image = [];
% image = zeros(length(p)+length(np),1);
% image(1:2:end) = np;
% image(2:2:end) = p;
% end
%
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}