from os import path, pardir
from pathlib import Path
from tkinter import messagebox

# for GUI windows
home_window = None
input_image_window = None
output_image_window = None

# for opening/saving images
filename = None
save_dir = str(Path.home())
search_dir = str(Path.home())

# for brush-stroking
drawing = False

# for input, scribbled, output images
raw_img = None
prev_scribbled_img = None
curr_scribbled_img = None
prev_output_img = None
curr_output_img = None

# for halting filter for pattern
distance_map = None
img_fvs = None
orientations_changed = False
gabor_sigmas_changed = False

# for level set method
scribbled_pixels = None
phi = None


def info_message(message):
    messagebox.showinfo('Info', message)


def reset_globals():
    global distance_map, img_fvs, orientations_changed, gabor_sigmas_changed

    distance_map = None
    img_fvs = None
    orientations_changed = False
    gabor_sigmas_changed = False

05d16c464a11b7b9ec60c7359183a484cdd7f8ba
<mask token>


def info_message(message):
    messagebox.showinfo('Info', message)


<mask token>

<mask token>


def info_message(message):
    messagebox.showinfo('Info', message)


def reset_globals():
    global distance_map, img_fvs, orientations_changed, gabor_sigmas_changed
    distance_map = None
    img_fvs = None
    orientations_changed = False
    gabor_sigmas_changed = False

<mask token>
home_window = None
input_image_window = None
output_image_window = None
filename = None
save_dir = str(Path.home())
search_dir = str(Path.home())
drawing = False
raw_img = None
prev_scribbled_img = None
curr_scribbled_img = None
prev_output_img = None
curr_output_img = None
distance_map = None
img_fvs = None
orientations_changed = False
gabor_sigmas_changed = False
scribbled_pixels = None
phi = None


def info_message(message):
    messagebox.showinfo('Info', message)


def reset_globals():
    global distance_map, img_fvs, orientations_changed, gabor_sigmas_changed
    distance_map = None
    img_fvs = None
    orientations_changed = False
    gabor_sigmas_changed = False

from os import path, pardir
from pathlib import Path
from tkinter import messagebox
home_window = None
input_image_window = None
output_image_window = None
filename = None
save_dir = str(Path.home())
search_dir = str(Path.home())
drawing = False
raw_img = None
prev_scribbled_img = None
curr_scribbled_img = None
prev_output_img = None
curr_output_img = None
distance_map = None
img_fvs = None
orientations_changed = False
gabor_sigmas_changed = False
scribbled_pixels = None
phi = None


def info_message(message):
    messagebox.showinfo('Info', message)


def reset_globals():
    global distance_map, img_fvs, orientations_changed, gabor_sigmas_changed
    distance_map = None
    img_fvs = None
    orientations_changed = False
    gabor_sigmas_changed = False

from os import path, pardir
from pathlib import Path
from tkinter import messagebox

# for GUI windows
home_window = None
input_image_window = None
output_image_window = None

# for opening/saving images
filename = None
save_dir = str(Path.home())
search_dir = str(Path.home())

# for brush-stroking
drawing = False

# for input, scribbled, output images
raw_img = None
prev_scribbled_img = None
curr_scribbled_img = None
prev_output_img = None
curr_output_img = None

# for halting filter for pattern
distance_map = None
img_fvs = None
orientations_changed = False
gabor_sigmas_changed = False

# for level set method
scribbled_pixels = None
phi = None


def info_message(message):
    messagebox.showinfo('Info', message)


def reset_globals():
    global distance_map, img_fvs, orientations_changed, gabor_sigmas_changed

    distance_map = None
    img_fvs = None
    orientations_changed = False
    gabor_sigmas_changed = False
