Skip to content
Snippets Groups Projects
Commit 912e9724 authored by David Grundfest's avatar David Grundfest
Browse files

Updated gradio interface

Now it uses our base classes and is way shorter. Got rid of more than
200 lines of code. I opened an issue https://github.com/gradio-app/gradio/issues/9273
regarding interrupting chain of events.
Deleted or moved some files like notebooks, which shouldnt be part of the package.
parent 99b5ff54
No related branches found
No related tags found
2 merge requests!117New Layered Surface Segmentation,!42Layered Surface Segmentation Feature
......@@ -32,6 +32,9 @@ def main():
gui_parser.add_argument(
"--local-thickness", action="store_true", help="Run local thickness tool."
)
gui_parser.add_argument(
"--layers", action="store_true", help="Run Layers."
)
gui_parser.add_argument("--host", default="0.0.0.0", help="Desired host.")
gui_parser.add_argument(
"--platform", action="store_true", help="Use QIM platform address"
......@@ -127,6 +130,8 @@ def main():
interface_class = qim3d.gui.annotation_tool.Interface
elif args.local_thickness:
interface_class = qim3d.gui.local_thickness.Interface
elif args.layers:
interface_class = qim3d.gui.layers2d.Interface
else:
print(
"Please select a tool by choosing one of the following flags:\n\t--data-explorer\n\t--iso3d\n\t--annotation-tool\n\t--local-thickness"
......
......@@ -4,6 +4,7 @@ from . import data_explorer
from . import iso3d
from . import local_thickness
from . import annotation_tool
from . import layers2d
from .qim_theme import QimTheme
......
This diff is collapsed.
from .layers2d import Layers2d
\ No newline at end of file
File moved
This diff is collapsed.
from . import colormaps
from .cc import plot_cc
from .detection import circles
from .explore import (
interactive_fade_mask,
orthogonal,
slicer,
slices,
)
from .k3d import vol
from .local_thickness_ import local_thickness
from .structure_tensor import vectors
from .metrics import plot_metrics, grid_overview, grid_pred, vol_masked
from .preview import image_preview
from . import layers2d
\ No newline at end of file
""" Provides a collection of visualisation functions for the Layers2d class."""
import matplotlib.pyplot as plt
import numpy as np
from qim3d.process import layers2d as l2d
from qim3d.processing import layers2d as l2d
def create_subplot_of_2d_arrays(data, m_rows = 1, n_cols = 1, figsize = None):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment