Public Methods | Static Public Variables

mw::nar::Image_cl Class

Class for handling images for marker detection.[Details]

#include <narImage.h>

List of All Members

Public Methods

 Image_cl (u16 w, u16 h, u32 *p_Work, u16 *p_DebugImg=0)
Border_en GetBorder ()
 Gets the method for determining borders.
u16GetColor (u32 x, u32 y) const
 Gets the color of the reference point.
u16 GetHeight () const
 Gets the height of the image.
u16 GetWidth () const
 Gets the width of the image.
u8 GetXStep () const
 Gets the X direction step width for edge detection. Relates to the width in the image of the edge of the marker to detect.
u8 GetYStep () const
 Gets the Y direction step width for edge detection. Relates to the height in the image of the edge of the marker to detect.
template<MeshDiv_e N>
voidPickupMeshData (const Vec2F_st *cap_Points, MeshColorData_tc< N > &r_MeshColorData, MeshVtxData_tc< N > &r_MeshVtxData) const
 Divides 4 arbitrary points into a grid, and gets the color and coordinate values for each intersection.
template<MeshDiv_e N>
voidPickupMeshData (const Vec2F_st *cap_Points, MeshColorData_tc< N > &r_MeshColorData) const
 Divides 4 arbitrary points into a grid, and gets the color for each intersection.
voidSetBorder (Border_en b)
 Sets the method for determining borders.
void SetDebugImage (u16 *p_Image)
 Sets the debug information image region. (Only enabled when NAR_DEBUG__==1)
voidSetImage (const u16 *cp_Image)
 Registers an image.
voidSetXStep (u8 x)
 Sets the X direction step width for edge detection.
voidSetYStep (u8 y)
 Sets the Y direction step width for edge detection.

Static Public Variables

static const u8 msc_DefaultXStep = 8
 The X direction step value when detecting outlines.
static const u8 msc_DefaultYStep = 16
 The Y direction step value when detecting outlines.

Description

Class for handling images for marker detection.


Constructors and Destructors

mw::nar::Image_cl::Image_cl ( u16 w,
u16 h,
u32 *  p_Work,
u16* p_DebugImg = 0 
) [inline]
Argument:
w Image width.
h Image height.
p_Work Pointer to the working memory region (use the NAR_IMAGE_WORK_SIZE_4TH macro to get the size of working memory).
p_DebugImg Pointer to the debugging information display image region (when NAR_DEBUG_==1).

Functions

u16 mw::nar::Image_cl::GetColor ( u32 x,
u32 y 
) const [inline]

Gets the color of the reference point.

Argument:
x X coordinate
y Y coordinate
Return Values:
Returns a color in RGB5551 format. 
template<MeshDiv_e N>
void mw::nar::Image_cl::PickupMeshData ( const Vec2F_st *  cap_Points,
MeshColorData_tc< N > &  r_MeshColorData 
) const [inline]

Divides 4 arbitrary points into a grid, and gets the color for each intersection.

Template Parameters:
N Number of partitions for one side (MeshDiv_e)
Argument:
cap_Points 4 arbitrary points.
r_MeshColorData Location where the color information is stored.
template<MeshDiv_e N>
void mw::nar::Image_cl::PickupMeshData ( const Vec2F_st *  cap_Points,
MeshColorData_tc< N > &  r_MeshColorData,
MeshVtxData_tc< N > &  r_MeshVtxData 
) const [inline]

Divides 4 arbitrary points into a grid, and gets the color and coordinate values for each intersection.

Template Parameters:
N Number of partitions for one side (MeshDiv_e)
Argument:
cap_Points 4 arbitrary points.
r_MeshColorData Location where the color information is stored.
r_MeshVtxData Location where the coordinates information is stored.
void mw::nar::Image_cl::SetImage ( const u16 *  cp_Image  )  [inline]

Registers an image.

Argument:
cp_Image Pointer to the image to register.
void mw::nar::Image_cl::SetXStep ( u8 x  )  [inline]

Sets the X direction step width for edge detection.

Make this value bigger to improve processing speed. However, narrower image edges can make it impossible to detect marker edges. The default value is defined by nar::Image_cl::msc_DefaultXStep.

Argument:
x Step width.
void mw::nar::Image_cl::SetYStep ( u8 y  )  [inline]

Sets the Y direction step width for edge detection.

Make this value bigger to improve processing speed. However, narrower image edges can make it impossible to detect marker edges. The default value is defined by nar::Image_cl::msc_DefaultYStep.

Argument:
y Step width.

This class description was generated from the following file.


CONFIDENTIAL