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

Merge

parents 912e9724 1622d378
No related branches found
No related tags found
2 merge requests!117New Layered Surface Segmentation,!42Layered Surface Segmentation Feature
<<<<<<< HEAD
"""qim3d: A Python package for 3D image processing and visualization. """qim3d: A Python package for 3D image processing and visualization.
=======
import qim3d.io as io
import qim3d.gui as gui
import qim3d.viz as viz
import qim3d.utils as utils
import qim3d.models as models
import qim3d.process as process
import logging
>>>>>>> 1622d378193877cb85f53b1a05207088b3f3cf0a
The qim3d library is designed to make it easier to work with 3D imaging data in Python. The qim3d library is designed to make it easier to work with 3D imaging data in Python.
It offers a range of features, including data loading and manipulation, It offers a range of features, including data loading and manipulation,
......
qim3d/examples/slice_218x193.png

21.9 KiB

import argparse
from qim3d.gui import data_explorer, iso3d, annotation_tool, local_thickness, layers2d
def main():
parser = argparse.ArgumentParser(description='Qim3d command-line interface.')
subparsers = parser.add_subparsers(title='Subcommands', dest='subcommand')
# subcommands
gui_parser = subparsers.add_parser('gui', help = 'Graphical User Interfaces.')
gui_parser.add_argument('--data-explorer', action='store_true', help='Run data explorer.')
gui_parser.add_argument('--iso3d', action='store_true', help='Run iso3d.')
gui_parser.add_argument('--annotation-tool', action='store_true', help='Run annotation tool.')
gui_parser.add_argument('--local-thickness', action='store_true', help='Run local thickness tool.')
gui_parser.add_argument('--layers2d', action='store_true', help='Run layers2d.')
gui_parser.add_argument('--host', default='0.0.0.0', help='Desired host.')
args = parser.parse_args()
if args.subcommand == 'gui':
arghost = args.host
if args.data_explorer:
data_explorer.run_interface(arghost)
elif args.iso3d:
iso3d.run_interface(arghost)
elif args.annotation_tool:
annotation_tool.run_interface(arghost)
elif args.local_thickness:
local_thickness.run_interface(arghost)
elif args.layers2d:
layers2d.run_interface(arghost)
if __name__ == '__main__':
main()
\ No newline at end of file
""" Provides a collection of visualisation functions for the Layers2d class.""" """ Provides a collection of visualisation functions for the Layers2d class."""
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np
<<<<<<< HEAD
from qim3d.processing import layers2d as l2d from qim3d.processing import layers2d as l2d
=======
from qim3d.process import layers2d as l2d
>>>>>>> 1622d378193877cb85f53b1a05207088b3f3cf0a
def create_subplot_of_2d_arrays(data, m_rows = 1, n_cols = 1, figsize = None): 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