Beispiel #1
0
        // Determine local skew
        public static int pixGetLocalSkewTransform(this Pix pixs, int nslices, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta, out Pta pptas, out Pta pptad)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            IntPtr pptasPtr, pptadPtr;
            var    result = Native.DllImports.pixGetLocalSkewTransform((HandleRef)pixs, nslices, redsweep, redsearch, sweeprange, sweepdelta, minbsdelta, out pptasPtr, out pptadPtr);

            if (IntPtr.Zero == pptasPtr ||
                IntPtr.Zero == pptadPtr)
            {
                pptas = null;
                pptad = null;
            }
            else
            {
                pptas = new Pta(pptasPtr);
                pptad = new Pta(pptadPtr);
            }

            return(result);
        }
Beispiel #2
0
 // Projective coordinate transformation
 public static int getProjectiveXformCoeffs(Pta ptas, Pta ptad, out IntPtr pvc)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public static Pta ptaSelectByValue(this Pta ptas, float xth, float yth, int type, int relation)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 // Simple rearrangements
 public static Pta ptaSubsample(this Pta ptas, int subfactor)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public static Pta ptaTransform(this Pta ptas, int shiftx, int shifty, float scalex, float scaley)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public static int ptaContainsPt(this Pta pta, int x, int y)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public static int ptaGetRange(this Pta pta, out float pminx, out float pmaxx, out float pminy, out float pmaxy)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public static Pta ptaSelectRange(this Pta ptas, int first, int last)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public static int ptaNoisyQuadraticLSF(this Pta pta, float factor, out Pta pptad, out float pa, out float pb, out float pc, out float pmederr, out Numa pnafit)
 {
     throw new NotImplementedException();
 }
Beispiel #10
0
 public static int ptaJoin(this Pta ptad, Pta ptas, int istart, int iend)
 {
     throw new NotImplementedException();
 }
Beispiel #11
0
 public static int ptaGetQuarticLSF(this Pta pta, out float pa, out float pb, out float pc, out float pd, out float pe, out Numa pnafit)
 {
     throw new NotImplementedException();
 }
Beispiel #12
0
 // Least Squares Fit
 public static int ptaGetLinearLSF(this Pta pta, out float pa, out float pb, out Numa pnafit)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
 public static Pta ptaCropToMask(this Pta ptas, Pix pixm)
 {
     throw new NotImplementedException();
 }
Beispiel #14
0
 public static int pixaAccumulateSamples(this Pixa pixa, Pta pta, out Pix ppixd, out float px, out float py)
 {
     throw new NotImplementedException();
 }
Beispiel #15
0
 // Projective(4 pt) image transformation using a sampled (to nearest integer) transform on each dest point
 public static Pix pixProjectiveSampledPta(this Pix pixs, Pta ptad, Pta ptas, int incolor)
 {
     throw new NotImplementedException();
 }
Beispiel #16
0
 public static Pta ptaTranspose(this Pta ptas)
 {
     throw new NotImplementedException();
 }
Beispiel #17
0
 public static Pta ptaCyclicPerm(this Pta ptas, int xs, int ys)
 {
     throw new NotImplementedException();
 }
Beispiel #18
0
 // Interconversions with Pix
 public static int pixPlotAlongPta(this Pix pixs, Pta pta, int outformat, string title)
 {
     throw new NotImplementedException();
 }
Beispiel #19
0
 // Geometric
 public static Box ptaGetBoundingRegion(this Pta pta)
 {
     throw new NotImplementedException();
 }
Beispiel #20
0
        public static Pix pixGenerateFromPta(this Pta pta, int w, int h)
        {
            var pointer = Native.DllImports.pixGenerateFromPta((HandleRef)pta, w, h);

            return(new Pix(pointer));
        }
Beispiel #21
0
 public static Pta ptaGetInsideBox(this Pta ptas, HandleRef box)
 {
     throw new NotImplementedException();
 }
Beispiel #22
0
 public static int ptaConvertToNuma(this Pta pta, out Numa pnax, out Numa pnay)
 {
     throw new NotImplementedException();
 }
Beispiel #23
0
 public static int ptaTestIntersection(this Pta pta1, Pta pta2)
 {
     throw new NotImplementedException();
 }
Beispiel #24
0
 public static Pta ptaReverse(this Pta ptas, int type)
 {
     throw new NotImplementedException();
 }
Beispiel #25
0
 public static int ptaPtInsidePolygon(this Pta pta, float x, float y, out int pinside)
 {
     throw new NotImplementedException();
 }
Beispiel #26
0
 // Display Pta and Ptaa
 public static Pix pixDisplayPta(this Pix pixd, Pix pixs, Pta pta)
 {
     throw new NotImplementedException();
 }
Beispiel #27
0
 // Min/max and filtering
 public static int ptaGetMinMax(this Pta pta, out float pxmin, out float pymin, out float pxmax, out float pymax)
 {
     throw new NotImplementedException();
 }
Beispiel #28
0
 public static Pix pixDisplayPtaPattern(this Pix pixd, Pix pixs, Pta pta, Pix pixp, int cx, int cy, uint color)
 {
     throw new NotImplementedException();
 }
Beispiel #29
0
 // Selection of minima in mask of connected components
 public static int pixSelectMinInConnComp(this Pix pixs, Pix pixm, out Pta ppta, out Numa pnav)
 {
     throw new NotImplementedException();
 }
Beispiel #30
0
 public static Pta ptaReplicatePattern(this Pta ptas, Pix pixp, Pta ptap, int cx, int cy, int w, int h)
 {
     throw new NotImplementedException();
 }