Ignore:
Timestamp:
Mar 20, 2020, 11:29:01 PM (5 years ago)
Author:
sommeria
Message:

various bug repair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/ima2concentration.m

    r1075 r1077  
    3232cpath=which('uvmat');
    3333addpath(fullfile(fileparts(cpath),'transform_field'))% define path for phys_polar.m
     34
     35%% rescale the image
     36[nby,nbx]=size(DataIn.A);
     37x=linspace(DataIn.Coord_x(1),DataIn.Coord_x(2),nbx)-nbx/2;
     38y=linspace(DataIn.Coord_y(1),DataIn.Coord_y(2),nby)-nby/2;
     39[X,Y]=meshgrid(x,y);
     40coeff_quad=0.15*4/(nbx*nbx);% image luminosity reduced by 10% at the edge
     41DataIn.A=double(DataIn.A).*(1+coeff_quad*(X.*X+Y.*Y));
    3442
    3543%% Transform images to polar coordinates with origin at the light source position
Note: See TracChangeset for help on using the changeset viewer.