-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from drombas/doc_api
DOC: add detailed API
- Loading branch information
Showing
32 changed files
with
778 additions
and
985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,63 @@ | ||
function att = compute_attenuation(bscan, scale_z, method, seg) | ||
%COMPUTE_ATTENUATION Compute voxelwise attenuation coefficient. | ||
% Compute voxelwise attenuation coefficient based on [1] or [3]. | ||
% | ||
% att = compute_attenuation(bscan, header) | ||
% Compute voxelwise depth-resolved attenuation based on [1] or [3]. | ||
% Input arguments | ||
% --------------- | ||
% * **bscan**: matrix with B-scans of dimensions n_axial x n_ascan x n_bscan. If 2D matrix it will be interpreted as a single B-scan. | ||
% | ||
% Input arguments: | ||
% | ||
% 'bscan' Matrix with B-scans of dimensions n_axial x n_ascan x | ||
% n_bscan. If 2D matrix it will be interpreted as a | ||
% single B-scan. | ||
% * **scale_z**: axial (depth) resolution in mm. | ||
% | ||
% 'scale_z' Axial resolution in mm. | ||
% * **method**: method used to compute the attenuation coefficient. | ||
% | ||
% 'method' Method used to compute the attenuation coefficient. | ||
% Options: 'vermeer_2014', 'vanderschoot_2012' | ||
% Default: 'vermeer_2014' | ||
% - 'vermeer_2014' (default) | ||
% - 'vanderschoot_2012' | ||
% | ||
% 'seg' Struct with segmentation data used with the | ||
% 'vanderschoot_2012' method [3] | ||
% * **seg**: struct with segmentation data used with the 'vanderschoot_2012' method [3] | ||
% | ||
% | ||
% Output arguments: | ||
% | ||
% 'att' Attenuation coefficient per voxel. | ||
% Output arguments | ||
% ---------------- | ||
% * **att**: attenuation coefficient per voxel. | ||
% | ||
% | ||
% Notes | ||
% ----- | ||
% The precise measurement of tissue attenuation coefficient is difficult | ||
% and still a research topic. This function provides an approximate | ||
% value based on assumptions on optical tissue properties [1]. You may | ||
% want to read [2] to check how this method compares to others. | ||
% | ||
% The method in [3] is currently only supported for RNFL and returns a | ||
% total attenuation value for each a-scan instead of a 3D matrix. | ||
% | ||
% For the methods to work it is important to use raw voxel intensity. For | ||
% instance reading .vol files with the 'raw_pixel' flag. | ||
% | ||
% | ||
% References | ||
% ---------- | ||
% [1] Vermeer, Depth-resolved model-based reconstruction of attenuation | ||
% coefficients in optical coherence tomography, Biomedical Optics Express | ||
% 2014, https://doi.org/10.1364/BOE.5.000322 | ||
% | ||
% [2] Chang, Review of methods and applications of attenuation | ||
% coefficient measurements with optical coherence tomography, Journal of | ||
% Biomedical Optics, 2019, https://doi.org/10.1117/1.JBO.24.9.090901 | ||
% | ||
% [3] van der Schoot, The Effect of Glaucoma on the Optical Attenuation | ||
% Coefficient of the Retinal Nerve Fiber Layer in Spectral Domain Optical | ||
% Coherence Tomography Images, IOVS, 2012, | ||
% https://doi.org/10.1167/iovs.11-8436 | ||
% Notes | ||
% ----- | ||
% The precise measurement of tissue attenuation coefficient is difficult and | ||
% and still a research topic. This function provides an approximate value | ||
% based on assumptions on optical tissue properties [1]. You may want to | ||
% read [2] to check how this method compares to others. | ||
% | ||
% The method in [3] is currently only supported for RNFL and returns a | ||
% total attenuation value for each a-scan instead of a 3D matrix. | ||
% | ||
% For the methods to work it is important to use raw voxel intensity. For | ||
% instance reading .vol files with the 'raw_pixel' flag. | ||
% | ||
% | ||
% References | ||
% ---------- | ||
% [1] Vermeer, Depth-resolved model-based reconstruction of attenuation | ||
% coefficients in optical coherence tomography, Biomedical Optics Express | ||
% 2014, https://doi.org/10.1364/BOE.5.000322 | ||
% | ||
% [2] Chang, Review of methods and applications of attenuation | ||
% coefficient measurements with optical coherence tomography, Journal of | ||
% Biomedical Optics, 2019, https://doi.org/10.1117/1.JBO.24.9.090901 | ||
% | ||
% [3] van der Schoot, The Effect of Glaucoma on the Optical Attenuation | ||
% Coefficient of the Retinal Nerve Fiber Layer in Spectral Domain Optical | ||
% Coherence Tomography Images, IOVS, 2012, | ||
% https://doi.org/10.1167/iovs.11-8436 | ||
% | ||
% | ||
% | ||
% Example | ||
% --------- | ||
% % Load a .vol file and compute the attenuation coefficient | ||
% Example | ||
% ------- | ||
% Load a .vol file and compute the attenuation coefficient | ||
% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
% .. code-block:: matlab | ||
% | ||
% [header,~,bscan] = read_vol('my_file.vol','raw_pixel'); | ||
% att = compute_attenuation(bscan, header.scale_z); | ||
% | ||
% | ||
% | ||
% David Romero-Bascones, [email protected] | ||
% Biomedical Engineering Department, Mondragon Unibertsitatea, 2022 | ||
|
||
if nargin == 2 | ||
method = 'vermeer_2014'; | ||
|
Oops, something went wrong.