Datasets:
File size: 4,028 Bytes
7f6aaaf a74f76e 7f6aaaf a74f76e 7f6aaaf a74f76e 7f6aaaf a74f76e cd16994 7b0d23a 90f2c87 7b0d23a a74f76e f99d0ce a74f76e f99d0ce a74f76e f99d0ce a74f76e f99d0ce c360f33 67cbd3d f99d0ce 3a6a7b8 f99d0ce 3a6a7b8 f99d0ce c360f33 3a6a7b8 6291da0 3a6a7b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
---
license: cc0-1.0
task_categories:
- depth-estimation
- image-to-image
language:
- en
pretty_name: MCTED
size_categories:
- 10K<n<100K
tags:
- Mars
- remote-sensing
- image
- depth-estimation
- DEM
---
# MCTED - Mars CTX Terrain-Elevation Dataset
[**Dataset repository**](https://github.com/ESA/MCTED) | [**arXiv article**](https://arxiv.org/abs/2509.08027)
<img src="./.images/dataset_samples.png" alt="Dataset samples" style="width:100%;"/>
## Overview
**MCTED** is a machine-learning-ready dataset of optical images of the surface of Mars, paired with their corresponding digital elevation models.
It was created using an extensive repository of orthoimage-DEM pairs with the NASA Ames Stereo Pipeline using the Mars Reconneissance Orbiter's CTX instrument imagery by
[Day et al. 2023](https://github.com/GALE-Lab/Mars_DEMs). We process the samples from the repository using a developed pipeline aimed at eliminating elevation artifacts,
imputing missing data points and sample selection. The dataset is provided in the form of 518x518 patches.
This dataset is fully open-source, with all data and code used for it's generation available publicly.
## Dataset contents
The dataset contains in total **80,898** samples, divided into two splits:
|Training|Validation|
|---|---|
|65,090|15,808|
Each sample consists of 4 different files:
|Type|Description|
|---|---|
|***optical.png***|The monochromatic optical image patch. Despite being monochromatic, the image still has 3 channels, with all channels being the same|
|***elevation.tiff***|The elevation data patch in meters w.r.t. the Martian datum|
|***deviation_mask.png***|Binary mask with locations that were identified as elevation artifacts during dataset generation and were replaced with interpolated values|
|***initial_nan_mask.png***|Binary mask with locations that contained missing values in the Day et al. data samples and were imputed during processing|
### Sample naming
Each sample follows the following naming convention:
<img src="./.images/sample_naming.png" alt="Naming convention of each sample" style="border-radius:15px; width: 70%;">
## Data source
The dataset has been generated using a orthoimage-DEM pair repository generated from MROs CTX imagery using the [NASA Ames Stereo Pipeline](https://github.com/NeoGeographyToolkit/StereoPipeline)
by [Day et al. 2023](https://faculty.epss.ucla.edu/~mday/index.php/mars-dems/). We pass the samples through an extensive processing and selection pipeline, using approximately **47%** of the available data.
<img src="./.images/sankey_processing.png" alt="Sankey diagram of processed samples" style="width:50%;"/>
## Typical usage
The simplest way to use MCTED is by using the `load_dataset` function from HuggingFace's `datasets` python package:
```python
from datasets import load_dataset
# Download and load the dataset
mcted = load_dataset("ESA-Datalabs/MCTED", num_proc=8)
```
## Example of accessing sample data
```python
from datasets import load_dataset
import matplotlib.pyplot as plt
import numpy as np
mcted = load_dataset("ESA-Datalabs/MCTED", num_proc=8)
# Load one sample from the validation split
sample = mcted["validation"][0]
plt.figure(figsize=(15, 5))
plt.subplot(1, 4, 1)
plt.imshow(sample["optical.png"])
plt.title("Optical image")
plt.subplot(1, 4, 2)
plt.imshow(np.array(sample["elevation.tif"]), cmap="terrain")
plt.title("DEM")
plt.subplot(1, 4, 3)
plt.imshow(sample["deviation_mask.png"], cmap="gray")
plt.title("Elevation outlier mask")
plt.subplot(1, 4, 4)
plt.imshow(sample["initial_nan_mask.png"], cmap="gray")
plt.title("Initial invalid values mask")
```
## Citation
```bibtex
@misc{osadnik2025,
title={MCTED: A Machine-Learning-Ready Dataset for Digital Elevation Model Generation From Mars Imagery},
author={Rafał Osadnik and Pablo Gómez and Eleni Bohacek and Rickbir Bahia},
year={2025},
eprint={2509.08027},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2509.08027},
}
``` |