VOOZH about

URL: https://www.geeksforgeeks.org/python/wand-remap-function-in-python/

⇱ Wand remap() function in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Wand remap() function in Python

Last Updated : 11 May, 2020
The Remap Effect replaces all pixels with the closest matching pixel found in the affinity reference image. remap() rebuild image palette with closest color from given affinity image.
Syntax: wand.image.remap(affinity, method) Parameters :
Parameter Input Type Description
affinity BaseImage reference image.
method basestring dither method. See DITHER_METHODS. Default is 'no' dither.
Input Image: 👁 Image
Example 1: Output: 👁 Image
Input Image: 👁 Image
Example 2:
Output: 👁 Image
Comment
Article Tags: