Skip to main content

Multispectral Camera Simulation Model

Project description

Multispectral Camera Simultation Model

This Python package offers a simple way of simulating a response of multispectral camera based on hyperspectral input.

To install this, run pip install ms_camera_model.

Example simulation

import logging
import sys

import matplotlib.pyplot as plt

from ms_camera_model import (
    FilterSensorUnit,
    HyperspectralImageData,
    MultispectralCameraModel,
)
from ms_camera_model.image_visualiser import imshow

logging.basicConfig(level=logging.INFO,
                    format="%(asctime)s [%(levelname)s] -> %(message)s",
                    datefmt="%Y-%m-%d %H:%M:%S%p",
                    handlers=[logging.StreamHandler(sys.stdout)])

filter_paths = ["path/to/filter.xlsx"]

sensor_paths = ["path/to/sensor.xlsx"]

hs_path = "path/to/hyperspectral.hdr"
hs_data = HyperspectralImageData.import_hs_img(hs_path)

band_names = ["band1"]

fs_units = []

for i in range(len(filter_paths)):
    fs_unit = FilterSensorUnit.from_excel(filter_paths[i], sensor_paths[i])
    fs_units.append(fs_unit)

ms_cam_model = MultispectralCameraModel.create_model(hs_data, fs_units, band_names)
ms_cam_model.run_simulation()

imshow(ms_cam_model.out_data, [0])
plt.show()

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

ms_camera_model-1.0.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

ms_camera_model-1.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file ms_camera_model-1.0.0.tar.gz.

File metadata

  • Download URL: ms_camera_model-1.0.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ms_camera_model-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c49f4800f7f6b5d3150fe2b635ec375a1652b522cafde07e25dab08ba56f53b
MD5 7a064bed1975518dc3f9fd08ebd835b3
BLAKE2b-256 b1f65f53b1828fe8aff6cdbb0b577439cc2a8a1495d7fd755b5e5b5cb20c62c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ms_camera_model-1.0.0.tar.gz:

Publisher: publish.yml on vactomas/ms_camera_model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ms_camera_model-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ms_camera_model-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ms_camera_model-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a06a063ec90412e65ebe4dc2e34bd84a6b8f7218904829edfc0eab8119d956b
MD5 8a4c0aaa669f40e1c3797e25618689a4
BLAKE2b-256 aa4bec01fca8c7ebcb4a95197974c004b428471967e6b3624534007848c35527

See more details on using hashes here.

Provenance

The following attestation bundles were made for ms_camera_model-1.0.0-py3-none-any.whl:

Publisher: publish.yml on vactomas/ms_camera_model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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