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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c49f4800f7f6b5d3150fe2b635ec375a1652b522cafde07e25dab08ba56f53b
|
|
| MD5 |
7a064bed1975518dc3f9fd08ebd835b3
|
|
| BLAKE2b-256 |
b1f65f53b1828fe8aff6cdbb0b577439cc2a8a1495d7fd755b5e5b5cb20c62c3
|
Provenance
The following attestation bundles were made for ms_camera_model-1.0.0.tar.gz:
Publisher:
publish.yml on vactomas/ms_camera_model
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ms_camera_model-1.0.0.tar.gz -
Subject digest:
2c49f4800f7f6b5d3150fe2b635ec375a1652b522cafde07e25dab08ba56f53b - Sigstore transparency entry: 1566823727
- Sigstore integration time:
-
Permalink:
vactomas/ms_camera_model@842a154a54611713d1b38be49abcfac6c7327af0 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/vactomas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@842a154a54611713d1b38be49abcfac6c7327af0 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a06a063ec90412e65ebe4dc2e34bd84a6b8f7218904829edfc0eab8119d956b
|
|
| MD5 |
8a4c0aaa669f40e1c3797e25618689a4
|
|
| BLAKE2b-256 |
aa4bec01fca8c7ebcb4a95197974c004b428471967e6b3624534007848c35527
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ms_camera_model-1.0.0-py3-none-any.whl -
Subject digest:
1a06a063ec90412e65ebe4dc2e34bd84a6b8f7218904829edfc0eab8119d956b - Sigstore transparency entry: 1566823741
- Sigstore integration time:
-
Permalink:
vactomas/ms_camera_model@842a154a54611713d1b38be49abcfac6c7327af0 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/vactomas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@842a154a54611713d1b38be49abcfac6c7327af0 -
Trigger Event:
release
-
Statement type: