No project description provided
Project description
.fcsv Parser
Overview
This package provides a simple way to read a markups fiducial point list file (.fcsv) for use in annotations/bounding box creation in medical images. These can be created in an application like 3D Slicer. The format of these fiducial lists is outlined here.
Requirements
This package has been tested with Python 3.8, and currently version 4.10 of the .fcsv format is supported. If running the example notebook, a virtual environment should be created and then the requirements in Linux installed using:
user@account:~/fcsv-parser$ python3 -m fcsv
user@account:~/fcsv-parser$ source fcsv/bin/activate
(fcsv) user@account:~/fcsv-parser$ pip install -r requirements.txt
If Windows is used, conda is recommended:
(base) C:\User\fcsv-parser> conda create -n fcsv python=3.8
(base) C:\User\fcsv-parser> conda activate fcsv
(fcsv) C:\User\fcsv-parser> pip install -r requirements.txt
Otherwise all that is needed is to install directly from PyPI into your environment:
(your-env) user@account:~/fcsv-parser$ pip install fcsv-parser
Usage
Once installed, a fiducial file can be loaded, returning a dataclass. The individual fiducials can be accessed with their IDs as you would a dict:
(fcsv) C:\User\fcsv-parser>python
Python 3.8.16 (default, Mar 2 2023, 03:18:16) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from fcsv_parser import read_fcsv
>>> fiducials = read_fcsv("C:\path\to\data")
>>> fiducials["F-1"]:
(170.167, 432.176, -0.0)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fscv_parser-0.1.0.tar.gz.
File metadata
- Download URL: fscv_parser-0.1.0.tar.gz
- Upload date:
- Size: 80.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26526dede1f1c1cad381f47149a84245c9556e8df76b3033db2a240645b856b9
|
|
| MD5 |
27e290185401255d32e9eed9a579d247
|
|
| BLAKE2b-256 |
a82ae3262fefc85756da39401cb20b7b75a8351f7ae260d24ccc0d511492a190
|
File details
Details for the file fscv_parser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fscv_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44ccba3b9c32f5a50ca56f4b05bbe01476d6416b3d86201afdafc9d423a4d46a
|
|
| MD5 |
849de40538a55730f72f7bed21e70b78
|
|
| BLAKE2b-256 |
5d6f50d47f4db09bbd35872b0390a16e6225143c5f9e8cc8e9df943dc50b0418
|