/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to dfi_cuda/dfi_cuda.cu

  • Committer: Suren A. Chilingaryan
  • Date: 2018-09-19 03:13:24 UTC
  • Revision ID: csa@suren.me-20180919031324-bpzmj1p5qg02eoxa
Do not pad sinograms to next power of 2 in DFI (also improves quality)

Show diffs side-by-side

added added

removed removed

Lines of Context:
396
396
 
397
397
    ctx->oversampling = setup->fft_oversampling;
398
398
    ctx->rho_len = cutted_rho_len;
399
 
    ctx->rho_ext_len = pow(2, ceil(log2f(ctx->rho_len))) * ctx->oversampling;
 
399
//    ctx->rho_ext_len = pow(2, ceil(log2f(ctx->rho_len))) * ctx->oversampling;
 
400
    ctx->rho_ext_len = ((cutted_rho_len) / 128 + (cutted_rho_len % 128?1:0)) * 128 * ctx->oversampling;
 
401
    
400
402
    printf("Sino bins %u, oversampling %u\n", ctx->rho_ext_len, ctx->oversampling);
401
403
    ctx->num_projections = setup->num_projections;
402
404
    ctx->L = (float)setup->dfi_kernel_size;