#include <image.h>
List of all members.
Detailed Description
template<class T>
class CVD::SubImage< T >
A generic image class to manage a block of arbitrarily padded data as an image. Provides basic image access such as accessing a particular pixel co-ordinate.
- Parameters:
-
| T | The pixel type for this image. Typically either CVD::byte or CVD::Rgb<CVD::byte> > are used, but images could be constructed of any available type. |
A BasicImage does not manage its own data, but provides access to an arbitrary externally-managed block of data as though it were an image. Use the derived Image class if you want an image which also has its own data.
Definition at line 252 of file image.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Construct an image from a block of data.
- Parameters:
-
| data | The image data in horizontal scanline order |
| size | The size of the image |
| stride | The row stride (or width, including the padding) |
Definition at line 259 of file image.h.
The image data is not destroyed when a BasicImage is destroyed.
Definition at line 281 of file image.h.
Copy constructor
- Parameters:
-
Definition at line 407 of file image.h.
Member Function Documentation
Returns the raw image data.
Definition at line 336 of file image.h.
Returns the raw image data.
Definition at line 330 of file image.h.
template<class T>
const T* CVD::SubImage< T >::end_ptr |
( |
|
) |
const [inline, protected] |
Return an off-the-end pointer without ever throwing AccessOutsideImage.
Definition at line 452 of file image.h.
Return an off-the-end pointer without ever throwing AccessOutsideImage.
Definition at line 449 of file image.h.
Set all the pixels in the image to a value. This is a relatively fast operation, using memfill
.
- Parameters:
-
| d | The value to write into the image |
Definition at line 399 of file image.h.
Is this pixel co-ordinate inside the image?
- Parameters:
-
| ir | The co-ordinate to test |
Definition at line 267 of file image.h.
Is this pixel co-ordinate inside the image, and not too close to the edges?
- Parameters:
-
| ir | The co-ordinate to test |
| border | The size of the border: positive points inside the image. |
Definition at line 275 of file image.h.
template<class T>
const T* CVD::SubImage< T >::operator[] |
( |
int |
row |
) |
const [inline] |
Access pointer to pixel row. Returns the pointer to the first element of the passed row. Allows to use [y][x] on images to access a pixel. Bounds checking is only performed if the library is compiled with -D CVD_IMAGE_DEBUG
, in which case an ImageError::AccessOutsideImage exception is thrown.
Definition at line 316 of file image.h.
Access pointer to pixel row. Returns the pointer to the first element of the passed row. Allows to use [y][x] on images to access a pixel. Bounds checking is only performed if the library is compiled with -D CVD_IMAGE_DEBUG
, in which case an ImageError::AccessOutsideImage exception is thrown.
Definition at line 306 of file image.h.
Access a pixel from the image. Bounds checking is only performed if the library is compiled with -D CVD_IMAGE_DEBUG
, in which case an ImageError::AccessOutsideImage exception is thrown.
Definition at line 296 of file image.h.
Access a pixel from the image. Bounds checking is only performed if the library is compiled with -D CVD_IMAGE_DEBUG
, in which case an ImageError::AccessOutsideImage exception is thrown.
Definition at line 287 of file image.h.
Given a pointer, this returns the image position as an ImageRef.
Definition at line 323 of file image.h.
Return a reference to a SubImage. Useful for passing anonymous SubImages to functions.
Definition at line 438 of file image.h.
What is the row stride of the image?
Definition at line 380 of file image.h.
What is the size of this image?
Definition at line 374 of file image.h.
Return const a sub image
- Parameters:
-
| start | Top left pixel of the sub image |
| size | width and height of the sub image |
Definition at line 428 of file image.h.
Return a sub image
- Parameters:
-
| start | Top left pixel of the sub image |
| size | width and height of the sub image |
Definition at line 418 of file image.h.
What is the total number of elements in the image (i.e. size().x * size().y
), including padding.
Definition at line 386 of file image.h.
Set all the pixels in the image to zero. This is a relatively fast operation, using memset
.
Definition at line 392 of file image.h.
Member Data Documentation
The raw image data.
Definition at line 444 of file image.h.
The size of the image.
Definition at line 445 of file image.h.
The row stride.
Definition at line 446 of file image.h.
The documentation for this class was generated from the following file:
libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:52 2013