Skip to content
Snippets Groups Projects
Commit 4033285f authored by Felipe Delestro Matos's avatar Felipe Delestro Matos
Browse files

Local thickness GUI

parent 63435c8d
No related branches found
No related tags found
No related merge requests found
# QIM (Quantitative Imaging Library) # QIM (Quantitative Imaging)
QIM is a Python library for quantitative imaging analysis. It provides functionality for loading and saving image data, as well as tools for visualization and analysis. QIM is a Python library for 3D quantitative imaging analysis. It provides functionality for handling data, as well as tools for visualization and analysis.
## Features
- Load image data from TIFF and HDF5 files.
- GUI components for interactive data exploration.
- Tools for performing quantitative analysis on image data.
 
## Installation ## Installation
QIM can be installed using pip: Install using pip:
```shell ```bash
pip install qim pip install qim
``` ```
## Usage  
# Usage
### Loading Data  
To load image data from a file, use the qim.io.load() function: ## Loading Data
To load image data from a file, use `qim.io.load()`
```python ```python
import qim import qim
# Load a TIFF file # Load a TIFF file
data = qim.io.load("path/to/file.tif") vol = qim.io.load("path/to/file.tif")
# Load a TIFF file as a virtual stack # Load a TIFF file as a virtual stack
data = qim.io.load("path/to/file.tif", virtual_stack=True) vol = qim.io.load("path/to/file.tif", virtual_stack=True)
``` ```
### GUI Components  
QIM provides GUI components for interactive data exploration. The qim.gui module contains various classes for visualization and analysis: ## GUI Components
QIM provides GUI components for interactive data exploration. The `qim.gui` module contains various classes for visualization and analysis:
```python ```python
import qim import qim
...@@ -40,8 +39,16 @@ app = qim.gui.iso3d.Interface() ...@@ -40,8 +39,16 @@ app = qim.gui.iso3d.Interface()
app.launch() app.launch()
``` ```
Graphical interfaces currently available:
- Data exploration tool (`qim.gui.data_exploration`)
- 3D visualization with isosurfaces (`qim.gui.iso3d`)
- Local thickness (`qim.gui.local_thickness`)
 
# Contributing # Contributing
Contributions to QIM are welcome! If you find a bug, have a feature request, or would like to contribute code, please open an issue or submit a pull request. Contributions to QIM are welcome! If you find a bug, have a feature request, or would like to contribute code, please open an issue or submit a pull request.
 
# License # License
This project is licensed under the MIT License. This project is licensed under the MIT License.
\ No newline at end of file
...@@ -18,6 +18,7 @@ h2 { ...@@ -18,6 +18,7 @@ h2 {
border-radius: 0.375rem !important; border-radius: 0.375rem !important;
border: 0px !important; border: 0px !important;
} }
/* Hides Gradio footer */ /* Hides Gradio footer */
footer { footer {
visibility: hidden; visibility: hidden;
...@@ -52,6 +53,7 @@ footer { ...@@ -52,6 +53,7 @@ footer {
input[type="number" i] { input[type="number" i] {
width: 36px !important; width: 36px !important;
} }
input::-webkit-outer-spin-button, input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { input::-webkit-inner-spin-button {
-webkit-appearance: none; -webkit-appearance: none;
...@@ -74,7 +76,8 @@ input[type="range"] { ...@@ -74,7 +76,8 @@ input[type="range"] {
input[type="range"]::-webkit-slider-thumb { input[type="range"]::-webkit-slider-thumb {
cursor: pointer; /* Cursor on hover */ cursor: pointer;
/* Cursor on hover */
} }
...@@ -135,6 +138,7 @@ input[type="range"]::-webkit-slider-thumb { ...@@ -135,6 +138,7 @@ input[type="range"]::-webkit-slider-thumb {
border-radius: 0.375rem !important; border-radius: 0.375rem !important;
font-weight: normal !important; font-weight: normal !important;
} }
.btn-run:hover { .btn-run:hover {
background: #198754 !important; background: #198754 !important;
border-color: #198754 !important; border-color: #198754 !important;
...@@ -144,6 +148,7 @@ input[type="range"]::-webkit-slider-thumb { ...@@ -144,6 +148,7 @@ input[type="range"]::-webkit-slider-thumb {
.btn { .btn {
height: 100% !important; height: 100% !important;
} }
.btn:active::after { .btn:active::after {
content: ""; content: "";
position: absolute; position: absolute;
...@@ -169,6 +174,7 @@ input[type="range"]::-webkit-slider-thumb { ...@@ -169,6 +174,7 @@ input[type="range"]::-webkit-slider-thumb {
transform: rotate(1turn); transform: rotate(1turn);
} }
} }
.btn-clear { .btn-clear {
background: white !important; background: white !important;
border-color: #6c757d !important; border-color: #6c757d !important;
...@@ -192,6 +198,7 @@ input[type="range"]::-webkit-slider-thumb { ...@@ -192,6 +198,7 @@ input[type="range"]::-webkit-slider-thumb {
border-radius: 0.375rem !important; border-radius: 0.375rem !important;
font-weight: normal !important; font-weight: normal !important;
} }
.gallery-item:hover { .gallery-item:hover {
background: #6c757d !important; background: #6c757d !important;
border-color: #6c757d !important; border-color: #6c757d !important;
...@@ -254,9 +261,15 @@ div.svelte-1frtwj3 { ...@@ -254,9 +261,15 @@ div.svelte-1frtwj3 {
height: 320px !important; height: 320px !important;
} }
.w-320 {
width: 320px !important;
}
.h-256 { .h-256 {
height: 256px !important; height: 256px !important;
} }
.w-256 { .w-256 {
width: 256px !important; width: 256px !important;
} }
...@@ -264,6 +277,7 @@ div.svelte-1frtwj3 { ...@@ -264,6 +277,7 @@ div.svelte-1frtwj3 {
.h-128 { .h-128 {
height: 128px !important; height: 128px !important;
} }
.w-128 { .w-128 {
width: 128px !important; width: 128px !important;
} }
...@@ -271,6 +285,7 @@ div.svelte-1frtwj3 { ...@@ -271,6 +285,7 @@ div.svelte-1frtwj3 {
.h-64 { .h-64 {
height: 64px !important; height: 64px !important;
} }
.w-64 { .w-64 {
width: 64px !important; width: 64px !important;
} }
...@@ -278,6 +293,7 @@ div.svelte-1frtwj3 { ...@@ -278,6 +293,7 @@ div.svelte-1frtwj3 {
.h-32 { .h-32 {
height: 32px !important; height: 32px !important;
} }
.w-32 { .w-32 {
width: 32px !important; width: 32px !important;
} }
...@@ -285,6 +301,7 @@ div.svelte-1frtwj3 { ...@@ -285,6 +301,7 @@ div.svelte-1frtwj3 {
.h-0 { .h-0 {
height: 0px !important; height: 0px !important;
} }
.w-0 { .w-0 {
width: 0px !important; width: 0px !important;
} }
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment