Skip to content

Commit

Permalink
Fix: README Poster
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailpong committed Oct 19, 2021
1 parent a50d658 commit f88e11d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
An implementation of 3D brain MRI super-resolution method by image gradient-tensor distance based patch clustering

### Conference Abstract
- 3D Brain MRI Super-Resolution with Image Gradient Tensor Feature Clustering [[Poster]](https://anyscreeninc.com/PF/OHBM/2021/OHBM-Educational-Courses/pdf_poster_files/Seongsu_Park60785c7f217ee/Seongsu_Park.pdf)
- 3D Brain MRI Super-Resolution with Image Gradient Tensor Feature Clustering [[Poster]](https://github.com/Snailpong/SR_Tensor/files/7373293/ohbm.pdf)

- Organization for Human Brain Mapping Annual Meeting, 2021


### Journal Paper
- Will be updated..


## Requirments

- Both Linux and Windows are supported.
Expand Down
2 changes: 1 addition & 1 deletion feature_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_invarient_set(l1, l2, l3):
l3 = math.sqrt(l3)
trace = l1 + l2 + l3
mean_la = trace / 3
fa = ((l1 - mean_la)**2 + (l2 - mean_la)**2 + (l3 - mean_la)**2)/ (l1**2 + l2**2 + l3**2)
fa = math.sqrt(((l1 - mean_la)**2 + (l2 - mean_la)**2 + (l3 - mean_la)**2) / (l1**2 + l2**2 + l3**2) / 2.)
mode = (-l1-l2+2*l3)*(2*l1-l2-l3)*(-l1+2*l2-l3)/2/pow(l1**2+l2**2+l3**2-l1*l2-l1*l3-l2*l3, 1.5)
return trace, fa, mode

Expand Down
6 changes: 3 additions & 3 deletions preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@


def get_array_data(file, training):
raw_image = nib.load(file).get_fdata()
raw_array = np.array(raw_array, dtype=np.float32)
raw_image = nib.load(file)
raw_array = np.array(raw_image.get_fdata(), dtype=np.float32)
raw_header = raw_image.header.copy()

clipped_image = clip_image(raw_image)
clipped_image = clip_image(raw_array)
im = mod_crop(clipped_image, C.R)
slice_area = crop_slice(im, C.PATCH_HALF, C.R)

Expand Down

0 comments on commit f88e11d

Please sign in to comment.