Commit 671803c7 authored by Nathaniel Callens's avatar Nathaniel Callens

updates

parent 1918ec7b
...@@ -2,4 +2,5 @@ __pycache__ ...@@ -2,4 +2,5 @@ __pycache__
/.project /.project
/.pydevproject /.pydevproject
attic attic
*.log *.log
\ No newline at end of file /compress_start.pyc
...@@ -68,7 +68,10 @@ if __name__ == '__main__': ...@@ -68,7 +68,10 @@ if __name__ == '__main__':
tiff3.append(os.path.join(scene, s)) tiff3.append(os.path.join(scene, s))
cameras = [tiff0, tiff1, tiff2, tiff3] cameras = [tiff0, tiff1, tiff2, tiff3]
i = 0 im = Image.open(tiff0[0])
im = np.array(im)[1:,:]
print(im)
jj = 0
fig, axs = plt.subplots(nrows=2, ncols=2, figsize=(15,12)) fig, axs = plt.subplots(nrows=2, ncols=2, figsize=(15,12))
for cam, ax in zip(cameras, axs.ravel()): for cam, ax in zip(cameras, axs.ravel()):
diff = [] diff = []
...@@ -88,7 +91,8 @@ if __name__ == '__main__': ...@@ -88,7 +91,8 @@ if __name__ == '__main__':
surrounding.append(image[ind1+i, ind1+j]) #Add the other 8 pixels to the list surrounding.append(image[ind1+i, ind1+j]) #Add the other 8 pixels to the list
diff.append(np.max(surrounding)-np.min(surrounding)) diff.append(np.max(surrounding)-np.min(surrounding))
ax.hist(diff) ax.hist(diff)
i += 1 ax.set_title(f"tiff {jj}")
jj += 1
plt.tight_layout() plt.tight_layout()
plt.show() plt.show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment