[gdal-dev] Re: Calibration in GDAL

Andrey Kiselev dron at a...
Thu Aug 1 11:01:42 EDT 2002


Frank,

Now I'm suggest the next scheme for implementing calibration.

class GDALCalibrationModel
{
public:

GDALCalibrationModel( char **papszModelDescription );
GDALCalibrationModel( );
CreateFromDescription( char **papszModelDescription );
~GDALCalibrationModel( );
double GetCalibratedValue( int iXPos, int iYPos, double dfValue );
CPLErr DumpToFile( const char * pszFilename );
CPLErr ReadFromFile( const char * pszFilename ); /* ??? */
}

Class instances will be initialized by the string list like this:

"METHOD=<method for applying calibration>" [PIXEL|ROW|COLUMN]
"FUNCTION=<type of calibration function>" [POLY|PICEWISE_POLY|LUT]
"COEFFS0=<list of the zero-order coefficients>" [number of coefficients
depends from value of the METHOD field]
"COEFFS1=<list of the first-order coefficients>"
...

Only "METHOD" and "FUNCTION" keys are obligatory, number and meaning of
other parameters depends from "FUNCTION" field. During the initialization
the new metadata domain (GDAL_CALIBRATION) will be created and filled by the
corresponding values.

Does this conforms with your vision of problem?


-- 
Andrey V. Kiselev
Scientific Research Center for Ecological Safety Russian Academy of Sciences
Office phone: +7 812 2307834 ICQ UIN 26871517
Registered Linux user number 169907

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 35 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20020801/0299fb40/attachment.bin


More information about the Gdal-dev mailing list