shithub: subpixelize


branches: front

Clone

clone: git://shithub.us/sirjofri/subpixelize gits://shithub.us/sirjofri/subpixelize
push: hjgit://shithub.us/sirjofri/subpixelize

Last commit

048812d8 – sirjofri <sirjofri@sirjofri.de> authored on 2026/03/03 16:43
documentation

About

subpixelize image filter

USAGE

  subpixelize < input.bit > output.bit


Subpixelize converts a grayscale image to a colored image that makes use of subpixels to add fine details.

The program expects an image three times the size of the target image. Each group of 3x3 pixels will be converted to a single pixel that is composed out of the three subpixels.

It is possible to scale the value by using grayscale values. The subpixel will be filled with the average value of its column. For example, both

000 128 000
000 128 000
000 128 000

and

000 255 000
000 128 000
000 000 000

will be converted to rgb(0, 128, 0).


Unsubpixelize does the inverse of subpixelize.


BUGS

The groups of 3x3 pixels need to be aligned to the grid.

Input and output images must/will have at least 3 channels (RGB24). The fourth channel will be ignored.

Subpixelize supports only horizontal subpixels (RGB in a row).

Some people don't like subpixels.