Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python3-imagej-tiff
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
python3-imagej-tiff
Commits
937842a1
Commit
937842a1
authored
Jul 11, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plot values
parent
2a60124c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
imagej_tiff.py
imagej_tiff.py
+22
-6
No files found.
imagej_tiff.py
View file @
937842a1
...
...
@@ -245,7 +245,6 @@ class imagej_tiff:
#tmp_im = Image.fromarray(t)
#tmp_im.show()
# puts etrees in infoss
def
__parse_info
(
self
):
...
...
@@ -317,14 +316,14 @@ if __name__ == "__main__":
print
(
bcolors
.
BOLDWHITE
+
"time: "
+
str
(
time
.
time
())
+
bcolors
.
ENDC
)
print
(
ijt
.
labels
)
print
(
ijt
.
infos
)
print
(
"TIFF stack labels: "
+
str
(
ijt
.
labels
)
)
#
print(ijt.infos)
rough_string
=
ET
.
tostring
(
ijt
.
infos
[
0
],
"utf-8"
)
reparsed
=
minidom
.
parseString
(
rough_string
)
print
(
reparsed
.
toprettyxml
(
indent
=
"
\t
"
))
print
(
ijt
.
props
)
#
print(ijt.props)
# needed properties:
print
(
"Tiles shape: "
+
str
(
ijt
.
tileW
)
+
"x"
+
str
(
ijt
.
tileH
))
...
...
@@ -347,6 +346,23 @@ if __name__ == "__main__":
values
=
ijt
.
getvalues
(
label
=
'other'
)
print
(
"Stack of values shape: "
+
str
(
values
.
shape
))
# each tile's disparity:
fig
=
plt
.
figure
()
fig
.
suptitle
(
"Estimated Disparity"
)
plt
.
imshow
(
values
[:,:,
0
])
plt
.
colorbar
()
fig
=
plt
.
figure
()
fig
.
suptitle
(
"Residual disparity"
)
plt
.
imshow
(
values
[:,:,
1
])
plt
.
colorbar
()
fig
=
plt
.
figure
()
fig
.
suptitle
(
"Residual disparity confidence"
)
plt
.
imshow
(
values
[:,:,
2
])
plt
.
colorbar
()
print
(
bcolors
.
BOLDWHITE
+
"time: "
+
str
(
time
.
time
())
+
bcolors
.
ENDC
)
#print(values)
...
...
@@ -383,8 +399,8 @@ if __name__ == "__main__":
#ijt.show_images(['X-corr','Y-corr'])
#ijt.show_images(['R-vign',3])
#ijt.show_images(
)
#
plt.show()
ijt
.
show_images
([
0
]
)
plt
.
show
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment