Leptonica 1.68
C Image Processing Library
|
Basic file defining image and image-related structs (Pix, PixColormap, Pixa, Pixaa, Box, Boxa, Boxaa, Pta, Ptaa, Pixacc, PixTiling, FPix, DPix, PixComp, PixaComp), along with enums for many operations. More...
Go to the source code of this file.
Basic file defining image and image-related structs (Pix, PixColormap, Pixa, Pixaa, Box, Boxa, Boxaa, Pta, Ptaa, Pixacc, PixTiling, FPix, DPix, PixComp, PixaComp), along with enums for many operations.
Contains the following structures: struct Pix struct PixColormap struct RGBA_Quad struct Pixa struct Pixaa struct Box struct Boxa struct Boxaa struct Pta struct Ptaa struct Pixacc struct PixTiling struct FPix struct FPixa struct DPix struct PixComp struct PixaComp Contains definitions for: Colors for RGB Perceptual color weights Colormap conversion flags Rasterop bit flags Structure access flags (for insert, copy, clone, copy-clone) Sorting flags (by type and direction) Blending flags Graphics pixel setting flags Size filtering flags Color component selection flags Rotation and shear flags Affine transform order flags Grayscale filling flags Flags for setting to white or black Dithering flags Distance flags Statistical measures Set selection flags Text orientation flags Edge orientation flags Line orientation flags Scan direction flags Horizontal warp Pixel selection for resampling Thinning flags Runlength flags Edge filter flags Handling negative values in conversion to unsigned int Subpixel color component ordering in LCD display Relative to zero flags HSV histogram flags Region flags (inclusion, exclusion) Flags for adding text to a pix Flags for selecting display program
Definition in file pix.h.
#define PIX_SRC (0xc << 1) |
Definition at line 243 of file pix.h.
Referenced by finalPositioningForAlignment(), identifyWatershedBasin(), jbAccumulateComposites(), jbDataRender(), main(), pixacompDisplayTiledAndScaled(), pixaCreateFromPix(), pixAddBorderGeneral(), pixAddMirroredBorder(), pixAddMixedBorder(), pixAddRepeatedBorder(), pixAddSingleTextblock(), pixAddWithIndicator(), pixaDisplay(), pixaDisplayOnColor(), pixaDisplayTiled(), pixaDisplayTiledAndScaled(), pixaDisplayTiledInRows(), pixaDisplayUnsplit(), pixAnd(), pixaSplitPix(), pixClipRectangle(), pixCombineMasked(), pixCombineMaskedGeneral(), pixConnCompPixa(), pixConvertToPdfDataSegmented(), pixCopyBorder(), pixCorrelationScoreSimple(), pixDilate(), pixEmbedForRotation(), pixErode(), pixExtendByReplication(), pixFillHolesToBoundingRect(), pixFillMapHoles(), pixGenerateSelBoundary(), pixGenerateSelRandom(), pixGenerateSelWithRuns(), pixGrayQuantFromHisto(), pixHaustest(), pixHMT(), pixHShear(), pixMirroredTiling(), pixOr(), pixPaintSelfThroughMask(), pixRankHaustest(), pixRasteropHip(), pixRasteropVip(), pixRemoveBorderGeneral(), pixRemoveMatchedPattern(), pixRemoveWithIndicator(), pixResizeToMatch(), pixSeedfillBinaryRestricted(), pixSetMaskedGeneral(), pixSetMirroredBorder(), pixSubtract(), pixTilingPaintTile(), pixVShear(), pixWarpStereoscopic(), pixXor(), rasteropGeneralLow(), rasteropVAlignedLow(), rasteropWordAlignedLow(), and selDisplayInPix().
#define PIX_DST (0xa << 1) |
Definition at line 244 of file pix.h.
Referenced by finalPositioningForAlignment(), identifyWatershedBasin(), jbDataRender(), kernelDisplayInPix(), main(), pixAddWithIndicator(), pixAnd(), pixCombineMasked(), pixCombineMaskedGeneral(), pixConnCompPixa(), pixCorrelationScoreSimple(), pixDilate(), pixErode(), pixFillHolesToBoundingRect(), pixHaustest(), pixHMT(), pixInvert(), pixMaskBoxa(), pixOr(), pixRankHaustest(), pixRasterop(), pixRemoveMatchedPattern(), pixRemoveWithIndicator(), pixSeedfillBinaryRestricted(), pixSetMaskedGeneral(), pixSubtract(), pixXor(), rasteropGeneralLow(), rasteropUniGeneralLow(), rasteropUniWordAlignedLow(), rasteropVAlignedLow(), rasteropWordAlignedLow(), and selDisplayInPix().
#define PIX_NOT | ( | op | ) | ((op) ^ 0x1e) |
Definition at line 245 of file pix.h.
Referenced by kernelDisplayInPix(), main(), pixCombineMasked(), pixCombineMaskedGeneral(), pixHaustest(), pixHMT(), pixInvert(), pixMaskBoxa(), pixRankHaustest(), pixRasterop(), pixRemoveMatchedPattern(), pixRemoveWithIndicator(), pixSeedfillBinaryRestricted(), pixSubtract(), rasteropGeneralLow(), rasteropUniGeneralLow(), rasteropUniWordAlignedLow(), rasteropVAlignedLow(), rasteropWordAlignedLow(), and selDisplayInPix().
#define PIX_CLR (0x0 << 1) |
Definition at line 246 of file pix.h.
Referenced by main(), pixAddBorderGeneral(), pixClearAll(), pixClearInRect(), pixCloseGray(), pixConformsToRectangle(), pixDilateGray(), pixErode(), pixFMorphopGen_1(), pixFMorphopGen_2(), pixFMorphopGen_3(), pixHMT(), pixMaskBoxa(), pixOpenCompBrickDwa(), pixOpenGray(), pixRasterop(), pixRasteropHip(), pixRasteropVip(), pixRemoveSeededComponents(), pixSetOrClearBorder(), rasteropUniGeneralLow(), and rasteropUniWordAlignedLow().
#define PIX_SET (0xf << 1) |
Definition at line 247 of file pix.h.
Referenced by boxaGetCoverage(), main(), pixAddBorderGeneral(), pixCloseCompBrickDwa(), pixCloseGray(), pixDistanceFunction(), pixErodeGray(), pixExtractBorderConnComps(), pixFillClosedBorders(), pixFMorphopGen_1(), pixFMorphopGen_2(), pixFMorphopGen_3(), pixGrayQuantFromHisto(), pixHolesByFilling(), pixMaskBoxa(), pixOpenGray(), pixRasterop(), pixRasteropHip(), pixRasteropVip(), pixSeedspread(), pixSetAll(), pixSetInRect(), pixSetOrClearBorder(), pixUpDownDetectGeneral(), pixUpDownDetectGeneralDwa(), rasteropUniGeneralLow(), and rasteropUniWordAlignedLow().
#define PIX_PAINT (PIX_SRC | PIX_DST) |
Definition at line 249 of file pix.h.
Referenced by pixaaDisplay(), pixaaDisplayByPixa(), pixaDisplay(), pixaDisplayOnLattice(), pixaDisplayRandomCmap(), pixFindOverlapFraction(), pixMorphSequenceByComponent(), pixMorphSequenceByRegion(), pixPaintThroughMask(), pixSelectiveConnCompFill(), and pixSetMasked().
#define PIX_MASK (PIX_SRC & PIX_DST) |
Definition at line 250 of file pix.h.
Referenced by pixFindOverlapFraction(), pixPaintThroughMask(), and pixSetMasked().
#define PIX_XOR (PIX_SRC ^ PIX_DST) |
Definition at line 252 of file pix.h.
Referenced by ccbaDisplayImage1(), ccbaDisplayImage2(), and pixQualifyLocalMinima().
#define PIXAA_VERSION_NUMBER 2 |
Definition at line 357 of file pix.h.
Referenced by pixaaReadStream(), and pixaaWriteStream().
#define PIXA_VERSION_NUMBER 2 |
Definition at line 358 of file pix.h.
Referenced by pixaReadStream(), and pixaWriteStream().
#define BOXA_VERSION_NUMBER 2 |
Definition at line 359 of file pix.h.
Referenced by boxaReadStream(), and boxaWriteStream().
#define BOXAA_VERSION_NUMBER 3 |
Definition at line 360 of file pix.h.
Referenced by boxaaReadStream(), and boxaaWriteStream().
#define PTA_VERSION_NUMBER 1 |
Definition at line 419 of file pix.h.
Referenced by ptaaReadStream(), ptaaWriteStream(), ptaReadStream(), and ptaWriteStream().
#define FPIX_VERSION_NUMBER 1 |
Definition at line 477 of file pix.h.
Referenced by fpixReadStream(), and fpixWriteStream().
#define DPIX_VERSION_NUMBER 1 |
Definition at line 507 of file pix.h.
Referenced by dpixReadStream(), and dpixWriteStream().
#define PIXACOMP_VERSION_NUMBER 1 |
Definition at line 549 of file pix.h.
Referenced by pixacompReadStream(), and pixacompWriteStream().
typedef struct PixColormap PIXCMAP |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
const l_int32 L_RED_SHIFT [static] |
Definition at line 149 of file pix.h.
Referenced by composeRGBPixel(), DisplayCaptcha(), DisplayResult(), extractRGBValues(), linearInterpolatePixelColor(), MakeColorWash(), pixConvertRGBToGray(), pixGenerateMaskByBand32(), pixGetExtremeValue(), pixHShearLI(), pixMakeHistoHS(), pixMakeHistoHV(), pixMakeRangeMaskHS(), pixMakeRangeMaskHV(), pixQuadraticVShearLI(), pixScaleRGBToGrayFast(), pixStereoFromPair(), pixStretchHorizontalLI(), pixTRCMap(), pixVShearLI(), rotateAMColorCornerLow(), rotateAMColorLow(), scaleAreaMapLow2(), scaleColorAreaMapLow(), scaleColorLILow(), scaleRGBToGray2Low(), and scaleSmoothLow().
const l_int32 L_GREEN_SHIFT [static] |
8 * (sizeof(l_uint32) - 1 - COLOR_GREEN)
Definition at line 151 of file pix.h.
Referenced by composeRGBPixel(), DisplayCaptcha(), DisplayResult(), extractRGBValues(), linearInterpolatePixelColor(), MakeColorWash(), pixConvertRGBToGray(), pixConvertRGBToGrayFast(), pixGenerateMaskByBand32(), pixGetExtremeValue(), pixHShearLI(), pixMakeHistoHS(), pixMakeHistoSV(), pixMakeRangeMaskHS(), pixMakeRangeMaskSV(), pixQuadraticVShearLI(), pixScaleRGBToBinaryFast(), pixScaleRGBToGrayFast(), pixStereoFromPair(), pixStretchHorizontalLI(), pixTRCMap(), pixVShearLI(), rotateAMColorCornerLow(), rotateAMColorLow(), scaleAreaMapLow2(), scaleColorAreaMapLow(), scaleColorLILow(), scaleRGBToGray2Low(), and scaleSmoothLow().
const l_int32 L_BLUE_SHIFT [static] |
8 * (sizeof(l_uint32) - 1 - COLOR_BLUE)
Definition at line 153 of file pix.h.
Referenced by composeRGBPixel(), DisplayCaptcha(), DisplayResult(), extractRGBValues(), linearInterpolatePixelColor(), MakeColorWash(), pixConvertRGBToGray(), pixGenerateMaskByBand32(), pixGetExtremeValue(), pixHShearLI(), pixMakeHistoHV(), pixMakeHistoSV(), pixMakeRangeMaskHV(), pixMakeRangeMaskSV(), pixQuadraticVShearLI(), pixScaleRGBToGrayFast(), pixStereoFromPair(), pixStretchHorizontalLI(), pixTRCMap(), pixVShearLI(), rotateAMColorCornerLow(), rotateAMColorLow(), scaleAreaMapLow2(), scaleColorAreaMapLow(), scaleColorLILow(), scaleRGBToGray2Low(), and scaleSmoothLow().
const l_int32 L_ALPHA_SHIFT [static] |
8 * (sizeof(l_uint32) - 1 - L_ALPHA_CHANNEL)
const l_float32 L_RED_WEIGHT = 0.3 [static] |
Definition at line 169 of file pix.h.
Referenced by pixConvertRGBToGray().
const l_float32 L_GREEN_WEIGHT = 0.5 [static] |
Definition at line 170 of file pix.h.
Referenced by pixConvertRGBToGray().
const l_float32 L_BLUE_WEIGHT = 0.2 [static] |
Definition at line 171 of file pix.h.
Referenced by pixConvertRGBToGray().
Definition at line 602 of file pix.h.
Referenced by convertFilesTo1bpp(), convertSegmentedFilesToPdf(), dewarpBuildModel(), fhmtautogen2(), fmorphautogen2(), fpixBuildHorizontalDisparity(), generateOutputDataPdf(), getNumberedPathnamesInDirectory(), getSortedPathnamesInDirectory(), gplotGenCommandFile(), gplotGenDataFiles(), kernelCreateFromFile(), lept_rmdir(), main(), numaAddBorder(), numaAddSpecifiedBorder(), numaDifferentiateInterval(), numaDilate(), numaErode(), numaGetFArray(), numaGetMode(), numaGetPeakWidthLUT(), numaIntegrateInterval(), numaInterpolateArbxInterval(), numaInterpolateArbxVal(), numaInterpolateEqxVal(), numaRemoveBorder(), numaUniformSampling(), numaWindowedMean(), numaWindowedMeanSquare(), numaWindowedVariance(), parseTrailerPdf(), pathJoin(), pixacompCreateFromSA(), pixaReadFilesSA(), pixAverageRasterScans(), pixColumnStats(), pixCompareRankDifference(), pixCountPixelsByColumn(), pixGetCmapHistogram(), pixGetCmapHistogramMasked(), pixGetColorHistogram(), pixGetColorHistogramMasked(), pixGetDifferenceHistogram(), pixGetDifferenceStats(), pixGetGrayHistogram(), pixGetGrayHistogramMasked(), pixHtmlViewer(), pixOctcubeHistogram(), pixReadIndexed(), pixRowStats(), pixSumPixelsByColumn(), ptraConcatenatePdfToData(), saConcatenatePdfToData(), saConvertFilesToPdfData(), sarrayAppendRange(), sarrayConcatenate(), sarrayConvertFilesFittedToPS(), sarrayConvertFilesToPS(), sarrayConvertWordsToLines(), sarrayGetString(), sarrayParseRange(), sarraySelectBySubstring(), sarrayToStringRange(), selaCreateFromFile(), selCreateFromSArray(), sudokuReadFile(), and writeMultipageTiffSA().