This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A total variation denoising implementation in python.

Project Description

This is a Python implementation of Total Variation Denoising method proposed by Guy Gilboa.

Reduces the total-variation of the image. Filters out noise while preserving edges. Textures and fine-scale details are also removed.

Requirements

To run this code you need the following packages:

Everything but OpenCV can be installed via “pip install -r requirements“

Installation

To install everything just type:

pip install py-tvd

For manual installation:

python setup.py install

Probably you have to run it with sudo.

Testing

Test are provided via unittest.

To run them all:

nosetests

Examples

import cv2
from tvd import TotalVariationDenoising
import os

image = cv2.imread(os.path.dirname(__file__) + '/../assets/example.bmp')
image = cv2.cvtColor(image, cv2.COLOR_BGR2YCR_CB)
subject = TotalVariationDenoising(image[:, :, 0])
output = subject.generate()
cv2.imshow('Total Variation Denoising image', output / 255)
cv2.waitKey(0)
cv2.destroyAllWindows()

The conversion to YCbCr color space is optionally (sure?)

Release History

Release History

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
py-tvd-1.0.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Nov 3, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting