Skip to content

Python + OpenCV implementation of fast Cartoon+Texture Decomposition algorithm

License

Notifications You must be signed in to change notification settings

tochikuji/Cartoon-Texture-Decomposition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartoon+Texture Decomposition

Description

A Python implementation of Cartoon+Texture decomposition algorithm proposed in [Baudes+11].

Requirements

  • Python > 3.5
  • OpenCV
  • matplotlib (example)

Installation

git clone https://github.com/tochikuji/Cartoon-Texture-Decomposition
cd Cartoon-Texture-Decomposition
pip install .

Example

import cv2
from cartex import CartoonTextureDecomposition 

img = cv2.imread("./lenna.png", 0)
decomposer = CartoonTextureDecomposition()
cartoon, texture = decomposer.decompose(img)

Then we get the decomposition result as following (sigma=2):

Original

Cartoon Part

Texture Part

LICENSE

Apache 2.0

Refer to LICENSE

Author

Aiga SUZUKI [email protected]

About

Python + OpenCV implementation of fast Cartoon+Texture Decomposition algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages