Registration-Based Analysis of the Three-Dimensional Shape of the Retinal Nerve Fiber Layer for Detection of Glaucomatous Defects.
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 92 lines · 2.8 KB · no license
- import sys
- import os
- from time import time
- import numpy as np
- import cv2 as cv
- from dipy.io.image import save_nifti
- from skimage.filters import rank
- from skimage.morphology import disk
- # Loading the passed arguments
- # The correct way to run the script would be something in like
- # python create_model_template.py "Z:\Source Files\Automontage Output Files\Python Output Wide Field\OutputFolder" csv_file_path
- # or
- # python create_model_template.py input_dir
- csv_path = None
- input_dir = sys.argv[1]
- if len(sys.argv) > 2:
- csv_path = sys.argv[2]
- if os.path.exists(input_dir) == False:
- raise Exception("The input directory does not exist!")
- if csv_path is None:
- subj_list = os.listdir(input_dir)
- subj_paths = [os.path.join(input_dir, s) for s in subj_list]
- else:
- subj_list = []
- subj_paths = []
- import csv
- with open(csv_path, mode='r') as csvfile:
- csvreader = csv.reader(csvfile)
- for idx, row in enumerate(csvreader):
- if idx == 0:
- continue
- subj_id = row[0]
- image_n = row[1]
- image_id = row[2]
- eye = row[3]
- subj_list.append(subj_id+'_'+image_n+'_'+eye)
- subj_paths.append(os.path.join(input_dir, 'ID_'+subj_id+'_'+image_n, eye, 'AC_'+image_id))
- model_volume = None
- s_idx = 0
- for sub_path, sub_dir in zip(subj_paths, subj_list):
- s_t = time()
- # Note that we are using a fixed shape here
- # The numbers might have to change if applied on a different site
- # As long as there is sufficient depth to normalize the raw data
- # it should be fine.
- volume = []
- # Load and normalize/blur volume
- for i in range(0, 164, 4):
- try:
- image = cv.imread(os.path.join(sub_path, sub_dir+'_NormalizedILM_'+str(i)+'.jpg'), 0)
- except:
- image = cv.imread(os.path.join(sub_path, sub_dir+'_NormalizedILM_'+str(i)+'.png'), 0)
- volume.append(image)
- volume = np.stack(volume, axis=-1)
- for i in range(0, 164, 4):
- image = volume[..., i//4]
- image = rank.mean_percentile(image, footprint=disk(7), p0=.1, p1=.9)
- volume[..., i//4] = image
- if sub_dir.endswith('OD'):
- volume = np.flip(volume, axis=1)
- image = volume / np.max(volume)
- image = np.nan_to_num(image)
- if model_volume is None:
- shape = image.shape
- model_volume = np.zeros(shape+(len(subj_paths),))
- model_volume[..., s_idx] = image
- s_idx += 1
- model = np.zeros(shape)
- for i in range(shape[0]):
- for j in range(shape[1]):
- for k in range(shape[2]):
- line = model_volume[i, j, k]
- try:
- model[i, j, k] = np.median(line[line!=0])
- except:
- model[i, j, k] = 0
- model = np.nan_to_num(model)
- save_nifti('model_volume.nii.gz', model, np.eye(4))
create_model_template.py at commit 66decdb, no license · at the source
Overview
- Luddy School of Informatics, Computing, and Engineering, Indiana University, Bloomington, IN, USA
- School of Optometry, Indiana University, Bloomington, IN, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above.
pjsjongsung/detect_defect
66decdb92aca13d82c5dd6472ec3903c34ff08a2, 30 September 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
3 files
- create_model_template.py
, Python, 92 lines - extract_defect.py, Python, 259 lines
- README.md, Text, 21 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 2 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 3 keywords, 12 MeSH terms, 1 funder, 37 references.
Cite
This paper
Park, J. S., King, B. J., Garyfallidis, E., & Swanson, W. H. (2026). Registration-Based Analysis of the Three-Dimensional Shape of the Retinal Nerve Fiber Layer for Detection of Glaucomatous Defects. Translational vision science & technology, 15(3), 8. https://
BibTeX
@article{park2026registr
author = {Park, Jong Sung and King, Brett J. and Garyfallidis, Eleftherios and Swanson, William H.},
title = {{Registration-Based Analysis of the Three-Dimensional Shape of the Retinal Nerve Fiber Layer for Detection of Glaucomatous Defects}},
journal = {Translational vision science \& technology},
year = {2026},
month = mar,
volume = {15},
number = {3},
pages = {8},
publisher = {Association for Research in Vision and Ophthalmology},
issn = {2164-2591},
doi = {10.1167/
url = {https://
pmid = {41800848},
pmcid = {PMC12988675}
}
RIS
TY - JOUR
AU - Park, Jong Sung
AU - King, Brett J.
AU - Garyfallidis, Eleftherios
AU - Swanson, William H.
TI - Registration-Based Analysis of the Three-Dimensional Shape of the Retinal Nerve Fiber Layer for Detection of Glaucomatous Defects
T2 - Translational vision science & technology
J2 - Transl Vis Sci Technol
PY - 2026
DA - 2026/
VL - 15
IS - 3
SP - 8
SN - 2164-2591
PB - Association for Research in Vision and Ophthalmology
DO - 10.1167/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1167/
"type": "article-journal",
"title": "Registration-Based Analysis of the Three-Dimensional Shape of the Retinal Nerve Fiber Layer for Detection of Glaucomatous Defects",
"container-title": "Translational vision science & technology",
"author": [
{
"family": "Park",
"given": "Jong Sung"
},
{
"family": "King",
"given": "Brett J."
},
{
"family": "Garyfallidis",
"given": "Eleftherios"
},
{
"family": "Swanson",
"given": "William H."
}
],
"container-title-short":
"volume": "15",
"issue": "3",
"page": "8",
"DOI": "10.1167/
"PMID": "41800848",
"PMCID": "PMC12988675",
"ISSN": "2164-2591",
"publisher": "Association for Research in Vision and Ophthalmology",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.3390/diagnostics16172861 [code]
- Microstructural Changes in the Corpus Callosum in Different Forms of Sporadic Age-Related Cerebral Small Vessel Disease.Journal: Diagnostics (Basel, Switzerland)In common: DIPY, OpenCV, scikit-image, 3 other tools, clinical / translational, 1 reference
- [2] doi:10.1007/s00234-026-03993-y [code]
- A comprehensive framework for automated segmentation of perivascular spaces in brain MRI with the nnU-Net.Journal: NeuroradiologyIn common: DIPY, scikit-image, SciPy, 1 other tool, 3 references
- [3] doi:10.1162/imag.a.1276 [code]
- High-resolution whole-brain magnetic resonance spectroscopic imaging in youth at risk for psychosis.Journal: Imaging neuroscience (Cambridge, Mass.)In common: DIPY, scikit-image, SciPy, 2 other tools, clinical / translational, 1 reference
- [4] doi:10.1002/nbm.70353 [code]
- Automated Surface-Based Segmentation of Deep Gray Matter Regions Based on Diffusion Tensor Images Reveals Unique Age Trajectories Over the Healthy Lifespan.Journal: NMR in biomedicineIn common: DIPY, scikit-image, SciPy, 1 other tool, 2 references
- [5] doi:10.1038/s43856-026-01614-6 [code]
- Simulation-based inference at the theoretical limit for fast, robust microstructural MRI with minimal diffusion data.Journal: Communications medicineIn common: DIPY, scikit-image, SciPy, 2 other tools, 1 reference
- [6] doi:10.7554/elife.108408 [code]
- Frequency and laminar profile of feature-specific visual activity revealed by interleaved EEG-fMRI.Journal: eLifeIn common: DIPY, scikit-image, SciPy, 2 other tools, 1 reference
- [7] doi:10.1186/s12916-026-04770-7 [code]
- Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression.Journal: BMC medicineIn common: DIPY, scikit-image, SciPy, 2 other tools, clinical / translational, other condition
- [8] doi:10.1162/imag.a.1366 [code]
- MICAFlow: Fast and robust MRI preprocessing bridging research neuroimaging and clinical practice.Journal: Imaging neuroscience (Cambridge, Mass.)In common: DIPY, SciPy, Matplotlib, 1 other tool, 2 references
- [9] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: OpenCV, scikit-image, SciPy, 2 other tools, 1 reference
- [10] doi:10.1038/s41598-026-39162-7 [code]
- White matter microstructure differences in obstructive sleep apnea severity groups assessed by diffusion tensor metrics and biophysical modeling.Journal: Scientific reportsIn common: DIPY, scikit-image, SciPy, 1 other tool, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:a130dd3ebd00f1cb…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
