Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Sep 16, 2019
2 parents 3e42e4a + ae917f8 commit 3e59f04
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/architecture/fill_bank_spec.m
Expand Up @@ -10,7 +10,7 @@
strcmp(func2str(opt.wavelet_handle), 'finitediff_1d')
spec.J = opt.J;
else
spec.J = enforce(opt, 'J', log2(spec.T));
spec.J = enforce(opt, 'J', round(log2(spec.T)));
end
spec.max_Q = default(opt, 'max_Q', default(opt, 'nFilters_per_octave', 1));
spec.max_scale = default(opt, 'max_scale', spec.T);
Expand Down
8 changes: 8 additions & 0 deletions lib/operators/firstborn_blur.m
Expand Up @@ -86,6 +86,14 @@
%% S. Spiraled
data = subsasgn(zeros(output_size),subsasgn_structure, ...
ifft_multiply(data_ft,phi,log2_resampling,colons,subscripts));

totalScale = spiraled_size(2)*spiraled_size(3);
if ~(size(data,2)==totalScale)
diffScale = size(data,2) - totalScale;
data(:,1:diffScale/2)=[];
data(:,end-diffScale/2+1:end)=[];
end

data = reshape(data,spiraled_size);
end
end
8 changes: 8 additions & 0 deletions lib/operators/firstborn_scatter.m
Expand Up @@ -138,6 +138,14 @@
ifft_multiply(data_ft,psi, ...
log2_resampling,colons,subscripts));
end

totalScale = spiraled_sizes{gamma_index}(2)*spiraled_sizes{gamma_index}(3);
if ~(size(y,2)==totalScale)
diffScale = size(y,2) - totalScale;
y(:,1:diffScale/2,:)=[];
y(:,end-diffScale/2+1:end,:)=[];
end

data{gamma_index} = reshape(y,spiraled_sizes{gamma_index});
end
return
Expand Down

0 comments on commit 3e59f04

Please sign in to comment.