gpu_globals.cuGo to the documentation of this file.00001 /* 00002 Copyright (c) 2010, Paul Furgale and Chi Hay Tong 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without 00006 modification, are permitted provided that the following conditions are 00007 met: 00008 00009 * Redistributions of source code must retain the above copyright notice, 00010 this list of conditions and the following disclaimer. 00011 * Redistributions in binary form must reproduce the above copyright 00012 notice, this list of conditions and the following disclaimer in the 00013 documentation and/or other materials provided with the distribution. 00014 * The names of its contributors may not be used to endorse or promote 00015 products derived from this software without specific prior written 00016 permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00019 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00020 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00021 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 00022 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00023 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00024 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00026 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00027 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00028 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 */ 00030 00031 #include "gpu_globals.h" 00032 00033 namespace asrl { 00034 00035 bool s_initialized = false; 00036 int s_initWidth = -1; 00037 int s_initHeight = -1; // texturing the integral image 00038 __constant__ SurfOctaveParameters d_octave_params[ASRL_SURF_MAX_OCTAVES]; 00039 __constant__ float d_hessian_scale[ASRL_SURF_MAX_INTERVALS*ASRL_SURF_MAX_OCTAVES]; 00040 __constant__ int d_hessian_stride[1]; 00041 00042 bool & get_s_initialized(){ return s_initialized;} 00043 int & get_s_initWidth() { return s_initWidth; } 00044 int & get_s_initHeight() { return s_initHeight; } 00045 00046 SurfOctaveParameters * get_d_octave_params() { return d_octave_params; } 00047 float * get_d_hessian_scale() { return d_hessian_scale; } 00048 int * get_d_hessian_stride() { return d_hessian_stride; } 00049 00050 00051 } // namespace asrl 00052 Generated on Fri Apr 30 20:06:19 2010 for gpusurf by 1.6.2 |