Skip to main content

pyRockImageLab

PyPI version PyPI downloads

v0.0.3

pyRockImageLab (import pyrockimagelab) provides interactive tools to crop, ortho-warp, stitch, and mosaic geological core photographs, from low-res box photos (LR segments) to high-res detail mosaics (HR).

Larry Syu-Heng Lai
larry.lai@beg.utexas.edu · larrysyuhenglai@gmail.com
Quantitative Clastics Laboratory, Bureau of Economic Geology, The University of Texas at Austin

Installation

From PyPI:

pip install pyrockimagelab

From this repo:

conda env create -f environment.yml
conda activate pyrockimagelab
pip install -e ".[heic,gui]"

Interactive picking needs a local matplotlib GUI backend (macOS MacOSX, otherwise Qt or Tk).

Citation

Lai, L.S.-H. (2026) pyRockImageLab.

Contact: larry.lai@beg.utexas.edu · larrysyuhenglai@gmail.com

Key Features

  • Crop a box photo into depth segments with a four-corner ortho-warp (QuadPicker).
  • Stitch high-res detail photos along a segment (stitch_chain) and build a mosaic.
  • Save corner picks in _picks.json so a later run can start from the same corners.
  • Command-line entry point: pyrockimagelab.

Example notebooks

pyRockImageLab_1_core_photo_processing.ipynb

The notebook only sets the folder path, segment count, and high-res photo ranges, then calls the package. Put your own core photos outside this repo and pass that folder in. This repository does not include core photos.

Caller-supplied layout:

{core_images_dir}/{UWI}/{depth-range}/          # source photos + _picks.json
{core_images_dir}/{UWI}/{UWI}_{start}-{end}[_hr].png
import pyrockimagelab as pril

pril.process_folder(
    folder="/path/to/CoreImages/UWI/start-end",
    uwi="UWI",
)
python -m pyrockimagelab.core_box.processing --root /path/to/CoreImages --uwi UWI --folder start-end

Package structure

README.md
README-pypi.md
FUNCTION_DOCUMENTATION.md
pyproject.toml
setup.py
environment.yml
example_data/
pyrockimagelab/
    common/
    image_processing/
    core_box/

Function list: FUNCTION_DOCUMENTATION.md.

Dependencies

Requires Python >=3.10.

Installed with the package: numpy (>=1.20), opencv-python (>=4.5), Pillow (>=8.3), matplotlib (>=3.5).

Optional extras:

  • heic: pillow-heif >=0.13
  • gui: PyQt5 >=5.15

License

Program: pyRockImageLab
Interactive tools for core and outcrop image processing, data
collection, and automated geological and geomorphic classification and
analysis
Copyright (C) 2026  Larry Syu-Heng Lai

pyRockImageLab is licensed under the GNU Affero General Public License 3.0 or later. See LICENSE.

  • pyLogCrafter (pylogcrafter) — well-log QC, normalization, imputation, facies, and viz companion package

Metadata

Release files for pyrockimagelab 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrockimagelab 0.0.3
File Size Uploaded Provenance Actions
pyrockimagelab-0.0.3.tar.gz 38.7 kB Without provenance Details for pyrockimagelab-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrockimagelab 0.0.3
File Interpreter ABI Platform Actions
pyrockimagelab-0.0.3-py3-none-any.whl Python 3 none any Details for pyrockimagelab-0.0.3-py3-none-any.whl

Total release size: 79.3 kB

Release files / pyrockimagelab-0.0.3.tar.gz

Download URL pyrockimagelab-0.0.3.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6775aec690982bb14468f97153131d15862604250166801fdf61070c0b3ae8df
BLAKE2b-256 checksum
How to use checksums
9eb7e154fd0e70d1b2ec05d9144de78d0a63168520f4fa3806b99e77452941e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / pyrockimagelab-0.0.3-py3-none-any.whl

Download URL pyrockimagelab-0.0.3-py3-none-any.whl
Size 40.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
722b7eb0a5839c49853b1cf69a4c4ac8d11c0b7270982c6ae8b27ec4a015f554
BLAKE2b-256 checksum
How to use checksums
fd9b38add7a918a9856a933bbf83557c47a4230b320bbb598c3a1344794f150f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for pyrockimagelab 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page