Skip to main content

TotalVariation algorithms, providing a wrap for the external project: https://github.com/albarji/proxTV

Project description

https://github.com/InsightSoftwareConsortium/ITKTotalVariation/workflows/Build,%20test,%20package/badge.svg PyPI License

Overview

TotalVariation algorithms. itkProxTVImageFilter provides a wrap for the external project proxTV: https://github.com/albarji/proxTV

ITK provides wrapping for Windows, macOS and Linux:

import itk
Dimension = 3
I = itk.Image[itk.F, Dimension]
reader = itk.ImageFileReader[I].New(FileName=file_name)
reader.Update()
image = reader.GetOutput()
tv = itk.ProxTVImageFilter[I, I].New()
tv.SetInput(image)
tv.SetMaximumNumberOfIterations(10)
tv.SetWeights(100)
tv.Update()
output_file_name="/tmp/tvout.nrrd"
itk.imwrite(tv.GetOutput(), output_file_name)

Examples of 3D image denoised

Original:

https://user-images.githubusercontent.com/3021667/55841022-95524a00-5afb-11e9-92f1-3743c4ddbf4c.png

TotalVariation denoised:

https://user-images.githubusercontent.com/3021667/55841021-94b9b380-5afb-11e9-9961-37072274bd68.png

Original:

https://user-images.githubusercontent.com/3021667/38002434-9fc35d32-3232-11e8-8bfc-a7d9ce6888c7.png

Denoised:

https://user-images.githubusercontent.com/3021667/38002451-b87bed62-3232-11e8-814b-50e8fb0f79cb.png

Installation

To install the binary Python packages:

python -m pip install itk-totalvariation

Since ITK 5.0.0, this module is available in the ITK source tree as a remote module. To enable it, set:

Module_TotalVariation:BOOL=ON

in ITK’s CMake build configuration.

License

This software is distributed under the Apache 2.0 license. Please see the LICENSE file for details.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

itk_totalvariation-1.0.1-cp311-abi3-win_amd64.whl (547.0 kB view hashes)

Uploaded CPython 3.11+ Windows x86-64

itk_totalvariation-1.0.1-cp311-abi3-manylinux_2_28_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.11+ manylinux: glibc 2.28+ x86-64

itk_totalvariation-1.0.1-cp311-abi3-manylinux_2_28_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.11+ manylinux: glibc 2.28+ ARM64

itk_totalvariation-1.0.1-cp311-abi3-manylinux_2_17_x86_64.whl (684.8 kB view hashes)

Uploaded CPython 3.11+ manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.11+ manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp311-abi3-macosx_11_0_arm64.whl (436.2 kB view hashes)

Uploaded CPython 3.11+ macOS 11.0+ ARM64

itk_totalvariation-1.0.1-cp311-abi3-macosx_10_9_x86_64.whl (555.2 kB view hashes)

Uploaded CPython 3.11+ macOS 10.9+ x86-64

itk_totalvariation-1.0.1-cp310-cp310-win_amd64.whl (547.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

itk_totalvariation-1.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

itk_totalvariation-1.0.1-cp310-cp310-manylinux_2_28_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

itk_totalvariation-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl (688.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (435.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

itk_totalvariation-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl (555.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

itk_totalvariation-1.0.1-cp39-cp39-win_amd64.whl (548.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

itk_totalvariation-1.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

itk_totalvariation-1.0.1-cp39-cp39-manylinux_2_28_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

itk_totalvariation-1.0.1-cp39-cp39-manylinux_2_17_x86_64.whl (687.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp39-cp39-macosx_11_0_arm64.whl (435.0 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

itk_totalvariation-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl (555.8 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

itk_totalvariation-1.0.1-cp38-cp38-win_amd64.whl (575.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

itk_totalvariation-1.0.1-cp38-cp38-manylinux_2_28_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

itk_totalvariation-1.0.1-cp38-cp38-manylinux_2_28_aarch64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ ARM64

itk_totalvariation-1.0.1-cp38-cp38-manylinux_2_17_x86_64.whl (687.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

itk_totalvariation-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl (555.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page