| HDK
    | 
#include <image_view.h>
| Public Types | |
| typedef T | value_type | 
| typedef T & | reference | 
| typedef const T & | const_reference | 
| typedef int64_t | stride_t | 
| Public Member Functions | |
| image_view () | |
| Default ctr – points to nothing.  More... | |
| image_view (const image_view ©) | |
| Copy constructor.  More... | |
| image_view (T *data, int nchannels, int width, int height, int depth=1, stride_t chanstride=AutoStride, stride_t xstride=AutoStride, stride_t ystride=AutoStride, stride_t zstride=AutoStride) | |
| image_view & | operator= (const image_view ©) | 
| strided_ptr< T, 1 > | operator() (int x, int y, int z=0) | 
| int | nchannels () const | 
| int | width () const | 
| int | height () const | 
| int | depth () const | 
| stride_t | chanstride () const | 
| stride_t | xstride () const | 
| stride_t | ystride () const | 
| stride_t | zstride () const | 
| const T * | data () const | 
| void | clear () | 
| Static Public Attributes | |
| static const stride_t | AutoStride = (-9223372036854775807LL - 1) | 
image_view : a non-owning reference to an image-like array (indexed by x, y, z, and channel) with known dimensions and optionally non-default strides (expressed in bytes) through the data. An image_view<T> is mutable (the values in the image may be modified), whereas an image_view<const T> is not mutable.
Definition at line 42 of file image_view.h.
| typedef const T& image_view< T >::const_reference | 
Definition at line 46 of file image_view.h.
| typedef T& image_view< T >::reference | 
Definition at line 45 of file image_view.h.
| typedef int64_t image_view< T >::stride_t | 
Definition at line 47 of file image_view.h.
| typedef T image_view< T >::value_type | 
Definition at line 44 of file image_view.h.
| 
 | inline | 
Default ctr – points to nothing.
Definition at line 56 of file image_view.h.
| 
 | inline | 
Copy constructor.
Definition at line 59 of file image_view.h.
| 
 | inline | 
Construct from T*, dimensions, and (possibly default) strides (in bytes).
Definition at line 68 of file image_view.h.
| 
 | inline | 
Definition at line 101 of file image_view.h.
| 
 | inline | 
Definition at line 108 of file image_view.h.
| 
 | inline | 
Definition at line 106 of file image_view.h.
| 
 | inline | 
Definition at line 99 of file image_view.h.
| 
 | inline | 
Definition at line 98 of file image_view.h.
| 
 | inline | 
Definition at line 96 of file image_view.h.
| 
 | inline | 
iav(x,y,z)returns a strided_ptr<T,1> for the pixel (x,y,z). The z can be omitted for 2D images. Note than the resulting strided_ptr can then have individual channels accessed with operator[]. This particular strided pointer has stride multiplier 1, because this class uses bytes as strides, not sizeof(T).
Definition at line 91 of file image_view.h.
| 
 | inline | 
assignments – not a deep copy, just make this image_view point to the same data as the operand.
Definition at line 78 of file image_view.h.
| 
 | inline | 
Definition at line 97 of file image_view.h.
| 
 | inline | 
Definition at line 102 of file image_view.h.
| 
 | inline | 
Definition at line 103 of file image_view.h.
| 
 | inline | 
Definition at line 104 of file image_view.h.
| 
 | static | 
Definition at line 52 of file image_view.h.