Skip to content

Commit

Permalink
pointing out what 60X and 100X mean, viewer tells user to segment ima…
Browse files Browse the repository at this point in the history
…ges if it is opened in a folder with images
  • Loading branch information
stellastyl committed Jul 7, 2016
1 parent 5b2b507 commit 9f0a411
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 36 deletions.
17 changes: 7 additions & 10 deletions batch/processExp.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,15 @@ function processExp( dirname )
% Using correct resolution ensures correct pixel size and segmentation constants
% if you do not know which constants to use you can run
% tryDifferentConstants(dirname) with a phase image to choose.
% 60X indicates 100nm/pix and 100X indicates 60nm/pix

% for E. coli we mainly use :
% '60XEc' : loadConstants 60X Ecoli
% '100XEc': loadConstants 100X Ecoli

% other possible constants are :
% '100XPa' : 100X Pseudemonas
% '60XPa' : 60X Pseudemonas
%' 60XA' : 60X E.coli Aska
% '60XEcLB' : E.coli LB
% '60XPaM','60XPaM2' : for 60X, Pseudomonas Minimal
% '60XBthai' : 60X Thailandensis
% '60XEc' : loadConstants 60X Ecoli - 100 nm/pix
% '100XEc': loadConstants 100X Ecoli - 60 nm/pix

% To see the possible constants type :
%[~, list] = getConstantsList;
% list'

res = '60XEcLB';

Expand Down
Binary file modified batch/superSeggerGui.fig
Binary file not shown.
40 changes: 20 additions & 20 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ Setting the Path

In order for Matlab to be able to find the different pieces of the code the SuperSegger folder needs to be in your path. In the Home tab, in the Environment section, click Set Path. The Set Path dialog box appears. Click add folder with subfolders and add the SuperSegger folder.


Software Requirements
=====================

In order to use SuperSegger you need to have the MATLAB software with the following toolboxes:
Image Processing Toolbox
Neural Network Toolbox
Statistics and Machine Learning Toolbox
Global Optimization Toolbox
Parallel Computing Toolbox (not necessary)


Main functions you may need
===========================

Expand All @@ -26,21 +38,20 @@ trainingGui : to train your own constants.
Non - GUI :
ProcessExp : set your parameters and run BatchSuperSeggerOpti. (You can use this instead of superSeggerGui)


You can download a sample dataset and a bootcamp folder from our website to try the software.


Segmentation Parameters
=======================
Some information about the parameters currently provided with the software :
100XEc : Trained on E.coli, 100X camera resolution.
100XPa : Trained on P.aeruginosa, 100X camera resolution.
60XEcAB1157 : Trained on E.coli AB1157 on M9 pads, 60X camera resolution.
60XEcM9 : Trained on E.coli on M9 pads, 60X camera resolution.
60XEc : Trained on E.coli on LB and M9 pads, 60X camera resolution.
60XEcLB : Trained on E.coli on LB pads, 60X camera resolution.
60XBay : Trained on A.baylyi on LB pads, 60X camera resolution.
60XPa : Trained on P.aeruginosa, 60X camera resolution.
100XEc : Trained on E.coli, 60nm/pix .
100XPa : Trained on P.aeruginosa, 60nm/pix.
60XEcAB1157 : Trained on E.coli AB1157 on M9 pads, 100nm/pix.
60XEcM9 : Trained on E.coli on M9 pads, 100nm/pix.
60XEc : Trained on E.coli on LB and M9 pads, 100nm/pix.
60XEcLB : Trained on E.coli on LB pads, 100nm/pix.
60XBay : Trained on A.baylyi on LB pads, 100nm/pix.
60XPa : Trained on P.aeruginosa, 100nm/pix.
60XCaulob : Trained on snapshots of C.crescentus, 130 nm/pixel.


Expand Down Expand Up @@ -77,15 +88,4 @@ Collecting Images
SuperSegger is unable to correctly segment images where the cell outlines are not clear to the user by eye. Care should still be taken in collecting the best possible focused phase images. We recommend that users crop out-of-focus regions of the image before the segmentation process since these parts of the image are unlikely to yield usable data. superSeggerGui provides a function to crop your images.


Software Requirements
=====================

In order to use SuperSegger you need to have the MATLAB software with the following toolboxes:
Image Processing Toolbox
Neural Network Toolbox
Statistics and Machine Learning Toolbox
Global Optimization Toolbox
Parallel Computing Toolbox (not necessary)



8 changes: 4 additions & 4 deletions settings/loadConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
% default values for numbers
resFlag = [];
if isa(res,'double' ) && res == 60
res = '60XEcM9';
res = '60XEc';
elseif isa(res,'double' ) && res == 100
res = '100XEc';
end
Expand Down Expand Up @@ -115,10 +115,10 @@
CONST.trackLoci.gate = [];


% pixelsize
if all(ismember('100X',res))
% pixelsize in um
if all(ismember('100X',res)) % 60 nm per pixel
CONST.getLocusTracks.PixelSize = 6/60;
elseif all(ismember('60X',res))
elseif all(ismember('60X',res)) % 100 nm per pixel
CONST.getLocusTracks.PixelSize = 6/100;
else
CONST.getLocusTracks.PixelSize = [];
Expand Down
4 changes: 2 additions & 2 deletions viz/showSeggerImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ function doFrameMerge( x_, y_ )


redChannel = double(lyse_im)+0.5*(0.7*(map_err_rev)+1.1*(map_ehist_in_frame)+.7*(map_stat0_2_Outline+map_stat0_1_Outline +map_stat0_0_Outline));
greenChannel = 0.3*(map_no_err) - 0.5*(map_stat0_1)+0.2*(map_stat0_0);
blueChannel = 0.7*(map_stat0_2)+ 0.5*(map_stat0_1)+0.3*(map_stat0_0);
greenChannel = 0.3*(map_no_err) - 0.2*(map_stat0_1)+0.2*(map_stat0_0);
blueChannel = 0.7*(map_stat0_2)+ 0.6*(map_stat0_1)+0.3*(map_stat0_0);

reg_color = uint8( 255*cat(3, redChannel,greenChannel,blueChannel));

Expand Down

0 comments on commit 9f0a411

Please sign in to comment.