Skip to content

zxh2135645/LST

Repository files navigation

LST

Determination of the optimal initial threshold. By running this code, csv files will be geneted with threshold for the computation of binary lesion maps from 0.05 to 1.00 with increment of 0.05 The outputs are at /data/henry1/tristan/LST/opt_thresh_results/

The csv file contains columns for the folder of the reference images, the name of FLAIR images, the initial threshold (kappa), the corresponding Dice coefficients as well as values for sensitivity and specificity.

Please go to the directory where you pulled this repository. Then run the following code in the terminal:

python doit_arg.py [-iter]

This is now specifically made for testing five mses. The outputs are at /data/henry7/PBR/subjects/LST/opt_thresh_results/test_subjects

Finding Centroids

lga_label.py tries to get centroids of both:

  1. lst_edits and map it to lga lesion. By doing this, False Negative (FN) and True Positive (TP1) are calculated.
  2. lga lesion mapping it back to lst_edits. By doing this, False Positive (FP) and True Positive (TP2) are calculated

So far, five subjects have been done with this code, and two json files (centroid_lga.json and centroid_lst_edit.json) are generated in the directory:

/data/henry7/PBR/subjects//lst/lga/ms*/

The next step will do dice coefficient for these subjects:

Dice Coeffient = 2TP / (2TP + FP + FN)

which I think can be converted in this case to:

Dice Coeffient = (TP1 + TP2) / (TP1 + TP2 + FP + FN)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published