8 #include <countedref.h>
10 #include <geomparam.h>
21 class Chip :
public GeomParam{
24 Gtransfo *fittedTransfo;
26 const Gtransfo *CTP2TP;
32 GtransfoLinShift shiftInTangentPlane;
35 void update_transfos();
42 Chip(
const CcdImage &ccdImage,
const int DistortionDegree);
45 int NGroups()
const {
return 1;}
48 int Npar(
const int IGroup)
const
49 {
if (IGroup) {};
return (fittedTransfo)? fittedTransfo->Npar() : 0;}
53 int Index(
const int IGroup)
const
54 {
if (IGroup) {};
return index;}
58 {
if (IGroup) {}; index = I;};
61 void ComputeH(
const Point &Where,
const int IGroup,
double *H)
const;
64 void OffsetParams(
const double *ParOffsets,
const int IGroup);
68 Point
CTP2Pix(
const Point &PointInCTP)
const;
76 void CTP2PixDerivative(
const Point &Where,
double *HxHy)
const;
91 typedef CountedRef<Chip> ChipRef;
92 typedef std::list<CountedRef<Chip> > ChipList;
93 typedef ChipList::iterator ChipIterator;
94 typedef ChipList::const_iterator ChipCIterator;
virtual const Gtransfo * CTP2PixTransfo() const
transfo from CTP to pixel space
Definition: chip.h:71
Point CTP2Pix(const Point &PointInCTP) const
transform from CTP to pixel space
Definition: chip.cc:95
int Index(const int IGroup) const
where they are in the parameter std::vector
Definition: chip.h:53
handler of an actual image from a single CCD
Definition: ccdimage.h:21
void ComputeH(const Point &Where, const int IGroup, double *H) const
derivatives at positions in CommonTangentPlane w.r.t parameters. (When Igroup == 1, derivative w.r.t position itself.
Definition: chip.cc:80
void SetIndex(const int &I, const int IGroup)
assign the index
Definition: chip.h:57
handles the transfos to go from a given image to the system used to fit.
Definition: chip.h:21
int Npar(const int IGroup) const
the number of parameters to fit
Definition: chip.h:48
void OffsetParams(const double *ParOffsets, const int IGroup)
offsetparameters
Definition: chip.cc:113