Changeset 1077 for trunk/src/transform_field/ima2concentration.m
- Timestamp:
- Mar 20, 2020, 11:29:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/ima2concentration.m
r1075 r1077 32 32 cpath=which('uvmat'); 33 33 addpath(fullfile(fileparts(cpath),'transform_field'))% define path for phys_polar.m 34 35 %% rescale the image 36 [nby,nbx]=size(DataIn.A); 37 x=linspace(DataIn.Coord_x(1),DataIn.Coord_x(2),nbx)-nbx/2; 38 y=linspace(DataIn.Coord_y(1),DataIn.Coord_y(2),nby)-nby/2; 39 [X,Y]=meshgrid(x,y); 40 coeff_quad=0.15*4/(nbx*nbx);% image luminosity reduced by 10% at the edge 41 DataIn.A=double(DataIn.A).*(1+coeff_quad*(X.*X+Y.*Y)); 34 42 35 43 %% Transform images to polar coordinates with origin at the light source position
Note: See TracChangeset
for help on using the changeset viewer.