SectorAnalysisToolbox Documentation

From BanghamLab
Revision as of 15:29, 9 March 2012 by AndrewBangham (talk | contribs)
Jump to navigation Jump to search

Go back to software

The models shown in these tutorials illustrate features of the SectorAnalysisToolbox software. Viewing these pages. Some versions of Firefox and Explorer do not create satisfactory prints even though you can view the pages with no problems. Chrome does appear to produce good printouts.

Using the SectorAnalysisToolbox ' to analyse the shapes of cell clones'

How to use the tutorial. First download and install the SectorAnalysisToolbox . A zip file containing the project (Leaf growth) should be loaded. Then, from Matlab, change directory into the project and launch the SectorAnalysisToolbox

1 Creating a new project

To create a new project, click the New Project button and name your project when prompted. The toolbox automatically gives each project the prefix ‘SAP_’ (Sector Analysis Project). The project directory structure will be saved to disk and contains the folders Original, Processed and Staged. Copy the sample antirrhinum images (P9F17P1I.JPG, P9F17P2I.JPG, P10F17P1I.JPG) into the Staged dir.

Once a project has been created, you can return to that project either by selecting that project in the ‘Current Directory’ line at the top of the Matlab window, or by opening the toolbox and using the Browse button to select your project.

2 Segmenting The clones

We have created a new project and populated it with some sample antirrhinum petal images. We would now like to automatically segment the purple sectors in these images.

Click the button Segment Images. The SAT will look in the Staged directory for the *.jpg imaged to segment. A dialog box will prompt the user to select the images to segment. Select the images you would like to segment. Choose the appropriate algorithm from the pop-up window – for the petals this should be AIH (AI Hanna’s algorithm – should be used generally) (AG is A-G Rolland-Lagan’s algorithm which was used in analysis of the dorsal lobe ref). For Arabidopsis GFP sector images use amelia_petal_sectors.m. A task bar indicates progress, and which image is being processed. When an image has been segmented, the image file in the ‘Staged’ folder is replaced by a folder with containing a matlab file called ‘edge_xy’ (the organ outline coordinates), a .jpg snapshot of the original image, a .tif black and white (binary) image with the suffix ‘_organ’ (corresponding to the petal/leaf outline), and a .tif binary image with the suffix ‘_sectors’ (corresponding to the sectors).

3 Editing the Segmented clones and organ edges

Click Sector Editor to open the Sector Editor Tool (see image to the right). The first image from the ‘Staged’ folder should be displayed in this window. The outline of the petal section is marked by 50 edge points joined by a red line. Edge information are provided by the edge_xy.mat file and filename_organ.tif. The latter shows the organ shape as a binary (black and white) image. If this shape is not accurate due to, e.g. an air bubble, the egde points will not follow the organ shape exactly. If you find that most points are too far off consider using a differnt segmentation algorithm. The file filename_sectors.tif is openend (the segemented out sectors) to superimpose the sectors on the image in blue. The boxes Show Sectors and Show Edge can be ticked or made blank to show or hide the edge outline and the sector pattern found by the computer. Again, if sectors are not recignised properly, change the segementation algorithm. The tools at the top of the window can be used to zoom into, pan around and rotate the image (standard symbols are used for each function). Edges can be moved using the ‘Move Edge Points’ button. To smooth the edges, click on “Def. primary points” and select at least 2 primaries (for example tip and base: these must correspond to the same number and the same morphological feature for each image). Then click “smooth pts”, all the edge points will be smoothed around the 2 fixed primaries (these will not move). It is important that the edges are consistent from one image to another as they will be used to calculate the mean shape and the warping of the sectors. When the edge points are judged to capture the petal outline satisfactorily, the same button (now named ‘Save New Edge’) should be clicked to save the edited outline under edge_xy.may. The primary points are saved under primary_landmarks.mat.

4 Sector and Organ warping

5 Viewing Results and generating useful Statistics