kwcckw / pixel_map

Map colour from the input image to different template image with different angles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pixel_map

Map colour from the input image to different template image with different angles

  1. Folder 'template_images' containing template images in different angles

  2. Folder 'transformed_images'containing the coloured template images in different angles

  3. 'compute_mapping_images.py' is the definition file which use 1 input image and output 16 output images in different angles

  4. 'example_usage.py' is the example file on how to use the 'compute_mapping_images.py'

  5. 'example_usage.py' will use the input image with name 'img_input.png' in the same directory

  6. The code is built in Python 3.6.8 and it is advisable to use this similar version to run the code

  7. The code only work in the current provided input image 'img_input_ori.png'.

Input image (no colouring)

Input image

Input image (with colouring)

Input image

Output images (different angle with colour mapping)

Input image Input image Input image Input image

Input image Input image Input image Input image

Input image Input image Input image Input image

Input image Input image Input image Input image

About

Map colour from the input image to different template image with different angles

License:MIT License


Languages

Language:Python 100.0%