#include <ImageSampleSet.hpp>
Collaboration diagram for ImageSampleSet:
Purpose: Image Sample Set group data information, images, area, object labels used later to generate samples for supervised learning.
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
ImageSampleSet (int aNmax=255, int channels=3) | |
ImageSampleSet (FILE *file) | |
virtual | ~ImageSampleSet () |
void | load (FILE *file) |
void | clear () |
int | getChannels () |
void | setChannels (int val) |
int | numberOfPixels (int iObject) |
void | evaluateDataSizes () |
DataSample * | generateData (int iObject, int nFeature) |
void | setTitle (char *name) |
char * | getTitle () |
void | setFilename (char *name) |
char * | getFilename () |
bool | isActive () |
void | setActive (bool value) |
void | setPoint0 (int x, int y) |
void | setPoint1 (int x, int y) |
int | getX0 () |
int | getY0 () |
int | getX1 () |
int | getY1 () |
int | numberOfSamples () |
int | maxItems () |
void | extendSet (int nitems) |
int | getCurrentObject () |
void | setCurrentObject (int index) |
int | getNumberOfObjects () |
void | setNumberOfObjects (int n) |
int | getNumberOfClasses (int oi) |
void | setNumberOfClasses (int oi, int n) |
ImageSample * | get (int i) |
void | set (int i, ImageSample *sample) |
void | add (ImageSample *sample) |
void | addAt (int index, ImageSample *sample) |
void | remove (int i) |
ImageSample * | dequeue () |
void | enqueue (ImageSample *sample) |
void | write (FILE *file) |
void | output () |
Private Attributes | |
char * | filename |
char * | title |
int | n |
int | nmax |
ImageSample ** | imSample |
int | nChannels |
int | nObjects |
unsigned char | nClasses [255] |
int | nData [255] |
bool | active |
int | currentObject |
int | x0 |
int | y0 |
int | x1 |
int | y1 |