Skip to content

Feature: Haralick Texture Analysis#72

Merged
BnJam merged 5 commits intomainfrom
feat/texture-analysis-11196418212471149361
Dec 24, 2025
Merged

Feature: Haralick Texture Analysis#72
BnJam merged 5 commits intomainfrom
feat/texture-analysis-11196418212471149361

Conversation

@google-labs-jules
Copy link
Contributor

This submission adds a new Haralick texture analysis feature to the eo-processor library. The core logic is implemented in Rust for high performance and is exposed to Python with a user-friendly wrapper that integrates with xarray and Dask. The feature includes four common Haralick texture metrics: contrast, dissimilarity, homogeneity, and entropy. The implementation is accompanied by unit tests, benchmarks, and updated dependencies.


PR created automatically by Jules for task 11196418212471149361 started by @BnJam

This commit introduces a high-performance Haralick texture analysis feature, implemented in Rust and exposed to Python.

The new `haralick_features` function calculates four common texture metrics: contrast, dissimilarity, homogeneity, and entropy. It operates on 2D arrays and is designed for performance using parallel computation with Rayon.

The Python wrapper integrates with `xarray` and Dask, allowing for parallel, out-of-memory computation on large geospatial datasets. It handles data quantization, chunking, and boundary conditions automatically.

The implementation includes:
- A new Rust module `src/texture.rs` with the core GLCM and Haralick feature calculations.
- A Python wrapper in `python/eo_processor/__init__.py` with Dask integration.
- Unit tests in `tests/test_texture.py` that validate the implementation against `scikit-image`.
- A benchmark in `benchmarking/cli.py` to compare performance.
- Updated dependencies in `tox.ini` and `pyproject.toml`.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

This commit introduces a high-performance Haralick texture analysis feature, implemented in Rust and exposed to Python.

The new `haralick_features` function calculates four common texture metrics: contrast, dissimilarity, homogeneity, and entropy. It operates on 2D arrays and is designed for performance using parallel computation with Rayon.

The Python wrapper integrates with `xarray` and Dask, allowing for parallel, out-of-memory computation on large geospatial datasets. It handles data quantization, chunking, and boundary conditions automatically.

The implementation includes:
- A new Rust module `src/texture.rs` with the core GLCM and Haralick feature calculations.
- A Python wrapper in `python/eo_processor/__init__.py` with Dask integration.
- Unit tests in `tests/test_texture.py` that validate the implementation against `scikit-image`.
- A benchmark in `benchmarking/cli.py` to compare performance.
- Updated dependencies in `tox.ini` and `pyproject.toml`.

All code has been formatted with `cargo fmt` and `ruff format`, and all linter checks pass.
This commit introduces a high-performance Haralick texture analysis feature, implemented in Rust and exposed to Python.

The new `haralick_features` function calculates four common texture metrics: contrast, dissimilarity, homogeneity, and entropy. It operates on 2D arrays and is designed for performance using parallel computation with Rayon.

The Python wrapper integrates with `xarray` and Dask, allowing for parallel, out-of-memory computation on large geospatial datasets. It handles data quantization, chunking, and boundary conditions automatically.

The implementation includes:
- A new Rust module `src/texture.rs` with the core GLCM and Haralick feature calculations.
- A Python wrapper in `python/eo_processor/__init__.py` with Dask integration.
- Unit tests in `tests/test_texture.py` that validate the implementation against `scikit-image`.
- A benchmark in `benchmarking/cli.py` to compare performance.
- Updated dependencies in `tox.ini` and `pyproject.toml`.

All code has been formatted with `cargo fmt` and `ruff format`, and all linter checks pass.
This commit introduces a high-performance Haralick texture analysis feature, implemented in Rust and exposed to Python.

The new `haralick_features` function calculates four common texture metrics: contrast, dissimilarity, homogeneity, and entropy. It operates on 2D arrays and is designed for performance using parallel computation with Rayon.

The Python wrapper integrates with `xarray` and Dask, allowing for parallel, out-of-memory computation on large geospatial datasets. It handles data quantization, chunking, and boundary conditions automatically.

The implementation includes:
- A new Rust module `src/texture.rs` with the core GLCM and Haralick feature calculations.
- A Python wrapper in `python/eo_processor/__init__.py` with Dask integration.
- Unit tests in `tests/test_texture.py` that validate the implementation against `scikit-image`.
- A benchmark in `benchmarking/cli.py` to compare performance.
- Updated dependencies in `tox.ini` and `pyproject.toml`.

All code has been formatted with `cargo fmt` and `ruff format`, and all linter and test checks pass.
This commit introduces a high-performance Haralick texture analysis feature, implemented in Rust and exposed to Python.

The new `haralick_features` function calculates four common texture metrics: contrast, dissimilarity, homogeneity, and entropy. It operates on 2D arrays and is designed for performance using parallel computation with Rayon.

The Python wrapper integrates with `xarray` and Dask, allowing for parallel, out-of-memory computation on large geospatial datasets. It handles data quantization, chunking, and boundary conditions automatically.

The implementation includes:
- A new Rust module `src/texture.rs` with the core GLCM and Haralick feature calculations.
- A Python wrapper in `python/eo_processor/__init__.py` with Dask integration.
- Unit tests in `tests/test_texture.py` that validate the implementation against `scikit-image`.
- A benchmark in `benchmarking/cli.py` to compare performance.
- Updated dependencies in `pyproject.toml` to make `xarray` and `dask` core dependencies.

All code has been formatted with `cargo fmt` and `ruff format`, and all linter and test checks pass.
@BnJam BnJam marked this pull request as ready for review December 24, 2025 23:37
@BnJam BnJam merged commit 94d9cec into main Dec 24, 2025
5 checks passed
@BnJam BnJam deleted the feat/texture-analysis-11196418212471149361 branch December 24, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant