AminetAminet
Search:
84799 packages online
About
Recent
Browse
Search
Upload
Setup
Services

gfx/misc/flickwerk.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Picture mosaic creator
Author:Timm S. Müller
Uploader:Timm S Müller (timm mueller darmstadt netsurf de)
Type:gfx/misc
Version:0.0.1
Architecture:m68k-amigaos
Date:1999-02-15
Requires:os3.0 (v39), 68020
Download:gfx/misc/flickwerk.lha - View contents
Readme:gfx/misc/flickwerk.readme
Downloads:537

flickwerk
documentation


introduction
-------------------

flickwerk is a picture mosaic generator. it
creates an approximation of a reference picture by
composing it from a large number of small source
pictures.



legal status
-------------------

© by TEK neoscientists. freeware.



requirements
-------------------

- os3.0 (v39)
- 68020
- guigfx.library v15
- render.library v29

recommended:

- fast CPU
- 24bit datatypes installed and properly working
- a large number of pictures



warning
-------------------

this software will overwrite the filecomments of
all source pictures specified.

this behavior cannot be disabled. if you don't
want to lose your source pictures' filecomments,
you must copy these picures to another location
first.



usage
-------------------

flickwerk is a shell command. template:

flickwerk WITH=S0URCEFILES/A/M,
          FR0M=REFFILE/A,
          T0=0UTFILE/A,
          UPDATE/S,
          USEKEYS/S,
          X=XSEGMENTS/N,
          Y=YSEGMENTS/N,
          W=PARTWIDTH/N,
          H=PARTHEIGHT/N,
          FX=ALLOWFLIPX/S,
          FY=ALLOWFLIPY/S
           
           
WITH=SOURCEFILES/A/M
any number of files, directories, volumes. pattern
matching is supported. directories will be scanned
recursively. warning: any picture encountered will
receive a new filecomment without further notice!

FROM=REFFILE/A
reference picture to be approximated.

TO=OUTFILE/A
filename of the picture to be generated. this
picture will be saved in PPM format.

UPDATE/S
recalculate all keys, no matter if valid keys were
encountered.

USEKEYS/S
do not generate new keys, only use pictures with
already existing keys.
  
X=XSEGMENTS/N
number of mosaic parts to compose the picture from
(horizontally). defaults to 20.

Y=YSEGMENTS/N
number of mosaic parts to compose the picture from
(vertically). defaults to 20.

W=PARTWIDTH/N
width of a single mosaic part. default: 40

H=PARTHEIGHT/N
height of a single mosaic part. default: 30

FX=ALLOWFLIPX/S
allow horizontal mirroring. note: this option will
double the calculation time.

FY=ALLOWFLIPY/S
allow vertical mirroring. note: this option will
double the calculation time.


  
how it works
-------------------

1. key-list creation

the supplied directories will be scanned for valid
pictures. any newly encountered picture will be
loaded and reduced to a 360 bit key. if not
already present, the key will encoded to an ascii
string and written to the picture's filecomment.
(valid filecomments will be simply decoded back to
keys.)


2. selection

after building the list of keys, the reference
picture will be loaded and decomposed to the
specified number of mosaic segments (by default
20x20). each segment will be reduced to a 360 bit
reference key. each reference key will be compared
against all keys in the source list.


3. composition

the best matching pictures will be loaded, scaled,
and inserted to their respective locations in the
resulting picture. this picture is finally saved
in PPM format.



notes
----------------------------------

- it may take many hours when you apply flickwerk
to a large number of source pictures the first
time. this depends on the number of pictures,
their sizes, formats, the datatypes used, and the
general system performance. further usage of the
same source material will be much faster.

- it's a good idea to reduce the task priority of
the shell process running flickwerk. use e.g.
changetaskpri -3.

- the source pictures will be cropped to areas
with differing pixels. this will cut off e.g.
black borders.

- you should take care of the reference picture's
aspect ratio. the default settings apply to an
aspect ratio of 4:3. different aspect ratios
require appropriate settings for
PARTWIDTH/PARTHEIGHT or XSEGMENTS/YSEGMENTS.


   

how to obtain good looking results
----------------------------------

- use a simple and contrastful image as the
reference picture, e.g. a face, a logo.

- allow horizontal and vertical mirroring of the
source pictures, i.e. specify the options FX and
FY.

- the more source pictures you specify, the better
the results you get. 'several thousands' is a good
measure.

- use heterogenous, contrastful source pictures.
do not include workbench patterns and pale stuff
alike.

- use larger numbers for XSEGMENTS and YSEGMENTS.

- the segments are currently not scaled with
interpolation. workaround: specify larger mosaic
parts (PARTWIDTH/PARTHEIGHT), and scale down the
output picture with an image processing software.



author
-------------------

bifat / TEK neoscientists
timm.mueller@darmstadt.netsurf.de


Contents of gfx/misc/flickwerk.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                16094   25968  62.0% -lh5- 7f31 Feb 14  1999 flickwerk/flickwerk_68020
[generic]                13793   22148  62.3% -lh5- df6a Feb 14  1999 flickwerk/flickwerk_68040
[generic]                 1031    1528  67.5% -lh5- d4e8 Feb 14  1999 flickwerk/README.info
[generic]                 1084    1871  57.9% -lh5- f80d Feb 14  1999 flickwerk/source.info
[generic]                  155     450  34.4% -lh5- 695a Dec 10  1998 flickwerk/source/Debug.h
[generic]                  395    1121  35.2% -lh5- 92ab Feb 14  1999 flickwerk/source/defs.h
[generic]                 1870    7999  23.4% -lh5- cc1c Feb 13  1999 flickwerk/source/filelist.c
[generic]                  366    1005  36.4% -lh5- 7842 Feb 13  1999 flickwerk/source/filelist.h
[generic]                 3776   13649  27.7% -lh5- 7190 Feb 14  1999 flickwerk/source/flickwerk.c
[generic]                   73     277  26.4% -lh5- 2691 Jan 22  1999 flickwerk/source/flickwerk.h
[generic]                 1049    3756  27.9% -lh5- 0c5c Feb 14  1999 flickwerk/source/global.c
[generic]                  162     515  31.5% -lh5- 9695 Jan 21  1999 flickwerk/source/global.h
[generic]                 2870   11189  25.7% -lh5- f2a5 Feb  8  1999 flickwerk/source/picturekey.c
[generic]                  436    1462  29.8% -lh5- f466 Feb  9  1999 flickwerk/source/picturekey.h
[generic]                 1081    1871  57.8% -lh5- 2ac5 Feb 14  1999 flickwerk.info
[generic]                 1988    4780  41.6% -lh5- 9402 Feb 14  1999 flickwerk/README
[generic]                 1040    2971  35.0% -lh5- 06b8 Jan 25  1999 flickwerk/source/scan.c
[generic]                  141     448  31.5% -lh5- 9523 Jan 22  1999 flickwerk/source/scan.h
[generic]                  536    1208  44.4% -lh5- 9612 Feb 14  1999 flickwerk/source/smakefile-optimize20
[generic]                  539    1208  44.6% -lh5- fb50 Feb 14  1999 flickwerk/source/smakefile-optimize40
[generic]                 1456    6355  22.9% -lh5- 7066 Jan 25  1999 flickwerk/source/tools.c
[generic]                  278     921  30.2% -lh5- dbf5 Jan 21  1999 flickwerk/source/tools.h
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        22 files   50213  112700  44.6%            Feb 15  1999
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>