https://github.com/Tanentzapf-Lab/ActinOrganization_CellMorphology_Haage
Tip revision: 9cb24da5652e47684e73fe36b37e88b1956f0a6b authored by Tanentzapf-Lab on 27 July 2021, 19:45:34 UTC
Existing Documentation and Sample Files Uploaded
Existing Documentation and Sample Files Uploaded
Tip revision: 9cb24da
diff_gauss.m
function dogImg=diff_gauss(img)
%img=imadjust(img);
% if not high res
sigma1 = 1;
sigma2 = 10;
hsize1 = [2,2];
hsize2 = [20,20];
% if high res
% sigma1 = 4;
% sigma2 = 15;
%
% hsize1 = [14, 14];
% hsize2 = [40,40];
h1 = fspecial('gaussian', hsize1, sigma1);
h2 = fspecial('gaussian', hsize2, sigma2);
gauss1 = imfilter(img,h1,'replicate');
gauss2 = imfilter(img,h2,'replicate');
dogImg = gauss1 - gauss2;