Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (27 sloc) 1.25 KB
# - IVE: flip XZ
# - IVE: project
# - python: calc. Z offset per-wavelength
# - python: apply Z offsets -> new file, ~same size as 1st
# - IVE: find mid-section (or octave?)
# note on midsection: can be done by dividing max-intensity projection by the entire stack, then summing and looking for the PEAK intensity. Why not min intensity? Since the dark rim around the mid-section results in a bright rim when it's the denominator, and the sum of that is high. Try with multiple datasets before relying on it...
# - THEN the current program applies - outputs a new file for each nucleus.
# - on each new file (octave):
# - - re-calc perimeter with spacing=1
# - - calculate EDM for binary image
# - - sort EDM into unique bins
# - - get avg. intensity within each bin for each channel.
Z=`/opt/bin/ $1 | tail -n 1`;
echo $Z;
THR=`echo $Z|cut -d " " -f 2`;
Z=`echo $Z|cut -d " " -f 1`;
Threshold $datafilename $datafilename.thr -z1=$Z -w1=0 -not_below=$THR -result=mask;
2DObjFinder $datafilename.thr -poly=$polyfilename -border=$BORDER -spacing=4 \
-minpts=300 -exclude_edge -outer_only
perl /opt/bin/ $datafilename $polyfilename $BORDER;