{"id":29516216,"url":"https://github.com/anthonyray/haarwavelets","last_synced_at":"2025-07-16T14:42:19.730Z","repository":{"id":23453195,"uuid":"26817029","full_name":"anthonyray/HaarWavelets","owner":"anthonyray","description":"A simple implementation of one dimensional and two dimensional Haar wavelets.","archived":false,"fork":false,"pushed_at":"2015-01-07T13:13:16.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T09:15:23.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonyray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-18T15:57:55.000Z","updated_at":"2019-01-23T13:52:54.000Z","dependencies_parsed_at":"2022-08-21T18:00:22.039Z","dependency_job_id":null,"html_url":"https://github.com/anthonyray/HaarWavelets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonyray/HaarWavelets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyray%2FHaarWavelets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyray%2FHaarWavelets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyray%2FHaarWavelets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyray%2FHaarWavelets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonyray","download_url":"https://codeload.github.com/anthonyray/HaarWavelets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyray%2FHaarWavelets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265518952,"owners_count":23781051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-16T14:42:09.974Z","updated_at":"2025-07-16T14:42:19.722Z","avatar_url":"https://github.com/anthonyray.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haar Wavelet Transformation\n\nThis is a simple implementation of one dimensional and two dimensional Haar Wavelets Transformation.\n\nFor each transformation, the input is a 1D or 2D array of double, and the output is a 1D or 2D array of double.\n\n## Usage\n\n### One dimensional Haar Wavelet transformation\nLet's take the following example. We have a 1D array of double.\n\n```java\ndouble[] data = {9, 7, 3, 5 };\n```\nWe instantiate a class to transform the matrix :\n\n```java\nHaarWavelet1D oneD = new HaarWavelet1D(data);\noneD.standardDecomposition();\n```\n\nThe result is :\n```\nProcessing One Dimensional Haar Wavelet Transformation\nInput :\n9.0, 7.0, 3.0, 5.0\nOutput :\n6.0, 2.0, 1.0, -1.0\n```\n\n### Two dimensional Haar Wavelet transformation\n\nLet's take the following example : We have a 2D array of double.\n\n```java\ndouble[][] data2D = {{9, 7, 3, 5 },{2, 4, 8, 4 },{1, 7, 13, 4 },{19, 27, 53, 45 }};\n\nHaarWavelet2D twoD = new HaarWavelet2D(data2D);\n\n```\n\nThe result is the following :\n```\nProcessing Two Dimensional Haar Wavelet Transformation\nInput :\n9.0, 7.0, 3.0, 5.0\n2.0, 4.0, 8.0, 4.0\n1.0, 7.0, 13.0, 4.0\n19.0, 27.0, 53.0, 45.0\n\nOutput :\n13.1875, -3.6875, -1.75, 2.375\n-7.9375, 3.9375, 1.75, -1.875\n0.75, 1.75, 1.0, -1.5\n-14.875, 5.375, 0.5, 0.25\n```\n\n### Applying to images\n\nUsing the ```ImageMatrixIO``` class, you can convert an RGB image to a matrix and a matrix to an RGB image. An example is written in the ```Demo``` class.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyray%2Fhaarwavelets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonyray%2Fhaarwavelets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyray%2Fhaarwavelets/lists"}