LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
ConvolveGPU.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2008, 2009, 2010 LSST Corporation.
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 #ifndef LSST_AFW_MATH_DETAIL_GPU_CONVOLVE_H
26 #define LSST_AFW_MATH_DETAIL_GPU_CONVOLVE_H
27 
37 #include <sstream>
38 
39 #include "boost/shared_ptr.hpp"
40 
41 #include "lsst/pex/exceptions.h"
42 #include "lsst/afw/geom.h"
43 #include "lsst/afw/image/Image.h"
45 #include "lsst/afw/math/Kernel.h"
47 
48 #define IS_INSTANCE(A, B) (dynamic_cast<B const*>(&(A)) != NULL)
49 
50 
51 namespace lsst {
52 namespace afw {
53 namespace math {
54 namespace detail {
55 
56 namespace ConvolveGpuStatus {
60  };
61 }
62 
63 template <typename OutImageT, typename InImageT>
65  OutImageT& convolvedImage,
66  InImageT const& inImage,
67  lsst::afw::math::Kernel const& kernel,
68  lsst::afw::math::ConvolutionControl const& convolutionControl
69  );
70 
71 template <typename OutPixelT, typename InPixelT>
76  lsst::afw::math::ConvolutionControl const& convolutionControl
77  );
78 
79 template <typename OutPixelT, typename InPixelT>
81  lsst::afw::image::Image<OutPixelT>& convolvedImage,
82  lsst::afw::image::Image<InPixelT > const& inImage,
84  lsst::afw::math::ConvolutionControl const& convolutionControl
85  );
86 
87 template <typename OutPixelT, typename InPixelT>
91  lsst::afw::math::Kernel const& kernel,
92  lsst::afw::math::ConvolutionControl const& convolutionControl
93  );
94 
95 template <typename OutPixelT, typename InPixelT>
97  lsst::afw::image::Image<OutPixelT>& convolvedImage,
98  lsst::afw::image::Image<InPixelT > const& inImage,
99  lsst::afw::math::Kernel const& kernel,
100  lsst::afw::math::ConvolutionControl const& convolutionControl
101  );
102 
103 }
104 }
105 }
106 }
107 
108 
109 
110 #endif // !defined(LSST_AFW_MATH_DETAIL_GPU_CONVOLVE_H)
111 
An include file to include the header files for lsst::afw::geom.
Declare the Kernel class and subclasses.
ConvolveGpuStatus::ReturnCode convolveLinearCombinationGPU(lsst::afw::image::MaskedImage< OutPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > &convolvedImage, lsst::afw::image::MaskedImage< InPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const &inImage, lsst::afw::math::LinearCombinationKernel const &kernel, lsst::afw::math::ConvolutionControl const &convolutionControl)
Parameters to control convolution.
Definition: ConvolveImage.h:58
ConvolveGpuStatus::ReturnCode convolveSpatiallyInvariantGPU(lsst::afw::image::MaskedImage< OutPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > &convolvedImage, lsst::afw::image::MaskedImage< InPixelT, lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > const &inImage, lsst::afw::math::Kernel const &kernel, lsst::afw::math::ConvolutionControl const &convolutionControl)
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
A class to manipulate images, masks, and variance as a single object.
Definition: MaskedImage.h:77
Support for 2-D images.
Convolve and convolveAtAPoint functions for Image and Kernel.
Implementation of the Class MaskedImage.
Kernels are used for convolution with MaskedImages and (eventually) Images.
Definition: Kernel.h:134
A class to represent a 2-dimensional array of pixels.
Definition: PSF.h:43
Include files required for standard LSST Exception handling.
ConvolveGpuStatus::ReturnCode basicConvolveGPU(OutImageT &convolvedImage, InImageT const &inImage, lsst::afw::math::Kernel const &kernel, lsst::afw::math::ConvolutionControl const &convolutionControl)