YARP
Yet Another Robot Platform
ImageStorage Class Reference

Detailed Description

Definition at line 73 of file Image.cpp.

Public Member Functions

 ImageStorage (Image &owner)
 
 ~ImageStorage ()
 
void resize (size_t x, size_t y, int pixel_type, size_t quantum, bool topIsLow)
 
void _alloc_complete_extern (const void *buf, size_t x, size_t y, int pixel_type, size_t quantum, bool topIsLow)
 
int getTypeId ()
 ImageStorage::getTypeId. More...
 

Public Attributes

IplImagepImage
 
char ** Data
 
int extern_type_id
 
size_t extern_type_quantum
 
size_t quantum
 
bool topIsLow
 

Protected Member Functions

void _alloc ()
 
void _alloc_extern (const void *buf)
 
void _alloc_data ()
 
void _free ()
 
void _free_data ()
 
void _make_independent ()
 
bool _set_ipl_header (size_t x, size_t y, int pixel_type, size_t quantum, bool topIsLow)
 
void _free_ipl_header ()
 
void _alloc_complete (size_t x, size_t y, int pixel_type, size_t quantum, bool topIsLow)
 
void _free_complete ()
 
int _pad_bytes (size_t linesize, size_t align) const
 
int GetPadding () const
 

Protected Attributes

Imageowner
 
int type_id
 
int is_owner
 

Constructor & Destructor Documentation

◆ ImageStorage()

ImageStorage::ImageStorage ( Image owner)
inline

Definition at line 119 of file Image.cpp.

◆ ~ImageStorage()

ImageStorage::~ImageStorage ( )
inline

Definition at line 130 of file Image.cpp.

Member Function Documentation

◆ _alloc()

void ImageStorage::_alloc ( )
protected

Definition at line 171 of file Image.cpp.

◆ _alloc_complete()

void ImageStorage::_alloc_complete ( size_t  x,
size_t  y,
int  pixel_type,
size_t  quantum,
bool  topIsLow 
)
protected

Definition at line 284 of file Image.cpp.

◆ _alloc_complete_extern()

void ImageStorage::_alloc_complete_extern ( const void *  buf,
size_t  x,
size_t  y,
int  pixel_type,
size_t  quantum,
bool  topIsLow 
)

Definition at line 374 of file Image.cpp.

◆ _alloc_data()

void ImageStorage::_alloc_data ( )
protected

Definition at line 207 of file Image.cpp.

◆ _alloc_extern()

void ImageStorage::_alloc_extern ( const void *  buf)
protected

Definition at line 188 of file Image.cpp.

◆ _free()

void ImageStorage::_free ( )
protected

Definition at line 238 of file Image.cpp.

◆ _free_complete()

void ImageStorage::_free_complete ( )
protected

Definition at line 266 of file Image.cpp.

◆ _free_data()

void ImageStorage::_free_data ( )
protected

Definition at line 260 of file Image.cpp.

◆ _free_ipl_header()

void ImageStorage::_free_ipl_header ( )
protected

Definition at line 274 of file Image.cpp.

◆ _make_independent()

void ImageStorage::_make_independent ( )
protected

Definition at line 296 of file Image.cpp.

◆ _pad_bytes()

int ImageStorage::_pad_bytes ( size_t  linesize,
size_t  align 
) const
protected

Definition at line 393 of file Image.cpp.

◆ _set_ipl_header()

bool ImageStorage::_set_ipl_header ( size_t  x,
size_t  y,
int  pixel_type,
size_t  quantum,
bool  topIsLow 
)
protected

Definition at line 341 of file Image.cpp.

◆ GetPadding()

int ImageStorage::GetPadding ( ) const
inlineprotected

Definition at line 113 of file Image.cpp.

◆ getTypeId()

int ImageStorage::getTypeId ( )

ImageStorage::getTypeId.

Returns
The type_id value

Definition at line 165 of file Image.cpp.

◆ resize()

void ImageStorage::resize ( size_t  x,
size_t  y,
int  pixel_type,
size_t  quantum,
bool  topIsLow 
)

Definition at line 144 of file Image.cpp.

Member Data Documentation

◆ Data

char** ImageStorage::Data

Definition at line 76 of file Image.cpp.

◆ extern_type_id

int ImageStorage::extern_type_id

Definition at line 77 of file Image.cpp.

◆ extern_type_quantum

size_t ImageStorage::extern_type_quantum

Definition at line 78 of file Image.cpp.

◆ is_owner

int ImageStorage::is_owner
protected

Definition at line 87 of file Image.cpp.

◆ owner

Image& ImageStorage::owner
protected

Definition at line 83 of file Image.cpp.

◆ pImage

IplImage* ImageStorage::pImage

Definition at line 75 of file Image.cpp.

◆ quantum

size_t ImageStorage::quantum

Definition at line 79 of file Image.cpp.

◆ topIsLow

bool ImageStorage::topIsLow

Definition at line 80 of file Image.cpp.

◆ type_id

int ImageStorage::type_id
protected

Definition at line 85 of file Image.cpp.


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