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

updates

parent 1918ec7b
......@@ -3,3 +3,4 @@ __pycache__
/.pydevproject
attic
*.log
/compress_start.pyc
......@@ -68,7 +68,10 @@ if __name__ == '__main__':
tiff3.append(os.path.join(scene, s))
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))
for cam, ax in zip(cameras, axs.ravel()):
diff = []
......@@ -88,7 +91,8 @@ if __name__ == '__main__':
surrounding.append(image[ind1+i, ind1+j]) #Add the other 8 pixels to the list
diff.append(np.max(surrounding)-np.min(surrounding))
ax.hist(diff)
i += 1
ax.set_title(f"tiff {jj}")
jj += 1
plt.tight_layout()
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