#include <CamImage.h>
Inherits NSCameras::TCameraAbstract.
Inheritance diagram for NSCameras::TCameraImage:
Public Member Functions | |
virtual DWORD | GetDataSize (void) |
Velikost obrazku v bajtech. | |
virtual void | GetData (void *dest) |
Ulozi data do pripraveneho bufferu. | |
virtual int | GetWidth (void) |
Vrati sirku obrazku v pixelech. | |
virtual int | GetHeight (void) |
Vrati vysku obrazku v pixelech. | |
virtual void | Destroy (void) |
Zrusi tento objekt. | |
Static Public Member Functions | |
static TCameraImage * | CreateCamera (const char *filename) |
Tato staticka metoda vytvori kameru. | |
Private Member Functions | |
bool | Initialize (const char *filename) |
Tato metoda inicializuje tridu po vytvoreni. | |
TCameraImage (void) | |
Soukromy konstruktor. | |
~TCameraImage (void) | |
Soukromy destruktor. | |
TCameraImage (const TCameraImage &orig) | |
falesny kopirovaci kontruktor | |
void | operator= (const TCameraImage &orig) |
falesny prirazovaci operator | |
Private Attributes | |
int | m_width |
sirka nacteneho obrazu | |
int | m_height |
vyska nacteneho obrazu | |
unsigned char * | m_data |
pixely obrazu |
Trida plne respektuje pravidla bazove tridy TCameraAbstract a proto by manipulace s vytvorenym objektem mela probihat pouze pres bazovou tridu (rozhrani).
Protoze se jedna o obrazek, data jsou nactena pouze pri inicializaci a dale jsou pouze vracena pri zadostech o vysledek. Trida sam o sobe tedy neni vypocetne narocna. Vyuzit ji lze v situacich, kdy napr. potrebujeme testovat nejaky algoritmus pouze na zadanem obrazku a v budoucnu chceme algoritmus rozsirit na praci s videem.
Definition at line 45 of file CamImage.h.
|
Soukromy konstruktor. Pouze vytvori tridu. Ta musi byt inicializovana metodou Initialize() !!! Definition at line 62 of file CamImage.cpp. References m_data. |
|
Soukromy destruktor.
Definition at line 69 of file CamImage.cpp. References m_data. |
|
falesny kopirovaci kontruktor
|
|
Tato staticka metoda vytvori kameru.
Definition at line 39 of file CamImage.cpp. References Initialize(). Here is the call graph for this function: ![]() |
|
Zrusi tento objekt.
Implements NSCameras::TCameraAbstract. Definition at line 224 of file CamImage.cpp. |
|
Ulozi data do pripraveneho bufferu.
Implements NSCameras::TCameraAbstract. Definition at line 203 of file CamImage.cpp. References m_data. |
|
Velikost obrazku v bajtech.
Implements NSCameras::TCameraAbstract. Definition at line 194 of file CamImage.cpp. References GetHeight(), and GetWidth(). Here is the call graph for this function: ![]() |
|
Vrati vysku obrazku v pixelech.
Implements NSCameras::TCameraAbstract. Definition at line 217 of file CamImage.cpp. References m_height. Referenced by GetDataSize(). |
|
Vrati sirku obrazku v pixelech.
Implements NSCameras::TCameraAbstract. Definition at line 210 of file CamImage.cpp. References m_width. Referenced by GetDataSize(). |
|
Tato metoda inicializuje tridu po vytvoreni.
Definition at line 79 of file CamImage.cpp. References m_data, m_height, and m_width. Referenced by CreateCamera(). |
|
falesny prirazovaci operator
|
|
pixely obrazu
Definition at line 77 of file CamImage.h. Referenced by GetData(), Initialize(), TCameraImage(), and ~TCameraImage(). |
|
vyska nacteneho obrazu
Definition at line 75 of file CamImage.h. Referenced by GetHeight(), and Initialize(). |
|
sirka nacteneho obrazu
Definition at line 74 of file CamImage.h. Referenced by GetWidth(), and Initialize(). |