forked from uw-loci/curvelets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixel_indent.m
More file actions
26 lines (23 loc) · 807 Bytes
/
pixel_indent.m
File metadata and controls
26 lines (23 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function Coeff = pixel_indent(C,pixin)
% C is the curvelet coefficient matrix and pixin is the number of pixels to
% indent in on each side
% Written by Jared Doot, Laboratory for Optical and Computational
% Instrumentation
for s = 1:length(C)
for w = 1:length(C{s})
sub=size(C{s}{w});
for ii = 1:sub(2);
C{s}{w}(end-pixin:end,ii)=linspace(C{s}{w}(end-pixin,ii),0,pixin+1);
end
for ii = 1:sub(2);
C{s}{w}(1:1+pixin,ii)=fliplr(linspace(C{s}{w}(1+pixin,ii),0,pixin+1));
end
for ii = 1:sub(1);
C{s}{w}(ii,end-pixin:end)=linspace(C{s}{w}(ii,end-pixin),0,pixin+1);
end
for ii = 1:sub(1);
C{s}{w}(ii,1:1+pixin)=fliplr(linspace(C{s}{w}(ii,1+pixin),0,pixin+1));
end
end
end
Coeff = C;