skyprojection.cc
// Copies the input image to RGBA and sets up the internal WCS and bounding
// box used for the projection later.
Copies the input image to RGBA and sets up the internal WCS and bounding
box used for the projection later.
Copies the input image to RGBA and sets up the internal WCS and bounding box used for the projection later .
SkyProjection::SkyProjection(const Image &image, const WcsProjection &wcs)
    : bounding_box_(),
      bg_color_(4),
      projected_width_(0),
      projected_height_(0) {
  assert(image.width() > 0);
  assert(image.height() > 0);
  assert(image.colorspace() == Image::RGBA);
  image_ = &image;
  wcs_ = &wcs;
  bounding_box_.FindBoundingBox(wcs, image.width(), image.height());
  bg_color_.SetAllChannels(0);
  input_image_origin_ = UPPER_LEFT;
  original_width_ = image.width();
  original_height_ = image.height();
  DetermineProjectedSize();
}
SkyProjection :: SkyProjection ( const Image & image , const WcsProjection & wcs ) : bounding_box_ ( ) , bg_color_ ( 4 ) , projected_width_ ( 0 ) , projected_height_ ( 0 ) { assert ( image . width ( ) > 0 ) ; assert ( image . height ( ) > 0 ) ; assert ( image . colorspace ( ) == Image :: RGBA ) ; image_ = & image ; wcs_ = & wcs ; bounding_box_ . FindBoundingBox ( wcs , image . width ( ) , image . height ( ) ) ; bg_color_ . SetAllChannels ( 0 ) ; input_image_origin_ = UPPER_LEFT ; original_width_ = image . width ( ) ; original_height_ = image . height ( ) ; DetermineProjectedSize ( ) ; }
Copies the input image to RGBA and sets up the internal WCS and bounding
box used for the projection later.
Copies the input image to RGBA and sets up the internal WCS and bounding box used for the projection later .
// This sets projected_width_ and projected_height_.