{"id":18821610,"url":"https://github.com/octu0/wavelet","last_synced_at":"2026-01-18T09:30:17.960Z","repository":{"id":157302144,"uuid":"612886936","full_name":"octu0/wavelet","owner":"octu0","description":"a simple wavelet","archived":false,"fork":false,"pushed_at":"2023-04-28T09:56:50.000Z","size":1275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T03:43:14.996Z","etag":null,"topics":["golang","haar-wavelet-tranforms","wavelet-transform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octu0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-12T09:27:03.000Z","updated_at":"2024-05-08T01:43:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ba142d8-33be-4fce-be42-498262339f03","html_url":"https://github.com/octu0/wavelet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fwavelet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fwavelet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fwavelet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octu0%2Fwavelet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octu0","download_url":"https://codeload.github.com/octu0/wavelet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"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":["golang","haar-wavelet-tranforms","wavelet-transform"],"created_at":"2024-11-08T00:44:53.826Z","updated_at":"2026-01-18T09:30:17.906Z","avatar_url":"https://github.com/octu0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `wavelet`\n\nsimple wavelet implementation.\n\n### Example\n\n```go\npackage main\n\nimport (\n\t\"math\"\n\n\t\"github.com/octu0/wavelet\"\n)\n\nfunc main() {\n\thigh, low := wavelet.Haar([]float64{1.0, 2.0, 3.0, 4.0, 5.0, 8.0})\n\tprintln(high) // =\u003e [2.12.., 4.94.., 9.19]\n\tprintln(low)  // =\u003e [-0.707.., -0.707.., -2.12..]\n\n\tout := wavelet.InverseHaar(high, low)\n\tprintln(out)  // =\u003e [0.999, 1.999, 3.000, 3.999, 5.000, 7.999]\n\n\tfor i, v := range out {\n\t\tout[i] = math.Ceil(v)\n\t}\n\tprintln(out)  // =\u003e [1, 2, 3, 5, 8]\n}\n```\n\n### Example RGBA\n\nAn example of converting an image to an intermediate format is implemented in [_example](https://github.com/octu0/wavelet/tree/master/_example)\n\nsource image \n\n| original      |                                     |\n| :-----------: | :---------------------------------: |\n| source        | ![img](_example/src.png)            |\n| intermediate  | ![img](_example/intermediate.png)   |\n| substract 55% | ![img](_example/substract_0.55.png) |\n| substract 75% | ![img](_example/substract_0.75.png) |\n| substract 85% | ![img](_example/substract_0.85.png) |\n| substract 95% | ![img](_example/substract_0.95.png) |\n| inverse       | ![img](_example/inverse.png)        |\n| runlength-enc | 104KB                               |\n| runlength-dec | ![img](_example/decoded.png)        |\n\n# License\n\nMIT, see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fwavelet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctu0%2Fwavelet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctu0%2Fwavelet/lists"}