Skip to content

Commit

Permalink
GDI
Browse files Browse the repository at this point in the history
  • Loading branch information
neeyanthkvk committed Jun 24, 2019
1 parent 0ed96b6 commit 22a0cae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImagePreprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def conv_2d_3d(img):
arr[:,:,2] = img
return arr

folder_path = "./Data/Reg"
folder_path = "./Data/Reg/"
for counter, file_path in enumerate(dcm_files):
metacrop_arr = metacrop(pd.read_file(file_path))
blur_arr = gaussian_blur(metacrop_arr, 15)
Expand All @@ -186,8 +186,8 @@ def conv_2d_3d(img):
#denoise_arr = denoising(clahe_arr)
#flip_edge_arr = flip(canny_arr)
flip_arr = flip(clahe_arr)
np.save(file_path+".npy", clahe_arr)
np.save(file_path+"rev.npy", flip_arr)
np.save(folder_path + file_path.split("/")[-1][:-4]+".npy", clahe_arr)
np.save(folder_path + file_path.split("/")[-1][:-4]+"rev.npy", flip_arr)
#np.save(file_path+"edge.npy", canny_arr)
#np.save(file_path+"edgerev.npy", flip_edge_arr)

0 comments on commit 22a0cae

Please sign in to comment.