Skip to main content

A package for accurate and vivid visualization of hyperspectral images

Project description

TrueColorHSI

Overview

Traditional methods for visualizing (previewing) hyperspectral images often use only a few selected spectral bands, which can lead to incomplete or distorted images that don't reflect how we truly see the world. These approaches also overlook how our eyes naturally perceive color.

TrueColorHSI solves this by using colorimetric science, standard illuminants, and standard observers to integrate the entire visible spectrum. This results in vivid, accurate images that better represent hyperspectral data and are easier for users to understand, providing a more intuitive and natural way to explore the information.

Installation:

You can install TrueColorHSI via pip:

pip install TrueColorHSI

Usage:

from truecolorhsi.visualization import vanilla_visualization, colorimetric_visualization
hsi_header_file = "path/to/the/header/file"
vanilla_display_images = vanilla_visualization(header_file)
colorimetric_display_images = colorimetric_visualization(header_file, visualize=True, saveimages=True)

Notes:

  • This is the first official release, featuring the foundational tools for accurate hyperspectral image visualization.
  • The package provides methods that help translate complex hyperspectral data into intuitive, true-to-life images that are easier to interpret and analyze.

Example results

Visualization from RGB bands Figure 1. Visualization from appximated RGB bands (traditional method).

Visualization from colorimetric conversion Figure 2. Visualization from colorimetric conversion (our method).

True color visualization from different illuminants Figure 3. True color visualization using different standard illuminants (D50, D65, D75). Adjusting the chosen illuminant allows for tuning the color temperature.

illuminant_spd_and_CIE_xyz
Figure 4. The spectral power distribution of the D65 illuminant and the CIE xyz curves.

Citation

If you find this repository useful in your research, please consider the following citation.

@article{amiri2024colorimetric,
  title={Colorimetric characterization of multispectral imaging systems for visualization of historical artifacts},
  author={Amiri, Morteza Maali and Messinger, David W and Hanneken, Todd R},
  journal={Journal of Cultural Heritage},
  volume={68},
  pages={136--148},
  year={2024},
  publisher={Elsevier}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truecolorhsi-0.1.1.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TrueColorHSI-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file truecolorhsi-0.1.1.tar.gz.

File metadata

  • Download URL: truecolorhsi-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for truecolorhsi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 571e259d3205ef3300c0eba6b2da253834d45582c9b7cee4a060356cb22795fb
MD5 31d0c5a56a85c6d594729aa1d3b4c182
BLAKE2b-256 619a230a53069e9c16c698126eb27832d7c3d9a0d290dbf5a72220353afe1968

See more details on using hashes here.

File details

Details for the file TrueColorHSI-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: TrueColorHSI-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for TrueColorHSI-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17869283a33dff60fdb18b92c3d78fe202c11e1446ab88485e597db472dc0e94
MD5 f399476a8448e6987e350140518a416a
BLAKE2b-256 2f8a561dc98e084c22c284ffb89580eeb450f2d6584b2d181da62c3afd1eeb34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page