Skip to content
Snippets Groups Projects
Commit dcc14821 authored by vand's avatar vand
Browse files

Changed paths in examples

parent c3e9b49c
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -14,7 +14,7 @@ import st2d ...@@ -14,7 +14,7 @@ import st2d
#%% ST AND ORIENTATIONS - VISUALIZATION OPTIONS #%% ST AND ORIENTATIONS - VISUALIZATION OPTIONS
plt.close('all') plt.close('all')
filename = '../data2D/drawn_fibres_B.png'; filename = 'example_data_2D/drawn_fibres_B.png';
sigma = 0.5 sigma = 0.5
rho = 2 rho = 2
...@@ -42,7 +42,7 @@ plt.show() ...@@ -42,7 +42,7 @@ plt.show()
#%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS #%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS
filename = '../data2D/10X.png'; filename = 'example_data_2D/10X.png';
sigma = 0.5 sigma = 0.5
rho = 15 rho = 15
N = 180 # number of angle bins for orientation histogram N = 180 # number of angle bins for orientation histogram
...@@ -81,7 +81,7 @@ plt.show() ...@@ -81,7 +81,7 @@ plt.show()
#%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS #%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS
filename = '../data2D/drawn_field.png'; filename = 'example_data_2D/drawn_field.png';
sigma = 0.5 sigma = 0.5
rho = 15 rho = 15
N = 90 # number of angle bins for orientation histogram N = 90 # number of angle bins for orientation histogram
...@@ -131,7 +131,7 @@ plt.show() ...@@ -131,7 +131,7 @@ plt.show()
#%% YET ANOTHER EXAMPLE #%% YET ANOTHER EXAMPLE
filename = '../data2D/OCT_im_org.png'; filename = 'example_data_2D/OCT_im_org.png';
sigma = 0.5 sigma = 0.5
rho = 5 rho = 5
N = 180 # number of angle bins for orientation histogram N = 180 # number of angle bins for orientation histogram
...@@ -169,7 +169,7 @@ plt.show() ...@@ -169,7 +169,7 @@ plt.show()
#%% INVESTIGATING THE EFFECT OF RHO #%% INVESTIGATING THE EFFECT OF RHO
filename = '../data2D/short_fibres.png' filename = 'example_data_2D/short_fibres.png'
image = skimage.io.imread(filename) image = skimage.io.imread(filename)
image = np.mean(image[:,:,0:3],axis=2) image = np.mean(image[:,:,0:3],axis=2)
image -= np.min(image) image -= np.min(image)
...@@ -205,7 +205,7 @@ for k in range(4): ...@@ -205,7 +205,7 @@ for k in range(4):
#%% INVESTIGATING THE EFFECT OF SCALING + RHO #%% INVESTIGATING THE EFFECT OF SCALING + RHO
filename = '../data2D/short_fibres.png' filename = 'example_data_2D/short_fibres.png'
downsampling_range = 4 downsampling_range = 4
figsize = (10,5) figsize = (10,5)
...@@ -240,7 +240,7 @@ for k in range(downsampling_range): ...@@ -240,7 +240,7 @@ for k in range(downsampling_range):
plt.show() plt.show()
#%% COMPARING DOMINANT ORIENTATION AND OPTICAL FLOW #%% COMPARING DOMINANT ORIENTATION AND OPTICAL FLOW
image = skimage.io.imread('../data2D/drawn_fibres_B.png'); image = skimage.io.imread('example_data_2D/drawn_fibres_B.png');
# computing structure tensor, orientation and optical flow # computing structure tensor, orientation and optical flow
sigma = 0.5 sigma = 0.5
......
...@@ -13,7 +13,7 @@ import matplotlib.pyplot as plt ...@@ -13,7 +13,7 @@ import matplotlib.pyplot as plt
import st3d import st3d
# reading in the data # reading in the data
volume = scipy.io.loadmat('../testing_data_3D/multi_cube.mat')['vol'] volume = scipy.io.loadmat('example_data_3D/multi_cube.mat')['vol']
# computing structure tensor and orientations # computing structure tensor and orientations
sigma = 0.5; sigma = 0.5;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment