Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96525089
chi_invim.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 27, 14:41
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Dec 29, 14:41 (2 d)
Engine
blob
Format
Raw Data
Handle
23178585
Attached To
R1448 Lenstool-HPC
chi_invim.c
View Options
#include <fonction.h>
/*
* nom: chi_invim
* auteur: Jean-Paul Kneib
* date: 10/03/94
* place: ESO
*
* major changes:
* date: oct 94
* place: IoA Cambridge
*
* Return the error associated to the transformation image -> source
*
* Global variables used :
* - imFrame, ps, M
* - in err_invim() : iline, radial, tangent, nrline, ntline
* - in criticinv() : CL, radial, tangent, lens, nrline, ntline, flagr, flagt, G, lens_table
* - in s_sourcebox() : M, G, lens, lens_table
* - in do_itos() : M, imFrame, ps, G, lens, lens_table, iline, radial, tangent, nrline, ntline
*/
double chi_invim(double **im, struct pixlist pl[], int npl, double dlsds,
double **so, double **er, int **imu)
{
extern struct g_pixel ps;
const extern struct g_pixel imFrame;
const extern struct g_mode M;
double err;
/*
* compute the new critical and caustics line - quick version
*/
criticinv(imFrame.xmin, imFrame.xmax, imFrame.ymin, imFrame.ymax);
/*
* define the source box as the barycenter of the source image-center points
*/
s_sourcebox(&ps, M.centerfile, dlsds);
/*
* do the transform image -> source + compute the error
*/
do_itos(im, pl, npl, dlsds, so, er, imu);
/*
* estimate the error
*/
err = err_invim(er, imu);
return(err);
}
Event Timeline
Log In to Comment