It doesn't work in octave; the rgb2ind function has the same name in Octave but the interface is different than in MATLAB.
I can only add an executable version in Github
You will need matlab runtime library to execute it (it is free but huge)
EXE added
https://github.com/artrag/Screen-2-converter-with-sprite-ove...
oh, there is also a runtime for Linux. I am going to give it a try.
In the meantime I sort-of got the octave version working by converting the input image to the right palette using gimp.
The result is quite impressive!
Really good tool ARTRAG!
That image was quite challenging to convert to sc2 due to the bad alignment of the tiles in the body of the church; using an sprite overlay looks almost perfect.
original image for reference:
Looks nice. Can you not remove a few pixels from the trees to the right to avoid the bleed on the building? Assuming you’re all out of sprites… Nobody’s going to notice .
In the meantime I sort-of got the octave version working by converting the input image to the right palette using gimp.
The result is quite impressive!
Really good tool ARTRAG!
Hi Enric, thanks!
You should also show the error map and the sprite overlay. They are generated during the optimization and show as images.
The algorithm is a full search for the position of the current sprite able to maximise the number of errors covered at each step. All keeping into account the limit of 4 sprites per line.
I cannot say if it leads always to the best solution in terms of minimum number of wrong pixels, but manually I haven't ever found better solutions than those from this algorithm.
Any suggestion to improve in the optimization is welcome.
:)