GO TO GO TO Description (below in this document) Script
NOTES ON PROGRAMS IN imgscr
____________________________________
______________________________________________________________
autoexp in.rgb out.rgb
employs: imgtools/imgexp imgtools/perhist
______________________________________________________________
bwto2 in.bw out.rgb r0 g0 b0 r1 g1 b1
employs: imgtools/imgexp imgtools/perhistThis is a way of creating a duotoned image by specifying the "end-points" of the range you want to interpolate between with the {{r0,g0,b0},{r1,g1,b1}} pair.
______________________________________________________________
chromablur in.rgb out.rgb blurpix
employs: imgtools/noblack imgtools/tobw imgtools/blur imgtools/setlumblurpix is used by blur and is treated as a floating point number. However integer values also work.
______________________________________________________________
epstogif in.eps out.gif
employs: pstools/fromeps imgtools/trans128 imgtools/unframe imgtools/togif
______________________________________________________________
filmgrain in.rgb out.rgb mag
employs: imgtools/tobw imgtools/randimg imgtools/addnoise imgtools/setlummag = 0.2 -- not much grain
______________________________________________________________
flip3 in.rgb out.rgb
employs: imgtools/iflip imgtools/assembleFrom left-to-right, out.rgb will consist of in.rgb, in.rgb flipped about the y axis, and a second copy of in.rgb.
______________________________________________________________
fromjpg in.jpg out.rgb
employs: imgtools/tosgifromjpg is easier to use than the djpeg converter prog in the ../jpeg/ {de}compression software dir.
______________________________________________________________
gifspace out.gif xpix ypix
employs: imgtools/conimg imgtools/togifIf one wanted to make a spacer 14 pixels long in x, one could do something akin to:
gifspace x10.gif 10 1
and, if one wanted to make a spacer 23 pixels high in y, one could do something akin to:
gifspace y23.gif 1 23
______________________________________________________________
gleam in.rgb out.rgb blur
employs: imgtools/tobw imgtools/imgexp imgtools/blur imgtools/addFrom the looks of it, a range of [5...25] is probably a good "starting point" for the value to assign to blur.
______________________________________________________________
handcolor in.rgb out.rgb blurpix
employs: imgtools/noblack imgtools/oneband imgtools/max imgtools/imgexp imgtools/halftone imgtools/blur imgtools/multThe higher the value of blurpix -- say in a range of [40...80] -- the more color and thinner the black diagonal lines will be included; the lower the value of blurpix -- say in a range of [0.2...10] -- the less range of color will be included and the thicker the black diagonal lines.
______________________________________________________________
highpass in.rgb out.rgb extrapoval blurpix
employs: imgtools/blur imgtools/blendTry -0.7 for extrapoval (that blend uses); blurpix seems to be able to go all over the place (e.g. [0.2...120]. See intense for an example of a specific set of parameters being used.
______________________________________________________________
hsvquant in.rgb out.rgb hlevels slevels vlevels
employs: imgtools/tohsv imgtools/oneband imgtools/quant imgtools/cglue imgtools/fromhsvhlevels, slevels, and vlevels are all integer values in the range of [0...255]. Try values of {2 40 40} for a "twist of red" or {2 12 10} to introduce more quantization.
______________________________________________________________
intense in.rgb out.rgb
employs: hipass
______________________________________________________________
linezoom in.bw out.bw xscale yscale
employs: imgtools/izoom imgtools/imgexplinezoom takes the black-and-white input image and performs a mitchell cubic filter kernel zoom, and then confines the range of pixel values to [127..128] with imgexp. If you don't want to change the size of the image, use "1.0 1.0" for "xscale yscale"; smaller values will shrink out.bw, while larger values will increase its size ("2.0 1.0" will double the size of the image in x).
______________________________________________________________
makespec out.rgb xsize ysize
employs: imgtools/greyscale imgtools/conimg imgtools/invert imgtools/cglue imgtools/fromhsvmakespace will create a "rainbow spectrum" in out.rgb with the x/y size in pixels you provide. The spectrum generated range across the y direction with constant values across the x direction. The same range of spectrum is generated for whatever length of y given so
makespec tallspec.rgb 30 80
creates a "tall" bar where the spectrum is "squished" between 0 and 29
while
makespec widespec.rgb 80 40
creates a "wide" bar where the spectrum is "spread out" between 0 and 79.
______________________________________________________________
maxsat in.rgb out.rgb
employs: nowhite imgtools/noblack imgtools/tobw imgtools/setlummaxsat saturates the given in.rgb input image to a reasonable maximum without going overboard.
______________________________________________________________
mkgauss out.bw xsize ysize
employs: imgtools/greyscale imgtools/multmkgauss generates out.bw with the specifed xsize ysize image dimensions.
mkgauss gauss.bw 100 50
produces the following:
______________________________________________________________
noiseblur in.rgb out.rgb noisemag blurpix
employs: imgtools/blur imgtools/randimg imgtools/addnoiseExamples of this take an izoom'd down copy of ../image/peppers.rgb and apply variations of
noisemag blurpix
pairs:
original 1 40 .5 40 .2 20
______________________________________________________________
nowhite in.rgb out.rgb
employs: imgtools/invert imgtools/noblack imgtools/invert
______________________________________________________________
pixelvis in.rgb out.bw
employs: imgtools/cutimg imgtools/tobw imgtools/hipass3 imgtools/randimg imgtools/addnoise imgtools/izoom imgtools/conimg imgtools/convolve imgtools/over
______________________________________________________________
rgmerge left.rgb right.rgb stereo.rgb
employs: imgtools/tobw imgtools/cglue
______________________________________________________________
showhsv in.rgb out.bw
employs: imgtools/tohsv imgtools/oneband imgtools/assembleTaking a zoom'd down version of ../images/sunflower.rgb,
showhsv outputs this trio-in-one:
______________________________________________________________
softfocus in.rgb out.rgb noisemag blurpix
employs: imgtools/blur imgtools/randimg imgtools/addnoise imgtools/blend
______________________________________________________________
splitalpha in.rgba out.rgb out.alpha
employs: imgtools/oneband imgtools/cglue
______________________________________________________________
stripalpha in.rgba out.rgb
employs: imgtools/oneband imgtools/cglue
______________________________________________________________
tobands in.rgb r.bw g.bw b.bw
employs: imgtools/oneband