Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioContrerasH committed Sep 8, 2024
1 parent 5d75bcd commit 1d975c1
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 9 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# **Changelog**

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## **[Unreleased]**

### **Added**
- Improved efficiency of Quad-Tree compression for larger satellite images.
- Support for advanced pseudo-MTF calculations based on image compression levels.
- Enhanced classification map generation for compressed images.

### **Changed**
- Optimized image reconstruction speed after decompression.
- Updated documentation with more detailed examples and improved clarity.

### **Fixed**
- Fixed issue where memory usage spiked during large image decompression.
- Resolved bug causing incorrect detail error thresholds in the compression algorithm.

## **[0.0.3] - 2024-07-13**

### **Added**
- Added new API for creating classification maps based on Quad-Tree compression.
- Fine-tuning options for adjusting the detail error threshold in image compression.

### **Changed**
- Improved performance of pseudo-MTF calculations for compressed images.

## **[0.0.2] - 2024-07-12**

### **Added**
- Introduced support for multi-channel satellite images in compression and reconstruction processes.
- Enhanced image compression using a customizable Quad-Tree structure.

### **Fixed**
- Fixed memory leak issue when processing large satellite images during compression.

## **[0.0.1] - 2024-07-12**

### **Added**
- Initial release of **satcompression** with basic Quad-Tree compression and decompression functionality for satellite images.
- Support for encoding and decoding image data using the Quad-Tree structure.
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ We welcome contributions from the community! Every contribution, no matter how s
2. **Clone your fork locally:**
```bash
cd <directory_in_which_repo_should_be_created>
git clone https://github.com/IPL-UV/sathybrid.git
cd sathybrid
git clone https://github.com/IPL-UV/satcompression.git
cd satcompression
```
3. **Create a branch:** Create a new branch for your feature or bug fix:
```bash
Expand Down Expand Up @@ -43,17 +43,17 @@ We welcome contributions from the community! Every contribution, no matter how s
```bash
tox
```
7. **Submit a pull request:** 🚀 Push your branch to GitHub and submit a pull request to the `develop` branch of the `sathybrid` repository. Ensure your pull request meets these guidelines:
7. **Submit a pull request:** 🚀 Push your branch to GitHub and submit a pull request to the `develop` branch of the `satcompression` repository. Ensure your pull request meets these guidelines:
- Include tests.
- Update the documentation if your pull request adds functionality.
- Provide a detailed description of your changes.
## **Types of contributions** 📦
- **Report bugs:** 🐛
- Report bugs by creating an issue on the [sathybrid GitHub repository](https://github.com/YOUR_GITHUB_USERNAME/sathybrid/issues). Please include your operating system, setup details, and steps to reproduce the bug.
- Report bugs by creating an issue on the [satcompression GitHub repository](https://github.com/IPL-UV/satcompression/issues). Please include your operating system, setup details, and steps to reproduce the bug.
- **Fix bugs:** 🛠️ Look for issues tagged with "bug" and "help wanted" in the repository to start fixing.
- **Implement features:** ✨ Contribute by implementing features tagged with "enhancement" and "help wanted."
- **Write documentation:** 📚 Contribute to the documentation in the official docs, docstrings, or through blog posts and articles.
- **Submit feedback:** 💬 Propose new features or give feedback by filing an issue on GitHub.
- Use the [sathybrid GitHub issues page](https://github.com/YOUR_GITHUB_USERNAME/sathybrid/issues) for feedback.
- Use the [satcompression GitHub issues page](https://github.com/IPL-UV/sathybrid/issues) for feedback.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#



<p align="center">
<img src="https://huggingface.co/datasets/JulioContrerasH/DataMLSTAC/resolve/main/banner_satcompression.png" width="100%">
<img src="https://huggingface.co/datasets/JulioContrerasH/DataMLSTAC/resolve/main/banner_satcompression.png" width="40%">
</p>

<p align="center">
Expand All @@ -25,7 +27,7 @@

---

**GitHub**: [https://github.com/YOUR_GITHUB_USERNAME/satcompression](https://github.com/YOUR_GITHUB_USERNAME/satcompression) 🌐
**GitHub**: [https://github.com/IPL-UV/satcompression](https://github.com/IPL-UV/satcompression) 🌐

**PyPI**: [https://pypi.org/project/satcompression/](https://pypi.org/project/satcompression/) 🛠️

Expand Down Expand Up @@ -83,7 +85,7 @@ image_data_decompress = satcompression.reconstruct_image_data(
</p>


### **Calculate Pseudo-MTF from Quad-Tree decomposition** 📊
### **Calculate pseudo-MTF from Quad-Tree decomposition** 📊

#### **Load libraries**

Expand Down Expand Up @@ -112,7 +114,7 @@ plt.ylim(0, 1.2)
plt.title("Pseudo-MTF obtained from the quadtree decomposition")
plt.show()
```
### **Create a classification Map from the Quad-Tree nodes** 🗺️
### **Create a classification map from the Quad-Tree nodes** 🗺️

#### **Load libraries**

Expand Down
18 changes: 18 additions & 0 deletions docs/js/copybutton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
document.addEventListener('DOMContentLoaded', function() {
let blocks = document.querySelectorAll('pre code');
blocks.forEach((block) => {
let button = document.createElement('button');
button.innerHTML = 'Copy';
button.classList.add('copy-button');
block.parentNode.appendChild(button);
button.addEventListener('click', () => {
let range = document.createRange();
range.selectNode(block);
window.getSelection().addRange(range);
document.execCommand('copy');
window.getSelection().removeAllRanges();
button.innerHTML = 'Copied!';
setTimeout(() => { button.innerHTML = 'Copy'; }, 2000);
});
});
});
30 changes: 30 additions & 0 deletions docs/style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* bottom copy */
.copy-button {
position: absolute;
right: 0;
top: 0;
padding: 5px 10px;
font-size: 12px;
background: #333;
color: white;
border: none;
cursor: pointer;
}

.copy-button:hover {
background: #555;
}

/* nav */
.md-tabs__list {
display: flex;
justify-content: space-evenly;
}

[data-md-color-primary=black] .md-header {
background-color: #0e91d8;
}

[data-md-color-primary=black] .md-tabs {
background-color: #71e2d7;
}
8 changes: 8 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ markdown_extensions:
- pymdownx.tabbed
- mdx_truly_sane_lists
- pymdownx.tasklist

# Extra CSS
extra_css:
- docs/style/style.css

# Extra JavaScript
extra_javascript:
- docs/js/copybutton.js

0 comments on commit 1d975c1

Please sign in to comment.