Example #1
0
 public PositivePatchSynthesisInfo(int ensembleCount, int nnCount, WarpInfo warpInfo, double gaussianSigma)
 {
     EnsembleCount = ensembleCount;
     NnCount       = nnCount;
     WarpInfo      = warpInfo;
     GaussianSigma = gaussianSigma;
 }
Example #2
0
        private List <Image <Gray, byte> > GeneratePatches(Image <Gray, byte> frame, IBoundingBox bb, int count, WarpInfo warpInfo, double gaussianSigma, Size newSize)
        {
            List <Image <Gray, byte> > patches = new List <Image <Gray, byte> >();

            for (int i = 0; i < count; i++)
            {
                Image <Gray, byte> patch = Service.GeneratePatch(frame, bb, warpInfo, gaussianSigma, newSize);
                patches.Add(patch);
            }

            return(patches);
        }