コード例 #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);
        }
コード例 #2
0
ファイル: ComplexLensForm.cs プロジェクト: bzamecnik/bokehlab
 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);
 }