Image pixel coordinates are represented by class ImageCoords , which has an interface similar to WorldCoords :
// constructor - initialize null coordinates ImageCoords(); // constructor: initialize with (x, y ) ImageCoords(double x, double y); // constructor - parse X and Y in string format ImageCoords(const char* x_str, const char* y_str); Example: ImageCoords c1(123.456, 654.321); ImageCoords c2("123.456.", "654.321."); cout << "these coords should be the same (or very close):" << endl << c1 << endl << c2 << endl;
See ImageCoords(3) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory