protected Fingerprint ProcessImage(System.Drawing.Image img, byte[] rawData, uint fingerPosition = 0, Dermalog.AFIS.FourprintSegmentation.HandPositions hand = Dermalog.AFIS.FourprintSegmentation.HandPositions.Unknown)
 {
     using (Dermalog.Afis.ImageContainer.Decoder decoder = new Dermalog.Afis.ImageContainer.Decoder())
     {
         using (RawImage rawImage = decoder.Decode(rawData))
         {
             return(ProcessImage(img, rawImage, fingerPosition, hand));
         }
     }
 }
        protected Fingerprint ProcessImage(System.Drawing.Image img, RawImage rawImg, uint fingerPosition = 0, Dermalog.AFIS.FourprintSegmentation.HandPositions hand = Dermalog.AFIS.FourprintSegmentation.HandPositions.Unknown)
        {
            Fingerprint fp = new Fingerprint();

            fp.Image    = img;
            fp.Template = Encoder.Encode(rawImg);
            fp.NFIQ2    = DermalogNistQualityCheck.CheckNfiq2(rawImg);
            fp.Hand     = hand;
            fp.Position = fingerPosition;
            return(fp);
        }
 protected Fingerprint ProcessImage(System.Drawing.Image img, uint fingerPosition = 0, Dermalog.AFIS.FourprintSegmentation.HandPositions hand = Dermalog.AFIS.FourprintSegmentation.HandPositions.Unknown)
 {
     using (RawImage rawImage = RawImageHelperForms.FromBitmap(img as Bitmap))
     {
         return(ProcessImage(img, rawImage, fingerPosition, hand));
     }
 }