23 #ifndef __CUDA_DRAW_H__
24 #define __CUDA_DRAW_H__
36 int cx,
int cy,
float radius,
const float4&
color );
43 cudaError_t
cudaDrawCircle( T* input, T* output,
size_t width,
size_t height,
44 int cx,
int cy,
float radius,
const float4&
color )
46 return cudaDrawCircle(input, output, width, height, imageFormatFromType<T>(), cx, cy, radius,
color);
54 int cx,
int cy,
float radius,
const float4&
color )
65 int cx,
int cy,
float radius,
const float4&
color )
67 return cudaDrawCircle(image, width, height, imageFormatFromType<T>(), cx, cy, radius,
color);
76 int x1,
int y1,
int x2,
int y2,
const float4&
color,
float line_width=1.0 );
83 cudaError_t
cudaDrawLine( T* input, T* output,
size_t width,
size_t height,
84 int x1,
int y1,
int x2,
int y2,
const float4&
color,
float line_width=1.0 )
86 return cudaDrawLine(input, output, width, height, imageFormatFromType<T>(), x1, y1, x2, y2,
color, line_width);
94 int x1,
int y1,
int x2,
int y2,
const float4&
color,
float line_width=1.0 )
96 return cudaDrawLine(image, image, width, height, format, x1, y1, x2, y2,
color, line_width);
105 int x1,
int y1,
int x2,
int y2,
const float4&
color,
float line_width=1.0 )
107 return cudaDrawLine(image, width, height, imageFormatFromType<T>(), x1, y1, x2, y2,
color, line_width);
116 int left,
int top,
int right,
int bottom,
const float4&
color,
117 const float4& line_color=
make_float4(0,0,0,0),
float line_width=1.0f );
124 cudaError_t
cudaDrawRect( T* input, T* output,
size_t width,
size_t height,
125 int left,
int top,
int right,
int bottom,
const float4&
color,
126 const float4& line_color=
make_float4(0,0,0,0),
float line_width=1.0f )
128 return cudaDrawRect(input, output, width, height, imageFormatFromType<T>(), left, top, right, bottom,
color, line_color, line_width);
136 int left,
int top,
int right,
int bottom,
const float4&
color,
137 const float4& line_color=
make_float4(0,0,0,0),
float line_width=1.0f )
139 return cudaDrawRect(image, image, width, height, format, left, top, right, bottom,
color, line_color, line_width);
148 int left,
int top,
int right,
int bottom,
const float4&
color,
149 const float4& line_color=
make_float4(0,0,0,0),
float line_width=1.0f )
151 return cudaDrawRect(image, image, width, height, imageFormatFromType<T>(), left, top, right, bottom,
color, line_color, line_width);