Leptonica 1.54
Файл src/binexpand.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "allheaders.h"

Функции

PIXpixExpandBinaryReplicate (PIX *pixs, l_int32 factor)
PIXpixExpandBinaryPower2 (PIX *pixs, l_int32 factor)

Функции

PIX* pixExpandBinaryPower2 ( PIX pixs,
l_int32  factor 
)

pixExpandBinaryPower2()

Input: pixs (1 bpp) factor (expansion factor: 1, 2, 4, 8, 16) Return: pixd (expanded 1 bpp by replication), or null on error

PIX* pixExpandBinaryReplicate ( PIX pixs,
l_int32  factor 
)

pixExpandBinaryReplicate()

Input: pixs (1 bpp) factor (integer scale factor for replicative expansion) Return: pixd (scaled up), or null on error