N
N
newobj2015-12-26 01:07:35
Programming
newobj, 2015-12-26 01:07:35

Picture from pictures. How to do it??

Hello.
Interested in the algorithm for generating an image from pictures or symbols?
Couldn't google(
Please help)
Example:
pinup_icon.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2015-12-26
@newobj

The simplest option ...
1. For each small picture, select a "medium" color.
2. Reduce the original image to M×N px, and in each pixel, instead of a solid color, substitute the picture that best suits the color.
The algorithm can be improved - for example, substitute one of the 10 most suitable ones, and if there are much more than 10 pictures in a radius of, say, 30 units, take them all. And you can also use the Floyd-Steinberg error correction method (the most successful method when translating pictures into N colors)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question