Giter Site home page Giter Site logo

lxmwust / choroidsegmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javimazzaf/choroidsegmentation

0.0 1.0 0.0 451 KB

Open-source algorithm for automatic choroid segmentation of OCT volume reconstructions. This software was developed by the HMR Biophotonics Lab, Hospital Maisonneuve-Rosemont, Montreal, Quebec, Canada (biophotonics.ca). It is open source and it was released under the GNU GENERAL PUBLIC LICENSE v3. It is only for research purposes. The algorithm is described in the paper "Open-source algorithm for automatic choroid segmentation of OCT volume reconstructions", Javier Mazzaferri, Luke Beaton, Gisèle Hounye, Diane N. Sayah, and Santiago Costantino, in press in Scientific Reports Jan 2017.

Home Page: http://www.biophotonics.ca

License: GNU General Public License v3.0

MATLAB 100.00%

choroidsegmentation's Introduction

Open-source algorithm for automatic choroid segmentation of OCT volume reconstructions
--------------------------------------------------------------------------------------

In this file you will find the description of a piece of software for the
automatic choroid segmentation of the OCT volume scans. This is the matlab
implementation of the algorith described in detail in the paper:

Open-source algorithm for automatic choroid segmentation of OCT volume reconstructions
Javier Mazzaferri, Luke Beaton, Gisèle Hounye, Diane N. Sayah, and Santiago Costantino, 
Scientific Reports 7. Article Number 42112, (2017). doi:10.1038/srep42112

Directory structure
-------------------

The software is organized in a set of functions (See section <Processing>) 
that have to be executed in a predefined order. The functions take 
as parameter a cell-array of strings, each one containing the absolute path
to the base directory (VOLUMEDIR) of a particular OCT volume scan. 

At start, each VOLUMEDIR must be populated with a directory labeled 
"RawImages", with the list of images containing all Bscans of the OCT volume.
An image of the fundus can be stored directly under VOLUMEDIR.

During the process the information is organized under this directory as in 
the following structure:

VOLUMEDIR/
    DataFiles: Intermediate data generated in the process
    ProcessedImages: Sorted set of source images in png format for each Bscan
    RawImages: Contains the raw Bscans (and the .xml file, for Spectralis *)   
    Results: The results of the segmentation in different formats

* If your data does not come from a Heilderberg Spectralis OCT, you will 
need to set manually some parameters. See the begining of the function 
prepareVolumeGeneric.    

Processing
----------

The user needs to set writing permission on VOLUMEDIR.

To build choroid maps, call the following functions in this order:

1 - prepareVolumeGeneric (or prepareVolumeSpectralis)
2 - trimDetails
3 - mapPseudoRegistration
4 - retinaLayersSegmentation
5 - choroidMap
6 - choroidMovie

Each function takes as parameters a cell array of strings, each containing 
the path of one experiment data. For example, to process data on
directories VOL1, VOL2, and VOL3, located under the /home directory execute
the following commands on the matlab command window:

>> addpath(genpath('CODEDIR'))
>> dataDirs = {'/home/VOL1','/home/VOL2','/home/VOL3'};
>> prepareVolumeGeneric(dataDirs);
>> trimDetails(dataDirs);
>> mapPseudoRegistration(dataDirs);
>> retinaLayersSegmentation(dataDirs);
>> choroidMap(dataDirs);
>> choroidMovie(dataDirs);

CODEDIR is the path to this matlab code.

Description of functions
------------------------
prepareVolumeGeneric: Generates the file imageList.mat containing 
metainformation of each B-scan. Some parameters has to be set manually if 
the OCT volume data does not come from a Heidelberg Spectralis OCT. 
If you hava data generated with a Heidelberg Spectralis OCT, export all
Bscans and the .xml file the RawImages folder, and run the function 
prepareVolumeSpectralis, instead.

trimDetails: This function is the only intective function. It allows the 
user to set the starting and ending columns withing the Bscans, where to 
start and end looking for the choroid. This is done to avoid parts of 
bscans where the choroid is not clearly visible.

mapPseudoRegistration: This function rearrages the Bscans to ease processing.

retinaLayersSegmentation: This does the segmentation of the retinal layers 
and the choroid. It stores the information in segmentationResults.mat.

choroidMap: creates the 2D map of the choroid. Stores the result in 
ChoroidMap.mat file, and generates the figure ChoroidMap.pdf. 

choroidMovie: creates an animated gif file, showing a sequence of all the 
segmented Bscans, along with the corresponding line in the 2D map.

The script loadParameters.m set several parameteres of the process.
   





choroidsegmentation's People

Contributors

javimazzaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.