Giter VIP home page Giter VIP logo

itktotalvariation's Introduction

ITKTotalVariation

image

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:

image

TotalVariation denoised:

image

Original:

image

Denoised:

image

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.

itktotalvariation's People

Contributors

dzenanz avatar hjmjohnson avatar jcfr avatar jhlegarreta avatar mseng10 avatar phcerdan avatar samuelgerber avatar tbirdso avatar thewtex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

itktotalvariation's Issues

Remote module does not configure

-- TotalVariation_proxTV_USE_EIGEN: ON
-- ITKTotalVariation: Using internal ITK Eigen Config found in: /home/johnsonhj/Dashboard/src/ITK-clang11/ITKInternalEigen3-build
-- Configuring proxTV
--   version: 3.2.1
--   description: Toolbox for fast Total Variation proximity operators
-- Eigen Found: /home/johnsonhj/Dashboard/src/ITK/Modules/ThirdParty/Eigen3/src/itkeigen
-- OpenMP found: TRUE
CMake Error at /home/johnsonhj/Dashboard/src/ITK-clang11/_deps/proxtv_fetch-build/proxTVConfig.cmake:11 (message):
  File or directory
  /home/johnsonhj/Dashboard/src/ITK-clang11/_deps/proxtv_fetch-build/proxTVTargets.cmake
  referenced by variable proxTV_TARGETS does not exist !
Call Stack (most recent call first):
  /home/johnsonhj/Dashboard/src/ITK-clang11/_deps/proxtv_fetch-build/proxTVConfig.cmake:17 (set_and_check)
  /home/johnsonhj/Dashboard/src/ITK-clang11/lib/cmake/ITK-5.1/Modules/TotalVariation.cmake:20 (find_package)
  CMake/ITKModuleAPI.cmake:76 (include)
  CMake/ITKModuleAPI.cmake:7 (itk_module_load)
  CMake/ITKModuleAPI.cmake:153 (_itk_module_use_recurse)
  CMake/ITKModuleMacros.cmake:328 (itk_module_use)
  Modules/Remote/TotalVariation/test/CMakeLists.txt:1 (itk_module_test)


-- Configuring incomplete, errors occurred!
See also "/home/johnsonhj/Dashboard/src/ITK-clang11/CMakeFiles/CMakeOutput.log".
See also "/home/johnsonhj/Dashboard/src/ITK-clang11/CMakeFiles/CMakeError.log".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.