/***********************************************************************//** * @brief 1D image constructor * * @param[in] nx Number of pixels. * @param[in] pixels Optional pointer to image pixel array * * Construct 1D instance by specifying the number of pixels in the image. ***************************************************************************/ GFitsImageDouble::GFitsImageDouble(const int& nx, const double* pixels) : GFitsImage(G_BITPIX, nx) { // Initialise class members for clean destruction init_members(); // Construct data construct_data(pixels); // Return return; }
/***********************************************************************//** * @brief 2D image constructor * * @param[in] nx Number of pixels in first dimension. * @param[in] ny Number of pixels in second dimension. * @param[in] pixels Optional pointer to image pixel array * * Construct 2D image by specifying the number of pixels in each dimension. ***************************************************************************/ GFitsImageLong::GFitsImageLong(int nx, int ny, const long* pixels) : GFitsImage(G_BITPIX, nx, ny) { // Initialise class members for clean destruction init_members(); // Construct data construct_data(pixels); // Return return; }
/***********************************************************************//** * @brief 2D image constructor * * @param[in] nx Number of pixels in first dimension. * @param[in] ny Number of pixels in second dimension. * @param[in] pixels Optional pointer to image pixel array * * Construct 2D image by specifying the number of pixels in each dimension. ***************************************************************************/ GFitsImageFloat::GFitsImageFloat(const int& nx, const int& ny, const float* pixels) : GFitsImage(G_BITPIX, nx, ny) { // Initialise class members for clean destruction init_members(); // Construct data construct_data(pixels); // Return return; }
/***********************************************************************//** * @brief Pixel array constructor * * @param[in] naxis Image dimension (0,1,2,3,4). * @param[in] naxes Number of pixels in each dimension. * @param[in] pixels Optional pointer to image pixel array * * Construct instance of GFitsImageFloat by specifying the image dimension and * the number of pixels in each dimension. Note that this constructor does * not allocate any memory for the actual image. ***************************************************************************/ GFitsImageFloat::GFitsImageFloat(const int& naxis, const int* naxes, const float* pixels) : GFitsImage(G_BITPIX, naxis, naxes) { // Initialise class members for clean destruction init_members(); // Construct data from pixels construct_data(pixels); // Return return; }
maillon* construct_maillon_d(char * name,int age) { data* data = construct_data(name,age); return construct_maillon(data); }