iRoCS Toolbox
1.1.0
|
Basic drawing routines for blitz arrays. More...
#include <Blitz2Ddraw.hh>
Static Public Member Functions | |
template<typename Type > | |
static void | drawCircle (blitz::Array< Type, 3 > &image, int yCenter, int xCenter, int radius, const blitz::TinyVector< Type, 3 > &color) |
Draw a simple, non-aliased circle. More... | |
template<typename Type > | |
static void | drawCircle (blitz::Array< Type, 2 > &image, int yCenter, int xCenter, int radius, const Type &color) |
Draw a simple, non-aliased circle. More... | |
template<typename Type > | |
static void | drawLine (blitz::Array< Type, 3 > &image, int y0, int x0, int y1, int x1, const blitz::TinyVector< Type, 3 > &color) |
Draw a simple, non-aliased line. More... | |
template<typename Type > | |
static void | drawLine (blitz::Array< Type, 2 > &image, int y0, int x0, int y1, int x1, const Type &color) |
Draw a simple, non-aliased line. More... | |
template<typename Type > | |
static void | drawRect (blitz::Array< Type, 3 > &image, int y0, int x0, int y1, int x1, const blitz::TinyVector< Type, 3 > &color) |
Draw a rectangle into an blitz array the upper right corner and the lower left corner must be given. More... | |
template<typename Type > | |
static void | drawRect (blitz::Array< Type, 2 > &image, int y0, int x0, int y1, int x1, const Type &color) |
Draw a rectangle into an blitz array the upper right corner and the lower left corner must be given. More... | |
template<typename T > | |
static void | setPixel (blitz::Array< T, 3 > &image, int y, int x, const blitz::TinyVector< T, 3 > &color) |
Sets a single pixel in a image. More... | |
template<typename T > | |
static void | setPixel (blitz::Array< T, 2 > &image, int y, int x, const T &color) |
Sets a single pixel in a gray image. More... | |
Basic drawing routines for blitz arrays.
Definition at line 45 of file Blitz2Ddraw.hh.
|
static |
Sets a single pixel in a image.
image | Blitz array that represents the image |
y | y-coordinate in the image (first dim in image) |
x | x-coordinate in the image (second dim in image) |
color | TinyVector that contais the color of the pixel to be set |
|
static |
Sets a single pixel in a gray image.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Blitz array that represents the image |
y | y-coordinate in the image (first dim in image) |
x | x-coordinate in the image (second dim in image) |
color | contains the intensity of the pixel to be set |
|
static |
Draw a simple, non-aliased line.
image | Blitz array that represents the image |
y0 | y-coordinate of the start point |
x0 | x-coordinate of the start point |
y1 | y-coordinate of the end point |
x1 | x-coordinate of the end point |
color | TinyVector that contains the color of the line |
|
static |
Draw a simple, non-aliased line.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Blitz array that represents the image |
y0 | y-coordinate of the start point |
x0 | x-coordinate of the start point |
y1 | y-coordinate of the end point |
x1 | x-coordinate of the end point |
color | contains the intensity of the line |
|
static |
Draw a simple, non-aliased circle.
image | Blitz array that represents the image |
yCenter | y-coordinate of the center point |
xCenter | x-coordinate of the center point |
radius | radius of the circle |
color | TinyVector that contains the color of the line |
|
static |
Draw a simple, non-aliased circle.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Blitz array that represents the image |
yCenter | y-coordinate of the center point |
xCenter | x-coordinate of the center point |
radius | radius of the circle |
color | TinyVector that contains the color of the line |
|
static |
Draw a rectangle into an blitz array the upper right corner and the lower left corner must be given.
image | Blitz array that represents the image |
y0 | y-coordinate of the upper left point |
x0 | x-coordinate of the upper left point |
y1 | y-coordinate of the lower right point |
x1 | x-coordinate of the lower right point |
color | contains the intensity of the line |
|
static |
Draw a rectangle into an blitz array the upper right corner and the lower left corner must be given.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Blitz array that represents the image |
y0 | y-coordinate of the upper left point |
x0 | x-coordinate of the upper left point |
y1 | y-coordinate of the lower right point |
x1 | x-coordinate of the lower right point |
color | contains the intensity of the line |