Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phHistogramData.cpp File Reference

#include <phStandard.h>
#include <phHistogramData.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <math.h>
#include <phError.h>
#include <phFile.h>
#include <phMemory.h>
#include <phPrint.h>

Go to the source code of this file.

Defines

#define HSV_TIMESTUFF()   0
#define PH_HISTOGRAM_DATA_BIN_INDEX(bin, binstep)   ((bin - (bin % binstep)) / binstep);
#define PH_HISTOGRAM_DATA_BIN_MINVALUE(bin, binwidth)   ((uint32_t)(bin * binwidth))
#define PH_HISTOGRAM_DATA_BIN_MAXVALUE(bin, binwidth)   ((uint32_t)((bin+1) * binwidth) - 1)
#define phHISTOGRAM_ADD   1
#define phHISTOGRAM_SUB   2

Functions

int ph_histogram_data_gen_from_image (const uint32_t width, const uint32_t height, const uint32_t depth, const uint8_t *img, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, const uint32_t nbins, const float max_element_value, uint32_t **pbinVal, uint32_t *pbinVal_size, uint32_t **pbinCnt, uint32_t *pbinCnt_size, uint32_t **pbinAvg, uint32_t *pbinAvg_size)
int ph_histogram_data_gen_max (const uint32_t nbins, const uint32_t binstep, const uint32_t format, const float max_element_value, const uint32_t *valarray, const uint32_t *cntarray, uint32_t *avgarray, phColor *pmaxbin_color, phColor *pmaxbin_threshold, uint32_t **pmaxBin, uint32_t *pmaxBin_size, uint32_t **pmaxCnt, uint32_t *pmaxCnt_size, uint32_t **pmaxAvg, uint32_t *pmaxAvg_size)
int ph_histogram_data_bin_regions (const uint32_t nbins, const uint32_t binstep, const uint32_t format, const float max_element_value, const uint32_t val_percent_cutoff, const uint32_t max_bin_breaks, const uint32_t *valarray, const uint32_t *cntarray, const uint32_t *avgarray, const uint32_t *maxBin, const uint32_t *maxCnt, const uint32_t *maxAvg, phColor *pcolor, phColor *pthreshold)
int ph_histogram_data_compute (const uint32_t op, const uint32_t nbins_one, const uint32_t binstep_one, const uint32_t binelems_one, const uint32_t nbins_two, const uint32_t binstep_two, const uint32_t binelems_two, uint32_t *binVal_one, uint32_t *binCnt_one, uint32_t *binVal_two, uint32_t *binCnt_two, uint32_t *binVal_out, uint32_t *binCnt_out)




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:25 2007 for phission by  doxygen 1.4.4