https://github.com/koraygocmen/medianfilter
Remove moving objects from a series of images and create a new image with median filter method
https://github.com/koraygocmen/medianfilter
go golang image image-processing images medianfilter
Last synced: 11 months ago
JSON representation
Remove moving objects from a series of images and create a new image with median filter method
- Host: GitHub
- URL: https://github.com/koraygocmen/medianfilter
- Owner: KorayGocmen
- Created: 2018-07-19T16:15:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-01T02:38:04.000Z (almost 7 years ago)
- Last Synced: 2025-03-22T06:16:54.237Z (over 1 year ago)
- Topics: go, golang, image, image-processing, images, medianfilter
- Language: Go
- Homepage:
- Size: 6.91 MB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `MedianFilter`
Package MedianFilter implements a simple library for image operations. The library can work with pngs or jpgs. Same functions can be used for both of those image types.
Read more here:
http://www.koraygocmen.com/removing-moving-objects-from-images-in-go
---
#### Full Documentation:
https://godoc.org/github.com/KorayGocmen/MedianFilter
```go
package main
import (
"io/ioutil"
"log"
"github.com/koraygocmen/MedianFilter"
)
func main() {
files, err := ioutil.ReadDir("./test-frames/")
if err != nil {
log.Fatal(err)
}
var filePaths []string
for _, f := range files {
filePaths = append(filePaths, "./test-frames/"+f.Name())
}
if err := MedianFilter.RemoveMovingObjs(filePaths, "./out.jpg"); err != nil {
log.Fatal(err)
}
}
```
## Result

to

### Thanks
---
Nikolas Moya, for writing the very informative [Medium Article](https://medium.com/@nikolasmoya/simple-algorithm-to-remove-moving-objects-from-pictures-cdd3396c68e0) explaning the concept and providing the test frames used in this code.