Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DIntelImage Class Reference
[Images]

Intel libraries IplImage wrap class. More...

#include <IntelImage.h>

List of all members.

Public Member Functions

void DeleteImages ()
 Free image memory (called automatically).

bool CheckImage (int width, int height, int in_iChannels)
 Check if image matches the specified size and channels number.

IplImage * GetImage ()
 Get pointer to stored image.

int width ()
 Get width of the image.

int height ()
 Get height of the image.

int step ()
 Get image aligned width.

unsigned char * GetLineFast (int in_iLine)
 Get pointer to line.

unsigned char * GetLineSafe (int in_iLine)
 Get pointer to line.

Creation
 DIntelImage ()
 Default constructor.

void CreateImage (int width, int height, int depth=IPL_DEPTH_8U, int nChannels=3)
 Create an empty image with specified size, bit depth and channels number.

void AttachImage (IplImage *in_pImage)
 Attach IplImage. The image is replaced by in_pImage, memory management will be done by DIntelImage from now on.

void CloneImage (IplImage *in_pImage)
 Create a full copy of the in_pImage.

void CopyOf (DIntelImage &in_Image, int desired_color=-1)
 Create a copy of the given DIntelImage with possibility of color <-> grayscale transfer.

Relation to SimpleImage
gml::SimpleImageCopyToSimpleImage ()
Destruction
IplImage * DetachImage ()
 Detach IplImage. The detached IplImage should be destroyed by the programmer.

virtual ~DIntelImage ()
 Destructor.

Filework
bool LoadImage (const char *in_sFileName)
 Load image from file.

void SaveImage (const char *in_sFileName)
 Save image to file.

Image drawing (actually, painting) in MFC
void DrawImage (CDC *in_pDC, CPoint in_vOrigin, float in_dRatio)
 Paint image in MFC device context with specified offset and scale.

void DrawImage (CDC *in_pDC, CPoint in_vOrigin, int in_iHeight=-1)
 Paint image in MFC device context with specified offset and destination image height.

void DrawImage (CDC *in_pDC, gml::BBox2i in_SrcBox, gml::BBox2i in_TrgBox)
 Paint part of the image in MFC device context in specified window.

Image drawing (actually, painting) in Borland Object Window Library
void DrawImage (Graphics::TBitmap *in_pTarget, TPoint in_vOrigin, float in_dRatio=1)
 Paint image in Borland OWL TBitmap with specified offset and scale.


Protected Member Functions

Forbidden operations
 DIntelImage (DIntelImage &)
 Copy constructor (not implemented).

DIntelImage operator= (DIntelImage &)
 Assignment operator (not implemented).


Protected Attributes

IplImage * m_pImage
 Pointer to stored IplImage.


Detailed Description

Intel libraries IplImage wrap class.


Member Function Documentation

void CopyOf DIntelImage in_Image,
int  desired_color = -1
 

Create a copy of the given DIntelImage with possibility of color <-> grayscale transfer.

Parameters:
in_Image image to copy;
desired_color contols the color properties of the resulting image (-1 - do not change color/grayscale properties, 0 - the image becomes grayscale, 1 - image becomes color).

bool LoadImage const char *  in_sFileName  ) 
 

Load image from file.

Load image from a specified filename. Returns true in case of success, false on error. Depends on the highgui.dll and (c)vlgrfmts.dll installed on your machine (both libraries are provided with Intel OpenCV), but usually jpeg, bmp, tiff, pxm are supported.

void SaveImage const char *  in_sFileName  ) 
 

Save image to file.

Save image to a specified filename. The image format is taken from the file extension (jpg, bmp, tif, pxm). Depends on the highgui.dll and (c)vlgrfmts.dll installed on your machine (both libraries are provided with Intel OpenCV), but usually jpeg, bmp, tiff, pxm are supported.

void DrawImage CDC *  in_pDC,
CPoint  in_vOrigin,
float  in_dRatio
 

Paint image in MFC device context with specified offset and scale.

Function is available only if GML_USE_MFC is defined at the time of compilation. The image is scaled to the given ratio and painted in the CDC with the specified offset

void DrawImage CDC *  in_pDC,
CPoint  in_vOrigin,
int  in_iHeight = -1
 

Paint image in MFC device context with specified offset and destination image height.

Function is available only if GML_USE_MFC is defined at the time of compilation. The image is scaled to fit the given height (aspect ratio is preserved) and painted in the CDC with the specified offset

void DrawImage CDC *  in_pDC,
gml::BBox2i  in_SrcBox,
gml::BBox2i  in_TrgBox
 

Paint part of the image in MFC device context in specified window.

Function is available only if GML_USE_MFC is defined at the time of compilation. The image is scaled to fit the given window (aspect ratio is preserved)

void DrawImage Graphics::TBitmap *  in_pTarget,
TPoint  in_vOrigin,
float  in_dRatio = 1
 

Paint image in Borland OWL TBitmap with specified offset and scale.

Function is available only if GML_USE_OWL is defined at the time of compilation. The image is scaled to the given ratio and painted in the TBitmap with the specified offset


The documentation for this class was generated from the following files:
Generated on Tue Jan 13 21:12:02 2004 for Graphics and Media Lab CSL by doxygen 1.3.4