#include <ImageSample.hpp>
Collaboration diagram for ImageSample:
Purpose: Image Sample to describe image of object area samples used later to generate samples for supervised learning.
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
ImageSample (char *name, int w, int h, int aNmax=64) | |
ImageSample (FILE *file) | |
virtual | ~ImageSample () |
int | getWidth () |
int | getHeight () |
void | setFilename (char *name) |
char * | getFilename () |
int | numberOfAreas () |
int | maxAreas () |
void | extendSet (int nitems) |
RectObjectArea * | get (int i) |
void | set (int i, RectObjectArea *region) |
void | add (RectObjectArea *region) |
void | addAt (int index, RectObjectArea *region) |
void | remove (int i) |
RectObjectArea * | dequeue () |
void | enqueue (RectObjectArea *region) |
int | numberOfPixels (int iObject) |
void | write (FILE *file) |
void | output () |
Private Attributes | |
char * | filename |
int | width |
int | height |
int | n |
int | nmax |
RectObjectArea ** | oArea |