Metadata-Version: 2.1
Name: LinearRecolor
Version: 1.0.0
Summary: 基于线性映射模板的色彩转移(Based on Image recoloring using linear template mapping)
Home-page: https://github.com/freedomofme/SampleRecolor
Author: yelhuang
Author-email: xiegeixiong@gmail.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/freedomofme/SampleRecolor/issues
Project-URL: Source, https://github.com/freedomofme/SampleRecolor
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: cycler (==0.10.0)
Requires-Dist: decorator (==4.4.1)
Requires-Dist: httplib2 (==0.14.0)
Requires-Dist: imageio (==2.6.1)
Requires-Dist: joblib (==0.14.0)
Requires-Dist: kiwisolver (==1.1.0)
Requires-Dist: matplotlib (==3.1.1)
Requires-Dist: networkx (==2.4)
Requires-Dist: nltk (==3.4.5)
Requires-Dist: numpy (==1.17.3)
Requires-Dist: opencv-python (==4.1.2.30)
Requires-Dist: pandas (==0.25.3)
Requires-Dist: Pillow (==6.2.1)
Requires-Dist: pyparsing (==2.4.4)
Requires-Dist: python-dateutil (==2.8.1)
Requires-Dist: pytz (==2019.3)
Requires-Dist: PyWavelets (==1.1.1)
Requires-Dist: scikit-image (==0.16.2)
Requires-Dist: scikit-learn (==0.21.3)
Requires-Dist: scipy (==1.3.1)
Requires-Dist: six (==1.13.0)
Requires-Dist: sklearn (==0.0)

#Image recoloring using linear template mapping 基于线性映射模板的色彩转移

>based on 《Image recoloring using linear template mapping》
>

### Install

### Usage
    _root_dir = os.path.dirname(__file__)
    reuslt = linear_recolor(_root_dir + '/image/apple/manifest.png',
                  _root_dir + '/image/apple/source.png',
                   reverse_map=True)

    cv2.imwrite('./test2.png', reuslt)

    reverse_map:参数指明 线性映射的方向，可选值：False || True 

### Advance Usage
manifest.png could be created by this program [Grayscale](https://github.com/freedomofme/Grayscale).

    som = SOMGraySclae()
    manifest = som.get_1d_manifold(one_souce_image)

#### 原图(source.png)：
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/source.png)

#### 模板(manifest.png)（基于Data-driven Color Manifolds 生成）[参见get_1d_manifold](https://github.com/freedomofme/Grayscale)
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/manifest.png)

#### 效果图
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/result.png)
==
![](https://raw.githubusercontent.com/freedomofme/SampleRecolor/master/image/apple/result_reverse.png)

