Beispiel #1
0
 // Top-level rotation by multiples of 90 degrees
 public static Pix  pixRotateOrth(this Pix pixs, int quads)
 {
     throw new NotImplementedException();
 }
Beispiel #2
0
        // Builds an image of the color content, on a per-pixel basis, as a measure of the amount of divergence of each color component(R, G, B) from gray.
        public static int pixColorContent(this Pix pixs, int rwhite, int gwhite, int bwhite, int mingray, out Pix ppixr, out Pix ppixg, out Pix ppixb)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            IntPtr ppixrPtr, ppixgPtr, ppixbPtr;
            var    result = Native.DllImports.pixColorContent((HandleRef)pixs, rwhite, gwhite, bwhite, mingray, out ppixrPtr, out ppixgPtr, out ppixbPtr);

            ppixr = new Pix(ppixrPtr);
            ppixg = new Pix(ppixgPtr);
            ppixb = new Pix(ppixbPtr);

            return(result);
        }
 public static Pix Translate(Pix pix)
 {
     return(Translate(pix, ColorOptions.BringInWhite));
 }
Beispiel #4
0
 // Full image rasterop with no translation
 public static int pixRasteropFullImage(this Pix pixd, Pix pixs, int op)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
        // Convolution for mean, mean square, variance and rms deviation in specified window
        public static int pixWindowedStats(this Pix pixs, int wc, int hc, int hasborder, out Pix ppixm, out Pix ppixms, out FPix pfpixv, out FPix pfpixrv)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            IntPtr ppixmPtr, ppixmsPtr, pfpixvPtr, pfpixrvPtr;
            var    result = Native.DllImports.pixWindowedStats((HandleRef)pixs, wc, hc, hasborder, out ppixmPtr, out ppixmsPtr, out pfpixvPtr, out pfpixrvPtr);

            ppixm   = new Pix(ppixmPtr);
            ppixms  = new Pix(ppixmsPtr);
            pfpixv  = new FPix(pfpixvPtr);
            pfpixrv = new FPix(pfpixrvPtr);

            return(result);
        }
Beispiel #6
0
 public static int pixWriteStreamTiff(IntPtr fp, Pix pix, int comptype)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 // Full image translation(general and in-place)
 public static Pix pixTranslate(this Pix pixd, Pix pixs, int hshift, int vshift, int incolor)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public static Numa pixReadBarcodeWidths(this Pix pixs, int method, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 // Location
 public static Boxa pixLocateBarcodes(this Pix pixs, int thresh, out Pix ppixb, out Pix ppixm)
 {
     throw new NotImplementedException();
 }
Beispiel #10
0
 // Stroke parameter measurement
 public static int pixFindStrokeLength(this Pix pixs, IntPtr tab8, out int plength)
 {
     throw new NotImplementedException();
 }
Beispiel #11
0
 // Next levels
 public static Pixa pixExtractBarcodes(this Pix pixs, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #12
0
 public static Pix pixSetStrokeWidth(this Pix pixs, int width, int thinfirst, int connectivity)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
 public static Pix pixModifyStrokeWidth(this Pix pixs, float width, float targetw)
 {
     throw new NotImplementedException();
 }
Beispiel #14
0
 public static int pixFindStrokeWidth(this Pix pixs, float thresh, IntPtr tab8, out float pwidth, out Numa pnahisto)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 // Writing tiff:
 public static int pixWriteTiff(string filename, Pix pix, int comptype, string modestr)
 {
     throw new NotImplementedException();
 }
Beispiel #16
0
 // Extraction and deskew
 public static Pix pixDeskewBarcode(this Pix pixs, Pix pixb, HandleRef box, int margin, int threshold, out float pangle, out float pconf)
 {
     throw new NotImplementedException();
 }
Beispiel #17
0
 public static int pixWriteTiffCustom(string filename, Pix pix, int comptype, string modestr, Numa natags, Sarray savals, Sarray satypes, Numa nasizes)
 {
     throw new NotImplementedException();
 }
Beispiel #18
0
 // Process to get line widths
 public static Numa pixExtractBarcodeWidths1(this Pix pixs, float thresh, float binfract, out Numa pnaehist, out Numa pnaohist, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #19
0
 public static int pixWriteStreamTiffWA(IntPtr fp, Pix pix, int comptype, string modestr)
 {
     throw new NotImplementedException();
 }
Beispiel #20
0
 public static Numa pixExtractBarcodeWidths2(this Pix pixs, float thresh, out float pwidth, out Numa pnac, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #21
0
 public static int pixRasteropIP(this Pix pixd, int hshift, int vshift, int incolor)
 {
     throw new NotImplementedException();
 }
Beispiel #22
0
 public static Numa pixExtractBarcodeCrossings(this Pix pixs, float thresh, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #23
0
 // General rasterop
 public static int pixRasterop(this Pix pixd, int dx, int dy, int dw, int dh, int op, Pix pixs, int sx, int sy)
 {
     throw new NotImplementedException();
 }
Beispiel #24
0
 // Top level
 public static Sarray pixProcessBarcodes(this Pix pixs, int format, int method, out Sarray psaw, int debugflag)
 {
     throw new NotImplementedException();
 }
Beispiel #25
0
        // Identify images that have highlight(red) color
        public static int pixHasHighlightRed(this Pix pixs, int factor, float fract, float fthresh, out int phasred, out float pratio, out Pix ppixdb)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            IntPtr ppixdbPtr;
            var    result = Native.DllImports.pixHasHighlightRed((HandleRef)pixs, factor, fract, fthresh, out phasred, out pratio, out ppixdbPtr);

            ppixdb = new Pix(ppixdbPtr);

            return(result);
        }
Beispiel #26
0
 public static int pixWriteMemTiff(out IntPtr pdata, IntPtr psize, Pix pix, int comptype)
 {
     throw new NotImplementedException();
 }
Beispiel #27
0
        // Determine if there are significant color regions that are not background in a page image
        public static int pixFindColorRegions(this Pix pixs, Pix pixm, int factor, int lightthresh, int darkthresh, int mindiff, int colordiff, float edgefract, out float pcolorfract, out Pix pcolormask1, out Pix pcolormask2, Pixa pixadb)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            IntPtr pcolormask1Ptr, pcolormask2Ptr;
            var    result = Native.DllImports.pixFindColorRegions((HandleRef)pixs, (HandleRef)pixm, factor, lightthresh, darkthresh, mindiff, colordiff, edgefract, out pcolorfract, out pcolormask1Ptr, out pcolormask2Ptr, (HandleRef)pixadb);

            pcolormask1 = new Pix(pcolormask1Ptr);
            pcolormask2 = new Pix(pcolormask2Ptr);

            return(result);
        }
Beispiel #28
0
 public static int pixWriteMemTiffCustom(out IntPtr pdata, IntPtr psize, Pix pix, int comptype, Numa natags, Sarray savals, Sarray satypes, Numa nasizes)
 {
     throw new NotImplementedException();
 }
 public static Pix Translate(Pix pix, ColorOptions options)
 {
     return(Translate(pix, DefaultHorizontalShift, DefaultVerticalShift, options));
 }
Beispiel #30
0
 // Top-bottom flip
 public static Pix  pixFlipTB(this Pix pixd, Pix pixs)
 {
     throw new NotImplementedException();
 }