Remote Sensing Data-Fetcher and Data-Loader for Joint Classification of Hyperspectral and LiDAR Data
Project description
rs-fusion-datasets
rs-fusion-datasets is a remote sensing data-fetcher and data-loader for joint classification of hyperspectral, LiDAR and SAR data. rs-fusion-datasets (formerly known as fetch_houston2013) is a Python package that:
- Automatically downloads and load many multimodel remote sensing datasets (houston, muufl, trento, berlin, augsburg, etc.)
- Provides ready-to-use torch dataloaders
- Provides some utils for visulization, dataset spilit, etc.
Supported Datasets
| Dataset | Fetcher Function | Torch Dataset | Note |
|---|---|---|---|
| Houston 2013 | fetch_houston2013 |
Houston2013 |
|
| Trento | fetch_trento |
Trento |
|
| Muufl | fetch_muufl |
Muufl |
|
| Houston 2018 | fetch_houston2018_ouc |
Houston2018Ouc |
Experimental |
| Augsburg | fetch_augsburg_ouc |
AugsburgOuc |
Experimental |
| Berlin | fetch_berlin_ouc |
BerlinOuc |
Experimental |
Quick Start
Install
pip install rs-fusion-datasets
Use with torch
from rs_fusion_datasets import Houston2013, Trento, Muufl, Houston2018Ouc, BerlinOuc, AugsburgOuc
dataset = Muufl('train', patch_size=11)
x_h, x_l, y, extras = dataset[0]
Get the raw image and labels
from rs_fusion_datasets import fetch_houston2013, fetch_muufl, fetch_trento, split_spmatrix
# For Houston 2013
hsi, dsm, train_label, test_label, info = fetch_houston2013()
# For Muufl and Trento
casi, lidar, truth, info = fetch_muufl()
train_label, test_label = split_spmatrix(truth, 20)
# For fetch_houston2018_ouc, fetch_augsberg_ouc, fetch_berlin_ouc
hsi, dsm, train_label, test_label, all_label, info = fetch_houston2018_ouc()
[!TIP] The labels returned are sparse matrix, you can either convert them to np.array easily by
train_label=train_label.todense() test_label =test_label.todense()Or directly use them for getting the value in a very fast way:
def __getitem__(self, index): i = self.truth.row[index] j = self.truth.col[index] label = self.truth.data[index].item() x_hsi = self.hsi[:, i, j] x_dsm = self.dsm[:, i, j] return x_hsi, x_dsm, label
Utils
- lbl2rgb: convert the label dataset to rgb image
- read_roi: read exported
.txtfile of ENVI roi to sparse matrix - split_spmatrix: split a sparse to get the train dataset and test dataset
Help
Star History
Contribution
We welcome all contributions, including issues, pull requests, feature requests and discussions.
License
Copyright 2023-2025 songyz2023
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Credits
Augsburg:
The data is publicly available at 10.14459/2022mp1657312. If you use this data set, please cite our paper.
@article{hu2022mdas,
title={MDAS: A New Multimodal Benchmark Dataset for Remote Sensing},
author={Hu, Jingliang and Liu, Rong and Hong, Danfeng and Camero, Andr{\'e}s and Yao, Jing and Schneider, Mathias and Kurz, Franz and Segl, Karl and Zhu, Xiao Xiang},
journal={Earth System Science Data Discussions},
pages={1--26},
year={2022},
publisher={Copernicus GmbH},
doi={10.5194/essd-2022-155}
}
Berlin:
Okujeni, A.; Van Der Linden, S.; Hostert, P. Berlin-Urban-Gradient dataset 2009—An EnMAP Preparatory Flight
Campaign (Datasets); GFZ Data Services: Potsdam, Germany, 2016.
Houston2018:
https://machinelearning.ee.uh.edu/2018-ieee-grss-data-fusion-challenge-fusion-of-multispectral-lidar-and-hyperspectral-data/
The dataset can be downloaded here subject to the terms and conditions listed below. If you wish to use the data, please be sure to email us and provide your Name, Contact information, affiliation (University, research lab etc.), and an acknowledgement that you will cite this dataset and its source appropriately, as well as provide an acknowledgement to the IEEE GRSS IADF and the Hyperspectral Image Analysis Lab at the University of Houston, in any manuscript(s) resulting from it.
Houston2013:
https://machinelearning.ee.uh.edu/?page_id=459
The 2013_IEEE_GRSS_DF_Contest_Samples_VA.txt in this repo is exported from original 2013_IEEE_GRSS_DF_Contest_Samples_VA.roi.
The dataset was collected by NCALM at the University of Houston (UH) in June 2012, covering the University of Houston campus. The data was prepared and pre-processed with the assistance of Xiong Zhou, Minshan Cui, Abhinav Singhania and Dr. Juan Carlos Fernández Díaz.
The Data Fusion Technical Committee would like to express its great appreciation to NCALM for providing the data, to UH students, staff and faculty for preparing the data, and to GRSS and DigitalGlobe Inc. for their continuous support in providing funding and resources for the Data Fusion Contest.
Muufl:
https://github.com/GatorSense/MUUFLGulfport
Note: If this data is used in any publication or presentation the following reference must be cited:
P. Gader, A. Zare, R. Close, J. Aitken, G. Tuell, “MUUFL Gulfport Hyperspectral and LiDAR Airborne Data Set,” University of Florida, Gainesville, FL, Tech. Rep. REP-2013-570, Oct. 2013.
If the scene labels are used in any publication or presentation, the following reference must be cited:
X. Du and A. Zare, “Technical Report: Scene Label Ground Truth Map for MUUFL Gulfport Data Set,” University of Florida, Gainesville, FL, Tech. Rep. 20170417, Apr. 2017. Available: http://ufdc.ufl.edu/IR00009711/00001.
If any of this scoring or detection code is used in any publication or presentation, the following reference must be cited:
T. Glenn, A. Zare, P. Gader, D. Dranishnikov. (2016). Bullwinkle: Scoring Code for Sub-pixel Targets (Version 1.0) [Software]. Available from https://github.com/GatorSense/MUUFLGulfport/.
Trento:
Dafault url of Trento dataset is https://github.com/tyust-dayu/Trento/tree/b4afc449ce5d6936ddc04fe267d86f9f35536afd
About GitHub hosted dataset in rs-fusion-datasets-dist:
All datasets are public available for download but I can't find any direct link for automatically loading (for example, the author uploads it via net disk apps).
The suffix of dataset is only an 3-character UID. I upload these dataset AS IS, without editing anything, and make sure it is just a mirror.
`augsburg-ouc`: From https://github.com/oucailab/DCMNet/
`berlin-ouc`: From https://github.com/oucailab/DCMNet/
`houston2018-ouc`: From https://github.com/oucailab/DCMNet/
`houston2013-mmr`: From: https://github.com/likyoo/Multimodal-Remote-Sensing-Toolkit/
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 rs_fusion_datasets-0.11.2.tar.gz.
File metadata
- Download URL: rs_fusion_datasets-0.11.2.tar.gz
- Upload date:
- Size: 417.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a9b0f50932bdd6931c52e0175bbeb727c604d06b4346778344f029b18779c3c
|
|
| MD5 |
2bca82c2ce10d98bcfcb4a5bf35b5be3
|
|
| BLAKE2b-256 |
4eba65d89e7019e7fc0a4c4398b23da7fe6bd4bb186baa3ab85bb512d55adf9a
|
File details
Details for the file rs_fusion_datasets-0.11.2-py3-none-any.whl.
File metadata
- Download URL: rs_fusion_datasets-0.11.2-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdb76a402918329d26d82f8cfe0a860623352b75123ba153d76ac0ae1f7f9d24
|
|
| MD5 |
be39327cf7e2daebf443355eb8491d76
|
|
| BLAKE2b-256 |
e7bd4a3dbec416488a6f759d9232d996a69911411bcd0af404b1f91946efe964
|