Skip to main content

基于线性映射模板的色彩转移(Based on Image recoloring using linear template mapping)

Project description

#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.

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

原图(source.png):

模板(manifest.png)(基于Data-driven Color Manifolds 生成)参见get_1d_manifold

效果图

Project details


Download files

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

Files for LinearRecolor, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size LinearRecolor-1.0.0-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size LinearRecolor-1.0.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page