Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
BIAS::ImageDraw< StorageType > Class Template Reference

drawing simple entities into the image like rectangles or lines As all functions are static they have to be called by eg. More...

#include <Base/ImageUtils/ImageDraw.hh>

Public Member Functions

template<>
float GetContrastValue (const float t)
 
template<>
unsigned char GetContrastValue (const unsigned char t)
 

Static Public Member Functions

static int Arrow (Image< StorageType > &im, const unsigned start[2], const unsigned end[2], const unsigned length, const unsigned width, const StorageType value[])
 draws an arrow from start to end, the tips of the head are length pixel back on the line and width pixel away from the line More...
 
static void Arrow (Image< StorageType > &im, const int startX, const int startY, const int endX, const int endY, const BIAS::ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const int thickness=1)
 OpenCV arrow drawing. More...
 
static void Circle (BIAS::Image< StorageType > &dstImg, const int &centerX, const int &centerY, const int &radius=3, const BIAS::ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const int &thickness=1, const int &linetype=8, const int &shift=0)
 OpenCV: Draws a circle. More...
 
static int CircleCenter (Image< StorageType > &im, unsigned int CenterX, unsigned int CenterY, unsigned int Radius, const StorageType Value[]=NULL)
 draws a circular line, either using Value or a good contrast value More...
 
static int CircleCenterFilled (Image< StorageType > &im, unsigned int CenterX, unsigned int CenterY, unsigned int Radius, const StorageType Value[])
 draws a filled circle using Value More...
 
static int Ellipse (Image< StorageType > &im, double center[2], double a[2], double b[2], const StorageType Value[])
 draws an ellipse at center with half axes a and b More...
 
static void Ellipse (BIAS::Image< StorageType > &dstImg, const int &centerX, const int &centerY, const int &axesX, const int &axesY, const double &angle, const double &start_angle=0, const double &end_angle=360, const BIAS::ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const int &thickness=1, const int &linetype=8, const int &shift=0)
 OpenCV: Draws simple or thick elliptic arc or fills ellipse sector angles are given in degree. More...
 
static StorageType GetContrastValue (StorageType t)
 
static int InterpolatedCircleCenter (Image< StorageType > &im, unsigned int CenterX, unsigned int CenterY, unsigned int Radius, const StorageType Value[], const float Thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased circular line that clips automatically to the image borders. More...
 
static int InterpolatedCircleCenter (Image< StorageType > &im, unsigned int CenterX, unsigned int CenterY, unsigned int Radius, const std::vector< StorageType > &Value, const float Thickness=1.0, const float Opacity=1.0)
 Convenience wrapper for InterpolatedCircleCenter(). More...
 
static int InterpolatedCircleCenter (Image< StorageType > &im, HomgPoint2D Center, float Radius, const StorageType Value[], const float Thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased circular line that clips automatically to the image borders. More...
 
static int InterpolatedLine (Image< StorageType > &im, const int StartX, const int StartY, const int EndX, const int EndY, const StorageType Value[], const float thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased line that automatically clips to the image borders. More...
 
static int InterpolatedLine (Image< StorageType > &im, const HomgPoint2D Start, const HomgPoint2D End, const StorageType Value[], const float Thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased line that automatically clips to the image borders. More...
 
static int InterpolatedLineGrey (Image< StorageType > &im, const int StartX, const int StartY, const int EndX, const int EndY, const StorageType Value, const float thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased line that automatically clips to the image borders. More...
 
static int InterpolatedLineGrey (Image< StorageType > &im, const HomgPoint2D Start, const HomgPoint2D End, const StorageType Value, const float thickness=1.0, const float Opacity=1.0)
 draws an anti-aliased line that automatically clips to the image borders. More...
 
static int InterpolatedLineGrey (Image< StorageType > &im, unsigned int coo[4], const StorageType Value)
 
static int Line (Image< StorageType > &im, const unsigned int start[2], const unsigned int end[2], const StorageType value[])
 lines More...
 
static int Line (Image< StorageType > &im, const int start[2], const int end[2], const StorageType value[], int width)
 
static int Line (Image< StorageType > &im, const int start[2], const int end[2], const StorageType value[])
 differnet interface for the function above More...
 
static int Line (Image< StorageType > &im, const unsigned int start[2], const unsigned int end[2], const StorageType value)
 uses value in every channel More...
 
static int Line (Image< StorageType > &im, const unsigned int start[2], const unsigned int end[2])
 decides which color to use More...
 
static int Line (Image< StorageType > &im, const unsigned int StartX, const unsigned int StartY, const unsigned int EndX, const unsigned int EndY, const StorageType color[], const float thickness)
 Draw a solid line with a specific thickness. More...
 
static int Line (Image< StorageType > &im, const unsigned int StartX, const unsigned int StartY, const unsigned int EndX, const unsigned int EndY, const StorageType Value[])
 convenience wrapper More...
 
static int Line (Image< StorageType > &im, const unsigned int StartX, const unsigned int StartY, const unsigned int EndX, const unsigned int EndY, const StorageType Value)
 convenience wrapper More...
 
static int Line (Image< StorageType > &im, const unsigned int StartX, const unsigned int StartY, const unsigned int EndX, const unsigned int EndY)
 convenience wrapper More...
 
static int Line (Image< StorageType > &im, unsigned int coo[4], const StorageType value[])
 convenience wrapper More...
 
static int Line (Image< StorageType > &im, const double start[2], const double end[2], const StorageType value[])
 Convenience wrapper, draws a line even if start or end point are not positioned in the image. More...
 
static void Line (BIAS::Image< StorageType > &dstImg, const int &pt1X, const int &pt1Y, const int &pt2X, const int &pt2Y, const BIAS::ColourRGB< StorageType > &colorRGB, const int thickness=1, const int linetype=8, const int shift=0)
 OpenCV: Draws a line segment connecting two points. More...
 
static int LineGrey (Image< StorageType > &im, const unsigned int start[2], const unsigned int end[2], const StorageType value)
 faster algorithm for 1 channel images More...
 
static int LineGrey (Image< StorageType > &im, const unsigned int start[2], const unsigned int end[2])
 faster algorithm for 1 channel images, decides which color to use More...
 
static int LineGrey (Image< StorageType > &im, const unsigned int StartX, const unsigned int StartY, const unsigned int EndX, const unsigned int EndY, const StorageType Value)
 convenience wrapper More...
 
static void Rectangle (BIAS::Image< StorageType > &dstImg, const int &pt1X, const int &pt1Y, const int &pt2X, const int &pt2Y, const BIAS::ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const int thickness=1, const int linetype=8, const int shift=0)
 OpenCV: Draws a simple, thick or filled rectangle. More...
 
static int RectangleCenter (Image< StorageType > &im, const int x, const int y, const int size, const StorageType value[])
 Draws the rectangle around X, Y with Size and Value[i] in channel i. More...
 
static int RectangleCenter (Image< StorageType > &im, const unsigned coo[2], const int size, const StorageType value[])
 convenience wrapper More...
 
static int RectangleCenter (Image< StorageType > &im, const int x, const int y, const int size)
 draws a rectangle of size around x and y, decides which color to use More...
 
static int RectangleCenter (Image< StorageType > &im, const int coo[2], const int size)
 convenience wrapper More...
 
static int RectangleCenterGrey (Image< StorageType > &im, const int x, const int y, const int size, const StorageType value)
 fills the channels with value More...
 
static int RectangleCenterGreyFill (Image< StorageType > &im, const int x, const int y, const int size, const StorageType value)
 
static int RectangleCorners (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy, const StorageType value[])
 rectangles More...
 
static int RectangleCorners (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy, const StorageType value)
 as above but fills all channels with value More...
 
static int RectangleCorners (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy)
 decides which color to use More...
 
static int RectangleCornersFill (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy, const StorageType value[])
 Draws the filled rectangle defined by upper left and bottom right corner with value[i] in channel i. More...
 
static int RectangleCornersGrey (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy, const StorageType GreyValue)
 faster for one channel images More...
 
static int RectangleCornersGreyFill (Image< StorageType > &im, const int minx, const int miny, const int maxx, const int maxy, const StorageType GreyValue)
 faster for one channel images More...
 
static void Text (BIAS::Image< StorageType > &dstImg, const std::string &message, const int &posX=0, const int &posY=20, const ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const int fontface=1, const double hscale=1.0, const double vscale=1.0, const double shear=0, const int thickness=1, const int linetype=8)
 OpenCV: Draw Text into image. More...
 
static void TextIM (BIAS::Image< StorageType > &dstImg, const std::string &message, const int &posX=0, const int &posY=20, const ColourRGB< StorageType > &colorRGB=ColourRGB< StorageType >(255, 255, 255), const double hscale=1.0, const double vscale=1.0, const double shear=0, const int thickness=1, const int linetype=8)
 ImageMagick: Draw Text into image. More...
 

Detailed Description

template<class StorageType = unsigned char>
class BIAS::ImageDraw< StorageType >

drawing simple entities into the image like rectangles or lines As all functions are static they have to be called by eg.

ImageDraw::RectangleCenter() and not with an object.

Author
fw
Examples:
ExampleIplImageDraw.cpp.

Definition at line 72 of file ImageDraw.hh.

Member Function Documentation

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Arrow ( Image< StorageType > &  im,
const unsigned  start[2],
const unsigned  end[2],
const unsigned  length,
const unsigned  width,
const StorageType  value[] 
)
static

draws an arrow from start to end, the tips of the head are length pixel back on the line and width pixel away from the line

Author
woelk 12/2003
Examples:
ExampleDraw.cpp.

Definition at line 1127 of file ImageDraw.cpp.

References BIAS::Bresenham::GetNext(), BIAS::ImageBase::GetWidth(), and BIAS::Bresenham::Init().

Referenced by BIAS::GenSynthMatches::_Draw().

template<class StorageType >
void BIAS::ImageDraw< StorageType >::Arrow ( Image< StorageType > &  im,
const int  startX,
const int  startY,
const int  endX,
const int  endY,
const BIAS::ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255, 255, 255),
const int  thickness = 1 
)
static

OpenCV arrow drawing.

Author
woelk 12 / 2007

Definition at line 1472 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::p_imgIpl.

template<class StorageType >
void BIAS::ImageDraw< StorageType >::Circle ( BIAS::Image< StorageType > &  dstImg,
const int &  centerX,
const int &  centerY,
const int &  radius = 3,
const BIAS::ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255,255,255),
const int &  thickness = 1,
const int &  linetype = 8,
const int &  shift = 0 
)
static

OpenCV: Draws a circle.

Author
JW 2005
Examples:
ExampleConstantRegion.cpp, and ExampleCornerDetector.cpp.

Definition at line 1512 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::p_imgIpl.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::CircleCenter ( Image< StorageType > &  im,
unsigned int  CenterX,
unsigned int  CenterY,
unsigned int  Radius,
const StorageType  Value[] = NULL 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::CircleCenterFilled ( Image< StorageType > &  im,
unsigned int  CenterX,
unsigned int  CenterY,
unsigned int  Radius,
const StorageType  Value[] 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Ellipse ( Image< StorageType > &  im,
double  center[2],
double  a[2],
double  b[2],
const StorageType  Value[] 
)
static
template<class StorageType >
void BIAS::ImageDraw< StorageType >::Ellipse ( BIAS::Image< StorageType > &  dstImg,
const int &  centerX,
const int &  centerY,
const int &  axesX,
const int &  axesY,
const double &  angle,
const double &  start_angle = 0,
const double &  end_angle = 360,
const BIAS::ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255,255,255),
const int &  thickness = 1,
const int &  linetype = 8,
const int &  shift = 0 
)
static

OpenCV: Draws simple or thick elliptic arc or fills ellipse sector angles are given in degree.

Author
JW 2005

Definition at line 1595 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::p_imgIpl.

template<>
float BIAS::ImageDraw< float >::GetContrastValue ( const float  t)

Definition at line 76 of file ImageDraw.cpp.

template<class StorageType >
StorageType BIAS::ImageDraw< StorageType >::GetContrastValue ( StorageType  t)
static

Definition at line 59 of file ImageDraw.cpp.

template<>
unsigned char BIAS::ImageDraw< unsigned char >::GetContrastValue ( const unsigned char  t)

Definition at line 83 of file ImageDraw.cpp.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedCircleCenter ( Image< StorageType > &  im,
unsigned int  CenterX,
unsigned int  CenterY,
unsigned int  Radius,
const StorageType  Value[],
const float  Thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased circular line that clips automatically to the image borders.

Parameters
CenterXCenter point x coordinate
CenterYCenter point y coordinate
RadiusCircle radius
ValueColor values for each channel
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 1114 of file ImageDraw.cpp.

References BIAS::HomgPoint2D.

template<class StorageType = unsigned char>
static int BIAS::ImageDraw< StorageType >::InterpolatedCircleCenter ( Image< StorageType > &  im,
unsigned int  CenterX,
unsigned int  CenterY,
unsigned int  Radius,
const std::vector< StorageType > &  Value,
const float  Thickness = 1.0,
const float  Opacity = 1.0 
)
inlinestatic

Convenience wrapper for InterpolatedCircleCenter().

Definition at line 371 of file ImageDraw.hh.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedCircleCenter ( Image< StorageType > &  im,
HomgPoint2D  Center,
float  Radius,
const StorageType  Value[],
const float  Thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased circular line that clips automatically to the image borders.

Parameters
CenterCenter point
RadiusCircle radius
ValueColor values for each channel
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 1074 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedLine ( Image< StorageType > &  im,
const int  StartX,
const int  StartY,
const int  EndX,
const int  EndY,
const StorageType  Value[],
const float  thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased line that automatically clips to the image borders.

Parameters
imImage to draw at
StartXStart point x coordinate
StartYStart point y coordinate
EndXEnd point x coordinate
EndYEnd point y coordinate
ValueColor values for each channel
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 826 of file ImageDraw.cpp.

References BIAS::HomgPoint2D.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedLine ( Image< StorageType > &  im,
const HomgPoint2D  Start,
const HomgPoint2D  End,
const StorageType  Value[],
const float  Thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased line that automatically clips to the image borders.

Parameters
imImage to draw at
StartStart point
EndEnd point
ValueColor values for each channel
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 842 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedLineGrey ( Image< StorageType > &  im,
const int  StartX,
const int  StartY,
const int  EndX,
const int  EndY,
const StorageType  Value,
const float  thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased line that automatically clips to the image borders.

Parameters
imImage to draw at
StartXStart point x coordinate
StartYStart point y coordinate
EndXEnd point x coordinate
EndYEnd point y coordinate
ValueGrey level
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 956 of file ImageDraw.cpp.

References BIAS::HomgPoint2D.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::InterpolatedLineGrey ( Image< StorageType > &  im,
const HomgPoint2D  Start,
const HomgPoint2D  End,
const StorageType  Value,
const float  thickness = 1.0,
const float  Opacity = 1.0 
)
static

draws an anti-aliased line that automatically clips to the image borders.

Parameters
imImage to draw at
StartStart point
EndEnd point
ValueGrey level
ThicknessThickness of the line
OpacityOpacity of the line
Author
jordt 11/2009

Definition at line 939 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount().

template<class StorageType = unsigned char>
static int BIAS::ImageDraw< StorageType >::InterpolatedLineGrey ( Image< StorageType > &  im,
unsigned int  coo[4],
const StorageType  Value 
)
inlinestatic

Definition at line 324 of file ImageDraw.hh.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  start[2],
const unsigned int  end[2],
const StorageType  value[] 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const int  start[2],
const int  end[2],
const StorageType  value[],
int  width 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const int  start[2],
const int  end[2],
const StorageType  value[] 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  start[2],
const unsigned int  end[2],
const StorageType  value 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  start[2],
const unsigned int  end[2] 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  StartX,
const unsigned int  StartY,
const unsigned int  EndX,
const unsigned int  EndY,
const StorageType  color[],
const float  thickness 
)
static

Draw a solid line with a specific thickness.

Internally implemented as drawing multiple Bresenham lines, for now.

Bug:
This routine is a HACK and incorrect. A generela "solid fill by 4 given corners" algorithm has to be used or a Bresenham with eps=thckness/2.
Parameters
Valuethe line color.
thicknessof the line in pixel (perpendicular to the direction).
Author
Jan Woetzel 01/2005 DEPRECATED by JW 2005/08/09, replaced by OpenCV routine call.

Definition at line 1198 of file ImageDraw.cpp.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  StartX,
const unsigned int  StartY,
const unsigned int  EndX,
const unsigned int  EndY,
const StorageType  Value[] 
)
static

convenience wrapper

Definition at line 599 of file ImageDraw.cpp.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  StartX,
const unsigned int  StartY,
const unsigned int  EndX,
const unsigned int  EndY,
const StorageType  Value 
)
static

convenience wrapper

Definition at line 612 of file ImageDraw.cpp.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const unsigned int  StartX,
const unsigned int  StartY,
const unsigned int  EndX,
const unsigned int  EndY 
)
static

convenience wrapper

Definition at line 624 of file ImageDraw.cpp.

template<class StorageType = unsigned char>
static int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
unsigned int  coo[4],
const StorageType  value[] 
)
inlinestatic

convenience wrapper

Definition at line 242 of file ImageDraw.hh.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::Line ( Image< StorageType > &  im,
const double  start[2],
const double  end[2],
const StorageType  value[] 
)
static

Convenience wrapper, draws a line even if start or end point are not positioned in the image.

untested so far

Author
woelk 06/2005

Definition at line 658 of file ImageDraw.cpp.

References BIAS::ImageBase::GetHeight(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
void BIAS::ImageDraw< StorageType >::Line ( BIAS::Image< StorageType > &  dstImg,
const int &  pt1X,
const int &  pt1Y,
const int &  pt2X,
const int &  pt2Y,
const BIAS::ColourRGB< StorageType > &  colorRGB,
const int  thickness = 1,
const int  linetype = 8,
const int  shift = 0 
)
static

OpenCV: Draws a line segment connecting two points.

Author
JW 2005

Definition at line 1539 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::p_imgIpl.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::LineGrey ( Image< StorageType > &  im,
const unsigned int  start[2],
const unsigned int  end[2],
const StorageType  value 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::LineGrey ( Image< StorageType > &  im,
const unsigned int  start[2],
const unsigned int  end[2] 
)
static

faster algorithm for 1 channel images, decides which color to use

Definition at line 565 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::Bresenham::GetNext(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::LineGrey ( Image< StorageType > &  im,
const unsigned int  StartX,
const unsigned int  StartY,
const unsigned int  EndX,
const unsigned int  EndY,
const StorageType  Value 
)
static

convenience wrapper

Definition at line 637 of file ImageDraw.cpp.

template<class StorageType >
void BIAS::ImageDraw< StorageType >::Rectangle ( BIAS::Image< StorageType > &  dstImg,
const int &  pt1X,
const int &  pt1Y,
const int &  pt2X,
const int &  pt2Y,
const BIAS::ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255,255,255),
const int  thickness = 1,
const int  linetype = 8,
const int  shift = 0 
)
static

OpenCV: Draws a simple, thick or filled rectangle.

Author
JW 2005 Jan Woetzel 2005

Definition at line 1567 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::p_imgIpl.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCenter ( Image< StorageType > &  im,
const int  x,
const int  y,
const int  size,
const StorageType  value[] 
)
static
template<class StorageType = unsigned char>
static int BIAS::ImageDraw< StorageType >::RectangleCenter ( Image< StorageType > &  im,
const unsigned  coo[2],
const int  size,
const StorageType  value[] 
)
inlinestatic

convenience wrapper

Definition at line 143 of file ImageDraw.hh.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCenter ( Image< StorageType > &  im,
const int  x,
const int  y,
const int  size 
)
static

draws a rectangle of size around x and y, decides which color to use

Definition at line 345 of file ImageDraw.cpp.

References BIAS::ImageBase::GetHeight(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCenter ( Image< StorageType > &  im,
const int  coo[2],
const int  size 
)
static

convenience wrapper

Definition at line 360 of file ImageDraw.cpp.

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCenterGrey ( Image< StorageType > &  im,
const int  x,
const int  y,
const int  size,
const StorageType  value 
)
static

fills the channels with value

Definition at line 311 of file ImageDraw.cpp.

References BIAS::ImageBase::GetHeight(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCenterGreyFill ( Image< StorageType > &  im,
const int  x,
const int  y,
const int  size,
const StorageType  value 
)
static
Examples:
ExampleCondensImg.cpp.

Definition at line 328 of file ImageDraw.cpp.

References BIAS::ImageBase::GetHeight(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCorners ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy,
const StorageType  value[] 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCorners ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy,
const StorageType  value 
)
static

as above but fills all channels with value

Definition at line 134 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCorners ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCornersFill ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy,
const StorageType  value[] 
)
static

Draws the filled rectangle defined by upper left and bottom right corner with value[i] in channel i.

Definition at line 194 of file ImageDraw.cpp.

References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCornersGrey ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy,
const StorageType  GreyValue 
)
static
template<class StorageType >
int BIAS::ImageDraw< StorageType >::RectangleCornersGreyFill ( Image< StorageType > &  im,
const int  minx,
const int  miny,
const int  maxx,
const int  maxy,
const StorageType  GreyValue 
)
static

faster for one channel images

Definition at line 257 of file ImageDraw.cpp.

References BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), and BIAS::ImageBase::GetWidth().

template<class StorageType >
void BIAS::ImageDraw< StorageType >::Text ( BIAS::Image< StorageType > &  dstImg,
const std::string &  message,
const int &  posX = 0,
const int &  posY = 20,
const ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255,255,255),
const int  fontface = 1,
const double  hscale = 1.0,
const double  vscale = 1.0,
const double  shear = 0,
const int  thickness = 1,
const int  linetype = 8 
)
static

OpenCV: Draw Text into image.

Parameters
messagetext to display.
posX(bottom) left corner of textbox, may be negative and outside image
posYbottom (left) corner of textbox, may be negative and outside image
colorRGBcolor to use
fontfacee.g: CV_FONT_HERSHEY_SIMPLEX - normal size sans-serif font =0 CV_FONT_HERSHEY_PLAIN - small size sans-serif font =1 (default) CV_FONT_HERSHEY_DUPLEX - normal size sans-serif font (more complex than CV_FONT_HERSHEY_SIMPLEX) CV_FONT_HERSHEY_COMPLEX - normal size serif font CV_FONT_HERSHEY_TRIPLEX - normal size serif font (more complex than CV_FONT_HERSHEY_COMPLEX) CV_FONT_HERSHEY_COMPLEX_SMALL - smaller version of CV_FONT_HERSHEY_COMPLEX CV_FONT_HERSHEY_SCRIPT_SIMPLEX - hand-writing style font CV_FONT_HERSHEY_SCRIPT_COMPLEX - more complex variant of CV_FONT_HERSHEY_SCRIPT_SIMPLEX
Author
Jan Woetzel 2005

Definition at line 1384 of file ImageDraw.cpp.

References BIAS::WrapBias2Ipl::Bind(), and BIAS::WrapBias2Ipl::p_imgIpl.

Referenced by BIAS::GraphPlotter::Draw(), BIAS::ImageCanvasCheckerboardExtract::DrawCheckerboardCorners_(), BIAS::GraphPlotter::DrawLabels(), BIAS::GraphPlotter::Prepare_(), and BIAS::ImageValueBar< StorageType >::Update().

template<class StorageType >
void BIAS::ImageDraw< StorageType >::TextIM ( BIAS::Image< StorageType > &  dstImg,
const std::string &  message,
const int &  posX = 0,
const int &  posY = 20,
const ColourRGB< StorageType > &  colorRGB = ColourRGB<StorageType>(255,255,255),
const double  hscale = 1.0,
const double  vscale = 1.0,
const double  shear = 0,
const int  thickness = 1,
const int  linetype = 8 
)
static

ImageMagick: Draw Text into image.

Parameters
messagetext to display.
posX(bottom) left corner of textbox, may be negative and outside image
posYbottom (left) corner of textbox, may be negative and outside image
colorRGBcolor to use
Date
11/2010
Author
ischiller

Definition at line 1426 of file ImageDraw.cpp.

References BIAS::ImageConvert::BIAS2ImageMagick(), and BIAS::ImageConvert::ImageMagick2BIAS().

Referenced by BIAS::ImageValueBar< StorageType >::Update().


The documentation for this class was generated from the following files: