Code covered by the BSD License
-
BoundMirrorEnsure(A)
Ensure mirror boundary condition
-
BoundMirrorExpand(A)
Expand the matrix using mirror boundary condition
-
BoundMirrorShrink(A)
Shrink the matrix to remove the padded mirror boundaries
-
Gaus_filter(I,sigma)
-
gaussianBlur(I,s)
GAUSSIANBLUR blur the image with a gaussian kernel
-
gaussianMask(k,s)
k: the scaling factor
-
imdisp(I)
balance the gray level range to display the image
-
snakedeform(x,y,alpha,beta,ga...
SNAKEDEFORM Deform snake in the given external force field
-
snakeindex(IDX)
SNAKEINDEX Create index for adpative interpolating the snake
-
snakeinit2(delta)
spline curve interpolation
-
snakeinterp(x,y,dmax,dmin)
SNAKEINTERP Interpolate the snake adaptively
-
xconv2(I,G)
-
MyADF.m
-
Mymain_ADF_experiment_1.m
-
Mymain_ADF_experiment_2.m
-
Mymain_ADF_experiment_3.m
-
Mymain_ADF_experiment_4.m
-
Mymain_ADF_experiment_5.m
-
autok.m
-
smooth_diffusion.m
-
View all files
from
Adaptive Diffusion Flow Active Contours for Image Segmentation
by Wang YQ
a novel external force for active contours, called adaptive diffusion flow (ADF), is proposed.
|
| BoundMirrorExpand(A) |
function B = BoundMirrorExpand(A)
% Expand the matrix using mirror boundary condition
%
% for example
%
% A = [
% 1 2 3 11
% 4 5 6 12
% 7 8 9 13
% ]
%
% B = BoundMirrorExpand(A) will yield
%
% 5 4 5 6 12 6
% 2 1 2 3 11 3
% 5 4 5 6 12 6
% 8 7 8 9 13 9
% 5 4 5 6 12 6
%
% Chenyang Xu and Jerry L. Prince, 9/9/1999
% http://iacl.ece.jhu.edu/projects/gvf
[m,n] = size(A);
yi = 2:m+1;
xi = 2:n+1;
B = zeros(m+2,n+2);
B(yi,xi) = A;
B([1 m+2],[1 n+2]) = B([3 m],[3 n]); % mirror corners
B([1 m+2],xi) = B([3 m],xi); % mirror left and right boundary
B(yi,[1 n+2]) = B(yi,[3 n]); % mirror top and bottom boundary
|
|
Contact us