Skip to content

Commit

Permalink
Merge pull request #20 from Steffenhir/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Steffenhir authored Mar 7, 2022
2 parents ce7bb40 + a86c191 commit 49c7193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: create release
uses: softprops/action-gh-release@v1
with:
tag_name: v0.0.3
tag_name: v0.0.4
files: |
background-extraction-linux
background-extraction-win64.exe
Expand Down
12 changes: 8 additions & 4 deletions src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)

self.master.geometry("1920x1080")
self.master.state("zoomed")
self.master.geometry("1920x1080")

try:
self.master.state("zoomed")
except:
self.master.state("normal")

self.data_type = ""
self.pil_image = None
Expand Down Expand Up @@ -324,8 +328,8 @@ def set_image(self, filename):
self.image_full = img_as_float32(self.image_full)


if(np.min(self.image_full) < 0):
self.image_full = exposure.rescale_intensity(self.image_full, in_range=(-1,1), out_range=(0,1))
if(np.min(self.image_full) < 0 or np.max(self.image_full > 1)):
self.image_full = exposure.rescale_intensity(self.image_full, out_range=(0,1))


self.stretch()
Expand Down

0 comments on commit 49c7193

Please sign in to comment.