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
This diff is collapsed.
This diff is collapsed.
......@@ -14,7 +14,7 @@ import st2d
#%% ST AND ORIENTATIONS - VISUALIZATION OPTIONS
plt.close('all')
filename = '../data2D/drawn_fibres_B.png';
filename = 'example_data_2D/drawn_fibres_B.png';
sigma = 0.5
rho = 2
......@@ -42,7 +42,7 @@ plt.show()
#%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS
filename = '../data2D/10X.png';
filename = 'example_data_2D/10X.png';
sigma = 0.5
rho = 15
N = 180 # number of angle bins for orientation histogram
......@@ -81,7 +81,7 @@ plt.show()
#%% ST AND ORIENTATIONS - HISTOGRAMS OPTIONS
filename = '../data2D/drawn_field.png';
filename = 'example_data_2D/drawn_field.png';
sigma = 0.5
rho = 15
N = 90 # number of angle bins for orientation histogram
......@@ -131,7 +131,7 @@ plt.show()
#%% YET ANOTHER EXAMPLE
filename = '../data2D/OCT_im_org.png';
filename = 'example_data_2D/OCT_im_org.png';
sigma = 0.5
rho = 5
N = 180 # number of angle bins for orientation histogram
......@@ -169,7 +169,7 @@ plt.show()
#%% INVESTIGATING THE EFFECT OF RHO
filename = '../data2D/short_fibres.png'
filename = 'example_data_2D/short_fibres.png'
image = skimage.io.imread(filename)
image = np.mean(image[:,:,0:3],axis=2)
image -= np.min(image)
......@@ -205,7 +205,7 @@ for k in range(4):
#%% INVESTIGATING THE EFFECT OF SCALING + RHO
filename = '../data2D/short_fibres.png'
filename = 'example_data_2D/short_fibres.png'
downsampling_range = 4
figsize = (10,5)
......@@ -240,7 +240,7 @@ for k in range(downsampling_range):
plt.show()
#%% 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
sigma = 0.5
......
......@@ -13,7 +13,7 @@ import matplotlib.pyplot as plt
import st3d
# 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
sigma = 0.5;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment