The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Image::Leptonica::Func::binexpand

VERSION

version 0.04

binexpand.c

  binexpand.c

      Replicated expansion (integer scaling)
         PIX     *pixExpandBinaryReplicate()

      Special case: power of 2 replicated expansion
         PIX     *pixExpandBinaryPower2()

      Expansion tables for power of 2 expansion
         static l_uint16    *makeExpandTab2x()
         static l_uint32    *makeExpandTab4x()
         static l_uint32    *makeExpandTab8x()

FUNCTIONS

pixExpandBinaryPower2

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

pixExpandBinaryReplicate

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

AUTHOR

Zakariyya Mughal <zmughal@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Zakariyya Mughal.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.