NSPipeline::TImageRGB Class Reference

Tato trida obsahuje obrazy typu RGB kde kazdy pixel zabira 24 bitu - tedy 8 bitu na kanal. More...

#include <Image.h>

Inherits NSPipeline::TImage.

Inheritance diagram for NSPipeline::TImageRGB:

Inheritance graph
[legend]
Collaboration diagram for NSPipeline::TImageRGB:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual EnumImageType GetImageType (void) const
 Vrati typ tohoto obrazku.
virtual DWORD GetPixelSize (void) const
 Vrati velikost jednoho pixelu v bajtech.
virtual DWORD GetWidth (void) const
 Vrati sirku v pixelech.
virtual DWORD GetHeight (void) const
 Vrati vysku v pixelech.
virtual DWORD GetPitch (void) const
 Vrati pocet bajtu mezi pixely na sousednich radcich.
virtual DWORD GetDataSize (void) const
 Vrati velikost obrazovych dat v bajtech.
virtual const void * GetData (void) const
 Vrati obrazova data.
void * GetDataWrite (void)
 Vrati ukazatel na data.
void FromGray (const TImageGray *image)
 Metoda vytvori obraz z 8-bitoveho formatu ve stupnich sedi.
void FromARGB (const TImageARGB *image)
 Metoda vytvori obraz z 32-bitoveho ARGB formatu.
bool IsRectInside (DWORD x, DWORD y, DWORD width, DWORD height) const
 Tato metoda urci jestli je zadany obdelnik uvnitr tohoto obrazu.
void CopyFrom (const TImageRGB *src, DWORD x, DWORD y, DWORD width, DWORD height)
 Metoda zkopiruje zadany vyrez z poskytnuteho obrazku typu ARGB a zkopiruje jej do leveho horniho rohu tohoto obrazu.

Private Member Functions

virtual ~TImageRGB (void)
 Virtualni soukromy destruktor.
 TImageRGB (DWORD width, DWORD height)
 Soukromy konstruktor.
 TImageRGB (const TImageRGB &orig)
 falesny kopirovaci konstruktor
void operator= (const TImageRGB &orig)
 falesny operator prirazeni

Private Attributes

unsigned char * m_data
 data obrazu
DWORD m_width
 sirka v pixelech
DWORD m_height
 vyska v pixelech

Friends

class TImageSetReal
class NSSimpleUnit::TImageRGBResult

Detailed Description

Tato trida obsahuje obrazy typu RGB kde kazdy pixel zabira 24 bitu - tedy 8 bitu na kanal.

V teto tride jsou obrazova data ulozena spojite - PITCH je tedy roven poctu pixelu v radku nasobenych velikosti pixelu ( 4 bajty ).

Kazdy pixel je reprezentovan jako BYTE[3]. Tedy v pameti je postupne ulozen nejprve kanal BLUE, GREEN, RED.

Objekt teto tridy muze byt vytvoren pouze tridou TImageSetReal.

Definition at line 148 of file Image.h.


Constructor & Destructor Documentation

TImageRGB::~TImageRGB void   )  [private, virtual]
 

Virtualni soukromy destruktor.

Definition at line 258 of file Image.cpp.

References m_data.

TImageRGB::TImageRGB DWORD  width,
DWORD  height
[private]
 

Soukromy konstruktor.

Parameters:
width [in] sirka obrazku v pixelech
height [in] vyska obrazku v pixelech

Definition at line 270 of file Image.cpp.

References m_data, m_height, and m_width.

NSPipeline::TImageRGB::TImageRGB const TImageRGB orig  )  [private]
 

falesny kopirovaci konstruktor


Member Function Documentation

void TImageRGB::CopyFrom const TImageRGB src,
DWORD  x,
DWORD  y,
DWORD  width,
DWORD  height
 

Metoda zkopiruje zadany vyrez z poskytnuteho obrazku typu ARGB a zkopiruje jej do leveho horniho rohu tohoto obrazu.

Warning:
Velikost vyrezu kopirovaneho obrazu nesmi byt vetsi nez velikost tohoto obrazu. Pokud ano pak metoda neprovede nic. Zaroven musi byt cely vyrez obsazen v poskytnutem obraze.
Parameters:
src [in] zdrojovy obraz
x [in] x-souradnice leveho horniho rohu vyrezu
y [in] y-souradnice leveho horniho rohu vyrezu
width [in] sirka vyrezu v pixelech
height [in] vyska vyrezu v pixelech

Definition at line 359 of file Image.cpp.

References GetPitch(), IsRectInside(), m_data, m_height, and m_width.

Here is the call graph for this function:

void TImageRGB::FromARGB const TImageARGB image  ) 
 

Metoda vytvori obraz z 32-bitoveho ARGB formatu.

Warning:
Oba obrazy musi mit stejne rozmery! Pokud ne pak metoda ponecha obraz nezmeneny.
Parameters:
image [in] barevny obraz ve formatu ARGB

Definition at line 318 of file Image.cpp.

References NSPipeline::TImageARGB::GetHeight(), GetHeight(), and NSPipeline::TImageARGB::GetWidth().

Here is the call graph for this function:

void TImageRGB::FromGray const TImageGray image  ) 
 

Metoda vytvori obraz z 8-bitoveho formatu ve stupnich sedi.

Warning:
Oba obrazy musi mit stejne rozmery! Pokud ne pak metoda ponecha obraz nezmeneny.
Parameters:
image [in] obraz ve stupnich sedi

Definition at line 286 of file Image.cpp.

References NSPipeline::TImageGray::GetHeight(), GetHeight(), and NSPipeline::TImageGray::GetWidth().

Here is the call graph for this function:

const void * TImageRGB::GetData void   )  const [virtual]
 

Vrati obrazova data.

Implements NSPipeline::TImage.

Definition at line 250 of file Image.cpp.

References m_data.

DWORD TImageRGB::GetDataSize void   )  const [virtual]
 

Vrati velikost obrazovych dat v bajtech.

Implements NSPipeline::TImage.

Definition at line 242 of file Image.cpp.

References m_height, and m_width.

void * NSPipeline::TImageRGB::GetDataWrite void   )  [inline]
 

Vrati ukazatel na data.

Definition at line 206 of file Image.h.

References m_data.

Referenced by NSPipeline::TCameraThread::TCameraDLLRun().

DWORD TImageRGB::GetHeight void   )  const [virtual]
 

Vrati vysku v pixelech.

Implements NSPipeline::TImage.

Definition at line 226 of file Image.cpp.

References m_height.

Referenced by FromARGB(), FromGray(), NSPipeline::TImageGray::FromRGB(), NSPipeline::TImageARGB::FromRGB(), and NSSimpleUnit::TImageRGBResult::Reset().

EnumImageType NSPipeline::TImageRGB::GetImageType void   )  const [inline, virtual]
 

Vrati typ tohoto obrazku.

Implements NSPipeline::TImage.

Definition at line 198 of file Image.h.

References NSPipeline::ENUM_IMAGETYPE_RGB.

DWORD TImageRGB::GetPitch void   )  const [virtual]
 

Vrati pocet bajtu mezi pixely na sousednich radcich.

Implements NSPipeline::TImage.

Definition at line 234 of file Image.cpp.

References m_width.

Referenced by CopyFrom().

DWORD TImageRGB::GetPixelSize void   )  const [virtual]
 

Vrati velikost jednoho pixelu v bajtech.

Implements NSPipeline::TImage.

Definition at line 210 of file Image.cpp.

DWORD TImageRGB::GetWidth void   )  const [virtual]
 

Vrati sirku v pixelech.

Implements NSPipeline::TImage.

Definition at line 218 of file Image.cpp.

References m_width.

Referenced by NSPipeline::TImageGray::FromRGB(), NSPipeline::TImageARGB::FromRGB(), and NSSimpleUnit::TImageRGBResult::Reset().

bool NSPipeline::TImageRGB::IsRectInside DWORD  x,
DWORD  y,
DWORD  width,
DWORD  height
const [inline]
 

Tato metoda urci jestli je zadany obdelnik uvnitr tohoto obrazu.

Parameters:
x [in] x-souradnice leveho horniho rohu obdelniku
y [in] y-souradnice leveho horniho rohu obdelniku
width [in] sirka obdelniku v pixelech
height [in] vysla obdelniku v pixelech

Definition at line 219 of file Image.h.

References m_height, and m_width.

Referenced by CopyFrom().

void NSPipeline::TImageRGB::operator= const TImageRGB orig  )  [private]
 

falesny operator prirazeni


Friends And Related Function Documentation

friend class NSSimpleUnit::TImageRGBResult [friend]
 

Definition at line 151 of file Image.h.

friend class TImageSetReal [friend]
 

Definition at line 150 of file Image.h.


Member Data Documentation

unsigned char* NSPipeline::TImageRGB::m_data [private]
 

data obrazu

Definition at line 189 of file Image.h.

Referenced by CopyFrom(), GetData(), GetDataWrite(), TImageRGB(), and ~TImageRGB().

DWORD NSPipeline::TImageRGB::m_height [private]
 

vyska v pixelech

Definition at line 192 of file Image.h.

Referenced by CopyFrom(), GetDataSize(), GetHeight(), IsRectInside(), and TImageRGB().

DWORD NSPipeline::TImageRGB::m_width [private]
 

sirka v pixelech

Definition at line 191 of file Image.h.

Referenced by CopyFrom(), GetDataSize(), GetPitch(), GetWidth(), IsRectInside(), and TImageRGB().


The documentation for this class was generated from the following files:
Generated on Sat Nov 17 16:25:40 2007 for Image Processing Pipeline by  doxygen 1.4.6-NO