Commit d79f7ab8 authored by actb's avatar actb
parents 33221d0d d32bd385
......@@ -206,7 +206,17 @@ for n=1:num
Cells=[Cells newCell];
end
fgRatio=0.05;
% intensity threshold for parasites
if segParams.isPhase>0
% bright interior phase
fgRatio=0.05; % intensity model needed to keep phase parasites down
elseif segParams.isPhase<0
% dark interior phase
fgRatio=0.05; % less intensity driven
else
% not phase
fgRatio=0.05; % less intensity driven
end
% set features for parasite test
for i=1:length(Cells)
if is3D(bwIntensity)
......
......@@ -73,7 +73,7 @@ end
function bwIntensity=thresholdPhaseIntensity(im,alpha,min_radius_pixels,min_area_pixels)
% qThresh=prctile(im(:),[1,99]);
% qThresh=mean(im(:))-3*std(im(:));
qThresh=multithresh(im,2);
% use dark boundaries. seems to work for both dark and bright interior...
qThresh=multithresh(im,2);
bwIntensity=logical(im<qThresh(1));
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment