{"id":19383347,"url":"https://github.com/mdouchement/bilateral","last_synced_at":"2025-02-24T17:15:40.112Z","repository":{"id":57500104,"uuid":"123173274","full_name":"mdouchement/bilateral","owner":"mdouchement","description":"A Fast Bilateral image filter for Golang","archived":false,"fork":false,"pushed_at":"2020-05-10T02:11:30.000Z","size":1705,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T06:50:10.775Z","etag":null,"topics":["bilateral","bilateral-filter","filter","golang","image","image-processing","library"],"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/mdouchement.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}},"created_at":"2018-02-27T18:50:56.000Z","updated_at":"2021-03-25T08:43:31.000Z","dependencies_parsed_at":"2022-08-28T14:21:16.632Z","dependency_job_id":null,"html_url":"https://github.com/mdouchement/bilateral","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fbilateral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fbilateral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fbilateral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fbilateral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/bilateral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240521052,"owners_count":19814694,"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":["bilateral","bilateral-filter","filter","golang","image","image-processing","library"],"created_at":"2024-11-10T09:25:39.539Z","updated_at":"2025-02-24T17:15:40.065Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast Bilateral filter for Golang\n\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/mdouchement/bilateral)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mdouchement/bilateral)](https://goreportcard.com/report/github.com/mdouchement/bilateral)\n[![License](https://img.shields.io/github/license/mdouchement/bilateral.svg)](http://opensource.org/licenses/MIT)\n\nA FastBilateral filter is a non-linear, edge-preserving and noise-reducing\nsmoothing filter for images. The intensity value at each pixel in an image is\nreplaced by a weighted average of intensity values from nearby pixels.\n\nAlgorithm and implementation is based on http://people.csail.mit.edu/sparis/bf/ \u003cbr\u003e\nPlease cite above paper for research purpose.\n\n\n\n| Original | Filtered | Luminance Filtered |\n|:--:|:--:|:--:|\n| ![original](https://github.com/mdouchement/bilateral/blob/master/data/greekdome-gray.jpeg)\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e | ![filtered](https://github.com/mdouchement/bilateral/blob/master/data/greekdome-gray-filtered.jpeg)\u003cbr\u003eSigmaSpace: `16`\u003cbr\u003eSigmaRange: `0.076` (auto)\u003cbr\u003eExecution time `1.22s` | ![luminance](https://github.com/mdouchement/bilateral/blob/master/data/greekdome-gray-filtered-lum.jpeg)\u003cbr\u003eSigmaSpace: `16`\u003cbr\u003eSigmaRange: `0.76` (auto)\u003cbr\u003eExecution time `348.56ms` |\n| ![original](https://github.com/mdouchement/bilateral/blob/master/data/greekdome.jpeg)\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e | ![filtered](https://github.com/mdouchement/bilateral/blob/master/data/greekdome-filtered.jpeg)\u003cbr\u003eSigmaSpace: `16`\u003cbr\u003eSigmaRange: `0.092` (auto)\u003cbr\u003eExecution time `21.66s` | ![luminance](https://github.com/mdouchement/bilateral/blob/master/data/greekdome-filtered-lum.jpeg)\u003cbr\u003eSigmaSpace: `16`\u003cbr\u003eSigmaRange: `0.76` (auto)\u003cbr\u003eExecution time `347.69ms` |\n\n```go\n// Fast Bilateral\nbilateral.Auto(m)\n\n// Luminance Fast Bilateral\nluminance.Auto(m)\n```\n\n## Requirements\n\n- Golang 1.7.x\n\n## Installation\n\n```bash\n$ go get -u github.com/mdouchement/bilateral\n```\n\n## Usage\n\n```go\nfi, _ := os.Open(\"input_path\")\ndefer fi.Close()\n\nm, _, _ := image.Decode(fi)\n\nstart := time.Now()\nfbl := bilateral.New(m, 16, 0.1)\nfbl.Execute()\nm2 := fbl.ResultImage() // Or use `At(x, y)` func or just use `fbl` as an image.Image for chained treatments.\n\nfo, _ := os.Create(\"output_path\")\ndefer fo.Close()\n\njpeg.Encode(fo, m2, \u0026jpeg.Options{Quality: 100})\n```\n\n[Full example](https://github.com/mdouchement/bilateral/blob/master/data/main.go)\n\n## Licence\n\nMIT. See the [LICENSE](https://github.com/mdouchement/bilateral/blob/master/LICENSE) for more details.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Launch linter (`gometalinter --config=gometalinter.json ./...`)\n4. Commit your changes (`git commit -am 'Add some feature'`)\n5. Push to the branch (`git push origin my-new-feature`)\n6. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fbilateral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fbilateral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fbilateral/lists"}