Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
ImageIterC::ImageIterC(const ImageC &)
ImageIterC::ImageIterC(const ImageIterC &)
ImageIterC::ImageIterC(const ImageC &,const ImageRectangleC &)
ImageIterC::operator=(const ImageC &)
ImageIterC::First(void)
ImageIterC::Next(void)
ImageIterC::operator++(void)
ImageIterC::operator++(int)
ImageIterC::RNext(void)
ImageIterC::Col(void) const
ImageIterC::Pixel(void) const
ImageIterC::Data(void)
ImageIterC::Data(void) const
ImageIterC::operator*(void)
ImageIterC::operator*(void) const
ImageIterC::operator->(void)
ImageIterC::operator->(void) const
ImageIterC::Row(void) const
ImageIterC::IsElm(void) const
ImageIterC::operator bool(void) const
ImageIterC::IsEndOfRow(void) const
ImageIterC::RowPtr(const IndexT &)
ImageIterC<class DataC>
 
Pointer based image iterator.
 
include "amma/ImagIter.hh"
User Level:Default
Library:Image
Example:exIter.cc
Section:Image.Indexing.Iterators
In Scope:std

Comments:
NB. This does NOT create a refrence to the image.

A small object.

Derived Classes: Variables:
ImageRectangleC rect;
Image rectangle.

UIntT width;
width of area being iterated.

IndexT row;
Current row.

DataC * place;
Ptr to current pixel.

DataC * endOfRow;
Ptr to end of row.

DataC ** img;
table of pointers to image rows

Methods:
ImageIterC(const ImageC<DataC> & Img)
Construct from an image.
This initalises the iterator to the first pixel in the image, as if First() had been called.

NB. Be VERY carefull because this can break the constant mechanism.


ImageIterC(const ImageIterC<DataC> & Oth)
copy constructor.

ImageIterC(const ImageC<DataC> & Img,const ImageRectangleC & rect)
Construct from an image, and a rectangle.
The iterator will iterate though rectangle 'rect' of image. This initalises the iterator to the first pixel in the image, as if First() had been called.

NB. Be VERY carefull because this can break the constant mechanism.


const ImageIterC<DataC> & operator=(const ImageC<DataC> & Oth)
Assign a new image to iterator.
NB. This will reset iterator to begining of image.

BooleanT First()
Goto first pixel in image.
Returns false if image is empty.

void Next()
Goto next pixel in the image.

void operator++()
Goto next pixel in the image.

void operator++(int)
Goto next pixel in the image.

BooleanT RNext()
Goto next pixel in the image.
Returns TRUE, if next pixels is in same row. FALSE otherwise.

IndexT Col() const
Get current column.
(SLOW) Use ImagPIterC<> if you use this alot.

PixelC Pixel() const
Get current pixel location.
(SLOW) Use ImagPIterC<> if you use this alot.

DataC & Data()
Get value of current pixel.

const DataC & Data() const
Get value of current pixel.

DataC & operator*()
Get value of current pixel.

const DataC & operator*() const
Get value of current pixel.

DataC * operator->()
Get value of current pixel.

const DataC * operator->() const
Get value of current pixel.

IndexT Row() const
Get current row.

BooleanT IsElm() const
At valid pixel in image ?

operator bool() const
At valid pixel in image ?

BooleanT IsEndOfRow() const
Test if last pixel in row.

DataC * RowPtr(const IndexT & x)
Get start of row.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001