gpu_area.hGo to the documentation of this file.00001 00011 /* 00012 Copyright (c) 2010, Paul Furgale and Chi Hay Tong 00013 All rights reserved. 00014 00015 Redistribution and use in source and binary forms, with or without 00016 modification, are permitted provided that the following conditions are 00017 met: 00018 00019 * Redistributions of source code must retain the above copyright notice, 00020 this list of conditions and the following disclaimer. 00021 * Redistributions in binary form must reproduce the above copyright 00022 notice, this list of conditions and the following disclaimer in the 00023 documentation and/or other materials provided with the distribution. 00024 * The names of its contributors may not be used to endorse or promote 00025 products derived from this software without specific prior written 00026 permission. 00027 00028 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00029 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00030 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00031 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 00032 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00033 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00034 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00035 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00036 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00037 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00038 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 */ 00040 00041 #ifndef ASRL_GPU_AREA_HPP 00042 #define ASRL_GPU_AREA_HPP 00043 00044 #include <cuda.h> 00045 #include <cuda_runtime_api.h> 00046 00047 namespace asrl { 00048 00049 00050 00056 void texturize_integral_image(cudaArray* intImg); 00057 00063 cudaError_t texturize_integral_image_c(cudaArray* intImg); 00064 00065 00070 void fh_untexturizeIntegral(); 00071 00076 cudaError_t fh_untexturizeIntegral_c(); 00077 00089 float iiAreaLookupC(cudaArray * image, float cx, float cy, float width, float height); 00090 00105 void run_iiAreaLookupCDKernel(dim3 grid, dim3 threads, float * d_result, float cx, float cy, float width, float height); 00106 00107 00108 } // namespace asrl 00109 00110 #endif // ASRL_GPU_AREA_HPP 00111 00112 Generated on Fri Apr 30 20:06:19 2010 for gpusurf by 1.6.2 |