Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Clean.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
% Noise filters

% use 6th order butterworth filter to remove noise
f_c = 0.6; % cutoff frequency
I2 = butterworth_noise_filter(I2,f_c);
% f_c = 0.9; % cutoff frequency
% I2 = butterworth_noise_filter(I2,f_c);
I3 = gpuArray(I2);
% % increase contrast using linear function
% threshold = 2e3;
Expand All @@ -31,7 +31,7 @@
I3 = imadjust(I3,[t_min/t_range;t_max/t_range],[0;1]);

% create binary
I_bin = I3 > t_min;
I_bin = I3 > 1800;


% Detect edges and fill to create binary image
Expand All @@ -52,7 +52,7 @@
[stats] = process_image(I_bin, I3);

% Filter particles less than 0.5px
p_min = 0.5; % px
p_min = 0.25; % px
p_max = 20; % px
[stats] = filter_pixel_size(stats, p_min, p_max);

Expand Down