All Algorithms implemented in Python the-algorithms.com/
Go to file
Rafael Zimmer 79b043d35c
Texture analysis using Haralick Descriptors for Computer Vision tasks (#8004)
* Create haralick_descriptors

* Working on creating Unit Testing for Haralick Descriptors module

* Type hinting for Haralick descriptors

* Fixed docstrings, unit testing and formatting choices

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fixed line size formatting

* Added final doctests

* Changed main callable

* Updated requirements.txt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update computer_vision/haralick_descriptors.py

No! What if the Kernel is empty?
Example:

>>> kernel = np.zeros((1))
>>> kernel or np.ones((3, 3))
array([[1., 1., 1.],
          [1., 1., 1.],
          [1., 1., 1.]])

Co-authored-by: Christian Clauss <cclauss@me.com>

* Undone wrong commit

* Update haralick_descriptors.py

* Apply suggestions from code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix ruff errors in haralick_descriptors.py

* Add type hint to haralick_descriptors.py to fix ruff error

* Update haralick_descriptors.py

* Update haralick_descriptors.py

* Update haralick_descriptors.py

* Update haralick_descriptors.py

* Try to fix mypy errors in haralick_descriptors.py

* Update haralick_descriptors.py

* Fix type hint in haralick_descriptors.py

---------

Co-authored-by: Rafael Zimmer <rzimmerdev@monmo.localdomain>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
2023-09-05 00:04:36 -04:00
.devcontainer [skip-ci] In .devcontainer/Dockerfile: pipx install pre-commit ruff (#8893) 2023-07-28 18:54:45 +02:00
.github Fix failing pytest quantum/bb84.py (#8838) 2023-06-26 08:54:50 +05:30
.vscode Create a Simultaneous Equation Solver Algorithm (#8773) 2023-06-02 07:14:25 +02:00
arithmetic_analysis [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
audio_filters Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
backtracking [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
bit_manipulation [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
blockchain pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
boolean_algebra Rename norgate to nor_gate to keep consistency (#8968) 2023-08-16 18:21:00 -07:00
cellular_automata Create langtons ant algorithm (#8967) 2023-08-21 16:20:51 -07:00
ciphers [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
compression Fix ruff rules ISC flake8-implicit-str-concat (#8892) 2023-07-28 17:53:09 +01:00
computer_vision Texture analysis using Haralick Descriptors for Computer Vision tasks (#8004) 2023-09-05 00:04:36 -04:00
conversions Consolidate decimal to binary iterative and recursive (#8999) 2023-08-21 06:25:20 -07:00
data_structures [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
digital_image_processing [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
divide_and_conquer [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
dynamic_programming [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
electronics Fix ruff errors (#8936) 2023-08-09 13:25:30 +05:30
file_transfer Update receive_file.py (#8541) 2023-03-31 16:08:13 +02:00
financial Added apr_interest function to financial (#6025) 2023-06-19 13:46:29 +02:00
fractals Window closing fix (#8625) 2023-07-31 20:02:49 -07:00
fuzzy_logic Misc fixes across multiple algorithms (#6912) 2022-10-16 10:55:38 +05:30
genetic_algorithm Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
geodesy pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
graphics Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
graphs Fix greedy_best_first (#8775) 2023-08-15 15:52:51 -07:00
greedy_methods Added minimum waiting time problem solution using greedy algorithm (#8701) 2023-05-01 12:23:03 +02:00
hashes [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
knapsack pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
linear_algebra Reduce the complexity of linear_algebra/src/polynom_for_points.py (#8605) 2023-08-13 03:05:42 -07:00
linear_programming Fix simplex.py (#8843) 2023-08-17 14:34:53 -07:00
machine_learning [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
maths [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
matrix [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
networking_flow clean of unnecessary checks, imports, calls (#7993) 2022-11-21 00:00:27 +13:00
neural_network Style sigmoid function in harmony with pep guideness (#6677) 2023-09-04 13:38:26 -04:00
other [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
physics Quick fix: fig.canvas.set_window_title deprecated (#8961) 2023-08-16 01:07:50 -07:00
project_euler [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
quantum [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
scheduling [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
scripts Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
searches improvements to jump_search.py (#8932) 2023-08-08 14:47:09 -07:00
sorts [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
strings [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
web_programming Move and reimplement convert_number_to_words.py (#8998) 2023-08-20 08:36:00 -04:00
.gitattributes Create .gitattributes for Cross OS compatibility (#3410) 2020-10-17 07:25:25 +02:00
.gitignore chore: update .gitignore (#6263) 2022-07-23 07:56:59 +05:30
.gitpod.yml Change gitpod configuration for python3. (#1827) 2020-04-07 12:20:08 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#9042) 2023-09-05 08:27:05 +05:30
CONTRIBUTING.md Add note in CONTRIBUTING.md about not asking to be assigned to issues (#8871) 2023-07-22 12:11:04 +02:00
DIRECTORY.md [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
LICENSE.md LICENSE: Year change (#5920) 2022-03-16 23:40:48 +08:00
pyproject.toml Fix ruff rules ISC flake8-implicit-str-concat (#8892) 2023-07-28 17:53:09 +01:00
README.md chore: use newest Discord invite link (#8696) 2023-07-30 18:15:30 -07:00
requirements.txt Texture analysis using Haralick Descriptors for Computer Vision tasks (#8004) 2023-09-05 00:04:36 -04:00

The Algorithms - Python

Gitpod Ready-to-Code Contributions Welcome Discord chat Gitter chat
GitHub Workflow Status pre-commit code style: black

All algorithms implemented in Python - for education

Implementations are for learning purposes only. They may be less efficient than the implementations in the Python standard library. Use them at your discretion.

Getting Started

Read through our Contribution Guidelines before you contribute.

Community Channels

We are on Discord and Gitter! Community channels are a great way for you to ask questions and get help. Please join us!

List of Algorithms

See our directory for easier navigation and a better overview of the project.