Template Function lsst::afw::fits::detail::makePixelArray

Function Documentation

template<typename T>
std::shared_ptr<PixelArrayBase> lsst::afw::fits::detail::makePixelArray(int bitpix, ndarray::Array<T, 1, 1> const &array)

Create a PixelArray suitable for an image with the nominated BITPIX

Return

A new PixelArray.

Parameters
  • [in] bitpix: Bits per pixel (0,8,16,32,64,-32,-64) for output.

  • [in] array: Array with pixel values to convert.