Example #1
0
 /// <inheritdoc />
 public int pixcmapGetNearestGrayIndex(IntPtr cmap,
                                       int val,
                                       out int index
                                       )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetNearestGrayIndex(cmap, val, out index));
 }
Example #2
0
 /// <inheritdoc />
 public int pixScaleResolution(IntPtr pix,
                               float xscale,
                               float yscale
                               )
 {
     return(UnsafeLeptonicaPrimitives.pixScaleResolution(pix, xscale, yscale));
 }
Example #3
0
 /// <inheritdoc />
 public int pixcmapGetColor32(IntPtr cmap,
                              int index,
                              out int color
                              )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetColor32(cmap, index, out color));
 }
Example #4
0
 /// <inheritdoc />
 public int pixWrite(string filename,
                     IntPtr handle,
                     ImageFormat format
                     )
 {
     return(UnsafeLeptonicaPrimitives.pixWrite(filename, handle, (int)format));
 }
Example #5
0
 /// <inheritdoc />
 public int pixcmapSetBlackAndWhite(IntPtr cmap,
                                    int setBlack,
                                    int setWhite
                                    )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapSetBlackAndWhite(cmap, setBlack, setWhite));
 }
Example #6
0
 /// <inheritdoc />
 public int pixcmapToRGBTable(IntPtr cmap,
                              out IntPtr colorTable,
                              out int colorCount
                              )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapToRGBTable(cmap, out colorTable, out colorCount));
 }
Example #7
0
 /// <inheritdoc />
 public IntPtr pixcmapSerializeToMemory(IntPtr colorData,
                                        int colorCount,
                                        int colorDataLength
                                        )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapSerializeToMemory(colorData, colorCount, colorDataLength));
 }
Example #8
0
 /// <inheritdoc />
 public int pixcmapAddBlackOrWhite(IntPtr cmap,
                                   int color,
                                   out int index
                                   )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapAddBlackOrWhite(cmap, color, out index));
 }
Example #9
0
 /// <inheritdoc />
 public IntPtr pixcmapCreateRandom(int depth,
                                   int hasBlack,
                                   int hasWhite
                                   )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapCreateRandom(depth, hasBlack, hasWhite));
 }
Example #10
0
 /// <inheritdoc />
 public int pixSetResolution(IntPtr pix,
                             int xres,
                             int yres
                             )
 {
     return(UnsafeLeptonicaPrimitives.pixSetResolution(pix, xres, yres));
 }
Example #11
0
 /// <inheritdoc />
 public int pixcmapGetRankIntensity(IntPtr cmap,
                                    float rankVal,
                                    out int index
                                    )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetRankIntensity(cmap, rankVal, out index));
 }
Example #12
0
 /// <inheritdoc />
 public IntPtr pixCreate(int width,
                         int height,
                         int depth
                         )
 {
     return(UnsafeLeptonicaPrimitives.pixCreate(width, height, depth));
 }
Example #13
0
 /// <inheritdoc />
 public int pixcmapAddColor(IntPtr cmap,
                            int redValue,
                            int greenValue,
                            int blueValue
                            )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapAddColor(cmap, redValue, greenValue, blueValue));
 }
Example #14
0
 /// <inheritdoc />
 public int pixcmapGetComponentRange(IntPtr cmap,
                                     int component,
                                     out int minVal,
                                     out int maxVal
                                     )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetComponentRange(cmap, component, out minVal, out maxVal));
 }
Example #15
0
 /// <inheritdoc />
 public IntPtr pixConvertRGBToGray(IntPtr pix,
                                   float rwt,
                                   float gwt,
                                   float bwt
                                   )
 {
     return(UnsafeLeptonicaPrimitives.pixConvertRGBToGray(pix, rwt, gwt, bwt));
 }
Example #16
0
 /// <inheritdoc />
 public int pixcmapGammaTRC(IntPtr cmap,
                            float gamma,
                            int minVal,
                            int maxVal
                            )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGammaTRC(cmap, gamma, minVal, maxVal));
 }
Example #17
0
 /// <inheritdoc />
 public int pixcmapToArrays(IntPtr cmap,
                            out IntPtr redMap,
                            out IntPtr greenMap,
                            out IntPtr blueMap
                            )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapToArrays(cmap, out redMap, out greenMap, out blueMap));
 }
Example #18
0
 /// <inheritdoc />
 public IntPtr pixcmapColorToGray(IntPtr cmaps,
                                  float redWeight,
                                  float greenWeight,
                                  float blueWeight
                                  )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapColorToGray(cmaps, redWeight, greenWeight, blueWeight));
 }
Example #19
0
 /// <inheritdoc />
 public int pixcmapAddNewColor(IntPtr cmap,
                               int redValue,
                               int greenValue,
                               int blueValue,
                               out int colorIndex
                               )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapAddNewColor(cmap, redValue, greenValue, blueValue, out colorIndex));
 }
Example #20
0
 /// <inheritdoc />
 public int pixcmapSerializeToMemory(IntPtr cmap,
                                     out int components,
                                     out int colorCount,
                                     out IntPtr colorData,
                                     out int colorDataLength
                                     )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapSerializeToMemory(cmap, out components, out colorCount, out colorData, out colorDataLength));
 }
Example #21
0
 /// <inheritdoc />
 public int pixcmapGetColor(IntPtr cmap,
                            int index,
                            out int redValue,
                            out int greenValue,
                            out int blueValue
                            )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetColor(cmap, index, out redValue, out greenValue, out blueValue));
 }
Example #22
0
 /// <inheritdoc />
 public int pixcmapGetExtremeValue(IntPtr cmap,
                                   int type,
                                   out int rVal,
                                   out int gVal,
                                   out int bVal
                                   )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetExtremeValue(cmap, type, out rVal, out gVal, out bVal));
 }
Example #23
0
 /// <inheritdoc />
 public int pixcmapGetIndex(IntPtr cmap,
                            int redValue,
                            int greenValue,
                            int blueValue,
                            out int index
                            )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetIndex(cmap, redValue, greenValue, blueValue, out index));
 }
Example #24
0
 /// <inheritdoc />
 public int pixcmapGetNearestIndex(IntPtr cmap,
                                   int rVal,
                                   int gVal,
                                   int bVal,
                                   out int index
                                   )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapGetNearestIndex(cmap, rVal, gVal, bVal, out index));
 }
Example #25
0
 /// <inheritdoc />
 public int pixOtsuAdaptiveThreshold(IntPtr pix,
                                     int sx,
                                     float sy,
                                     float smoothx,
                                     int smoothy,
                                     float scorefract,
                                     out IntPtr ppixth,
                                     out IntPtr ppixd
                                     )
 {
     return(UnsafeLeptonicaPrimitives.pixOtsuAdaptiveThreshold(pix, sx, sy, smoothx, smoothy, scorefract, out ppixth, out ppixd));
 }
Example #26
0
 /// <inheritdoc />
 public IntPtr pixDeskewGeneral(IntPtr pix,
                                int redSweep,
                                float sweepRange,
                                float sweepDelta,
                                int redSearch,
                                int thresh,
                                out float pAngle,
                                out float pConf
                                )
 {
     return(UnsafeLeptonicaPrimitives.pixDeskewGeneral(pix, redSearch, sweepRange, sweepDelta, redSearch, thresh, out pAngle, out pConf));
 }
Example #27
0
 /// <inheritdoc />
 public int pixSetYRes(IntPtr pix,
                       int yres
                       )
 {
     return(UnsafeLeptonicaPrimitives.pixSetYRes(pix, yres));
 }
Example #28
0
 /// <inheritdoc />
 public int pixGetWpl(IntPtr pix)
 {
     return(UnsafeLeptonicaPrimitives.pixGetWpl(pix));
 }
Example #29
0
 /// <inheritdoc />
 public int pixcmapShiftIntensity(IntPtr cmap,
                                  float fraction
                                  )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapShiftIntensity(cmap, fraction));
 }
Example #30
0
 /// <inheritdoc />
 public int pixcmapContrastTRC(IntPtr cmap,
                               float factor
                               )
 {
     return(UnsafeLeptonicaPrimitives.pixcmapContrastTRC(cmap, factor));
 }