snibgo's ImageMagick pages

Zipped BAT files

For convenience, scripts and C functions are available in a single zip file.

These pages contain commands within the body of the text. The commands often call scripts, like this:

call %PICTBAT%bats2zip

These scripts are listed at the end of the page, under the heading "Scripts". I do this so readers can easily refer to the script and see what it does, confident that this exact script (with the stated version of ImageMagick) made the images shown.

However, if users want to download a script, they need to copy-paste from the web page, which is difficult to automate.

So I provide a zip file called imsnibgoBats.zip containing all the BAT files that are included in pages.

The zip file also contains imsnibgoBats.txt, which lists the BAT files, and also shows in which directory they are installed. Most BAT files are installed in %PICTBAT%. If that directory is in your system path, you don't need to set that environment variable. Some BAT files are in %Util%, and BAT files expect that directory to be in the system path, so those scripts are called without a %Util% prefix.

The zip file also contains *.c source code files that I use for customising IM.

The zip file is regenerated whenever this page is regenerated, which is shown as "Page created" on the bottom of this page.

Here is an index of the files, and the pages they are described in:

%IMFILTSRC%addend.c, Process modules
%IMFILTSRC%allwhite.c, Process modules
%IMFILTSRC%applines.c, Process modules
%IMFILTSRC%chklist.h, Process modules
%IMFILTSRC%compwind.h, Process modules
%IMFILTSRC%compwind.inc, Process modules
%IMFILTSRC%cumulhisto.c, Process modules
%IMFILTSRC%darkestmeander.c, Process modules
%IMFILTSRC%darkestpath.c, Process modules
%IMFILTSRC%darkestpntpnt.c, Process modules
%IMFILTSRC%drawcirc.c, Process modules
%IMFILTSRC%dumpimage.c, Process modules
%IMFILTSRC%echostuff.c, Process modules
%IMFILTSRC%fillholes.c, Process modules
%IMFILTSRC%fillholes.c, Filling holes
%IMFILTSRC%fillholescommon.inc, Process modules
%IMFILTSRC%fillholescommon.inc, Filling holes
%IMFILTSRC%fillholescommon.inc, Filling holes
%IMFILTSRC%fillholescommon.inc, Filling holes in priority order
%IMFILTSRC%fillholespri.c, Process modules
%IMFILTSRC%fillholespri.c, Filling holes in priority order
%IMFILTSRC%geodist.c, Process modules
%IMFILTSRC%grad2.c, Process modules
%IMFILTSRC%growcut.c, GrowCut segmentation
%IMFILTSRC%hellow.c, Process modules
%IMFILTSRC%img2knl.c, Process modules
%IMFILTSRC%interppix.c, Process modules
%IMFILTSRC%invclut.c, Process modules
%IMFILTSRC%invdispmap.c, Process modules
%IMFILTSRC%match.h, Process modules
%IMFILTSRC%match.inc, Process modules
%IMFILTSRC%midlightest.c, Process modules
%IMFILTSRC%mkgauss.c, Process modules
%IMFILTSRC%mkhisto.c, Process modules
%IMFILTSRC%nearestwhite.c, Process modules
%IMFILTSRC%onelightest.c, Process modules
%IMFILTSRC%onewhite.c, Process modules
%IMFILTSRC%pixmatch.c, Process modules
%IMFILTSRC%rect2eqfish.c, Process modules
%IMFILTSRC%replaceall.c, Process modules
%IMFILTSRC%replaceeach.c, Process modules
%IMFILTSRC%replacefirst.c, Process modules
%IMFILTSRC%replacelast.c, Process modules
%IMFILTSRC%replacespec.c, Process modules
%IMFILTSRC%rmsealpha.c, Process modules
%IMFILTSRC%sortpixels.c, Process modules
%IMFILTSRC%sortpixelsblue.c, Process modules
%IMFILTSRC%writeframe.inc, Process modules
%IMSRC%\imv6or7.h, Process modules
%IMSRC%\magick\triangul.inc, Delaunay triangulation
%IMSRC%\magick\triangul.inc, Triangulation
%IMSRC%\magick\tritst.c, Delaunay triangulation
%IMSRC%\magick\tritst.c, Triangulation
%IMSRC%\snibgo\hellowld.c, Standalone programs
%IMSRC%\snibgo\snibconv.c, Standalone programs
%IMSRC%\vsn_defines.h, Process modules
%PICTBAT%GimpLoadSave.bat, Gimp and IM
%PICTBAT%TjuncLineEnds.bat, Mending broken lines
%PICTBAT%algQtr.bat, Adaptive auto level and gamma
%PICTBAT%algTile.bat, Adaptive auto level and gamma
%PICTBAT%alignArea.bat, Simple alignment by matching areas
%PICTBAT%alignBF.bat, Alignment by brute force
%PICTBAT%alignBF.bat, Overlapping photographs
%PICTBAT%alignBFalpha.bat, Alignment by brute force
%PICTBAT%alignGausPyr.bat, Alignment by Gaussian pyramid
%PICTBAT%alignGausPyr.bat, Overlapping photographs
%PICTBAT%alignPnt.bat, Alignment by matching points
%PICTBAT%analGrids.bat, Reverse fractal noise
%PICTBAT%animCartText.bat, Cartoon and texture
%PICTBAT%appendLines.bat, Simple alignment by matching areas
%PICTBAT%autoLevMid.bat, Gradient contours
%PICTBAT%autoLevMid.bat, Slopes
%PICTBAT%barrelSize.bat, De-barrel distortion
%PICTBAT%barrelTest.bat, De-barrel distortion
%PICTBAT%baseMask.bat, Gradients Cookbook
%PICTBAT%bats2zip.bat, Zipped BAT files
%PICTBAT%bigBlur.bat, Cartoon and texture
%PICTBAT%blackEdge.bat, Alignment by matching points
%PICTBAT%blackEdge.bat, Simple alignment by matching areas
%PICTBAT%blendFrames.bat, Clut cookbook
%PICTBAT%blendTile.bat, Blending tiles
%PICTBAT%blockPix.bat, Displacement maps
%PICTBAT%blurFill.bat, Filling holes
%PICTBAT%blurFill.bat, Follow line
%PICTBAT%blurFill.bat, Old documents
%PICTBAT%blurFill.bat, Straightening horizons
%PICTBAT%boundRectQuad.bat, Noisy quadrangles
%PICTBAT%braid.bat, Knots
%PICTBAT%bytesPerCh.bat, Compiling IM with Cygwin
%PICTBAT%calcGainBias.bat, Gain and bias
%PICTBAT%calcPh.bat, Perceptual hash tests
%PICTBAT%cartTextBu.bat, Cartoon example
%PICTBAT%cartTextBu.bat, Cartoon and texture
%PICTBAT%cartTextEep.bat, Cartoon and texture
%PICTBAT%ccy_stats.bat, Colour cycling
%PICTBAT%clc2lpbrk.bat, Lines, points and curves
%PICTBAT%clc2pts.bat, Lines, points and curves
%PICTBAT%clut2LinReg.bat, Linear regression
%PICTBAT%col2Histo.bat, Clut cookbook
%PICTBAT%colBalMult.bat, Mona's makeover
%PICTBAT%colCyclList.bat, Colour cycling
%PICTBAT%colCyclStr.bat, Colour cycling
%PICTBAT%colCyclTst.bat, Colour cycling
%PICTBAT%colProp.bat, Frequent colours
%PICTBAT%colProp.bat, Subimage rectangles
%PICTBAT%colSpRndTrip.bat, Colorspace cookbook
%PICTBAT%colSpace.bat, Colorspace cookbook
%PICTBAT%colTrim.bat, Curving in 3D
%PICTBAT%colmos.bat, Demosaicing
%PICTBAT%colors9.bat, Panel of Nine
%PICTBAT%combLineEnds.bat, Mending broken lines
%PICTBAT%compArith.bat, Composite arithmetic
%PICTBAT%compArith.bat, Sharpening
%PICTBAT%compNcols.bat, Frequent colours
%PICTBAT%compSpd.bat, Outputs: speed and size
%PICTBAT%connCompLimArea.bat, Seamless photomontage
%PICTBAT%connCompLimNum.bat, Seamless photomontage
%PICTBAT%convTriImg.bat, Delaunay triangulation
%PICTBAT%convTriImg.bat, Triangulation
%PICTBAT%convolveMC.bat, Convolution
%PICTBAT%convolveSMA.bat, Convolution
%PICTBAT%convolveSmaBp.bat, Convolution
%PICTBAT%cornCols.bat, Photographs of book pages
%PICTBAT%cropOfCrop.bat, Photographs of book pages
%PICTBAT%curve3d.bat, Curving in 3D
%PICTBAT%cyl2plane.bat, Cylinders
%PICTBAT%darkCorners.bat, Photographs of book pages
%PICTBAT%darkMargins.bat, Photographs of book pages
%PICTBAT%darkMarginsRep.bat, Photographs of book pages
%PICTBAT%deBarrelCrop.bat, De-barrel distortion
%PICTBAT%deEdgeFft.bat, Fun with Fourier
%PICTBAT%deEdgeForFft2.bat, Fun with Fourier
%PICTBAT%deEdgeForFft3.bat, Fun with Fourier
%PICTBAT%deEdgeForFft3.bat, By FFT, what rotation?
%PICTBAT%deSpecFft.bat, Fun with Fourier
%PICTBAT%deconvRL.bat, Deblur: Richardson-Lucy deconvolution
%PICTBAT%delFr.bat, Painting
%PICTBAT%demoNoise.bat, Noise
%PICTBAT%demoNoise.bat, Text data
%PICTBAT%demos.bat, Demosaicing
%PICTBAT%detPyr.bat, Detail by pyramids
%PICTBAT%detblur.bat, Gradients Cookbook
%PICTBAT%diffGrad.bat, Gradient contours
%PICTBAT%dp2Grad.bat, Curving in 3D
%PICTBAT%drawCircs.bat, Linear regression
%PICTBAT%drawPts.bat, Lines, points and curves
%PICTBAT%edgeCols.bat, Subimage rectangles
%PICTBAT%edgeColsTrans2.bat, Subimage rectangles
%PICTBAT%edgeLine.bat, Noisy quadrangles
%PICTBAT%ellipMaskCorn.bat, Gradients Cookbook
%PICTBAT%eqLimit.bat, Process modules
%PICTBAT%eqLimit.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%eqLimit.bat, Adding zing to photographs
%PICTBAT%eqlQtr.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%eqlTile.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%equPeaks.bat, Histogram peaks
%PICTBAT%equSlope.bat, Cluts and clipping
%PICTBAT%equSlope.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%equSlopeH.bat, Cluts and clipping
%PICTBAT%equSlopeH.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%exHvyBlr.bat, Fractal noise
%PICTBAT%exHvyBlr.bat, Adding zing to photographs
%PICTBAT%expandJson.bat, Features
%PICTBAT%expandJson.bat, Moments
%PICTBAT%extLineEnds.bat, Mending broken lines
%PICTBAT%extendCoordPairs.bat, Simple alignment by matching areas
%PICTBAT%extendCoordPairs.bat, Statistics
%PICTBAT%extrXcfLayers.bat, Gimp and IM
%PICTBAT%fanComp.bat, Composite compositions
%PICTBAT%fanComp.bat, Islands
%PICTBAT%fanCompX.bat, Composite compositions
%PICTBAT%featText.bat, Features
%PICTBAT%featherEdge.bat, Canny edge detection
%PICTBAT%fillCoords.bat, Lines, points and curves
%PICTBAT%fillPix.bat, Lines, points and curves
%PICTBAT%find4cornEdgeBlr.bat, Find four corners
%PICTBAT%find4cornPolDist.bat, Find four corners
%PICTBAT%find4cornSub.bat, Find four corners
%PICTBAT%findVertLine.bat, Photographs of book pages
%PICTBAT%fnAnim.bat, Fractal noise animations
%PICTBAT%fnAnim2.bat, Fractal noise animations
%PICTBAT%fnDispFill.bat, Filling holes
%PICTBAT%fnInit.bat, Fractal noise
%PICTBAT%fnOne.bat, Fractal noise
%PICTBAT%fn_zeroEnvVar.bat, Fractal noise
%PICTBAT%fn_zeroEnvVarAnim.bat, Fractal noise
%PICTBAT%focStack.bat, Focus stack
%PICTBAT%followLine.bat, Follow line
%PICTBAT%frMinMax.bat, Fractal noise animations
%PICTBAT%frTrim.bat, Fractal noise animations
%PICTBAT%fractNoise.bat, Fractal noise
%PICTBAT%fractNoise.bat, Fractal noise animations
%PICTBAT%fwdDct.bat, Fun with Fourier
%PICTBAT%fwdDct.bat, Fun with Fourier
%PICTBAT%fwdFft.bat, Fun with Fourier
%PICTBAT%fwdFft.bat, Fun with Fourier
%PICTBAT%fwdFft.bat, By FFT, what rotation?
%PICTBAT%gameql.bat, Dcraw, gamma and eqLimit
%PICTBAT%gaussStdDev.bat, Gain and bias
%PICTBAT%getDpi.bat, Details, details
%PICTBAT%getDpi.bat, Simple alignment by matching areas
%PICTBAT%getImgWH.bat, Convolution
%PICTBAT%getLtrb.bat, Filling holes
%PICTBAT%getLtrb.bat, Fun with Fourier
%PICTBAT%getPerspParams.bat, Alignment by matching points
%PICTBAT%getPnmPath.bat, SVG text
%PICTBAT%getPointsize.bat, Details, details
%PICTBAT%getPointsize.bat, Simple alignment by matching areas
%PICTBAT%graph1d.bat, Clut cookbook
%PICTBAT%graphLineCol.bat, Clut cookbook
%PICTBAT%gray2Histo.bat, Clut cookbook
%PICTBAT%grayBalMult.bat, Mona's makeover
%PICTBAT%greyRectMask.bat, Gradients Cookbook
%PICTBAT%grid.bat, Cylinders
%PICTBAT%grid.bat, Shape to shape
%PICTBAT%guilChop.bat, Subimage rectangles
%PICTBAT%guilFind.bat, Subimage rectangles
%PICTBAT%guillotine.bat, Subimage rectangles
%PICTBAT%haar4bb.bat, Haar wavelet pyramids
%PICTBAT%haar4bbi.bat, Haar wavelet pyramids
%PICTBAT%haarbb.bat, Haar wavelet pyramids
%PICTBAT%haarbbi.bat, Haar wavelet pyramids
%PICTBAT%hashCol.bat, Making an image grayscale (monochrome)
%PICTBAT%histClipped.bat, Cluts and clipping
%PICTBAT%histToeInt.bat, Cluts and clipping
%PICTBAT%histoPeaks.bat, Histogram peaks
%PICTBAT%idPh21imgs.bat, Perceptual hash tests
%PICTBAT%imSpeedTrial.bat, Compiling IM with Cygwin
%PICTBAT%imSpeeds.bat, Compiling IM with Cygwin
%PICTBAT%img2knl4.bat, Convolution
%PICTBAT%img2knl4.bat, Process modules
%PICTBAT%img2knl4f.bat, Convolution
%PICTBAT%img2knl4f.bat, Process modules
%PICTBAT%imgGainBias.bat, Gain and bias
%PICTBAT%imgs2htm.bat, Detail by pyramids
%PICTBAT%imgsMax.bat, Detail by pyramids
%PICTBAT%imgsResize.bat, Detail by pyramids
%PICTBAT%imgsStats.bat, Detail by pyramids
%PICTBAT%imgsWhich.bat, Detail by pyramids
%PICTBAT%innerTrim.bat, Inner Trim
%PICTBAT%innerTrimRep.bat, Inner Trim
%PICTBAT%inv2dAbsDisp.bat, Displacement maps
%PICTBAT%invClut.bat, Clut cookbook
%PICTBAT%invClut.bat, Displacement maps
%PICTBAT%invDiffGrad.bat, Gradient contours
%PICTBAT%invHRDM.bat, Displacement maps
%PICTBAT%invLogPolar.bat, Log polar
%PICTBAT%invRelClut.bat, Displacement maps
%PICTBAT%isIm6or7.bat, Scripts writing scripts
%PICTBAT%islandPeaks.bat, Intersecting areas
%PICTBAT%joinIslandMainland.bat, Islands
%PICTBAT%knl2img.bat, Convolution
%PICTBAT%knl2img.bat, Process modules
%PICTBAT%lbdMask.bat, Adding zing to photographs
%PICTBAT%ldLevDet.bat, Colour to mask
%PICTBAT%ldLevDet.bat, Levels of detail
%PICTBAT%ldLevDet.bat, IM v7 tips
%PICTBAT%ldProgMed.bat, Levels of detail
%PICTBAT%ldProgs.bat, Levels of detail
%PICTBAT%levels4.bat, Levels
%PICTBAT%linReg2xy.bat, Linear regression
%PICTBAT%line2Grad.bat, Curving in 3D
%PICTBAT%lineIntersect.bat, Noisy quadrangles
%PICTBAT%lines2Quad.bat, Linear regression
%PICTBAT%lines2circs.bat, Mending broken lines
%PICTBAT%lines2sqs.bat, Mending broken lines
%PICTBAT%listSegments.bat, Canny edge detection
%PICTBAT%listWhiteSps.bat, Islands
%PICTBAT%lithScreen.bat, Lithographic effects
%PICTBAT%lithScreenCMYK.bat, Lithographic effects
%PICTBAT%lithScreenRGB.bat, Lithographic effects
%PICTBAT%lns2pts.bat, Lines, points and curves
%PICTBAT%locTotVar.bat, Cartoon and texture
%PICTBAT%logPolar.bat, Log polar
%PICTBAT%mBlobMask.bat, Gradients Cookbook
%PICTBAT%mBlobMask.bat, Membranes
%PICTBAT%mClutUpDn.bat, Clut cookbook
%PICTBAT%mDiamondMask.bat, Gradients Cookbook
%PICTBAT%mDispMap.bat, Displacement maps
%PICTBAT%mFrLink.bat, Painting
%PICTBAT%mHist.bat, Demosaicing
%PICTBAT%mMapMasks.bat, Gradient contours
%PICTBAT%mPntVideo.bat, Painting
%PICTBAT%mRandLine.bat, Random lines
%PICTBAT%mRandPts.bat, Delaunay triangulation
%PICTBAT%mRandPts.bat, Triangulation
%PICTBAT%mSRTdelta.bat, Focus stack
%PICTBAT%markRect.bat, Measuring detail
%PICTBAT%markRect.bat, Simple alignment by matching areas
%PICTBAT%markRect.bat, Test coordinate pairs
%PICTBAT%matchGauss.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%matchHisto.bat, Process modules
%PICTBAT%matchHisto.bat, [Adaptive] Contrast-limited equalisation
%PICTBAT%matchHistoPyr.bat, Histograms of pyramids
%PICTBAT%matchLapGainBias.bat, Blending pyramids
%PICTBAT%matchLapHisto.bat, Blending pyramids
%PICTBAT%meanFill.bat, Filling holes
%PICTBAT%meanSd.bat, Gain and bias
%PICTBAT%meanSdTr.bat, Gain and bias
%PICTBAT%meanSdTr.bat, JIM: a Java Gui for IM
%PICTBAT%meanSdTr.bat, Yee ha! Lassoing
%PICTBAT%meanSdTr.bat, SWIM: Snibgo's Windows Gui for IM
%PICTBAT%mebcOne.bat, Assembling with dark paths
%PICTBAT%mebcOne.bat, Quilting
%PICTBAT%mebcTile.bat, Assembling with dark paths
%PICTBAT%membrane.bat, Membranes
%PICTBAT%middleFuzz.bat, Subimage rectangles
%PICTBAT%minDp.bat, Awkward boundaries with dark paths
%PICTBAT%miredShift.bat, Colour temperature
%PICTBAT%mkFanComp2A.bat, Composite compositions
%PICTBAT%mkGausPyr.bat, Multi-scale pyramids
%PICTBAT%mkHaarPyr.bat, Haar wavelet pyramids
%PICTBAT%mkLapPyr.bat, Multi-scale pyramids
%PICTBAT%mkMp7Norm.bat, Classifying shapes
%PICTBAT%mkMp7Unr.bat, Classifying shapes
%PICTBAT%mkNsePyr.bat, Histograms of pyramids
%PICTBAT%mkOvClut.bat, Overlapping photographs
%PICTBAT%mkOvMasks.bat, Overlapping photographs
%PICTBAT%mkPyrComm.bat, Multi-scale pyramids
%PICTBAT%mkQuilt.bat, Quilting
%PICTBAT%mkQuiltLike.bat, Quilting
%PICTBAT%mkpVar.bat, Multi-scale pyramids
%PICTBAT%mosaic.bat, Cleaning scanned text
%PICTBAT%mosaic.bat, Mosaicing
%PICTBAT%mosaic.bat, Porting to V7
%PICTBAT%mp7Thumbs.bat, Classifying shapes
%PICTBAT%mspBoostCut.bat, Multi-scale pyramids
%PICTBAT%mspProcGrid.bat, Multi-scale pyramids
%PICTBAT%nCrop.bat, Measuring detail
%PICTBAT%nCrop.bat, Simple alignment by matching areas
%PICTBAT%nGenCoord.bat, Measuring detail
%PICTBAT%nLightest.bat, Details, details
%PICTBAT%nLightest.bat, Islands
%PICTBAT%nLightest.bat, Simple alignment by matching areas
%PICTBAT%nLightest.bat, Standalone programs
%PICTBAT%nearCoast.bat, Correlating shapes
%PICTBAT%nearCoast.bat, Nearest coastal point
%PICTBAT%nearCoast2.bat, Nearest coastal point
%PICTBAT%nonJcnLines.bat, Pruning skeleton stubs
%PICTBAT%nqlr4edges.bat, Linear regression
%PICTBAT%nqlrTop.bat, Linear regression
%PICTBAT%nseCycl.bat, Colour cycling
%PICTBAT%nseQuadCorn.bat, Noisy quadrangles
%PICTBAT%offCentre.bat, Gradients Cookbook
%PICTBAT%oneColSp.bat, Colorspace cookbook
%PICTBAT%oog2col.bat, De-anti-aliasing
%PICTBAT%oog2col.bat, Inverse composites
%PICTBAT%orientate.bat, Orientation
%PICTBAT%p2cHoriz.bat, Cylinders
%PICTBAT%parts2FlatCols.bat, Flat-colour cartoons
%PICTBAT%ph1colsp.bat, Perceptual hash tests
%PICTBAT%phMp7NNFR.bat, Classifying shapes
%PICTBAT%phpPairsBestAll.bat, Perceptual hash thresholds
%PICTBAT%phpThreshCsv.bat, Perceptual hash thresholds
%PICTBAT%phpThreshCsvBest.bat, Perceptual hash thresholds
%PICTBAT%phpairs.bat, Perceptual hash thresholds
%PICTBAT%pixMatch.bat, Pixel match
%PICTBAT%plane2cyl.bat, Cylinders
%PICTBAT%planeCylSetup.bat, Cylinders
%PICTBAT%pntMaskReveal.bat, Painting
%PICTBAT%pointsDist.bat, Mending broken lines
%PICTBAT%pointsRdx.bat, Mending broken lines
%PICTBAT%poissonPaste.bat, Seamless photomontage
%PICTBAT%poissonPasteIDB.bat, Seamless photomontage
%PICTBAT%polDist.bat, Polar distortions
%PICTBAT%polyPath.bat, Camera blurs
%PICTBAT%proc2LapPyr.bat, Blending pyramids
%PICTBAT%proc3LapPyr.bat, Blending pyramids
%PICTBAT%procLapPyr.bat, Blending pyramids
%PICTBAT%proxLineEnds.bat, Mending broken lines
%PICTBAT%pruneStubs.bat, Mending broken lines
%PICTBAT%pruneStubs.bat, Pruning skeleton stubs
%PICTBAT%pruneStubsRep.bat, Pruning skeleton stubs
%PICTBAT%quadAngles.bat, Noisy quadrangles
%PICTBAT%quads2persp.bat, Noisy quadrangles
%PICTBAT%qual99Spd.bat, Outputs: speed and size
%PICTBAT%quantFp.bat, Follow line
%PICTBAT%quantFp.bat, Straightening horizons
%PICTBAT%r2shPol.bat, Polar distortions
%PICTBAT%ranHorShLn.bat, Follow line
%PICTBAT%rcnHaarPyr.bat, Haar wavelet pyramids
%PICTBAT%rdAgpDf.bat, Overlapping photographs
%PICTBAT%rectDp.bat, Rectangle boundaries with dark paths
%PICTBAT%rectDpRepl.bat, Rectangle boundaries with dark paths
%PICTBAT%rectGoPro.bat, De-barrel distortion
%PICTBAT%rectSubimages.bat, Subimage rectangles
%PICTBAT%relaxFill.bat, Filling holes
%PICTBAT%relaxFillMS.bat, Filling holes
%PICTBAT%relaxFillScr.bat, Filling holes
%PICTBAT%resampHM.bat, Resampling with halo minimization
%PICTBAT%resizeFill.bat, Filling holes
%PICTBAT%rimRect.bat, Photographs of book pages
%PICTBAT%rotMinWidth.bat, SVG text
%PICTBAT%setIm8.bat, Compiling IM with Cygwin
%PICTBAT%setInOut.bat, Resampling with halo minimization
%PICTBAT%setMeanBias.bat, Setting the mean
%PICTBAT%setMeanGain.bat, Setting the mean
%PICTBAT%setMeanImg.bat, Setting the mean
%PICTBAT%setMeanNegGain.bat, Setting the mean
%PICTBAT%setMeanPow.bat, Setting the mean
%PICTBAT%setMp7Env.bat, Classifying shapes
%PICTBAT%setPhEnv.bat, Perceptual hash tests
%PICTBAT%setPhEnv.bat, Perceptual hash thresholds
%PICTBAT%sh2grad.bat, Gradients Cookbook
%PICTBAT%sh2gradCol.bat, Gradients Cookbook
%PICTBAT%sh2shLinear.bat, Shape to shape
%PICTBAT%sh2shPolar.bat, Polar distortions
%PICTBAT%sh2shPolar.bat, Shape to shape
%PICTBAT%shapeDp.bat, Awkward boundaries with dark paths
%PICTBAT%shiftCols.bat, Straightening horizons
%PICTBAT%shiftFill.bat, Filling holes
%PICTBAT%shiftNoNeg.bat, Gradient contours
%PICTBAT%shpDiv.bat, Slopes
%PICTBAT%sigSetSd.bat, Adding zing to photographs
%PICTBAT%simpColours.bat, Frequent colours
%PICTBAT%skel2Parts.bat, Flat-colour cartoons
%PICTBAT%skel2SegBnd.bat, Partition boundary masks
%PICTBAT%skelPS.bat, Mending broken lines
%PICTBAT%slopeMag.bat, Details, details
%PICTBAT%slopeMag.bat, Old documents
%PICTBAT%slopeMags.bat, Detail by pyramids
%PICTBAT%slopeXY.bat, Slopes
%PICTBAT%slopeXYdiv.bat, Slopes
%PICTBAT%slopeXYmag.bat, Slopes
%PICTBAT%slopeXYminus.bat, Slopes
%PICTBAT%slopeXYweighted.bat, Slopes
%PICTBAT%smthCart.bat, Mona's makeover
%PICTBAT%sparseColFill.bat, Filling holes
%PICTBAT%sparseCoord.bat, Islands
%PICTBAT%squishAppend.bat, Squishing images
%PICTBAT%squishStr.bat, Squishing images
%PICTBAT%srchImg.bat, Alignment by matching points
%PICTBAT%srchImg.bat, Measuring detail
%PICTBAT%srchImg.bat, Searching an image
%PICTBAT%srchImgAg.bat, Searching an image aggressively
%PICTBAT%srchImgAlpha.bat, Quilting
%PICTBAT%srchMp7.bat, Classifying shapes
%PICTBAT%stats.bat, Demosaicing
%PICTBAT%stats.bat, Adding zing to photographs
%PICTBAT%stretchHoriz.bat, Shape to shape
%PICTBAT%svg2png.bat, SVG text
%PICTBAT%testCompose.bat, Compose methods
%PICTBAT%testCoordPairs.bat, Test coordinate pairs
%PICTBAT%testHalf.bat, Fifty percent
%PICTBAT%textAutoWi.bat, Squishing images
%PICTBAT%textAutoWiSquish.bat, Squishing images
%PICTBAT%thresh9.bat, Lithographic effects
%PICTBAT%thresh9.bat, Colour profiles
%PICTBAT%tileDp.bat, Tiling with dark paths
%PICTBAT%timeFft.bat, Fun with Fourier
%PICTBAT%toGimp.bat, Gimp and IM
%PICTBAT%toGimp.bat, Measuring detail
%PICTBAT%traceContour.bat, Lines, points and curves
%PICTBAT%traceLines.bat, Lines, points and curves
%PICTBAT%traceLn.bat, Lines, points and curves
%PICTBAT%tritsttst.bat, Delaunay triangulation
%PICTBAT%tritsttst.bat, Triangulation
%PICTBAT%tweakImages.bat, Perceptual hash tests
%PICTBAT%twoBlrDiff.bat, Simple alignment by matching areas
%PICTBAT%voronoiFill.bat, Filling holes
%PICTBAT%walkPix.bat, Dark paths
%PICTBAT%walkPix.bat, Lines, points and curves
%PICTBAT%walkPix2.bat, Lines, points and curves
%PICTBAT%whatRot.bat, What rotation?
%PICTBAT%whatRot.bat, By FFT, what rotation?
%PICTBAT%whatRotFft.bat, By FFT, what rotation?
%PICTBAT%whatRotScale.bat, What rotation and scale?
%PICTBAT%whatScale.bat, What scale?
%PICTBAT%whatScalePrec.bat, What scale?
%PICTBAT%whatScaleT.bat, What scale?
%PICTBAT%whatSquish.bat, Squishing images
%PICTBAT%whatSrt.bat, What SRT?
%PICTBAT%whatTrans.bat, By FFT, what rotation?
%PICTBAT%whatTrans.bat, What translation?
%PICTBAT%whichPix.bat, Focus stack
%PICTBAT%wrapCylinder.bat, Cylinders
%PICTBAT%wrapImage.bat, Coffee mug
%PICTBAT%xSection.bat, Seamless photomontage
%TEMP%\bt_tmp_cmd.bat, Blending tiles
%Util%\StopWatch.bat, Details, details
%Util%\StopWatch.bat, Measuring detail
%Util%\StopWatch.bat, Resampling with halo minimization
%Util%\StopWatch.bat, Simple alignment by matching areas
%Util%\csv2tab.bat, Straightening horizons
%Util%\csv2tabNH.bat, Perceptual hash tests
%Util%\deBom.bat, UTF-8 characters
%Util%\echoOffSave.bat, Inner Trim
%Util%\echoOffSave.bat, Resampling with halo minimization
%Util%\echoOffSave.bat, Statistics
%Util%\echoRestore.bat, Inner Trim
%Util%\echoRestore.bat, Resampling with halo minimization
%Util%\echoRestore.bat, Statistics
%Util%\getLineN.bat, Statistics
%Util%\getModThoTau.bat, Statistics
%Util%\im7path.bat, Colour to mask
%Util%\im7path.bat, IM v7 tips
%Util%\meanStdDev.bat, Statistics
%Util%\parseCommaList.bat, Lithographic effects
%Util%\parseXxY.bat, Quilting
%Util%\removeCsvOutliers.bat, Statistics
%Util%\removeOutliers.bat, Statistics
%Util%\xyCoord.bat, Rectangle boundaries with dark paths
%Util%\xyCoord.bat, Fractal noise
%Util%\xyCoord.bat, Quilting
%Util%\zeroArray.bat, Statistics
%VIDBAT%fxTri.bat, Displacement maps
cm_coffeemug.inc, Coffee mug
cm_trans.inc, Coffee mug
cylPov.inc, Cylinders
fn_txtout_fn.bat, Fractal noise
knotPov.inc, Knots
scorePairs.inc, Perceptual hash tests
scorePairs.inc, Perceptual hash thresholds
scorePairsMaxMcc.c, Perceptual hash thresholds
scorePairsNPD.c, Perceptual hash tests
scorePairsPD.c, Perceptual hash tests
swimtest.c, SWIM: Snibgo's Windows Gui for IM

My scripts assume filenames contain no space characters. When I read files from anywhere, I replace spaces and other un-safe characters like ">" and "&" and "|" with underscores. If your filenames contain spaces, you will need edit the scripts to quote the filenames, for example:

convert "%1" -blur 0x3 "%2"

Scripts

This script runs utility programs such as cGrep.exe. I don't provide the source or binary of these programs.

bats2zip.bat

cGrep  /p0 /B[ /i*.h1 /s@*.bat* /s@*.c /s@*.c,h /s@*.inc,h /s@*.h,h /s@*Makefile.am* /ob2z.lis
chStrs /p0 /ib2z.lis /f",h"
chStrs /p0 /ib2z.lis /f"@"
cSort  /p0 /ib2z.lis /ob2z.lis /u
copy /y b2z.lis imsnibgoBats.txt
rem type b2z.lis

rem For zip, we need to expand the environment variable.
rem
chStrs   /p0 /ib2z.lis /ob2zEV.lis /f"%%" /t"&&,"
chStrs   /p0 /ib2zEV.lis /f"&&," /m1
chStrs   /p0 /ib2zEV.lis /f"&&," /t","
cProject /p0 /ib2zEV.lis /k0 /u
rem type b2zEV.lis

del %TEMP%\b2zEVs.lis
for /F %%L in (b2zEV.lis) do (
  set %%L>>%TEMP%\b2zEVs.lis
)
chStrs  /p0 /i%TEMP%\b2zEVs.lis /f"=" /t"%%,"
cPrefix /p0 /i%TEMP%\b2zEVs.lis /l"%%"
rem type %TEMP%\b2zEVs.lis

chStrs /p0 /ib2z.lis /s%TEMP%\b2zEVs.lis /X-
rem type b2z.lis

del /Q imsnibgoBats.zip
zip -o -j imsnibgoBats.zip imsnibgoBats.txt
type b2z.lis|zip -o -j -@ imsnibgoBats.zip


rem Make an index of which pages call the BAT and C files.

cGrep  /p0 /B[ /i*.h1 /s@*.bat* /s@*.c /s@*.c,h /s@*.h,h /s@*.inc,h /f\m\x,\r\n /ob2zndx.lis
chStrs /p0 /ib2zndx.lis /f",h"
chStrs /p0 /ib2zndx.lis /f"@"
chStrs /p0 /ib2zndx.lis /f".h1" /t".htm"

rem What are the titles?
cGrep  /p0 /i*.h1 /X /s"*\(h1*/h1*" /f\m\x,\m\x,\r\n /ob2ztrans.lis
chStrs /p0 /ib2ztrans.lis /f"\q"
chStrs /p0 /ib2ztrans.lis /f"," /t"comma"
chStrs /p0 /ib2ztrans.lis /t"," /f"comma" /m2
chStrs /p0 /ib2ztrans.lis /f".h1" /t".htm"
chStrs /p0 /ib2ztrans.lis /f"," /t",\(a href=\q" /m1
chStrs /p0 /ib2ztrans.lis /f",\(h1\)" /t"\q\)"
chStrs /p0 /ib2ztrans.lis /f"\(/h1\)" /t"\(/a\)\(br /\)"

cJoin    /p0 /ib2zndx.lis,b2ztrans.lis /k0 /K0 /n /ob2zlist.lis
cProject /p0 /ib2zlist.lis /ob2zlist.lis /k1,2
cSort    /p0 /ib2zlist.lis /ob2zlist.lis /k0,1
cGrep    /p0 /ib2zlist.lis /ob2zlist.lis /s",*" /x
chStrs   /p0 /ib2zlist.lis /t"," /f"comma"
type b2zlist.lis


Source file for this web page is zipbats.h1. To re-create this web page, run "procH1 zipbats".


This page, including the images, is my copyright. Anyone is permitted to use or adapt any of the code, scripts or images for any purpose, including commercial use.

Anyone is permitted to re-publish this page, but only for non-commercial use.

Anyone is permitted to link to this page, including for commercial use.


Page version v1.1 15-August-2014.

Page created 05-Jan-2017 14:03:45.

Copyright © 2017 Alan Gibson.