Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
structure-tensor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
structure-tensor
Commits
dcc14821
Commit
dcc14821
authored
4 years ago
by
vand
Browse files
Options
Downloads
Patches
Plain Diff
Changed paths in examples
parent
c3e9b49c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
StructureTensor2D_Examples.ipynb
+51
-12
51 additions, 12 deletions
StructureTensor2D_Examples.ipynb
StructureTensor3D_Examples.ipynb
+8
-6
8 additions, 6 deletions
StructureTensor3D_Examples.ipynb
st2d_examples.py
+7
-7
7 additions, 7 deletions
st2d_examples.py
st3d_examples.py
+1
-1
1 addition, 1 deletion
st3d_examples.py
with
67 additions
and
26 deletions
StructureTensor2D_Examples.ipynb
+
51
−
12
View file @
dcc14821
This diff is collapsed.
Click to expand it.
StructureTensor3D_Examples.ipynb
+
8
−
6
View file @
dcc14821
This diff is collapsed.
Click to expand it.
st2d_examples.py
+
7
−
7
View file @
dcc14821
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
st3d_examples.py
+
1
−
1
View file @
dcc14821
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment