Skip to content

KorayGocmen/medianfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

input

to

output

Thanks


Nikolas Moya, for writing the very informative Medium Article explaning the concept and providing the test frames used in this code.

About

Remove moving objects from a series of images and create a new image with median filter method

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages