Beispiel #1
0
        public PrecomputedComplexLens(ComplexLens lens, string lrtfFilename, int sampleCount)
        {
            ComplexLens = lens;
            Lrtf        = new LensRayTransferFunction(lens);
            // load precomputed LRTF from a file or compute it and save to file
            string filename = string.Format(lrtfFilename, sampleCount);

            LrtfTable = Lrtf.SampleLrtf3DCached(sampleCount, filename);
        }
Beispiel #2
0
 private void PrepareLrtf(ComplexLens lens, int sampleCount)
 {
     lrtf = new LensRayTransferFunction(lens);
     // load precomputed LRTF from a file or compute it and save to file
     string filename = string.Format(@"data\lrtf_double_gauss_{0}.bin", sampleCount);
     lrtfTable = lrtf.SampleLrtf3DCached(sampleCount, filename);
 }